add new amalgamation_line_macros option missing from configure.ac
[sqlcipher.git] / configure
blobc6167ed83078c78f16e5bd119545292c85b7a2c6
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sqlcipher 3.34.1.
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.34.1'
591 PACKAGE_STRING='sqlcipher 3.34.1'
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 AMALGAMATION_LINE_MACROS
638 amalgamation_line_macros
639 USE_AMALGAMATION
640 TARGET_DEBUG
641 TARGET_HAVE_EDITLINE
642 TARGET_HAVE_READLINE
643 TARGET_READLINE_INC
644 TARGET_READLINE_LIBS
645 HAVE_TCL
646 TCL_SHLIB_SUFFIX
647 TCL_STUB_LIB_SPEC
648 TCL_STUB_LIB_FLAG
649 TCL_STUB_LIB_FILE
650 TCL_LIB_SPEC
651 TCL_LIB_FLAG
652 TCL_LIB_FILE
653 TCL_INCLUDE_SPEC
654 TCL_SRC_DIR
655 TCL_BIN_DIR
656 TCL_VERSION
657 TARGET_EXEEXT
658 SQLITE_OS_WIN
659 SQLITE_OS_UNIX
660 BUILD_EXEEXT
661 TEMP_STORE
662 ALLOWRELEASE
663 XTHREADCONNECT
664 SQLITE_THREADSAFE
665 BUILD_CC
666 RELEASE
667 VERSION
668 program_prefix
669 TCLLIBDIR
670 TCLSH_CMD
671 INSTALL_DATA
672 INSTALL_SCRIPT
673 INSTALL_PROGRAM
675 LT_SYS_LIBRARY_PATH
676 OTOOL64
677 OTOOL
678 LIPO
679 NMEDIT
680 DSYMUTIL
681 MANIFEST_TOOL
683 RANLIB
684 STRIP
685 ac_ct_AR
687 DLLTOOL
688 OBJDUMP
689 LN_S
691 ac_ct_DUMPBIN
692 DUMPBIN
694 FGREP
695 EGREP
696 GREP
698 OBJEXT
699 EXEEXT
700 ac_ct_CC
701 CPPFLAGS
702 LDFLAGS
703 CFLAGS
705 host_os
706 host_vendor
707 host_cpu
708 host
709 build_os
710 build_vendor
711 build_cpu
712 build
713 LIBTOOL
714 target_alias
715 host_alias
716 build_alias
717 LIBS
718 ECHO_T
719 ECHO_N
720 ECHO_C
721 DEFS
722 mandir
723 localedir
724 libdir
725 psdir
726 pdfdir
727 dvidir
728 htmldir
729 infodir
730 docdir
731 oldincludedir
732 includedir
733 runstatedir
734 localstatedir
735 sharedstatedir
736 sysconfdir
737 datadir
738 datarootdir
739 libexecdir
740 sbindir
741 bindir
742 program_transform_name
743 prefix
744 exec_prefix
745 PACKAGE_URL
746 PACKAGE_BUGREPORT
747 PACKAGE_STRING
748 PACKAGE_VERSION
749 PACKAGE_TARNAME
750 PACKAGE_NAME
751 PATH_SEPARATOR
752 SHELL'
753 ac_subst_files=''
754 ac_user_opts='
755 enable_option_checking
756 enable_shared
757 enable_static
758 with_pic
759 enable_fast_install
760 with_aix_soname
761 with_gnu_ld
762 with_sysroot
763 enable_libtool_lock
764 enable_largefile
765 enable_threadsafe
766 with_crypto_lib
767 enable_cross_thread_connections
768 enable_releasemode
769 enable_tempstore
770 enable_tcl
771 with_tcl
772 enable_editline
773 enable_readline
774 with_readline_lib
775 with_readline_inc
776 enable_debug
777 enable_amalgamation
778 enable_load_extension
779 enable_memsys5
780 enable_memsys3
781 enable_all
782 enable_fts3
783 enable_fts4
784 enable_fts5
785 enable_json1
786 enable_update_limit
787 enable_geopoly
788 enable_rtree
789 enable_session
790 enable_gcov
792 ac_precious_vars='build_alias
793 host_alias
794 target_alias
796 CFLAGS
797 LDFLAGS
798 LIBS
799 CPPFLAGS
800 LT_SYS_LIBRARY_PATH
802 TCLLIBDIR
803 amalgamation_line_macros'
806 # Initialize some variables set by options.
807 ac_init_help=
808 ac_init_version=false
809 ac_unrecognized_opts=
810 ac_unrecognized_sep=
811 # The variables have the same names as the options, with
812 # dashes changed to underlines.
813 cache_file=/dev/null
814 exec_prefix=NONE
815 no_create=
816 no_recursion=
817 prefix=NONE
818 program_prefix=NONE
819 program_suffix=NONE
820 program_transform_name=s,x,x,
821 silent=
822 site=
823 srcdir=
824 verbose=
825 x_includes=NONE
826 x_libraries=NONE
828 # Installation directory options.
829 # These are left unexpanded so users can "make install exec_prefix=/foo"
830 # and all the variables that are supposed to be based on exec_prefix
831 # by default will actually change.
832 # Use braces instead of parens because sh, perl, etc. also accept them.
833 # (The list follows the same order as the GNU Coding Standards.)
834 bindir='${exec_prefix}/bin'
835 sbindir='${exec_prefix}/sbin'
836 libexecdir='${exec_prefix}/libexec'
837 datarootdir='${prefix}/share'
838 datadir='${datarootdir}'
839 sysconfdir='${prefix}/etc'
840 sharedstatedir='${prefix}/com'
841 localstatedir='${prefix}/var'
842 runstatedir='${localstatedir}/run'
843 includedir='${prefix}/include'
844 oldincludedir='/usr/include'
845 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
846 infodir='${datarootdir}/info'
847 htmldir='${docdir}'
848 dvidir='${docdir}'
849 pdfdir='${docdir}'
850 psdir='${docdir}'
851 libdir='${exec_prefix}/lib'
852 localedir='${datarootdir}/locale'
853 mandir='${datarootdir}/man'
855 ac_prev=
856 ac_dashdash=
857 for ac_option
859 # If the previous option needs an argument, assign it.
860 if test -n "$ac_prev"; then
861 eval $ac_prev=\$ac_option
862 ac_prev=
863 continue
866 case $ac_option in
867 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868 *=) ac_optarg= ;;
869 *) ac_optarg=yes ;;
870 esac
872 # Accept the important Cygnus configure options, so we can diagnose typos.
874 case $ac_dashdash$ac_option in
876 ac_dashdash=yes ;;
878 -bindir | --bindir | --bindi | --bind | --bin | --bi)
879 ac_prev=bindir ;;
880 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
881 bindir=$ac_optarg ;;
883 -build | --build | --buil | --bui | --bu)
884 ac_prev=build_alias ;;
885 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
886 build_alias=$ac_optarg ;;
888 -cache-file | --cache-file | --cache-fil | --cache-fi \
889 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
890 ac_prev=cache_file ;;
891 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
892 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
893 cache_file=$ac_optarg ;;
895 --config-cache | -C)
896 cache_file=config.cache ;;
898 -datadir | --datadir | --datadi | --datad)
899 ac_prev=datadir ;;
900 -datadir=* | --datadir=* | --datadi=* | --datad=*)
901 datadir=$ac_optarg ;;
903 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
904 | --dataroo | --dataro | --datar)
905 ac_prev=datarootdir ;;
906 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
907 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
908 datarootdir=$ac_optarg ;;
910 -disable-* | --disable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error $? "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
919 "enable_$ac_useropt"
920 "*) ;;
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
923 esac
924 eval enable_$ac_useropt=no ;;
926 -docdir | --docdir | --docdi | --doc | --do)
927 ac_prev=docdir ;;
928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929 docdir=$ac_optarg ;;
931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932 ac_prev=dvidir ;;
933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934 dvidir=$ac_optarg ;;
936 -enable-* | --enable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: $ac_useropt"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
945 "enable_$ac_useropt"
946 "*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=\$ac_optarg ;;
952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954 | --exec | --exe | --ex)
955 ac_prev=exec_prefix ;;
956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958 | --exec=* | --exe=* | --ex=*)
959 exec_prefix=$ac_optarg ;;
961 -gas | --gas | --ga | --g)
962 # Obsolete; use --with-gas.
963 with_gas=yes ;;
965 -help | --help | --hel | --he | -h)
966 ac_init_help=long ;;
967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968 ac_init_help=recursive ;;
969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970 ac_init_help=short ;;
972 -host | --host | --hos | --ho)
973 ac_prev=host_alias ;;
974 -host=* | --host=* | --hos=* | --ho=*)
975 host_alias=$ac_optarg ;;
977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 ac_prev=htmldir ;;
979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 | --ht=*)
981 htmldir=$ac_optarg ;;
983 -includedir | --includedir | --includedi | --included | --include \
984 | --includ | --inclu | --incl | --inc)
985 ac_prev=includedir ;;
986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987 | --includ=* | --inclu=* | --incl=* | --inc=*)
988 includedir=$ac_optarg ;;
990 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 ac_prev=infodir ;;
992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993 infodir=$ac_optarg ;;
995 -libdir | --libdir | --libdi | --libd)
996 ac_prev=libdir ;;
997 -libdir=* | --libdir=* | --libdi=* | --libd=*)
998 libdir=$ac_optarg ;;
1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001 | --libexe | --libex | --libe)
1002 ac_prev=libexecdir ;;
1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004 | --libexe=* | --libex=* | --libe=*)
1005 libexecdir=$ac_optarg ;;
1007 -localedir | --localedir | --localedi | --localed | --locale)
1008 ac_prev=localedir ;;
1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010 localedir=$ac_optarg ;;
1012 -localstatedir | --localstatedir | --localstatedi | --localstated \
1013 | --localstate | --localstat | --localsta | --localst | --locals)
1014 ac_prev=localstatedir ;;
1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017 localstatedir=$ac_optarg ;;
1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 ac_prev=mandir ;;
1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022 mandir=$ac_optarg ;;
1024 -nfp | --nfp | --nf)
1025 # Obsolete; use --without-fp.
1026 with_fp=no ;;
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n)
1030 no_create=yes ;;
1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 no_recursion=yes ;;
1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038 | --oldin | --oldi | --old | --ol | --o)
1039 ac_prev=oldincludedir ;;
1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043 oldincludedir=$ac_optarg ;;
1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 ac_prev=prefix ;;
1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048 prefix=$ac_optarg ;;
1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051 | --program-pre | --program-pr | --program-p)
1052 ac_prev=program_prefix ;;
1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055 program_prefix=$ac_optarg ;;
1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058 | --program-suf | --program-su | --program-s)
1059 ac_prev=program_suffix ;;
1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062 program_suffix=$ac_optarg ;;
1064 -program-transform-name | --program-transform-name \
1065 | --program-transform-nam | --program-transform-na \
1066 | --program-transform-n | --program-transform- \
1067 | --program-transform | --program-transfor \
1068 | --program-transfo | --program-transf \
1069 | --program-trans | --program-tran \
1070 | --progr-tra | --program-tr | --program-t)
1071 ac_prev=program_transform_name ;;
1072 -program-transform-name=* | --program-transform-name=* \
1073 | --program-transform-nam=* | --program-transform-na=* \
1074 | --program-transform-n=* | --program-transform-=* \
1075 | --program-transform=* | --program-transfor=* \
1076 | --program-transfo=* | --program-transf=* \
1077 | --program-trans=* | --program-tran=* \
1078 | --progr-tra=* | --program-tr=* | --program-t=*)
1079 program_transform_name=$ac_optarg ;;
1081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 ac_prev=pdfdir ;;
1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084 pdfdir=$ac_optarg ;;
1086 -psdir | --psdir | --psdi | --psd | --ps)
1087 ac_prev=psdir ;;
1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 psdir=$ac_optarg ;;
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1093 silent=yes ;;
1095 -runstatedir | --runstatedir | --runstatedi | --runstated \
1096 | --runstate | --runstat | --runsta | --runst | --runs \
1097 | --run | --ru | --r)
1098 ac_prev=runstatedir ;;
1099 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1100 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1101 | --run=* | --ru=* | --r=*)
1102 runstatedir=$ac_optarg ;;
1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 ac_prev=sbindir ;;
1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 | --sbi=* | --sb=*)
1108 sbindir=$ac_optarg ;;
1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112 | --sharedst | --shareds | --shared | --share | --shar \
1113 | --sha | --sh)
1114 ac_prev=sharedstatedir ;;
1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 | --sha=* | --sh=*)
1119 sharedstatedir=$ac_optarg ;;
1121 -site | --site | --sit)
1122 ac_prev=site ;;
1123 -site=* | --site=* | --sit=*)
1124 site=$ac_optarg ;;
1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 ac_prev=srcdir ;;
1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129 srcdir=$ac_optarg ;;
1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132 | --syscon | --sysco | --sysc | --sys | --sy)
1133 ac_prev=sysconfdir ;;
1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136 sysconfdir=$ac_optarg ;;
1138 -target | --target | --targe | --targ | --tar | --ta | --t)
1139 ac_prev=target_alias ;;
1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141 target_alias=$ac_optarg ;;
1143 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 verbose=yes ;;
1146 -version | --version | --versio | --versi | --vers | -V)
1147 ac_init_version=: ;;
1149 -with-* | --with-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1158 "with_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=\$ac_optarg ;;
1165 -without-* | --without-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1174 "with_$ac_useropt"
1175 "*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=no ;;
1181 --x)
1182 # Obsolete; use --with-x.
1183 with_x=yes ;;
1185 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186 | --x-incl | --x-inc | --x-in | --x-i)
1187 ac_prev=x_includes ;;
1188 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190 x_includes=$ac_optarg ;;
1192 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194 ac_prev=x_libraries ;;
1195 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197 x_libraries=$ac_optarg ;;
1199 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1200 Try \`$0 --help' for more information"
1203 *=*)
1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205 # Reject names that are not valid shell variable names.
1206 case $ac_envvar in #(
1207 '' | [0-9]* | *[!_$as_cr_alnum]* )
1208 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1209 esac
1210 eval $ac_envvar=\$ac_optarg
1211 export $ac_envvar ;;
1214 # FIXME: should be removed in autoconf 3.0.
1215 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1218 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1221 esac
1222 done
1224 if test -n "$ac_prev"; then
1225 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226 as_fn_error $? "missing argument to $ac_option"
1229 if test -n "$ac_unrecognized_opts"; then
1230 case $enable_option_checking in
1231 no) ;;
1232 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1233 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234 esac
1237 # Check all directory arguments for consistency.
1238 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239 datadir sysconfdir sharedstatedir localstatedir includedir \
1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241 libdir localedir mandir runstatedir
1243 eval ac_val=\$$ac_var
1244 # Remove trailing slashes.
1245 case $ac_val in
1246 */ )
1247 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248 eval $ac_var=\$ac_val;;
1249 esac
1250 # Be sure to have absolute directory names.
1251 case $ac_val in
1252 [\\/$]* | ?:[\\/]* ) continue;;
1253 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254 esac
1255 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1256 done
1258 # There might be people who depend on the old broken behavior: `$host'
1259 # used to hold the argument of --host etc.
1260 # FIXME: To remove some day.
1261 build=$build_alias
1262 host=$host_alias
1263 target=$target_alias
1265 # FIXME: To remove some day.
1266 if test "x$host_alias" != x; then
1267 if test "x$build_alias" = x; then
1268 cross_compiling=maybe
1269 elif test "x$build_alias" != "x$host_alias"; then
1270 cross_compiling=yes
1274 ac_tool_prefix=
1275 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277 test "$silent" = yes && exec 6>/dev/null
1280 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281 ac_ls_di=`ls -di .` &&
1282 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283 as_fn_error $? "working directory cannot be determined"
1284 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285 as_fn_error $? "pwd does not report name of working directory"
1288 # Find the source files, if location was not specified.
1289 if test -z "$srcdir"; then
1290 ac_srcdir_defaulted=yes
1291 # Try the directory containing this script, then the parent directory.
1292 ac_confdir=`$as_dirname -- "$as_myself" ||
1293 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294 X"$as_myself" : 'X\(//\)[^/]' \| \
1295 X"$as_myself" : 'X\(//\)$' \| \
1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297 $as_echo X"$as_myself" |
1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299 s//\1/
1302 /^X\(\/\/\)[^/].*/{
1303 s//\1/
1306 /^X\(\/\/\)$/{
1307 s//\1/
1310 /^X\(\/\).*/{
1311 s//\1/
1314 s/.*/./; q'`
1315 srcdir=$ac_confdir
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 srcdir=..
1319 else
1320 ac_srcdir_defaulted=no
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1326 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327 ac_abs_confdir=`(
1328 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1329 pwd)`
1330 # When building in place, set srcdir=.
1331 if test "$ac_abs_confdir" = "$ac_pwd"; then
1332 srcdir=.
1334 # Remove unnecessary trailing slashes from srcdir.
1335 # Double slashes in file names in object file debugging info
1336 # mess up M-x gdb in Emacs.
1337 case $srcdir in
1338 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339 esac
1340 for ac_var in $ac_precious_vars; do
1341 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_env_${ac_var}_value=\$${ac_var}
1343 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345 done
1348 # Report the --help message.
1350 if test "$ac_init_help" = "long"; then
1351 # Omit some internal or obsolete options to make the list less imposing.
1352 # This message is too long to be a string in the A/UX 3.1 sh.
1353 cat <<_ACEOF
1354 \`configure' configures sqlcipher 3.34.1 to adapt to many kinds of systems.
1356 Usage: $0 [OPTION]... [VAR=VALUE]...
1358 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359 VAR=VALUE. See below for descriptions of some of the useful variables.
1361 Defaults for the options are specified in brackets.
1363 Configuration:
1364 -h, --help display this help and exit
1365 --help=short display options specific to this package
1366 --help=recursive display the short help of all the included packages
1367 -V, --version display version information and exit
1368 -q, --quiet, --silent do not print \`checking ...' messages
1369 --cache-file=FILE cache test results in FILE [disabled]
1370 -C, --config-cache alias for \`--cache-file=config.cache'
1371 -n, --no-create do not create output files
1372 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1374 Installation directories:
1375 --prefix=PREFIX install architecture-independent files in PREFIX
1376 [$ac_default_prefix]
1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1378 [PREFIX]
1380 By default, \`make install' will install all the files in
1381 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1382 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383 for instance \`--prefix=\$HOME'.
1385 For better control, use the options below.
1387 Fine tuning of the installation directories:
1388 --bindir=DIR user executables [EPREFIX/bin]
1389 --sbindir=DIR system admin executables [EPREFIX/sbin]
1390 --libexecdir=DIR program executables [EPREFIX/libexec]
1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1394 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1395 --libdir=DIR object code libraries [EPREFIX/lib]
1396 --includedir=DIR C header files [PREFIX/include]
1397 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1398 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1399 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1400 --infodir=DIR info documentation [DATAROOTDIR/info]
1401 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1402 --mandir=DIR man documentation [DATAROOTDIR/man]
1403 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlcipher]
1404 --htmldir=DIR html documentation [DOCDIR]
1405 --dvidir=DIR dvi documentation [DOCDIR]
1406 --pdfdir=DIR pdf documentation [DOCDIR]
1407 --psdir=DIR ps documentation [DOCDIR]
1408 _ACEOF
1410 cat <<\_ACEOF
1412 System types:
1413 --build=BUILD configure for building on BUILD [guessed]
1414 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1415 _ACEOF
1418 if test -n "$ac_init_help"; then
1419 case $ac_init_help in
1420 short | recursive ) echo "Configuration of sqlcipher 3.34.1:";;
1421 esac
1422 cat <<\_ACEOF
1424 Optional Features:
1425 --disable-option-checking ignore unrecognized --enable/--with options
1426 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1427 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1428 --enable-shared[=PKGS] build shared libraries [default=yes]
1429 --enable-static[=PKGS] build static libraries [default=yes]
1430 --enable-fast-install[=PKGS]
1431 optimize for fast installation [default=yes]
1432 --disable-libtool-lock avoid locking (might break parallel builds)
1433 --disable-largefile omit support for large files
1434 --disable-threadsafe Disable mutexing
1435 --enable-cross-thread-connections
1436 Allow connection sharing across threads
1437 --enable-releasemode Support libtool link to release mode
1438 --enable-tempstore Use an in-ram database for temporary tables
1439 (never,no,yes,always)
1440 --disable-tcl do not build TCL extension
1441 --enable-editline enable BSD editline support
1442 --disable-readline disable readline support
1443 --enable-debug enable debugging & verbose explain
1444 --disable-amalgamation Disable the amalgamation and instead build all files
1445 separately
1446 --disable-load-extension
1447 Disable loading of external extensions
1448 --enable-memsys5 Enable MEMSYS5
1449 --enable-memsys3 Enable MEMSYS3
1450 --enable-all Enable FTS4, FTS5, Geopoly, JSON, RTree, Sessions
1451 --enable-fts3 Enable the FTS3 extension
1452 --enable-fts4 Enable the FTS4 extension
1453 --enable-fts5 Enable the FTS5 extension
1454 --enable-json1 Enable the JSON1 extension
1455 --enable-update-limit Enable the UPDATE/DELETE LIMIT clause
1456 --enable-geopoly Enable the GEOPOLY extension
1457 --enable-rtree Enable the RTREE extension
1458 --enable-session Enable the SESSION extension
1459 --enable-gcov Enable coverage testing using gcov
1461 Optional Packages:
1462 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1463 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1464 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1465 both]
1466 --with-aix-soname=aix|svr4|both
1467 shared library versioning (aka "SONAME") variant to
1468 provide on AIX, [default=aix].
1469 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1470 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1471 compiler's sysroot if not specified).
1472 --with-crypto-lib Specify which crypto library to use
1473 --with-tcl=DIR directory containing tcl configuration
1474 (tclConfig.sh)
1475 --with-readline-lib specify readline library
1476 --with-readline-inc specify readline include paths
1478 Some influential environment variables:
1479 CC C compiler command
1480 CFLAGS C compiler flags
1481 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1482 nonstandard directory <lib dir>
1483 LIBS libraries to pass to the linker, e.g. -l<library>
1484 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1485 you have headers in a nonstandard directory <include dir>
1486 LT_SYS_LIBRARY_PATH
1487 User-defined run-time library search path.
1488 CPP C preprocessor
1489 TCLLIBDIR Where to install tcl plugin
1490 amalgamation_line_macros
1493 Use these variables to override the choices made by `configure' or to help
1494 it to find libraries and programs with nonstandard names/locations.
1496 Report bugs to the package provider.
1497 _ACEOF
1498 ac_status=$?
1501 if test "$ac_init_help" = "recursive"; then
1502 # If there are subdirs, report their specific --help.
1503 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504 test -d "$ac_dir" ||
1505 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506 continue
1507 ac_builddir=.
1509 case "$ac_dir" in
1510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1513 # A ".." for each directory in $ac_dir_suffix.
1514 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1515 case $ac_top_builddir_sub in
1516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518 esac ;;
1519 esac
1520 ac_abs_top_builddir=$ac_pwd
1521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522 # for backward compatibility:
1523 ac_top_builddir=$ac_top_build_prefix
1525 case $srcdir in
1526 .) # We are building in place.
1527 ac_srcdir=.
1528 ac_top_srcdir=$ac_top_builddir_sub
1529 ac_abs_top_srcdir=$ac_pwd ;;
1530 [\\/]* | ?:[\\/]* ) # Absolute name.
1531 ac_srcdir=$srcdir$ac_dir_suffix;
1532 ac_top_srcdir=$srcdir
1533 ac_abs_top_srcdir=$srcdir ;;
1534 *) # Relative name.
1535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536 ac_top_srcdir=$ac_top_build_prefix$srcdir
1537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538 esac
1539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541 cd "$ac_dir" || { ac_status=$?; continue; }
1542 # Check for guested configure.
1543 if test -f "$ac_srcdir/configure.gnu"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546 elif test -f "$ac_srcdir/configure"; then
1547 echo &&
1548 $SHELL "$ac_srcdir/configure" --help=recursive
1549 else
1550 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551 fi || ac_status=$?
1552 cd "$ac_pwd" || { ac_status=$?; break; }
1553 done
1556 test -n "$ac_init_help" && exit $ac_status
1557 if $ac_init_version; then
1558 cat <<\_ACEOF
1559 sqlcipher configure 3.34.1
1560 generated by GNU Autoconf 2.69
1562 Copyright (C) 2012 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1565 _ACEOF
1566 exit
1569 ## ------------------------ ##
1570 ## Autoconf initialization. ##
1571 ## ------------------------ ##
1573 # ac_fn_c_try_compile LINENO
1574 # --------------------------
1575 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_c_try_compile ()
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 rm -f conftest.$ac_objext
1580 if { { ac_try="$ac_compile"
1581 case "(($ac_try" in
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1584 esac
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_compile") 2>conftest.err
1588 ac_status=$?
1589 if test -s conftest.err; then
1590 grep -v '^ *+' conftest.err >conftest.er1
1591 cat conftest.er1 >&5
1592 mv -f conftest.er1 conftest.err
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && {
1596 test -z "$ac_c_werror_flag" ||
1597 test ! -s conftest.err
1598 } && test -s conftest.$ac_objext; then :
1599 ac_retval=0
1600 else
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1604 ac_retval=1
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status $ac_retval
1609 } # ac_fn_c_try_compile
1611 # ac_fn_c_try_link LINENO
1612 # -----------------------
1613 # Try to link conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_link ()
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 rm -f conftest.$ac_objext conftest$ac_exeext
1618 if { { ac_try="$ac_link"
1619 case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_link") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest$ac_exeext && {
1637 test "$cross_compiling" = yes ||
1638 test -x conftest$ac_exeext
1639 }; then :
1640 ac_retval=0
1641 else
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1645 ac_retval=1
1647 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1648 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1649 # interfere with the next link command; also delete a directory that is
1650 # left behind by Apple's compiler. We do this before executing the actions.
1651 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status $ac_retval
1655 } # ac_fn_c_try_link
1657 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1658 # -------------------------------------------------------
1659 # Tests whether HEADER exists and can be compiled using the include files in
1660 # INCLUDES, setting the cache variable VAR accordingly.
1661 ac_fn_c_check_header_compile ()
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665 $as_echo_n "checking for $2... " >&6; }
1666 if eval \${$3+:} false; then :
1667 $as_echo_n "(cached) " >&6
1668 else
1669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670 /* end confdefs.h. */
1672 #include <$2>
1673 _ACEOF
1674 if ac_fn_c_try_compile "$LINENO"; then :
1675 eval "$3=yes"
1676 else
1677 eval "$3=no"
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1681 eval ac_res=\$$3
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 } # ac_fn_c_check_header_compile
1688 # ac_fn_c_try_cpp LINENO
1689 # ----------------------
1690 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_cpp ()
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { { ac_try="$ac_cpp conftest.$ac_ext"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } > conftest.i && {
1710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 }; then :
1713 ac_retval=0
1714 else
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1718 ac_retval=1
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1723 } # ac_fn_c_try_cpp
1725 # ac_fn_c_try_run LINENO
1726 # ----------------------
1727 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1728 # that executables *can* be run.
1729 ac_fn_c_try_run ()
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if { { ac_try="$ac_link"
1733 case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_link") 2>&5
1740 ac_status=$?
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1743 { { case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_try") 2>&5
1750 ac_status=$?
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; }; }; then :
1753 ac_retval=0
1754 else
1755 $as_echo "$as_me: program exited with status $ac_status" >&5
1756 $as_echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.$ac_ext >&5
1759 ac_retval=$ac_status
1761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763 as_fn_set_status $ac_retval
1765 } # ac_fn_c_try_run
1767 # ac_fn_c_check_func LINENO FUNC VAR
1768 # ----------------------------------
1769 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1770 ac_fn_c_check_func ()
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if eval \${$3+:} false; then :
1776 $as_echo_n "(cached) " >&6
1777 else
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1780 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1782 #define $2 innocuous_$2
1784 /* System header to define __stub macros and hopefully few prototypes,
1785 which can conflict with char $2 (); below.
1786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1787 <limits.h> exists even on freestanding compilers. */
1789 #ifdef __STDC__
1790 # include <limits.h>
1791 #else
1792 # include <assert.h>
1793 #endif
1795 #undef $2
1797 /* Override any GCC internal prototype to avoid an error.
1798 Use char because int might match the return type of a GCC
1799 builtin and then its argument prototype would still apply. */
1800 #ifdef __cplusplus
1801 extern "C"
1802 #endif
1803 char $2 ();
1804 /* The GNU C library defines this for functions which it implements
1805 to always fail with ENOSYS. Some functions are actually named
1806 something starting with __ and the normal name is an alias. */
1807 #if defined __stub_$2 || defined __stub___$2
1808 choke me
1809 #endif
1812 main ()
1814 return $2 ();
1816 return 0;
1818 _ACEOF
1819 if ac_fn_c_try_link "$LINENO"; then :
1820 eval "$3=yes"
1821 else
1822 eval "$3=no"
1824 rm -f core conftest.err conftest.$ac_objext \
1825 conftest$ac_exeext conftest.$ac_ext
1827 eval ac_res=\$$3
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 } # ac_fn_c_check_func
1834 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1835 # -------------------------------------------
1836 # Tests whether TYPE exists after having included INCLUDES, setting cache
1837 # variable VAR accordingly.
1838 ac_fn_c_check_type ()
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1845 else
1846 eval "$3=no"
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1851 main ()
1853 if (sizeof ($2))
1854 return 0;
1856 return 0;
1858 _ACEOF
1859 if ac_fn_c_try_compile "$LINENO"; then :
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1864 main ()
1866 if (sizeof (($2)))
1867 return 0;
1869 return 0;
1871 _ACEOF
1872 if ac_fn_c_try_compile "$LINENO"; then :
1874 else
1875 eval "$3=yes"
1877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881 eval ac_res=\$$3
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 } # ac_fn_c_check_type
1888 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1889 # -------------------------------------------------------
1890 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1891 # the include files in INCLUDES and setting the cache variable VAR
1892 # accordingly.
1893 ac_fn_c_check_header_mongrel ()
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 if eval \${$3+:} false; then :
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 $as_echo_n "checking for $2... " >&6; }
1899 if eval \${$3+:} false; then :
1900 $as_echo_n "(cached) " >&6
1902 eval ac_res=\$$3
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 $as_echo "$ac_res" >&6; }
1905 else
1906 # Is the header compilable?
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1908 $as_echo_n "checking $2 usability... " >&6; }
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1912 #include <$2>
1913 _ACEOF
1914 if ac_fn_c_try_compile "$LINENO"; then :
1915 ac_header_compiler=yes
1916 else
1917 ac_header_compiler=no
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1921 $as_echo "$ac_header_compiler" >&6; }
1923 # Is the header present?
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1925 $as_echo_n "checking $2 presence... " >&6; }
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1928 #include <$2>
1929 _ACEOF
1930 if ac_fn_c_try_cpp "$LINENO"; then :
1931 ac_header_preproc=yes
1932 else
1933 ac_header_preproc=no
1935 rm -f conftest.err conftest.i conftest.$ac_ext
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1937 $as_echo "$ac_header_preproc" >&6; }
1939 # So? What about this header?
1940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1941 yes:no: )
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1943 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1945 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1947 no:yes:* )
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1949 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1951 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1953 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1955 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1957 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1959 esac
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961 $as_echo_n "checking for $2... " >&6; }
1962 if eval \${$3+:} false; then :
1963 $as_echo_n "(cached) " >&6
1964 else
1965 eval "$3=\$ac_header_compiler"
1967 eval ac_res=\$$3
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 } # ac_fn_c_check_header_mongrel
1974 cat >config.log <<_ACEOF
1975 This file contains any messages produced by compilers while
1976 running configure, to aid debugging if configure makes a mistake.
1978 It was created by sqlcipher $as_me 3.34.1, which was
1979 generated by GNU Autoconf 2.69. Invocation command line was
1981 $ $0 $@
1983 _ACEOF
1984 exec 5>>config.log
1986 cat <<_ASUNAME
1987 ## --------- ##
1988 ## Platform. ##
1989 ## --------- ##
1991 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1992 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1993 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1994 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1995 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1997 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1998 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2000 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2001 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2002 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2003 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2004 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2005 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2006 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2008 _ASUNAME
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 for as_dir in $PATH
2013 IFS=$as_save_IFS
2014 test -z "$as_dir" && as_dir=.
2015 $as_echo "PATH: $as_dir"
2016 done
2017 IFS=$as_save_IFS
2019 } >&5
2021 cat >&5 <<_ACEOF
2024 ## ----------- ##
2025 ## Core tests. ##
2026 ## ----------- ##
2028 _ACEOF
2031 # Keep a trace of the command line.
2032 # Strip out --no-create and --no-recursion so they do not pile up.
2033 # Strip out --silent because we don't want to record it for future runs.
2034 # Also quote any args containing shell meta-characters.
2035 # Make two passes to allow for proper duplicate-argument suppression.
2036 ac_configure_args=
2037 ac_configure_args0=
2038 ac_configure_args1=
2039 ac_must_keep_next=false
2040 for ac_pass in 1 2
2042 for ac_arg
2044 case $ac_arg in
2045 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2047 | -silent | --silent | --silen | --sile | --sil)
2048 continue ;;
2049 *\'*)
2050 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2051 esac
2052 case $ac_pass in
2053 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2055 as_fn_append ac_configure_args1 " '$ac_arg'"
2056 if test $ac_must_keep_next = true; then
2057 ac_must_keep_next=false # Got value, back to normal.
2058 else
2059 case $ac_arg in
2060 *=* | --config-cache | -C | -disable-* | --disable-* \
2061 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2062 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2063 | -with-* | --with-* | -without-* | --without-* | --x)
2064 case "$ac_configure_args0 " in
2065 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2066 esac
2068 -* ) ac_must_keep_next=true ;;
2069 esac
2071 as_fn_append ac_configure_args " '$ac_arg'"
2073 esac
2074 done
2075 done
2076 { ac_configure_args0=; unset ac_configure_args0;}
2077 { ac_configure_args1=; unset ac_configure_args1;}
2079 # When interrupted or exit'd, cleanup temporary files, and complete
2080 # config.log. We remove comments because anyway the quotes in there
2081 # would cause problems or look ugly.
2082 # WARNING: Use '\'' to represent an apostrophe within the trap.
2083 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2084 trap 'exit_status=$?
2085 # Save into config.log some information that might help in debugging.
2087 echo
2089 $as_echo "## ---------------- ##
2090 ## Cache variables. ##
2091 ## ---------------- ##"
2092 echo
2093 # The following way of writing the cache mishandles newlines in values,
2095 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2096 eval ac_val=\$$ac_var
2097 case $ac_val in #(
2098 *${as_nl}*)
2099 case $ac_var in #(
2100 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2101 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2102 esac
2103 case $ac_var in #(
2104 _ | IFS | as_nl) ;; #(
2105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2106 *) { eval $ac_var=; unset $ac_var;} ;;
2107 esac ;;
2108 esac
2109 done
2110 (set) 2>&1 |
2111 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2112 *${as_nl}ac_space=\ *)
2113 sed -n \
2114 "s/'\''/'\''\\\\'\'''\''/g;
2115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2116 ;; #(
2118 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2120 esac |
2121 sort
2123 echo
2125 $as_echo "## ----------------- ##
2126 ## Output variables. ##
2127 ## ----------------- ##"
2128 echo
2129 for ac_var in $ac_subst_vars
2131 eval ac_val=\$$ac_var
2132 case $ac_val in
2133 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2134 esac
2135 $as_echo "$ac_var='\''$ac_val'\''"
2136 done | sort
2137 echo
2139 if test -n "$ac_subst_files"; then
2140 $as_echo "## ------------------- ##
2141 ## File substitutions. ##
2142 ## ------------------- ##"
2143 echo
2144 for ac_var in $ac_subst_files
2146 eval ac_val=\$$ac_var
2147 case $ac_val in
2148 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2149 esac
2150 $as_echo "$ac_var='\''$ac_val'\''"
2151 done | sort
2152 echo
2155 if test -s confdefs.h; then
2156 $as_echo "## ----------- ##
2157 ## confdefs.h. ##
2158 ## ----------- ##"
2159 echo
2160 cat confdefs.h
2161 echo
2163 test "$ac_signal" != 0 &&
2164 $as_echo "$as_me: caught signal $ac_signal"
2165 $as_echo "$as_me: exit $exit_status"
2166 } >&5
2167 rm -f core *.core core.conftest.* &&
2168 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2169 exit $exit_status
2171 for ac_signal in 1 2 13 15; do
2172 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2173 done
2174 ac_signal=0
2176 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2177 rm -f -r conftest* confdefs.h
2179 $as_echo "/* confdefs.h */" > confdefs.h
2181 # Predefined preprocessor variables.
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_NAME "$PACKAGE_NAME"
2185 _ACEOF
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2189 _ACEOF
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2193 _ACEOF
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_STRING "$PACKAGE_STRING"
2197 _ACEOF
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2201 _ACEOF
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_URL "$PACKAGE_URL"
2205 _ACEOF
2208 # Let the site file select an alternate cache file if it wants to.
2209 # Prefer an explicitly selected file to automatically selected ones.
2210 ac_site_file1=NONE
2211 ac_site_file2=NONE
2212 if test -n "$CONFIG_SITE"; then
2213 # We do not want a PATH search for config.site.
2214 case $CONFIG_SITE in #((
2215 -*) ac_site_file1=./$CONFIG_SITE;;
2216 */*) ac_site_file1=$CONFIG_SITE;;
2217 *) ac_site_file1=./$CONFIG_SITE;;
2218 esac
2219 elif test "x$prefix" != xNONE; then
2220 ac_site_file1=$prefix/share/config.site
2221 ac_site_file2=$prefix/etc/config.site
2222 else
2223 ac_site_file1=$ac_default_prefix/share/config.site
2224 ac_site_file2=$ac_default_prefix/etc/config.site
2226 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2228 test "x$ac_site_file" = xNONE && continue
2229 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2231 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2232 sed 's/^/| /' "$ac_site_file" >&5
2233 . "$ac_site_file" \
2234 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2236 as_fn_error $? "failed to load site script $ac_site_file
2237 See \`config.log' for more details" "$LINENO" 5; }
2239 done
2241 if test -r "$cache_file"; then
2242 # Some versions of bash will fail to source /dev/null (special files
2243 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2244 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2246 $as_echo "$as_me: loading cache $cache_file" >&6;}
2247 case $cache_file in
2248 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2249 *) . "./$cache_file";;
2250 esac
2252 else
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2254 $as_echo "$as_me: creating cache $cache_file" >&6;}
2255 >$cache_file
2258 # Check that the precious variables saved in the cache have kept the same
2259 # value.
2260 ac_cache_corrupted=false
2261 for ac_var in $ac_precious_vars; do
2262 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2263 eval ac_new_set=\$ac_env_${ac_var}_set
2264 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2265 eval ac_new_val=\$ac_env_${ac_var}_value
2266 case $ac_old_set,$ac_new_set in
2267 set,)
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2269 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2270 ac_cache_corrupted=: ;;
2271 ,set)
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2273 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2274 ac_cache_corrupted=: ;;
2275 ,);;
2277 if test "x$ac_old_val" != "x$ac_new_val"; then
2278 # differences in whitespace do not lead to failure.
2279 ac_old_val_w=`echo x $ac_old_val`
2280 ac_new_val_w=`echo x $ac_new_val`
2281 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2283 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2284 ac_cache_corrupted=:
2285 else
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2287 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2288 eval $ac_var=\$ac_old_val
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2291 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2293 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2294 fi;;
2295 esac
2296 # Pass precious variables to config.status.
2297 if test "$ac_new_set" = set; then
2298 case $ac_new_val in
2299 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2300 *) ac_arg=$ac_var=$ac_new_val ;;
2301 esac
2302 case " $ac_configure_args " in
2303 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2304 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2305 esac
2307 done
2308 if $ac_cache_corrupted; then
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2312 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2313 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2315 ## -------------------- ##
2316 ## Main body of script. ##
2317 ## -------------------- ##
2319 ac_ext=c
2320 ac_cpp='$CPP $CPPFLAGS'
2321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2327 sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
2328 if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2329 as_fn_error $? "configure script is out of date:
2330 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2331 top level VERSION file = $sqlite_version_sanity_check
2332 please regen with autoconf" "$LINENO" 5
2335 #########
2336 # Programs needed
2338 ac_aux_dir=
2339 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2340 if test -f "$ac_dir/install-sh"; then
2341 ac_aux_dir=$ac_dir
2342 ac_install_sh="$ac_aux_dir/install-sh -c"
2343 break
2344 elif test -f "$ac_dir/install.sh"; then
2345 ac_aux_dir=$ac_dir
2346 ac_install_sh="$ac_aux_dir/install.sh -c"
2347 break
2348 elif test -f "$ac_dir/shtool"; then
2349 ac_aux_dir=$ac_dir
2350 ac_install_sh="$ac_aux_dir/shtool install -c"
2351 break
2353 done
2354 if test -z "$ac_aux_dir"; then
2355 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2358 # These three variables are undocumented and unsupported,
2359 # and are intended to be withdrawn in a future Autoconf release.
2360 # They can cause serious problems if a builder's source tree is in a directory
2361 # whose full name contains unusual characters.
2362 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2363 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2364 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2367 case `pwd` in
2368 *\ * | *\ *)
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2370 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2371 esac
2375 macro_version='2.4.6'
2376 macro_revision='2.4.6'
2390 ltmain=$ac_aux_dir/ltmain.sh
2392 # Make sure we can run config.sub.
2393 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2394 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2397 $as_echo_n "checking build system type... " >&6; }
2398 if ${ac_cv_build+:} false; then :
2399 $as_echo_n "(cached) " >&6
2400 else
2401 ac_build_alias=$build_alias
2402 test "x$ac_build_alias" = x &&
2403 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2404 test "x$ac_build_alias" = x &&
2405 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2406 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2407 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2411 $as_echo "$ac_cv_build" >&6; }
2412 case $ac_cv_build in
2413 *-*-*) ;;
2414 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2415 esac
2416 build=$ac_cv_build
2417 ac_save_IFS=$IFS; IFS='-'
2418 set x $ac_cv_build
2419 shift
2420 build_cpu=$1
2421 build_vendor=$2
2422 shift; shift
2423 # Remember, the first character of IFS is used to create $*,
2424 # except with old shells:
2425 build_os=$*
2426 IFS=$ac_save_IFS
2427 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2431 $as_echo_n "checking host system type... " >&6; }
2432 if ${ac_cv_host+:} false; then :
2433 $as_echo_n "(cached) " >&6
2434 else
2435 if test "x$host_alias" = x; then
2436 ac_cv_host=$ac_cv_build
2437 else
2438 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2439 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2444 $as_echo "$ac_cv_host" >&6; }
2445 case $ac_cv_host in
2446 *-*-*) ;;
2447 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2448 esac
2449 host=$ac_cv_host
2450 ac_save_IFS=$IFS; IFS='-'
2451 set x $ac_cv_host
2452 shift
2453 host_cpu=$1
2454 host_vendor=$2
2455 shift; shift
2456 # Remember, the first character of IFS is used to create $*,
2457 # except with old shells:
2458 host_os=$*
2459 IFS=$ac_save_IFS
2460 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2463 # Backslashify metacharacters that are still active within
2464 # double-quoted strings.
2465 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2467 # Same as above, but do not quote variable references.
2468 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2470 # Sed substitution to delay expansion of an escaped shell variable in a
2471 # double_quote_subst'ed string.
2472 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2474 # Sed substitution to delay expansion of an escaped single quote.
2475 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2477 # Sed substitution to avoid accidental globbing in evaled expressions
2478 no_glob_subst='s/\*/\\\*/g'
2480 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2481 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2482 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2485 $as_echo_n "checking how to print strings... " >&6; }
2486 # Test print first, because it will be a builtin if present.
2487 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2488 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2489 ECHO='print -r --'
2490 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2491 ECHO='printf %s\n'
2492 else
2493 # Use this function as a fallback that always works.
2494 func_fallback_echo ()
2496 eval 'cat <<_LTECHO_EOF
2498 _LTECHO_EOF'
2500 ECHO='func_fallback_echo'
2503 # func_echo_all arg...
2504 # Invoke $ECHO with all args, space-separated.
2505 func_echo_all ()
2507 $ECHO ""
2510 case $ECHO in
2511 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2512 $as_echo "printf" >&6; } ;;
2513 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2514 $as_echo "print -r" >&6; } ;;
2515 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2516 $as_echo "cat" >&6; } ;;
2517 esac
2532 ac_ext=c
2533 ac_cpp='$CPP $CPPFLAGS'
2534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2537 if test -n "$ac_tool_prefix"; then
2538 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2539 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541 $as_echo_n "checking for $ac_word... " >&6; }
2542 if ${ac_cv_prog_CC+:} false; then :
2543 $as_echo_n "(cached) " >&6
2544 else
2545 if test -n "$CC"; then
2546 ac_cv_prog_CC="$CC" # Let the user override the test.
2547 else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2555 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 break 2
2559 done
2560 done
2561 IFS=$as_save_IFS
2565 CC=$ac_cv_prog_CC
2566 if test -n "$CC"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2568 $as_echo "$CC" >&6; }
2569 else
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2571 $as_echo "no" >&6; }
2576 if test -z "$ac_cv_prog_CC"; then
2577 ac_ct_CC=$CC
2578 # Extract the first word of "gcc", so it can be a program name with args.
2579 set dummy gcc; ac_word=$2
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2581 $as_echo_n "checking for $ac_word... " >&6; }
2582 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2583 $as_echo_n "(cached) " >&6
2584 else
2585 if test -n "$ac_ct_CC"; then
2586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2587 else
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2595 ac_cv_prog_ac_ct_CC="gcc"
2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 break 2
2599 done
2600 done
2601 IFS=$as_save_IFS
2605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2606 if test -n "$ac_ct_CC"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2608 $as_echo "$ac_ct_CC" >&6; }
2609 else
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2611 $as_echo "no" >&6; }
2614 if test "x$ac_ct_CC" = x; then
2615 CC=""
2616 else
2617 case $cross_compiling:$ac_tool_warned in
2618 yes:)
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2621 ac_tool_warned=yes ;;
2622 esac
2623 CC=$ac_ct_CC
2625 else
2626 CC="$ac_cv_prog_CC"
2629 if test -z "$CC"; then
2630 if test -n "$ac_tool_prefix"; then
2631 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2632 set dummy ${ac_tool_prefix}cc; ac_word=$2
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2634 $as_echo_n "checking for $ac_word... " >&6; }
2635 if ${ac_cv_prog_CC+:} false; then :
2636 $as_echo_n "(cached) " >&6
2637 else
2638 if test -n "$CC"; then
2639 ac_cv_prog_CC="$CC" # Let the user override the test.
2640 else
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 for as_dir in $PATH
2644 IFS=$as_save_IFS
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2648 ac_cv_prog_CC="${ac_tool_prefix}cc"
2649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 break 2
2652 done
2653 done
2654 IFS=$as_save_IFS
2658 CC=$ac_cv_prog_CC
2659 if test -n "$CC"; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2661 $as_echo "$CC" >&6; }
2662 else
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2664 $as_echo "no" >&6; }
2670 if test -z "$CC"; then
2671 # Extract the first word of "cc", so it can be a program name with args.
2672 set dummy cc; ac_word=$2
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674 $as_echo_n "checking for $ac_word... " >&6; }
2675 if ${ac_cv_prog_CC+:} false; then :
2676 $as_echo_n "(cached) " >&6
2677 else
2678 if test -n "$CC"; then
2679 ac_cv_prog_CC="$CC" # Let the user override the test.
2680 else
2681 ac_prog_rejected=no
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2690 ac_prog_rejected=yes
2691 continue
2693 ac_cv_prog_CC="cc"
2694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2697 done
2698 done
2699 IFS=$as_save_IFS
2701 if test $ac_prog_rejected = yes; then
2702 # We found a bogon in the path, so make sure we never use it.
2703 set dummy $ac_cv_prog_CC
2704 shift
2705 if test $# != 0; then
2706 # We chose a different compiler from the bogus one.
2707 # However, it has the same basename, so the bogon will be chosen
2708 # first if we set CC to just the basename; use the full file name.
2709 shift
2710 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2715 CC=$ac_cv_prog_CC
2716 if test -n "$CC"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2718 $as_echo "$CC" >&6; }
2719 else
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721 $as_echo "no" >&6; }
2726 if test -z "$CC"; then
2727 if test -n "$ac_tool_prefix"; then
2728 for ac_prog in cl.exe
2730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2731 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733 $as_echo_n "checking for $ac_word... " >&6; }
2734 if ${ac_cv_prog_CC+:} false; then :
2735 $as_echo_n "(cached) " >&6
2736 else
2737 if test -n "$CC"; then
2738 ac_cv_prog_CC="$CC" # Let the user override the test.
2739 else
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2747 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 break 2
2751 done
2752 done
2753 IFS=$as_save_IFS
2757 CC=$ac_cv_prog_CC
2758 if test -n "$CC"; then
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2760 $as_echo "$CC" >&6; }
2761 else
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 $as_echo "no" >&6; }
2767 test -n "$CC" && break
2768 done
2770 if test -z "$CC"; then
2771 ac_ct_CC=$CC
2772 for ac_prog in cl.exe
2774 # Extract the first word of "$ac_prog", so it can be a program name with args.
2775 set dummy $ac_prog; ac_word=$2
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777 $as_echo_n "checking for $ac_word... " >&6; }
2778 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2779 $as_echo_n "(cached) " >&6
2780 else
2781 if test -n "$ac_ct_CC"; then
2782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2783 else
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 ac_cv_prog_ac_ct_CC="$ac_prog"
2792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 break 2
2795 done
2796 done
2797 IFS=$as_save_IFS
2801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2802 if test -n "$ac_ct_CC"; then
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2804 $as_echo "$ac_ct_CC" >&6; }
2805 else
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807 $as_echo "no" >&6; }
2811 test -n "$ac_ct_CC" && break
2812 done
2814 if test "x$ac_ct_CC" = x; then
2815 CC=""
2816 else
2817 case $cross_compiling:$ac_tool_warned in
2818 yes:)
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2821 ac_tool_warned=yes ;;
2822 esac
2823 CC=$ac_ct_CC
2830 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2832 as_fn_error $? "no acceptable C compiler found in \$PATH
2833 See \`config.log' for more details" "$LINENO" 5; }
2835 # Provide some information about the compiler.
2836 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2837 set X $ac_compile
2838 ac_compiler=$2
2839 for ac_option in --version -v -V -qversion; do
2840 { { ac_try="$ac_compiler $ac_option >&5"
2841 case "(($ac_try" in
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2844 esac
2845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2846 $as_echo "$ac_try_echo"; } >&5
2847 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2848 ac_status=$?
2849 if test -s conftest.err; then
2850 sed '10a\
2851 ... rest of stderr output deleted ...
2852 10q' conftest.err >conftest.er1
2853 cat conftest.er1 >&5
2855 rm -f conftest.er1 conftest.err
2856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2857 test $ac_status = 0; }
2858 done
2860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2861 /* end confdefs.h. */
2864 main ()
2868 return 0;
2870 _ACEOF
2871 ac_clean_files_save=$ac_clean_files
2872 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2873 # Try to create an executable without -o first, disregard a.out.
2874 # It will help us diagnose broken compilers, and finding out an intuition
2875 # of exeext.
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2877 $as_echo_n "checking whether the C compiler works... " >&6; }
2878 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2880 # The possible output files:
2881 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2883 ac_rmfiles=
2884 for ac_file in $ac_files
2886 case $ac_file in
2887 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2888 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2889 esac
2890 done
2891 rm -f $ac_rmfiles
2893 if { { ac_try="$ac_link_default"
2894 case "(($ac_try" in
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2897 esac
2898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2899 $as_echo "$ac_try_echo"; } >&5
2900 (eval "$ac_link_default") 2>&5
2901 ac_status=$?
2902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2903 test $ac_status = 0; }; then :
2904 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2905 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2906 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2907 # so that the user can short-circuit this test for compilers unknown to
2908 # Autoconf.
2909 for ac_file in $ac_files ''
2911 test -f "$ac_file" || continue
2912 case $ac_file in
2913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2915 [ab].out )
2916 # We found the default executable, but exeext='' is most
2917 # certainly right.
2918 break;;
2919 *.* )
2920 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2921 then :; else
2922 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2924 # We set ac_cv_exeext here because the later test for it is not
2925 # safe: cross compilers may not add the suffix if given an `-o'
2926 # argument, so we may need to know it at that point already.
2927 # Even if this section looks crufty: it has the advantage of
2928 # actually working.
2929 break;;
2931 break;;
2932 esac
2933 done
2934 test "$ac_cv_exeext" = no && ac_cv_exeext=
2936 else
2937 ac_file=''
2939 if test -z "$ac_file"; then :
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2942 $as_echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2947 as_fn_error 77 "C compiler cannot create executables
2948 See \`config.log' for more details" "$LINENO" 5; }
2949 else
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2951 $as_echo "yes" >&6; }
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2954 $as_echo_n "checking for C compiler default output file name... " >&6; }
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2956 $as_echo "$ac_file" >&6; }
2957 ac_exeext=$ac_cv_exeext
2959 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2960 ac_clean_files=$ac_clean_files_save
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2962 $as_echo_n "checking for suffix of executables... " >&6; }
2963 if { { ac_try="$ac_link"
2964 case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2967 esac
2968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2969 $as_echo "$ac_try_echo"; } >&5
2970 (eval "$ac_link") 2>&5
2971 ac_status=$?
2972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2973 test $ac_status = 0; }; then :
2974 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2975 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2976 # work properly (i.e., refer to `conftest.exe'), while it won't with
2977 # `rm'.
2978 for ac_file in conftest.exe conftest conftest.*; do
2979 test -f "$ac_file" || continue
2980 case $ac_file in
2981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2982 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2983 break;;
2984 * ) break;;
2985 esac
2986 done
2987 else
2988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2991 See \`config.log' for more details" "$LINENO" 5; }
2993 rm -f conftest conftest$ac_cv_exeext
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2995 $as_echo "$ac_cv_exeext" >&6; }
2997 rm -f conftest.$ac_ext
2998 EXEEXT=$ac_cv_exeext
2999 ac_exeext=$EXEEXT
3000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3001 /* end confdefs.h. */
3002 #include <stdio.h>
3004 main ()
3006 FILE *f = fopen ("conftest.out", "w");
3007 return ferror (f) || fclose (f) != 0;
3010 return 0;
3012 _ACEOF
3013 ac_clean_files="$ac_clean_files conftest.out"
3014 # Check that the compiler produces executables we can run. If not, either
3015 # the compiler is broken, or we cross compile.
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3017 $as_echo_n "checking whether we are cross compiling... " >&6; }
3018 if test "$cross_compiling" != yes; then
3019 { { ac_try="$ac_link"
3020 case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023 esac
3024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3025 $as_echo "$ac_try_echo"; } >&5
3026 (eval "$ac_link") 2>&5
3027 ac_status=$?
3028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3029 test $ac_status = 0; }
3030 if { ac_try='./conftest$ac_cv_exeext'
3031 { { case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034 esac
3035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3036 $as_echo "$ac_try_echo"; } >&5
3037 (eval "$ac_try") 2>&5
3038 ac_status=$?
3039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3040 test $ac_status = 0; }; }; then
3041 cross_compiling=no
3042 else
3043 if test "$cross_compiling" = maybe; then
3044 cross_compiling=yes
3045 else
3046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3048 as_fn_error $? "cannot run C compiled programs.
3049 If you meant to cross compile, use \`--host'.
3050 See \`config.log' for more details" "$LINENO" 5; }
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3055 $as_echo "$cross_compiling" >&6; }
3057 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3058 ac_clean_files=$ac_clean_files_save
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3060 $as_echo_n "checking for suffix of object files... " >&6; }
3061 if ${ac_cv_objext+:} false; then :
3062 $as_echo_n "(cached) " >&6
3063 else
3064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3065 /* end confdefs.h. */
3068 main ()
3072 return 0;
3074 _ACEOF
3075 rm -f conftest.o conftest.obj
3076 if { { ac_try="$ac_compile"
3077 case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080 esac
3081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082 $as_echo "$ac_try_echo"; } >&5
3083 (eval "$ac_compile") 2>&5
3084 ac_status=$?
3085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3086 test $ac_status = 0; }; then :
3087 for ac_file in conftest.o conftest.obj conftest.*; do
3088 test -f "$ac_file" || continue;
3089 case $ac_file in
3090 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3091 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3092 break;;
3093 esac
3094 done
3095 else
3096 $as_echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3101 as_fn_error $? "cannot compute suffix of object files: cannot compile
3102 See \`config.log' for more details" "$LINENO" 5; }
3104 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3107 $as_echo "$ac_cv_objext" >&6; }
3108 OBJEXT=$ac_cv_objext
3109 ac_objext=$OBJEXT
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3111 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3112 if ${ac_cv_c_compiler_gnu+:} false; then :
3113 $as_echo_n "(cached) " >&6
3114 else
3115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3116 /* end confdefs.h. */
3119 main ()
3121 #ifndef __GNUC__
3122 choke me
3123 #endif
3126 return 0;
3128 _ACEOF
3129 if ac_fn_c_try_compile "$LINENO"; then :
3130 ac_compiler_gnu=yes
3131 else
3132 ac_compiler_gnu=no
3134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3135 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3139 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3140 if test $ac_compiler_gnu = yes; then
3141 GCC=yes
3142 else
3143 GCC=
3145 ac_test_CFLAGS=${CFLAGS+set}
3146 ac_save_CFLAGS=$CFLAGS
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3148 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3149 if ${ac_cv_prog_cc_g+:} false; then :
3150 $as_echo_n "(cached) " >&6
3151 else
3152 ac_save_c_werror_flag=$ac_c_werror_flag
3153 ac_c_werror_flag=yes
3154 ac_cv_prog_cc_g=no
3155 CFLAGS="-g"
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h. */
3160 main ()
3164 return 0;
3166 _ACEOF
3167 if ac_fn_c_try_compile "$LINENO"; then :
3168 ac_cv_prog_cc_g=yes
3169 else
3170 CFLAGS=""
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h. */
3175 main ()
3179 return 0;
3181 _ACEOF
3182 if ac_fn_c_try_compile "$LINENO"; then :
3184 else
3185 ac_c_werror_flag=$ac_save_c_werror_flag
3186 CFLAGS="-g"
3187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3188 /* end confdefs.h. */
3191 main ()
3195 return 0;
3197 _ACEOF
3198 if ac_fn_c_try_compile "$LINENO"; then :
3199 ac_cv_prog_cc_g=yes
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 ac_c_werror_flag=$ac_save_c_werror_flag
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3209 $as_echo "$ac_cv_prog_cc_g" >&6; }
3210 if test "$ac_test_CFLAGS" = set; then
3211 CFLAGS=$ac_save_CFLAGS
3212 elif test $ac_cv_prog_cc_g = yes; then
3213 if test "$GCC" = yes; then
3214 CFLAGS="-g -O2"
3215 else
3216 CFLAGS="-g"
3218 else
3219 if test "$GCC" = yes; then
3220 CFLAGS="-O2"
3221 else
3222 CFLAGS=
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3226 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3227 if ${ac_cv_prog_cc_c89+:} false; then :
3228 $as_echo_n "(cached) " >&6
3229 else
3230 ac_cv_prog_cc_c89=no
3231 ac_save_CC=$CC
3232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3233 /* end confdefs.h. */
3234 #include <stdarg.h>
3235 #include <stdio.h>
3236 struct stat;
3237 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3238 struct buf { int x; };
3239 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3240 static char *e (p, i)
3241 char **p;
3242 int i;
3244 return p[i];
3246 static char *f (char * (*g) (char **, int), char **p, ...)
3248 char *s;
3249 va_list v;
3250 va_start (v,p);
3251 s = g (p, va_arg (v,int));
3252 va_end (v);
3253 return s;
3256 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3257 function prototypes and stuff, but not '\xHH' hex character constants.
3258 These don't provoke an error unfortunately, instead are silently treated
3259 as 'x'. The following induces an error, until -std is added to get
3260 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3261 array size at least. It's necessary to write '\x00'==0 to get something
3262 that's true only with -std. */
3263 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3265 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3266 inside strings and character constants. */
3267 #define FOO(x) 'x'
3268 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3270 int test (int i, double x);
3271 struct s1 {int (*f) (int a);};
3272 struct s2 {int (*f) (double a);};
3273 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3274 int argc;
3275 char **argv;
3277 main ()
3279 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3281 return 0;
3283 _ACEOF
3284 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3285 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3287 CC="$ac_save_CC $ac_arg"
3288 if ac_fn_c_try_compile "$LINENO"; then :
3289 ac_cv_prog_cc_c89=$ac_arg
3291 rm -f core conftest.err conftest.$ac_objext
3292 test "x$ac_cv_prog_cc_c89" != "xno" && break
3293 done
3294 rm -f conftest.$ac_ext
3295 CC=$ac_save_CC
3298 # AC_CACHE_VAL
3299 case "x$ac_cv_prog_cc_c89" in
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3302 $as_echo "none needed" >&6; } ;;
3303 xno)
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3305 $as_echo "unsupported" >&6; } ;;
3307 CC="$CC $ac_cv_prog_cc_c89"
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3309 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3310 esac
3311 if test "x$ac_cv_prog_cc_c89" != xno; then :
3315 ac_ext=c
3316 ac_cpp='$CPP $CPPFLAGS'
3317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3322 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3323 if ${ac_cv_path_SED+:} false; then :
3324 $as_echo_n "(cached) " >&6
3325 else
3326 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3327 for ac_i in 1 2 3 4 5 6 7; do
3328 ac_script="$ac_script$as_nl$ac_script"
3329 done
3330 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3331 { ac_script=; unset ac_script;}
3332 if test -z "$SED"; then
3333 ac_path_SED_found=false
3334 # Loop through the user's path and test for each of PROGNAME-LIST
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3338 IFS=$as_save_IFS
3339 test -z "$as_dir" && as_dir=.
3340 for ac_prog in sed gsed; do
3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3343 as_fn_executable_p "$ac_path_SED" || continue
3344 # Check for GNU ac_path_SED and select it if it is found.
3345 # Check for GNU $ac_path_SED
3346 case `"$ac_path_SED" --version 2>&1` in
3347 *GNU*)
3348 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3350 ac_count=0
3351 $as_echo_n 0123456789 >"conftest.in"
3352 while :
3354 cat "conftest.in" "conftest.in" >"conftest.tmp"
3355 mv "conftest.tmp" "conftest.in"
3356 cp "conftest.in" "conftest.nl"
3357 $as_echo '' >> "conftest.nl"
3358 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3359 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3360 as_fn_arith $ac_count + 1 && ac_count=$as_val
3361 if test $ac_count -gt ${ac_path_SED_max-0}; then
3362 # Best one so far, save it but keep looking for a better one
3363 ac_cv_path_SED="$ac_path_SED"
3364 ac_path_SED_max=$ac_count
3366 # 10*(2^10) chars as input seems more than enough
3367 test $ac_count -gt 10 && break
3368 done
3369 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3370 esac
3372 $ac_path_SED_found && break 3
3373 done
3374 done
3375 done
3376 IFS=$as_save_IFS
3377 if test -z "$ac_cv_path_SED"; then
3378 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3380 else
3381 ac_cv_path_SED=$SED
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3386 $as_echo "$ac_cv_path_SED" >&6; }
3387 SED="$ac_cv_path_SED"
3388 rm -f conftest.sed
3390 test -z "$SED" && SED=sed
3391 Xsed="$SED -e 1s/^X//"
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3404 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3405 if ${ac_cv_path_GREP+:} false; then :
3406 $as_echo_n "(cached) " >&6
3407 else
3408 if test -z "$GREP"; then
3409 ac_path_GREP_found=false
3410 # Loop through the user's path and test for each of PROGNAME-LIST
3411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3414 IFS=$as_save_IFS
3415 test -z "$as_dir" && as_dir=.
3416 for ac_prog in grep ggrep; do
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3419 as_fn_executable_p "$ac_path_GREP" || continue
3420 # Check for GNU ac_path_GREP and select it if it is found.
3421 # Check for GNU $ac_path_GREP
3422 case `"$ac_path_GREP" --version 2>&1` in
3423 *GNU*)
3424 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3426 ac_count=0
3427 $as_echo_n 0123456789 >"conftest.in"
3428 while :
3430 cat "conftest.in" "conftest.in" >"conftest.tmp"
3431 mv "conftest.tmp" "conftest.in"
3432 cp "conftest.in" "conftest.nl"
3433 $as_echo 'GREP' >> "conftest.nl"
3434 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3435 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3436 as_fn_arith $ac_count + 1 && ac_count=$as_val
3437 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3438 # Best one so far, save it but keep looking for a better one
3439 ac_cv_path_GREP="$ac_path_GREP"
3440 ac_path_GREP_max=$ac_count
3442 # 10*(2^10) chars as input seems more than enough
3443 test $ac_count -gt 10 && break
3444 done
3445 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3446 esac
3448 $ac_path_GREP_found && break 3
3449 done
3450 done
3451 done
3452 IFS=$as_save_IFS
3453 if test -z "$ac_cv_path_GREP"; then
3454 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3456 else
3457 ac_cv_path_GREP=$GREP
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3462 $as_echo "$ac_cv_path_GREP" >&6; }
3463 GREP="$ac_cv_path_GREP"
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3467 $as_echo_n "checking for egrep... " >&6; }
3468 if ${ac_cv_path_EGREP+:} false; then :
3469 $as_echo_n "(cached) " >&6
3470 else
3471 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3472 then ac_cv_path_EGREP="$GREP -E"
3473 else
3474 if test -z "$EGREP"; then
3475 ac_path_EGREP_found=false
3476 # Loop through the user's path and test for each of PROGNAME-LIST
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3480 IFS=$as_save_IFS
3481 test -z "$as_dir" && as_dir=.
3482 for ac_prog in egrep; do
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3485 as_fn_executable_p "$ac_path_EGREP" || continue
3486 # Check for GNU ac_path_EGREP and select it if it is found.
3487 # Check for GNU $ac_path_EGREP
3488 case `"$ac_path_EGREP" --version 2>&1` in
3489 *GNU*)
3490 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3492 ac_count=0
3493 $as_echo_n 0123456789 >"conftest.in"
3494 while :
3496 cat "conftest.in" "conftest.in" >"conftest.tmp"
3497 mv "conftest.tmp" "conftest.in"
3498 cp "conftest.in" "conftest.nl"
3499 $as_echo 'EGREP' >> "conftest.nl"
3500 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3501 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3502 as_fn_arith $ac_count + 1 && ac_count=$as_val
3503 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3504 # Best one so far, save it but keep looking for a better one
3505 ac_cv_path_EGREP="$ac_path_EGREP"
3506 ac_path_EGREP_max=$ac_count
3508 # 10*(2^10) chars as input seems more than enough
3509 test $ac_count -gt 10 && break
3510 done
3511 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3512 esac
3514 $ac_path_EGREP_found && break 3
3515 done
3516 done
3517 done
3518 IFS=$as_save_IFS
3519 if test -z "$ac_cv_path_EGREP"; then
3520 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3522 else
3523 ac_cv_path_EGREP=$EGREP
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3529 $as_echo "$ac_cv_path_EGREP" >&6; }
3530 EGREP="$ac_cv_path_EGREP"
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3534 $as_echo_n "checking for fgrep... " >&6; }
3535 if ${ac_cv_path_FGREP+:} false; then :
3536 $as_echo_n "(cached) " >&6
3537 else
3538 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3539 then ac_cv_path_FGREP="$GREP -F"
3540 else
3541 if test -z "$FGREP"; then
3542 ac_path_FGREP_found=false
3543 # Loop through the user's path and test for each of PROGNAME-LIST
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3547 IFS=$as_save_IFS
3548 test -z "$as_dir" && as_dir=.
3549 for ac_prog in fgrep; do
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3552 as_fn_executable_p "$ac_path_FGREP" || continue
3553 # Check for GNU ac_path_FGREP and select it if it is found.
3554 # Check for GNU $ac_path_FGREP
3555 case `"$ac_path_FGREP" --version 2>&1` in
3556 *GNU*)
3557 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3559 ac_count=0
3560 $as_echo_n 0123456789 >"conftest.in"
3561 while :
3563 cat "conftest.in" "conftest.in" >"conftest.tmp"
3564 mv "conftest.tmp" "conftest.in"
3565 cp "conftest.in" "conftest.nl"
3566 $as_echo 'FGREP' >> "conftest.nl"
3567 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3569 as_fn_arith $ac_count + 1 && ac_count=$as_val
3570 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3571 # Best one so far, save it but keep looking for a better one
3572 ac_cv_path_FGREP="$ac_path_FGREP"
3573 ac_path_FGREP_max=$ac_count
3575 # 10*(2^10) chars as input seems more than enough
3576 test $ac_count -gt 10 && break
3577 done
3578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3579 esac
3581 $ac_path_FGREP_found && break 3
3582 done
3583 done
3584 done
3585 IFS=$as_save_IFS
3586 if test -z "$ac_cv_path_FGREP"; then
3587 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3589 else
3590 ac_cv_path_FGREP=$FGREP
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3596 $as_echo "$ac_cv_path_FGREP" >&6; }
3597 FGREP="$ac_cv_path_FGREP"
3600 test -z "$GREP" && GREP=grep
3620 # Check whether --with-gnu-ld was given.
3621 if test "${with_gnu_ld+set}" = set; then :
3622 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
3623 else
3624 with_gnu_ld=no
3627 ac_prog=ld
3628 if test yes = "$GCC"; then
3629 # Check if gcc -print-prog-name=ld gives a path.
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3631 $as_echo_n "checking for ld used by $CC... " >&6; }
3632 case $host in
3633 *-*-mingw*)
3634 # gcc leaves a trailing carriage return, which upsets mingw
3635 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3637 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3638 esac
3639 case $ac_prog in
3640 # Accept absolute paths.
3641 [\\/]* | ?:[\\/]*)
3642 re_direlt='/[^/][^/]*/\.\./'
3643 # Canonicalize the pathname of ld
3644 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3645 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3646 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3647 done
3648 test -z "$LD" && LD=$ac_prog
3651 # If it fails, then pretend we aren't using GCC.
3652 ac_prog=ld
3655 # If it is relative, then search for the first ld in PATH.
3656 with_gnu_ld=unknown
3658 esac
3659 elif test yes = "$with_gnu_ld"; then
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3661 $as_echo_n "checking for GNU ld... " >&6; }
3662 else
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3664 $as_echo_n "checking for non-GNU ld... " >&6; }
3666 if ${lt_cv_path_LD+:} false; then :
3667 $as_echo_n "(cached) " >&6
3668 else
3669 if test -z "$LD"; then
3670 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3671 for ac_dir in $PATH; do
3672 IFS=$lt_save_ifs
3673 test -z "$ac_dir" && ac_dir=.
3674 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3675 lt_cv_path_LD=$ac_dir/$ac_prog
3676 # Check to see if the program is GNU ld. I'd rather use --version,
3677 # but apparently some variants of GNU ld only accept -v.
3678 # Break only if it was the GNU/non-GNU ld that we prefer.
3679 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3680 *GNU* | *'with BFD'*)
3681 test no != "$with_gnu_ld" && break
3684 test yes != "$with_gnu_ld" && break
3686 esac
3688 done
3689 IFS=$lt_save_ifs
3690 else
3691 lt_cv_path_LD=$LD # Let the user override the test with a path.
3695 LD=$lt_cv_path_LD
3696 if test -n "$LD"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3698 $as_echo "$LD" >&6; }
3699 else
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3703 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3705 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3706 if ${lt_cv_prog_gnu_ld+:} false; then :
3707 $as_echo_n "(cached) " >&6
3708 else
3709 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3710 case `$LD -v 2>&1 </dev/null` in
3711 *GNU* | *'with BFD'*)
3712 lt_cv_prog_gnu_ld=yes
3715 lt_cv_prog_gnu_ld=no
3717 esac
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3720 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3721 with_gnu_ld=$lt_cv_prog_gnu_ld
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3732 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3733 if ${lt_cv_path_NM+:} false; then :
3734 $as_echo_n "(cached) " >&6
3735 else
3736 if test -n "$NM"; then
3737 # Let the user override the test.
3738 lt_cv_path_NM=$NM
3739 else
3740 lt_nm_to_check=${ac_tool_prefix}nm
3741 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3742 lt_nm_to_check="$lt_nm_to_check nm"
3744 for lt_tmp_nm in $lt_nm_to_check; do
3745 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3746 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3747 IFS=$lt_save_ifs
3748 test -z "$ac_dir" && ac_dir=.
3749 tmp_nm=$ac_dir/$lt_tmp_nm
3750 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
3751 # Check to see if the nm accepts a BSD-compat flag.
3752 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
3753 # nm: unknown option "B" ignored
3754 # Tru64's nm complains that /dev/null is an invalid object file
3755 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
3756 case $build_os in
3757 mingw*) lt_bad_file=conftest.nm/nofile ;;
3758 *) lt_bad_file=/dev/null ;;
3759 esac
3760 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3761 *$lt_bad_file* | *'Invalid file or object type'*)
3762 lt_cv_path_NM="$tmp_nm -B"
3763 break 2
3766 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3767 */dev/null*)
3768 lt_cv_path_NM="$tmp_nm -p"
3769 break 2
3772 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3773 continue # so that we can try to find one that supports BSD flags
3775 esac
3777 esac
3779 done
3780 IFS=$lt_save_ifs
3781 done
3782 : ${lt_cv_path_NM=no}
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3786 $as_echo "$lt_cv_path_NM" >&6; }
3787 if test no != "$lt_cv_path_NM"; then
3788 NM=$lt_cv_path_NM
3789 else
3790 # Didn't find any BSD compatible name lister, look for dumpbin.
3791 if test -n "$DUMPBIN"; then :
3792 # Let the user override the test.
3793 else
3794 if test -n "$ac_tool_prefix"; then
3795 for ac_prog in dumpbin "link -dump"
3797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800 $as_echo_n "checking for $ac_word... " >&6; }
3801 if ${ac_cv_prog_DUMPBIN+:} false; then :
3802 $as_echo_n "(cached) " >&6
3803 else
3804 if test -n "$DUMPBIN"; then
3805 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3806 else
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3814 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3816 break 2
3818 done
3819 done
3820 IFS=$as_save_IFS
3824 DUMPBIN=$ac_cv_prog_DUMPBIN
3825 if test -n "$DUMPBIN"; then
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3827 $as_echo "$DUMPBIN" >&6; }
3828 else
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830 $as_echo "no" >&6; }
3834 test -n "$DUMPBIN" && break
3835 done
3837 if test -z "$DUMPBIN"; then
3838 ac_ct_DUMPBIN=$DUMPBIN
3839 for ac_prog in dumpbin "link -dump"
3841 # Extract the first word of "$ac_prog", so it can be a program name with args.
3842 set dummy $ac_prog; ac_word=$2
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3844 $as_echo_n "checking for $ac_word... " >&6; }
3845 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3846 $as_echo_n "(cached) " >&6
3847 else
3848 if test -n "$ac_ct_DUMPBIN"; then
3849 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3850 else
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 break 2
3862 done
3863 done
3864 IFS=$as_save_IFS
3868 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3869 if test -n "$ac_ct_DUMPBIN"; then
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3871 $as_echo "$ac_ct_DUMPBIN" >&6; }
3872 else
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3874 $as_echo "no" >&6; }
3878 test -n "$ac_ct_DUMPBIN" && break
3879 done
3881 if test "x$ac_ct_DUMPBIN" = x; then
3882 DUMPBIN=":"
3883 else
3884 case $cross_compiling:$ac_tool_warned in
3885 yes:)
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3888 ac_tool_warned=yes ;;
3889 esac
3890 DUMPBIN=$ac_ct_DUMPBIN
3894 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
3895 *COFF*)
3896 DUMPBIN="$DUMPBIN -symbols -headers"
3899 DUMPBIN=:
3901 esac
3904 if test : != "$DUMPBIN"; then
3905 NM=$DUMPBIN
3908 test -z "$NM" && NM=nm
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3916 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3917 if ${lt_cv_nm_interface+:} false; then :
3918 $as_echo_n "(cached) " >&6
3919 else
3920 lt_cv_nm_interface="BSD nm"
3921 echo "int some_variable = 0;" > conftest.$ac_ext
3922 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
3923 (eval "$ac_compile" 2>conftest.err)
3924 cat conftest.err >&5
3925 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3926 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3927 cat conftest.err >&5
3928 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
3929 cat conftest.out >&5
3930 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3931 lt_cv_nm_interface="MS dumpbin"
3933 rm -f conftest*
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3936 $as_echo "$lt_cv_nm_interface" >&6; }
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3939 $as_echo_n "checking whether ln -s works... " >&6; }
3940 LN_S=$as_ln_s
3941 if test "$LN_S" = "ln -s"; then
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3943 $as_echo "yes" >&6; }
3944 else
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3946 $as_echo "no, using $LN_S" >&6; }
3949 # find the maximum length of command line arguments
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3951 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3952 if ${lt_cv_sys_max_cmd_len+:} false; then :
3953 $as_echo_n "(cached) " >&6
3954 else
3956 teststring=ABCD
3958 case $build_os in
3959 msdosdjgpp*)
3960 # On DJGPP, this test can blow up pretty badly due to problems in libc
3961 # (any single argument exceeding 2000 bytes causes a buffer overrun
3962 # during glob expansion). Even if it were fixed, the result of this
3963 # check would be larger than it should be.
3964 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3967 gnu*)
3968 # Under GNU Hurd, this test is not required because there is
3969 # no limit to the length of command line arguments.
3970 # Libtool will interpret -1 as no limit whatsoever
3971 lt_cv_sys_max_cmd_len=-1;
3974 cygwin* | mingw* | cegcc*)
3975 # On Win9x/ME, this test blows up -- it succeeds, but takes
3976 # about 5 minutes as the teststring grows exponentially.
3977 # Worse, since 9x/ME are not pre-emptively multitasking,
3978 # you end up with a "frozen" computer, even though with patience
3979 # the test eventually succeeds (with a max line length of 256k).
3980 # Instead, let's just punt: use the minimum linelength reported by
3981 # all of the supported platforms: 8192 (on NT/2K/XP).
3982 lt_cv_sys_max_cmd_len=8192;
3985 mint*)
3986 # On MiNT this can take a long time and run out of memory.
3987 lt_cv_sys_max_cmd_len=8192;
3990 amigaos*)
3991 # On AmigaOS with pdksh, this test takes hours, literally.
3992 # So we just punt and use a minimum line length of 8192.
3993 lt_cv_sys_max_cmd_len=8192;
3996 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
3997 # This has been around since 386BSD, at least. Likely further.
3998 if test -x /sbin/sysctl; then
3999 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4000 elif test -x /usr/sbin/sysctl; then
4001 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4002 else
4003 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4005 # And add a safety zone
4006 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4007 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4010 interix*)
4011 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4012 lt_cv_sys_max_cmd_len=196608
4015 os2*)
4016 # The test takes a long time on OS/2.
4017 lt_cv_sys_max_cmd_len=8192
4020 osf*)
4021 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4022 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4023 # nice to cause kernel panics so lets avoid the loop below.
4024 # First set a reasonable default.
4025 lt_cv_sys_max_cmd_len=16384
4027 if test -x /sbin/sysconfig; then
4028 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4029 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4030 esac
4033 sco3.2v5*)
4034 lt_cv_sys_max_cmd_len=102400
4036 sysv5* | sco5v6* | sysv4.2uw2*)
4037 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4038 if test -n "$kargmax"; then
4039 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4040 else
4041 lt_cv_sys_max_cmd_len=32768
4045 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4046 if test -n "$lt_cv_sys_max_cmd_len" && \
4047 test undefined != "$lt_cv_sys_max_cmd_len"; then
4048 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4049 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4050 else
4051 # Make teststring a little bigger before we do anything with it.
4052 # a 1K string should be a reasonable start.
4053 for i in 1 2 3 4 5 6 7 8; do
4054 teststring=$teststring$teststring
4055 done
4056 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4057 # If test is not a shell built-in, we'll probably end up computing a
4058 # maximum length that is only half of the actual maximum length, but
4059 # we can't tell.
4060 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4061 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4062 test 17 != "$i" # 1/2 MB should be enough
4064 i=`expr $i + 1`
4065 teststring=$teststring$teststring
4066 done
4067 # Only check the string length outside the loop.
4068 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4069 teststring=
4070 # Add a significant safety factor because C++ compilers can tack on
4071 # massive amounts of additional arguments before passing them to the
4072 # linker. It appears as though 1/2 is a usable value.
4073 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4076 esac
4080 if test -n "$lt_cv_sys_max_cmd_len"; then
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4082 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4083 else
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4085 $as_echo "none" >&6; }
4087 max_cmd_len=$lt_cv_sys_max_cmd_len
4094 : ${CP="cp -f"}
4095 : ${MV="mv -f"}
4096 : ${RM="rm -f"}
4098 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4099 lt_unset=unset
4100 else
4101 lt_unset=false
4108 # test EBCDIC or ASCII
4109 case `echo X|tr X '\101'` in
4110 A) # ASCII based system
4111 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4112 lt_SP2NL='tr \040 \012'
4113 lt_NL2SP='tr \015\012 \040\040'
4115 *) # EBCDIC based system
4116 lt_SP2NL='tr \100 \n'
4117 lt_NL2SP='tr \r\n \100\100'
4119 esac
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4130 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4131 if ${lt_cv_to_host_file_cmd+:} false; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 case $host in
4135 *-*-mingw* )
4136 case $build in
4137 *-*-mingw* ) # actually msys
4138 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4140 *-*-cygwin* )
4141 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4143 * ) # otherwise, assume *nix
4144 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4146 esac
4148 *-*-cygwin* )
4149 case $build in
4150 *-*-mingw* ) # actually msys
4151 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4153 *-*-cygwin* )
4154 lt_cv_to_host_file_cmd=func_convert_file_noop
4156 * ) # otherwise, assume *nix
4157 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4159 esac
4161 * ) # unhandled hosts (and "normal" native builds)
4162 lt_cv_to_host_file_cmd=func_convert_file_noop
4164 esac
4168 to_host_file_cmd=$lt_cv_to_host_file_cmd
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4170 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4177 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4178 if ${lt_cv_to_tool_file_cmd+:} false; then :
4179 $as_echo_n "(cached) " >&6
4180 else
4181 #assume ordinary cross tools, or native build.
4182 lt_cv_to_tool_file_cmd=func_convert_file_noop
4183 case $host in
4184 *-*-mingw* )
4185 case $build in
4186 *-*-mingw* ) # actually msys
4187 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4189 esac
4191 esac
4195 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4197 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4204 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4205 if ${lt_cv_ld_reload_flag+:} false; then :
4206 $as_echo_n "(cached) " >&6
4207 else
4208 lt_cv_ld_reload_flag='-r'
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4211 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4212 reload_flag=$lt_cv_ld_reload_flag
4213 case $reload_flag in
4214 "" | " "*) ;;
4215 *) reload_flag=" $reload_flag" ;;
4216 esac
4217 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4218 case $host_os in
4219 cygwin* | mingw* | pw32* | cegcc*)
4220 if test yes != "$GCC"; then
4221 reload_cmds=false
4224 darwin*)
4225 if test yes = "$GCC"; then
4226 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4227 else
4228 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4231 esac
4241 if test -n "$ac_tool_prefix"; then
4242 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4243 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if ${ac_cv_prog_OBJDUMP+:} false; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 if test -n "$OBJDUMP"; then
4250 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 break 2
4263 done
4264 done
4265 IFS=$as_save_IFS
4269 OBJDUMP=$ac_cv_prog_OBJDUMP
4270 if test -n "$OBJDUMP"; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4272 $as_echo "$OBJDUMP" >&6; }
4273 else
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4280 if test -z "$ac_cv_prog_OBJDUMP"; then
4281 ac_ct_OBJDUMP=$OBJDUMP
4282 # Extract the first word of "objdump", so it can be a program name with args.
4283 set dummy objdump; ac_word=$2
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 $as_echo_n "checking for $ac_word... " >&6; }
4286 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4287 $as_echo_n "(cached) " >&6
4288 else
4289 if test -n "$ac_ct_OBJDUMP"; then
4290 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4291 else
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4299 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 break 2
4303 done
4304 done
4305 IFS=$as_save_IFS
4309 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4310 if test -n "$ac_ct_OBJDUMP"; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4312 $as_echo "$ac_ct_OBJDUMP" >&6; }
4313 else
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4318 if test "x$ac_ct_OBJDUMP" = x; then
4319 OBJDUMP="false"
4320 else
4321 case $cross_compiling:$ac_tool_warned in
4322 yes:)
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4325 ac_tool_warned=yes ;;
4326 esac
4327 OBJDUMP=$ac_ct_OBJDUMP
4329 else
4330 OBJDUMP="$ac_cv_prog_OBJDUMP"
4333 test -z "$OBJDUMP" && OBJDUMP=objdump
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4344 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4345 if ${lt_cv_deplibs_check_method+:} false; then :
4346 $as_echo_n "(cached) " >&6
4347 else
4348 lt_cv_file_magic_cmd='$MAGIC_CMD'
4349 lt_cv_file_magic_test_file=
4350 lt_cv_deplibs_check_method='unknown'
4351 # Need to set the preceding variable on all platforms that support
4352 # interlibrary dependencies.
4353 # 'none' -- dependencies not supported.
4354 # 'unknown' -- same as none, but documents that we really don't know.
4355 # 'pass_all' -- all dependencies passed with no checks.
4356 # 'test_compile' -- check by making test program.
4357 # 'file_magic [[regex]]' -- check by looking for files in library path
4358 # that responds to the $file_magic_cmd with a given extended regex.
4359 # If you have 'file' or equivalent on your system and you're not sure
4360 # whether 'pass_all' will *always* work, you probably want this one.
4362 case $host_os in
4363 aix[4-9]*)
4364 lt_cv_deplibs_check_method=pass_all
4367 beos*)
4368 lt_cv_deplibs_check_method=pass_all
4371 bsdi[45]*)
4372 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4373 lt_cv_file_magic_cmd='/usr/bin/file -L'
4374 lt_cv_file_magic_test_file=/shlib/libc.so
4377 cygwin*)
4378 # func_win32_libid is a shell function defined in ltmain.sh
4379 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4380 lt_cv_file_magic_cmd='func_win32_libid'
4383 mingw* | pw32*)
4384 # Base MSYS/MinGW do not provide the 'file' command needed by
4385 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4386 # unless we find 'file', for example because we are cross-compiling.
4387 if ( file / ) >/dev/null 2>&1; then
4388 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4389 lt_cv_file_magic_cmd='func_win32_libid'
4390 else
4391 # Keep this pattern in sync with the one in func_win32_libid.
4392 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4393 lt_cv_file_magic_cmd='$OBJDUMP -f'
4397 cegcc*)
4398 # use the weaker test based on 'objdump'. See mingw*.
4399 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4400 lt_cv_file_magic_cmd='$OBJDUMP -f'
4403 darwin* | rhapsody*)
4404 lt_cv_deplibs_check_method=pass_all
4407 freebsd* | dragonfly*)
4408 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4409 case $host_cpu in
4410 i*86 )
4411 # Not sure whether the presence of OpenBSD here was a mistake.
4412 # Let's accept both of them until this is cleared up.
4413 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4414 lt_cv_file_magic_cmd=/usr/bin/file
4415 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4417 esac
4418 else
4419 lt_cv_deplibs_check_method=pass_all
4423 haiku*)
4424 lt_cv_deplibs_check_method=pass_all
4427 hpux10.20* | hpux11*)
4428 lt_cv_file_magic_cmd=/usr/bin/file
4429 case $host_cpu in
4430 ia64*)
4431 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4432 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4434 hppa*64*)
4435 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]'
4436 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4439 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4440 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4442 esac
4445 interix[3-9]*)
4446 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4447 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4450 irix5* | irix6* | nonstopux*)
4451 case $LD in
4452 *-32|*"-32 ") libmagic=32-bit;;
4453 *-n32|*"-n32 ") libmagic=N32;;
4454 *-64|*"-64 ") libmagic=64-bit;;
4455 *) libmagic=never-match;;
4456 esac
4457 lt_cv_deplibs_check_method=pass_all
4460 # This must be glibc/ELF.
4461 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4462 lt_cv_deplibs_check_method=pass_all
4465 netbsd* | netbsdelf*-gnu)
4466 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4467 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4468 else
4469 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4473 newos6*)
4474 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4475 lt_cv_file_magic_cmd=/usr/bin/file
4476 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4479 *nto* | *qnx*)
4480 lt_cv_deplibs_check_method=pass_all
4483 openbsd* | bitrig*)
4484 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
4485 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4486 else
4487 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4491 osf3* | osf4* | osf5*)
4492 lt_cv_deplibs_check_method=pass_all
4495 rdos*)
4496 lt_cv_deplibs_check_method=pass_all
4499 solaris*)
4500 lt_cv_deplibs_check_method=pass_all
4503 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4504 lt_cv_deplibs_check_method=pass_all
4507 sysv4 | sysv4.3*)
4508 case $host_vendor in
4509 motorola)
4510 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]'
4511 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4513 ncr)
4514 lt_cv_deplibs_check_method=pass_all
4516 sequent)
4517 lt_cv_file_magic_cmd='/bin/file'
4518 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4520 sni)
4521 lt_cv_file_magic_cmd='/bin/file'
4522 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4523 lt_cv_file_magic_test_file=/lib/libc.so
4525 siemens)
4526 lt_cv_deplibs_check_method=pass_all
4529 lt_cv_deplibs_check_method=pass_all
4531 esac
4534 tpf*)
4535 lt_cv_deplibs_check_method=pass_all
4537 os2*)
4538 lt_cv_deplibs_check_method=pass_all
4540 esac
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4544 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4546 file_magic_glob=
4547 want_nocaseglob=no
4548 if test "$build" = "$host"; then
4549 case $host_os in
4550 mingw* | pw32*)
4551 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4552 want_nocaseglob=yes
4553 else
4554 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4557 esac
4560 file_magic_cmd=$lt_cv_file_magic_cmd
4561 deplibs_check_method=$lt_cv_deplibs_check_method
4562 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4585 if test -n "$ac_tool_prefix"; then
4586 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4587 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4589 $as_echo_n "checking for $ac_word... " >&6; }
4590 if ${ac_cv_prog_DLLTOOL+:} false; then :
4591 $as_echo_n "(cached) " >&6
4592 else
4593 if test -n "$DLLTOOL"; then
4594 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4595 else
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 for as_dir in $PATH
4599 IFS=$as_save_IFS
4600 test -z "$as_dir" && as_dir=.
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4603 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4605 break 2
4607 done
4608 done
4609 IFS=$as_save_IFS
4613 DLLTOOL=$ac_cv_prog_DLLTOOL
4614 if test -n "$DLLTOOL"; then
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4616 $as_echo "$DLLTOOL" >&6; }
4617 else
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4619 $as_echo "no" >&6; }
4624 if test -z "$ac_cv_prog_DLLTOOL"; then
4625 ac_ct_DLLTOOL=$DLLTOOL
4626 # Extract the first word of "dlltool", so it can be a program name with args.
4627 set dummy dlltool; ac_word=$2
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4629 $as_echo_n "checking for $ac_word... " >&6; }
4630 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4631 $as_echo_n "(cached) " >&6
4632 else
4633 if test -n "$ac_ct_DLLTOOL"; then
4634 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4635 else
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 for as_dir in $PATH
4639 IFS=$as_save_IFS
4640 test -z "$as_dir" && as_dir=.
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4643 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4645 break 2
4647 done
4648 done
4649 IFS=$as_save_IFS
4653 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4654 if test -n "$ac_ct_DLLTOOL"; then
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4656 $as_echo "$ac_ct_DLLTOOL" >&6; }
4657 else
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4659 $as_echo "no" >&6; }
4662 if test "x$ac_ct_DLLTOOL" = x; then
4663 DLLTOOL="false"
4664 else
4665 case $cross_compiling:$ac_tool_warned in
4666 yes:)
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4669 ac_tool_warned=yes ;;
4670 esac
4671 DLLTOOL=$ac_ct_DLLTOOL
4673 else
4674 DLLTOOL="$ac_cv_prog_DLLTOOL"
4677 test -z "$DLLTOOL" && DLLTOOL=dlltool
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4689 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4690 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 lt_cv_sharedlib_from_linklib_cmd='unknown'
4695 case $host_os in
4696 cygwin* | mingw* | pw32* | cegcc*)
4697 # two different shell functions defined in ltmain.sh;
4698 # decide which one to use based on capabilities of $DLLTOOL
4699 case `$DLLTOOL --help 2>&1` in
4700 *--identify-strict*)
4701 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4704 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4706 esac
4709 # fallback: assume linklib IS sharedlib
4710 lt_cv_sharedlib_from_linklib_cmd=$ECHO
4712 esac
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4716 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4717 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4718 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4727 if test -n "$ac_tool_prefix"; then
4728 for ac_prog in ar
4730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4731 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733 $as_echo_n "checking for $ac_word... " >&6; }
4734 if ${ac_cv_prog_AR+:} false; then :
4735 $as_echo_n "(cached) " >&6
4736 else
4737 if test -n "$AR"; then
4738 ac_cv_prog_AR="$AR" # Let the user override the test.
4739 else
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 for as_dir in $PATH
4743 IFS=$as_save_IFS
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4747 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 break 2
4751 done
4752 done
4753 IFS=$as_save_IFS
4757 AR=$ac_cv_prog_AR
4758 if test -n "$AR"; then
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4760 $as_echo "$AR" >&6; }
4761 else
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763 $as_echo "no" >&6; }
4767 test -n "$AR" && break
4768 done
4770 if test -z "$AR"; then
4771 ac_ct_AR=$AR
4772 for ac_prog in ar
4774 # Extract the first word of "$ac_prog", so it can be a program name with args.
4775 set dummy $ac_prog; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 if test -n "$ac_ct_AR"; then
4782 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4783 else
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4791 ac_cv_prog_ac_ct_AR="$ac_prog"
4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 break 2
4795 done
4796 done
4797 IFS=$as_save_IFS
4801 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4802 if test -n "$ac_ct_AR"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4804 $as_echo "$ac_ct_AR" >&6; }
4805 else
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4811 test -n "$ac_ct_AR" && break
4812 done
4814 if test "x$ac_ct_AR" = x; then
4815 AR="false"
4816 else
4817 case $cross_compiling:$ac_tool_warned in
4818 yes:)
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4821 ac_tool_warned=yes ;;
4822 esac
4823 AR=$ac_ct_AR
4827 : ${AR=ar}
4828 : ${AR_FLAGS=cr}
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
4841 $as_echo_n "checking for archiver @FILE support... " >&6; }
4842 if ${lt_cv_ar_at_file+:} false; then :
4843 $as_echo_n "(cached) " >&6
4844 else
4845 lt_cv_ar_at_file=no
4846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4847 /* end confdefs.h. */
4850 main ()
4854 return 0;
4856 _ACEOF
4857 if ac_fn_c_try_compile "$LINENO"; then :
4858 echo conftest.$ac_objext > conftest.lst
4859 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
4860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4861 (eval $lt_ar_try) 2>&5
4862 ac_status=$?
4863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4864 test $ac_status = 0; }
4865 if test 0 -eq "$ac_status"; then
4866 # Ensure the archiver fails upon bogus file names.
4867 rm -f conftest.$ac_objext libconftest.a
4868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4869 (eval $lt_ar_try) 2>&5
4870 ac_status=$?
4871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4872 test $ac_status = 0; }
4873 if test 0 -ne "$ac_status"; then
4874 lt_cv_ar_at_file=@
4877 rm -f conftest.* libconftest.a
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
4884 $as_echo "$lt_cv_ar_at_file" >&6; }
4886 if test no = "$lt_cv_ar_at_file"; then
4887 archiver_list_spec=
4888 else
4889 archiver_list_spec=$lt_cv_ar_at_file
4898 if test -n "$ac_tool_prefix"; then
4899 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4900 set dummy ${ac_tool_prefix}strip; ac_word=$2
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4902 $as_echo_n "checking for $ac_word... " >&6; }
4903 if ${ac_cv_prog_STRIP+:} false; then :
4904 $as_echo_n "(cached) " >&6
4905 else
4906 if test -n "$STRIP"; then
4907 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4908 else
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4920 done
4921 done
4922 IFS=$as_save_IFS
4926 STRIP=$ac_cv_prog_STRIP
4927 if test -n "$STRIP"; then
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4929 $as_echo "$STRIP" >&6; }
4930 else
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932 $as_echo "no" >&6; }
4937 if test -z "$ac_cv_prog_STRIP"; then
4938 ac_ct_STRIP=$STRIP
4939 # Extract the first word of "strip", so it can be a program name with args.
4940 set dummy strip; ac_word=$2
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4942 $as_echo_n "checking for $ac_word... " >&6; }
4943 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4944 $as_echo_n "(cached) " >&6
4945 else
4946 if test -n "$ac_ct_STRIP"; then
4947 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4948 else
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4952 IFS=$as_save_IFS
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4956 ac_cv_prog_ac_ct_STRIP="strip"
4957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 break 2
4960 done
4961 done
4962 IFS=$as_save_IFS
4966 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4967 if test -n "$ac_ct_STRIP"; then
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4969 $as_echo "$ac_ct_STRIP" >&6; }
4970 else
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4972 $as_echo "no" >&6; }
4975 if test "x$ac_ct_STRIP" = x; then
4976 STRIP=":"
4977 else
4978 case $cross_compiling:$ac_tool_warned in
4979 yes:)
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4982 ac_tool_warned=yes ;;
4983 esac
4984 STRIP=$ac_ct_STRIP
4986 else
4987 STRIP="$ac_cv_prog_STRIP"
4990 test -z "$STRIP" && STRIP=:
4997 if test -n "$ac_tool_prefix"; then
4998 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4999 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5001 $as_echo_n "checking for $ac_word... " >&6; }
5002 if ${ac_cv_prog_RANLIB+:} false; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5005 if test -n "$RANLIB"; then
5006 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5007 else
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5015 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 break 2
5019 done
5020 done
5021 IFS=$as_save_IFS
5025 RANLIB=$ac_cv_prog_RANLIB
5026 if test -n "$RANLIB"; then
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5028 $as_echo "$RANLIB" >&6; }
5029 else
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5036 if test -z "$ac_cv_prog_RANLIB"; then
5037 ac_ct_RANLIB=$RANLIB
5038 # Extract the first word of "ranlib", so it can be a program name with args.
5039 set dummy ranlib; ac_word=$2
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5041 $as_echo_n "checking for $ac_word... " >&6; }
5042 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5043 $as_echo_n "(cached) " >&6
5044 else
5045 if test -n "$ac_ct_RANLIB"; then
5046 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5047 else
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 for as_dir in $PATH
5051 IFS=$as_save_IFS
5052 test -z "$as_dir" && as_dir=.
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5055 ac_cv_prog_ac_ct_RANLIB="ranlib"
5056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 break 2
5059 done
5060 done
5061 IFS=$as_save_IFS
5065 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5066 if test -n "$ac_ct_RANLIB"; then
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5068 $as_echo "$ac_ct_RANLIB" >&6; }
5069 else
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071 $as_echo "no" >&6; }
5074 if test "x$ac_ct_RANLIB" = x; then
5075 RANLIB=":"
5076 else
5077 case $cross_compiling:$ac_tool_warned in
5078 yes:)
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5081 ac_tool_warned=yes ;;
5082 esac
5083 RANLIB=$ac_ct_RANLIB
5085 else
5086 RANLIB="$ac_cv_prog_RANLIB"
5089 test -z "$RANLIB" && RANLIB=:
5096 # Determine commands to create old-style static archives.
5097 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5098 old_postinstall_cmds='chmod 644 $oldlib'
5099 old_postuninstall_cmds=
5101 if test -n "$RANLIB"; then
5102 case $host_os in
5103 bitrig* | openbsd*)
5104 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5107 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5109 esac
5110 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5113 case $host_os in
5114 darwin*)
5115 lock_old_archive_extraction=yes ;;
5117 lock_old_archive_extraction=no ;;
5118 esac
5140 for ac_prog in gawk mawk nawk awk
5142 # Extract the first word of "$ac_prog", so it can be a program name with args.
5143 set dummy $ac_prog; ac_word=$2
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145 $as_echo_n "checking for $ac_word... " >&6; }
5146 if ${ac_cv_prog_AWK+:} false; then :
5147 $as_echo_n "(cached) " >&6
5148 else
5149 if test -n "$AWK"; then
5150 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5151 else
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in $PATH
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5159 ac_cv_prog_AWK="$ac_prog"
5160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 break 2
5163 done
5164 done
5165 IFS=$as_save_IFS
5169 AWK=$ac_cv_prog_AWK
5170 if test -n "$AWK"; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5172 $as_echo "$AWK" >&6; }
5173 else
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5179 test -n "$AWK" && break
5180 done
5200 # If no C compiler was specified, use CC.
5201 LTCC=${LTCC-"$CC"}
5203 # If no C compiler flags were specified, use CFLAGS.
5204 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5206 # Allow CC to be a program name with arguments.
5207 compiler=$CC
5210 # Check for command to grab the raw symbol name followed by C symbol from nm.
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5212 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5213 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5214 $as_echo_n "(cached) " >&6
5215 else
5217 # These are sane defaults that work on at least a few old systems.
5218 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5220 # Character class describing NM global symbol codes.
5221 symcode='[BCDEGRST]'
5223 # Regexp to match symbols that can be accessed directly from C.
5224 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5226 # Define system-specific variables.
5227 case $host_os in
5228 aix*)
5229 symcode='[BCDT]'
5231 cygwin* | mingw* | pw32* | cegcc*)
5232 symcode='[ABCDGISTW]'
5234 hpux*)
5235 if test ia64 = "$host_cpu"; then
5236 symcode='[ABCDEGRST]'
5239 irix* | nonstopux*)
5240 symcode='[BCDEGRST]'
5242 osf*)
5243 symcode='[BCDEGQRST]'
5245 solaris*)
5246 symcode='[BDRT]'
5248 sco3.2v5*)
5249 symcode='[DT]'
5251 sysv4.2uw2*)
5252 symcode='[DT]'
5254 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5255 symcode='[ABDT]'
5257 sysv4)
5258 symcode='[DFNSTU]'
5260 esac
5262 # If we're using GNU nm, then use its standard symbol codes.
5263 case `$NM -V 2>&1` in
5264 *GNU* | *'with BFD'*)
5265 symcode='[ABCDGIRSTW]' ;;
5266 esac
5268 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5269 # Gets list of data symbols to import.
5270 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5271 # Adjust the below global symbol transforms to fixup imported variables.
5272 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5273 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5274 lt_c_name_lib_hook="\
5275 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5276 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5277 else
5278 # Disable hooks by default.
5279 lt_cv_sys_global_symbol_to_import=
5280 lt_cdecl_hook=
5281 lt_c_name_hook=
5282 lt_c_name_lib_hook=
5285 # Transform an extracted symbol line into a proper C declaration.
5286 # Some systems (esp. on ia64) link data and code symbols differently,
5287 # so use this general approach.
5288 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5289 $lt_cdecl_hook\
5290 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5291 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5293 # Transform an extracted symbol line into symbol name and symbol address
5294 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5295 $lt_c_name_hook\
5296 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5297 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5299 # Transform an extracted symbol line into symbol name with lib prefix and
5300 # symbol address.
5301 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5302 $lt_c_name_lib_hook\
5303 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5304 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5305 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5307 # Handle CRLF in mingw tool chain
5308 opt_cr=
5309 case $build_os in
5310 mingw*)
5311 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5313 esac
5315 # Try without a prefix underscore, then with it.
5316 for ac_symprfx in "" "_"; do
5318 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5319 symxfrm="\\1 $ac_symprfx\\2 \\2"
5321 # Write the raw and C identifiers.
5322 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5323 # Fake it for dumpbin and say T for any non-static function,
5324 # D for any global variable and I for any imported variable.
5325 # Also find C++ and __fastcall symbols from MSVC++,
5326 # which start with @ or ?.
5327 lt_cv_sys_global_symbol_pipe="$AWK '"\
5328 " {last_section=section; section=\$ 3};"\
5329 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5330 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5331 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5332 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5333 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5334 " \$ 0!~/External *\|/{next};"\
5335 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5336 " {if(hide[section]) next};"\
5337 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5338 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5339 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5340 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5341 " ' prfx=^$ac_symprfx"
5342 else
5343 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5345 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5347 # Check to see that the pipe works correctly.
5348 pipe_works=no
5350 rm -f conftest*
5351 cat > conftest.$ac_ext <<_LT_EOF
5352 #ifdef __cplusplus
5353 extern "C" {
5354 #endif
5355 char nm_test_var;
5356 void nm_test_func(void);
5357 void nm_test_func(void){}
5358 #ifdef __cplusplus
5360 #endif
5361 int main(){nm_test_var='a';nm_test_func();return(0);}
5362 _LT_EOF
5364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5365 (eval $ac_compile) 2>&5
5366 ac_status=$?
5367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5368 test $ac_status = 0; }; then
5369 # Now try to grab the symbols.
5370 nlist=conftest.nm
5371 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
5372 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
5373 # Try sorting and uniquifying the output.
5374 if sort "$nlist" | uniq > "$nlist"T; then
5375 mv -f "$nlist"T "$nlist"
5376 else
5377 rm -f "$nlist"T
5380 # Make sure that we snagged all the symbols we need.
5381 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5382 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5383 cat <<_LT_EOF > conftest.$ac_ext
5384 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5385 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5386 /* DATA imports from DLLs on WIN32 can't be const, because runtime
5387 relocations are performed -- see ld's documentation on pseudo-relocs. */
5388 # define LT_DLSYM_CONST
5389 #elif defined __osf__
5390 /* This system does not cope well with relocations in const data. */
5391 # define LT_DLSYM_CONST
5392 #else
5393 # define LT_DLSYM_CONST const
5394 #endif
5396 #ifdef __cplusplus
5397 extern "C" {
5398 #endif
5400 _LT_EOF
5401 # Now generate the symbol file.
5402 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5404 cat <<_LT_EOF >> conftest.$ac_ext
5406 /* The mapping between symbol names and symbols. */
5407 LT_DLSYM_CONST struct {
5408 const char *name;
5409 void *address;
5411 lt__PROGRAM__LTX_preloaded_symbols[] =
5413 { "@PROGRAM@", (void *) 0 },
5414 _LT_EOF
5415 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5416 cat <<\_LT_EOF >> conftest.$ac_ext
5417 {0, (void *) 0}
5420 /* This works around a problem in FreeBSD linker */
5421 #ifdef FREEBSD_WORKAROUND
5422 static const void *lt_preloaded_setup() {
5423 return lt__PROGRAM__LTX_preloaded_symbols;
5425 #endif
5427 #ifdef __cplusplus
5429 #endif
5430 _LT_EOF
5431 # Now try linking the two files.
5432 mv conftest.$ac_objext conftstm.$ac_objext
5433 lt_globsym_save_LIBS=$LIBS
5434 lt_globsym_save_CFLAGS=$CFLAGS
5435 LIBS=conftstm.$ac_objext
5436 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5438 (eval $ac_link) 2>&5
5439 ac_status=$?
5440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5441 test $ac_status = 0; } && test -s conftest$ac_exeext; then
5442 pipe_works=yes
5444 LIBS=$lt_globsym_save_LIBS
5445 CFLAGS=$lt_globsym_save_CFLAGS
5446 else
5447 echo "cannot find nm_test_func in $nlist" >&5
5449 else
5450 echo "cannot find nm_test_var in $nlist" >&5
5452 else
5453 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5455 else
5456 echo "$progname: failed program was:" >&5
5457 cat conftest.$ac_ext >&5
5459 rm -rf conftest* conftst*
5461 # Do not use the global_symbol_pipe unless it works.
5462 if test yes = "$pipe_works"; then
5463 break
5464 else
5465 lt_cv_sys_global_symbol_pipe=
5467 done
5471 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5472 lt_cv_sys_global_symbol_to_cdecl=
5474 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5476 $as_echo "failed" >&6; }
5477 else
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5479 $as_echo "ok" >&6; }
5482 # Response file support.
5483 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5484 nm_file_list_spec='@'
5485 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5486 nm_file_list_spec='@'
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5526 $as_echo_n "checking for sysroot... " >&6; }
5528 # Check whether --with-sysroot was given.
5529 if test "${with_sysroot+set}" = set; then :
5530 withval=$with_sysroot;
5531 else
5532 with_sysroot=no
5536 lt_sysroot=
5537 case $with_sysroot in #(
5538 yes)
5539 if test yes = "$GCC"; then
5540 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5542 ;; #(
5544 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5545 ;; #(
5546 no|'')
5547 ;; #(
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
5550 $as_echo "$with_sysroot" >&6; }
5551 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5553 esac
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5556 $as_echo "${lt_sysroot:-no}" >&6; }
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
5563 $as_echo_n "checking for a working dd... " >&6; }
5564 if ${ac_cv_path_lt_DD+:} false; then :
5565 $as_echo_n "(cached) " >&6
5566 else
5567 printf 0123456789abcdef0123456789abcdef >conftest.i
5568 cat conftest.i conftest.i >conftest2.i
5569 : ${lt_DD:=$DD}
5570 if test -z "$lt_DD"; then
5571 ac_path_lt_DD_found=false
5572 # Loop through the user's path and test for each of PROGNAME-LIST
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 for as_dir in $PATH
5576 IFS=$as_save_IFS
5577 test -z "$as_dir" && as_dir=.
5578 for ac_prog in dd; do
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
5581 as_fn_executable_p "$ac_path_lt_DD" || continue
5582 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5583 cmp -s conftest.i conftest.out \
5584 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
5586 $ac_path_lt_DD_found && break 3
5587 done
5588 done
5589 done
5590 IFS=$as_save_IFS
5591 if test -z "$ac_cv_path_lt_DD"; then
5594 else
5595 ac_cv_path_lt_DD=$lt_DD
5598 rm -f conftest.i conftest2.i conftest.out
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
5601 $as_echo "$ac_cv_path_lt_DD" >&6; }
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
5605 $as_echo_n "checking how to truncate binary pipes... " >&6; }
5606 if ${lt_cv_truncate_bin+:} false; then :
5607 $as_echo_n "(cached) " >&6
5608 else
5609 printf 0123456789abcdef0123456789abcdef >conftest.i
5610 cat conftest.i conftest.i >conftest2.i
5611 lt_cv_truncate_bin=
5612 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5613 cmp -s conftest.i conftest.out \
5614 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
5616 rm -f conftest.i conftest2.i conftest.out
5617 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
5620 $as_echo "$lt_cv_truncate_bin" >&6; }
5628 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
5629 func_cc_basename ()
5631 for cc_temp in $*""; do
5632 case $cc_temp in
5633 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5634 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5635 \-*) ;;
5636 *) break;;
5637 esac
5638 done
5639 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
5642 # Check whether --enable-libtool-lock was given.
5643 if test "${enable_libtool_lock+set}" = set; then :
5644 enableval=$enable_libtool_lock;
5647 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
5649 # Some flags need to be propagated to the compiler or linker for good
5650 # libtool support.
5651 case $host in
5652 ia64-*-hpux*)
5653 # Find out what ABI is being produced by ac_compile, and set mode
5654 # options accordingly.
5655 echo 'int i;' > conftest.$ac_ext
5656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5657 (eval $ac_compile) 2>&5
5658 ac_status=$?
5659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5660 test $ac_status = 0; }; then
5661 case `/usr/bin/file conftest.$ac_objext` in
5662 *ELF-32*)
5663 HPUX_IA64_MODE=32
5665 *ELF-64*)
5666 HPUX_IA64_MODE=64
5668 esac
5670 rm -rf conftest*
5672 *-*-irix6*)
5673 # Find out what ABI is being produced by ac_compile, and set linker
5674 # options accordingly.
5675 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5677 (eval $ac_compile) 2>&5
5678 ac_status=$?
5679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5680 test $ac_status = 0; }; then
5681 if test yes = "$lt_cv_prog_gnu_ld"; then
5682 case `/usr/bin/file conftest.$ac_objext` in
5683 *32-bit*)
5684 LD="${LD-ld} -melf32bsmip"
5686 *N32*)
5687 LD="${LD-ld} -melf32bmipn32"
5689 *64-bit*)
5690 LD="${LD-ld} -melf64bmip"
5692 esac
5693 else
5694 case `/usr/bin/file conftest.$ac_objext` in
5695 *32-bit*)
5696 LD="${LD-ld} -32"
5698 *N32*)
5699 LD="${LD-ld} -n32"
5701 *64-bit*)
5702 LD="${LD-ld} -64"
5704 esac
5707 rm -rf conftest*
5710 mips64*-*linux*)
5711 # Find out what ABI is being produced by ac_compile, and set linker
5712 # options accordingly.
5713 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5715 (eval $ac_compile) 2>&5
5716 ac_status=$?
5717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5718 test $ac_status = 0; }; then
5719 emul=elf
5720 case `/usr/bin/file conftest.$ac_objext` in
5721 *32-bit*)
5722 emul="${emul}32"
5724 *64-bit*)
5725 emul="${emul}64"
5727 esac
5728 case `/usr/bin/file conftest.$ac_objext` in
5729 *MSB*)
5730 emul="${emul}btsmip"
5732 *LSB*)
5733 emul="${emul}ltsmip"
5735 esac
5736 case `/usr/bin/file conftest.$ac_objext` in
5737 *N32*)
5738 emul="${emul}n32"
5740 esac
5741 LD="${LD-ld} -m $emul"
5743 rm -rf conftest*
5746 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5747 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5748 # Find out what ABI is being produced by ac_compile, and set linker
5749 # options accordingly. Note that the listed cases only cover the
5750 # situations where additional linker options are needed (such as when
5751 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
5752 # vice versa); the common cases where no linker options are needed do
5753 # not appear in the list.
5754 echo 'int i;' > conftest.$ac_ext
5755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5756 (eval $ac_compile) 2>&5
5757 ac_status=$?
5758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5759 test $ac_status = 0; }; then
5760 case `/usr/bin/file conftest.o` in
5761 *32-bit*)
5762 case $host in
5763 x86_64-*kfreebsd*-gnu)
5764 LD="${LD-ld} -m elf_i386_fbsd"
5766 x86_64-*linux*)
5767 case `/usr/bin/file conftest.o` in
5768 *x86-64*)
5769 LD="${LD-ld} -m elf32_x86_64"
5772 LD="${LD-ld} -m elf_i386"
5774 esac
5776 powerpc64le-*linux*)
5777 LD="${LD-ld} -m elf32lppclinux"
5779 powerpc64-*linux*)
5780 LD="${LD-ld} -m elf32ppclinux"
5782 s390x-*linux*)
5783 LD="${LD-ld} -m elf_s390"
5785 sparc64-*linux*)
5786 LD="${LD-ld} -m elf32_sparc"
5788 esac
5790 *64-bit*)
5791 case $host in
5792 x86_64-*kfreebsd*-gnu)
5793 LD="${LD-ld} -m elf_x86_64_fbsd"
5795 x86_64-*linux*)
5796 LD="${LD-ld} -m elf_x86_64"
5798 powerpcle-*linux*)
5799 LD="${LD-ld} -m elf64lppc"
5801 powerpc-*linux*)
5802 LD="${LD-ld} -m elf64ppc"
5804 s390*-*linux*|s390*-*tpf*)
5805 LD="${LD-ld} -m elf64_s390"
5807 sparc*-*linux*)
5808 LD="${LD-ld} -m elf64_sparc"
5810 esac
5812 esac
5814 rm -rf conftest*
5817 *-*-sco3.2v5*)
5818 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5819 SAVE_CFLAGS=$CFLAGS
5820 CFLAGS="$CFLAGS -belf"
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5822 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5823 if ${lt_cv_cc_needs_belf+:} false; then :
5824 $as_echo_n "(cached) " >&6
5825 else
5826 ac_ext=c
5827 ac_cpp='$CPP $CPPFLAGS'
5828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5836 main ()
5840 return 0;
5842 _ACEOF
5843 if ac_fn_c_try_link "$LINENO"; then :
5844 lt_cv_cc_needs_belf=yes
5845 else
5846 lt_cv_cc_needs_belf=no
5848 rm -f core conftest.err conftest.$ac_objext \
5849 conftest$ac_exeext conftest.$ac_ext
5850 ac_ext=c
5851 ac_cpp='$CPP $CPPFLAGS'
5852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5858 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5859 if test yes != "$lt_cv_cc_needs_belf"; then
5860 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5861 CFLAGS=$SAVE_CFLAGS
5864 *-*solaris*)
5865 # Find out what ABI is being produced by ac_compile, and set linker
5866 # options accordingly.
5867 echo 'int i;' > conftest.$ac_ext
5868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5869 (eval $ac_compile) 2>&5
5870 ac_status=$?
5871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5872 test $ac_status = 0; }; then
5873 case `/usr/bin/file conftest.o` in
5874 *64-bit*)
5875 case $lt_cv_prog_gnu_ld in
5876 yes*)
5877 case $host in
5878 i?86-*-solaris*|x86_64-*-solaris*)
5879 LD="${LD-ld} -m elf_x86_64"
5881 sparc*-*-solaris*)
5882 LD="${LD-ld} -m elf64_sparc"
5884 esac
5885 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
5886 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5887 LD=${LD-ld}_sol2
5891 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5892 LD="${LD-ld} -64"
5895 esac
5897 esac
5899 rm -rf conftest*
5901 esac
5903 need_locks=$enable_libtool_lock
5905 if test -n "$ac_tool_prefix"; then
5906 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5907 set dummy ${ac_tool_prefix}mt; ac_word=$2
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909 $as_echo_n "checking for $ac_word... " >&6; }
5910 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
5911 $as_echo_n "(cached) " >&6
5912 else
5913 if test -n "$MANIFEST_TOOL"; then
5914 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5915 else
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5919 IFS=$as_save_IFS
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5923 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 break 2
5927 done
5928 done
5929 IFS=$as_save_IFS
5933 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5934 if test -n "$MANIFEST_TOOL"; then
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
5936 $as_echo "$MANIFEST_TOOL" >&6; }
5937 else
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939 $as_echo "no" >&6; }
5944 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5945 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5946 # Extract the first word of "mt", so it can be a program name with args.
5947 set dummy mt; ac_word=$2
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5949 $as_echo_n "checking for $ac_word... " >&6; }
5950 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
5951 $as_echo_n "(cached) " >&6
5952 else
5953 if test -n "$ac_ct_MANIFEST_TOOL"; then
5954 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5955 else
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 for as_dir in $PATH
5959 IFS=$as_save_IFS
5960 test -z "$as_dir" && as_dir=.
5961 for ac_exec_ext in '' $ac_executable_extensions; do
5962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5963 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5965 break 2
5967 done
5968 done
5969 IFS=$as_save_IFS
5973 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5974 if test -n "$ac_ct_MANIFEST_TOOL"; then
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
5976 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
5977 else
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5979 $as_echo "no" >&6; }
5982 if test "x$ac_ct_MANIFEST_TOOL" = x; then
5983 MANIFEST_TOOL=":"
5984 else
5985 case $cross_compiling:$ac_tool_warned in
5986 yes:)
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5989 ac_tool_warned=yes ;;
5990 esac
5991 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5993 else
5994 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5997 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
5999 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6000 if ${lt_cv_path_mainfest_tool+:} false; then :
6001 $as_echo_n "(cached) " >&6
6002 else
6003 lt_cv_path_mainfest_tool=no
6004 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6005 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6006 cat conftest.err >&5
6007 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6008 lt_cv_path_mainfest_tool=yes
6010 rm -f conftest*
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6013 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6014 if test yes != "$lt_cv_path_mainfest_tool"; then
6015 MANIFEST_TOOL=:
6023 case $host_os in
6024 rhapsody* | darwin*)
6025 if test -n "$ac_tool_prefix"; then
6026 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6027 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029 $as_echo_n "checking for $ac_word... " >&6; }
6030 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6031 $as_echo_n "(cached) " >&6
6032 else
6033 if test -n "$DSYMUTIL"; then
6034 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6035 else
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH
6039 IFS=$as_save_IFS
6040 test -z "$as_dir" && as_dir=.
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6043 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6045 break 2
6047 done
6048 done
6049 IFS=$as_save_IFS
6053 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6054 if test -n "$DSYMUTIL"; then
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6056 $as_echo "$DSYMUTIL" >&6; }
6057 else
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6059 $as_echo "no" >&6; }
6064 if test -z "$ac_cv_prog_DSYMUTIL"; then
6065 ac_ct_DSYMUTIL=$DSYMUTIL
6066 # Extract the first word of "dsymutil", so it can be a program name with args.
6067 set dummy dsymutil; ac_word=$2
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6069 $as_echo_n "checking for $ac_word... " >&6; }
6070 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 if test -n "$ac_ct_DSYMUTIL"; then
6074 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6075 else
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 for as_dir in $PATH
6079 IFS=$as_save_IFS
6080 test -z "$as_dir" && as_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6083 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6085 break 2
6087 done
6088 done
6089 IFS=$as_save_IFS
6093 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6094 if test -n "$ac_ct_DSYMUTIL"; then
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6096 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6097 else
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099 $as_echo "no" >&6; }
6102 if test "x$ac_ct_DSYMUTIL" = x; then
6103 DSYMUTIL=":"
6104 else
6105 case $cross_compiling:$ac_tool_warned in
6106 yes:)
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6109 ac_tool_warned=yes ;;
6110 esac
6111 DSYMUTIL=$ac_ct_DSYMUTIL
6113 else
6114 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6117 if test -n "$ac_tool_prefix"; then
6118 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6119 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6122 if ${ac_cv_prog_NMEDIT+:} false; then :
6123 $as_echo_n "(cached) " >&6
6124 else
6125 if test -n "$NMEDIT"; then
6126 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6127 else
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 for as_dir in $PATH
6131 IFS=$as_save_IFS
6132 test -z "$as_dir" && as_dir=.
6133 for ac_exec_ext in '' $ac_executable_extensions; do
6134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6135 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6137 break 2
6139 done
6140 done
6141 IFS=$as_save_IFS
6145 NMEDIT=$ac_cv_prog_NMEDIT
6146 if test -n "$NMEDIT"; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6148 $as_echo "$NMEDIT" >&6; }
6149 else
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151 $as_echo "no" >&6; }
6156 if test -z "$ac_cv_prog_NMEDIT"; then
6157 ac_ct_NMEDIT=$NMEDIT
6158 # Extract the first word of "nmedit", so it can be a program name with args.
6159 set dummy nmedit; ac_word=$2
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6163 $as_echo_n "(cached) " >&6
6164 else
6165 if test -n "$ac_ct_NMEDIT"; then
6166 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6167 else
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 for as_dir in $PATH
6171 IFS=$as_save_IFS
6172 test -z "$as_dir" && as_dir=.
6173 for ac_exec_ext in '' $ac_executable_extensions; do
6174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6175 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6177 break 2
6179 done
6180 done
6181 IFS=$as_save_IFS
6185 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6186 if test -n "$ac_ct_NMEDIT"; then
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6188 $as_echo "$ac_ct_NMEDIT" >&6; }
6189 else
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6191 $as_echo "no" >&6; }
6194 if test "x$ac_ct_NMEDIT" = x; then
6195 NMEDIT=":"
6196 else
6197 case $cross_compiling:$ac_tool_warned in
6198 yes:)
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6201 ac_tool_warned=yes ;;
6202 esac
6203 NMEDIT=$ac_ct_NMEDIT
6205 else
6206 NMEDIT="$ac_cv_prog_NMEDIT"
6209 if test -n "$ac_tool_prefix"; then
6210 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6211 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213 $as_echo_n "checking for $ac_word... " >&6; }
6214 if ${ac_cv_prog_LIPO+:} false; then :
6215 $as_echo_n "(cached) " >&6
6216 else
6217 if test -n "$LIPO"; then
6218 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6219 else
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6223 IFS=$as_save_IFS
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6227 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 break 2
6231 done
6232 done
6233 IFS=$as_save_IFS
6237 LIPO=$ac_cv_prog_LIPO
6238 if test -n "$LIPO"; then
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6240 $as_echo "$LIPO" >&6; }
6241 else
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 $as_echo "no" >&6; }
6248 if test -z "$ac_cv_prog_LIPO"; then
6249 ac_ct_LIPO=$LIPO
6250 # Extract the first word of "lipo", so it can be a program name with args.
6251 set dummy lipo; ac_word=$2
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6255 $as_echo_n "(cached) " >&6
6256 else
6257 if test -n "$ac_ct_LIPO"; then
6258 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6259 else
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6263 IFS=$as_save_IFS
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6267 ac_cv_prog_ac_ct_LIPO="lipo"
6268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6269 break 2
6271 done
6272 done
6273 IFS=$as_save_IFS
6277 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6278 if test -n "$ac_ct_LIPO"; then
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6280 $as_echo "$ac_ct_LIPO" >&6; }
6281 else
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283 $as_echo "no" >&6; }
6286 if test "x$ac_ct_LIPO" = x; then
6287 LIPO=":"
6288 else
6289 case $cross_compiling:$ac_tool_warned in
6290 yes:)
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6293 ac_tool_warned=yes ;;
6294 esac
6295 LIPO=$ac_ct_LIPO
6297 else
6298 LIPO="$ac_cv_prog_LIPO"
6301 if test -n "$ac_tool_prefix"; then
6302 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6303 set dummy ${ac_tool_prefix}otool; ac_word=$2
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6305 $as_echo_n "checking for $ac_word... " >&6; }
6306 if ${ac_cv_prog_OTOOL+:} false; then :
6307 $as_echo_n "(cached) " >&6
6308 else
6309 if test -n "$OTOOL"; then
6310 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6311 else
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH
6315 IFS=$as_save_IFS
6316 test -z "$as_dir" && as_dir=.
6317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6319 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6321 break 2
6323 done
6324 done
6325 IFS=$as_save_IFS
6329 OTOOL=$ac_cv_prog_OTOOL
6330 if test -n "$OTOOL"; then
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6332 $as_echo "$OTOOL" >&6; }
6333 else
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6335 $as_echo "no" >&6; }
6340 if test -z "$ac_cv_prog_OTOOL"; then
6341 ac_ct_OTOOL=$OTOOL
6342 # Extract the first word of "otool", so it can be a program name with args.
6343 set dummy otool; ac_word=$2
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6345 $as_echo_n "checking for $ac_word... " >&6; }
6346 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6347 $as_echo_n "(cached) " >&6
6348 else
6349 if test -n "$ac_ct_OTOOL"; then
6350 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6351 else
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 for as_dir in $PATH
6355 IFS=$as_save_IFS
6356 test -z "$as_dir" && as_dir=.
6357 for ac_exec_ext in '' $ac_executable_extensions; do
6358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6359 ac_cv_prog_ac_ct_OTOOL="otool"
6360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6361 break 2
6363 done
6364 done
6365 IFS=$as_save_IFS
6369 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6370 if test -n "$ac_ct_OTOOL"; then
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6372 $as_echo "$ac_ct_OTOOL" >&6; }
6373 else
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6375 $as_echo "no" >&6; }
6378 if test "x$ac_ct_OTOOL" = x; then
6379 OTOOL=":"
6380 else
6381 case $cross_compiling:$ac_tool_warned in
6382 yes:)
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6385 ac_tool_warned=yes ;;
6386 esac
6387 OTOOL=$ac_ct_OTOOL
6389 else
6390 OTOOL="$ac_cv_prog_OTOOL"
6393 if test -n "$ac_tool_prefix"; then
6394 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6395 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6397 $as_echo_n "checking for $ac_word... " >&6; }
6398 if ${ac_cv_prog_OTOOL64+:} false; then :
6399 $as_echo_n "(cached) " >&6
6400 else
6401 if test -n "$OTOOL64"; then
6402 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6403 else
6404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 for as_dir in $PATH
6407 IFS=$as_save_IFS
6408 test -z "$as_dir" && as_dir=.
6409 for ac_exec_ext in '' $ac_executable_extensions; do
6410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6411 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6413 break 2
6415 done
6416 done
6417 IFS=$as_save_IFS
6421 OTOOL64=$ac_cv_prog_OTOOL64
6422 if test -n "$OTOOL64"; then
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6424 $as_echo "$OTOOL64" >&6; }
6425 else
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6427 $as_echo "no" >&6; }
6432 if test -z "$ac_cv_prog_OTOOL64"; then
6433 ac_ct_OTOOL64=$OTOOL64
6434 # Extract the first word of "otool64", so it can be a program name with args.
6435 set dummy otool64; ac_word=$2
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6437 $as_echo_n "checking for $ac_word... " >&6; }
6438 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6439 $as_echo_n "(cached) " >&6
6440 else
6441 if test -n "$ac_ct_OTOOL64"; then
6442 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6443 else
6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 for as_dir in $PATH
6447 IFS=$as_save_IFS
6448 test -z "$as_dir" && as_dir=.
6449 for ac_exec_ext in '' $ac_executable_extensions; do
6450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6451 ac_cv_prog_ac_ct_OTOOL64="otool64"
6452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6453 break 2
6455 done
6456 done
6457 IFS=$as_save_IFS
6461 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6462 if test -n "$ac_ct_OTOOL64"; then
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6464 $as_echo "$ac_ct_OTOOL64" >&6; }
6465 else
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467 $as_echo "no" >&6; }
6470 if test "x$ac_ct_OTOOL64" = x; then
6471 OTOOL64=":"
6472 else
6473 case $cross_compiling:$ac_tool_warned in
6474 yes:)
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6477 ac_tool_warned=yes ;;
6478 esac
6479 OTOOL64=$ac_ct_OTOOL64
6481 else
6482 OTOOL64="$ac_cv_prog_OTOOL64"
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6512 $as_echo_n "checking for -single_module linker flag... " >&6; }
6513 if ${lt_cv_apple_cc_single_mod+:} false; then :
6514 $as_echo_n "(cached) " >&6
6515 else
6516 lt_cv_apple_cc_single_mod=no
6517 if test -z "$LT_MULTI_MODULE"; then
6518 # By default we will add the -single_module flag. You can override
6519 # by either setting the environment variable LT_MULTI_MODULE
6520 # non-empty at configure time, or by adding -multi_module to the
6521 # link flags.
6522 rm -rf libconftest.dylib*
6523 echo "int foo(void){return 1;}" > conftest.c
6524 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6525 -dynamiclib -Wl,-single_module conftest.c" >&5
6526 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6527 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6528 _lt_result=$?
6529 # If there is a non-empty error log, and "single_module"
6530 # appears in it, assume the flag caused a linker warning
6531 if test -s conftest.err && $GREP single_module conftest.err; then
6532 cat conftest.err >&5
6533 # Otherwise, if the output was created with a 0 exit code from
6534 # the compiler, it worked.
6535 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
6536 lt_cv_apple_cc_single_mod=yes
6537 else
6538 cat conftest.err >&5
6540 rm -rf libconftest.dylib*
6541 rm -f conftest.*
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6545 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6548 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6549 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6550 $as_echo_n "(cached) " >&6
6551 else
6552 lt_cv_ld_exported_symbols_list=no
6553 save_LDFLAGS=$LDFLAGS
6554 echo "_main" > conftest.sym
6555 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557 /* end confdefs.h. */
6560 main ()
6564 return 0;
6566 _ACEOF
6567 if ac_fn_c_try_link "$LINENO"; then :
6568 lt_cv_ld_exported_symbols_list=yes
6569 else
6570 lt_cv_ld_exported_symbols_list=no
6572 rm -f core conftest.err conftest.$ac_objext \
6573 conftest$ac_exeext conftest.$ac_ext
6574 LDFLAGS=$save_LDFLAGS
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6578 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6581 $as_echo_n "checking for -force_load linker flag... " >&6; }
6582 if ${lt_cv_ld_force_load+:} false; then :
6583 $as_echo_n "(cached) " >&6
6584 else
6585 lt_cv_ld_force_load=no
6586 cat > conftest.c << _LT_EOF
6587 int forced_loaded() { return 2;}
6588 _LT_EOF
6589 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6590 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6591 echo "$AR cr libconftest.a conftest.o" >&5
6592 $AR cr libconftest.a conftest.o 2>&5
6593 echo "$RANLIB libconftest.a" >&5
6594 $RANLIB libconftest.a 2>&5
6595 cat > conftest.c << _LT_EOF
6596 int main() { return 0;}
6597 _LT_EOF
6598 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6599 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6600 _lt_result=$?
6601 if test -s conftest.err && $GREP force_load conftest.err; then
6602 cat conftest.err >&5
6603 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
6604 lt_cv_ld_force_load=yes
6605 else
6606 cat conftest.err >&5
6608 rm -f conftest.err libconftest.a conftest conftest.c
6609 rm -rf conftest.dSYM
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6613 $as_echo "$lt_cv_ld_force_load" >&6; }
6614 case $host_os in
6615 rhapsody* | darwin1.[012])
6616 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
6617 darwin1.*)
6618 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6619 darwin*) # darwin 5.x on
6620 # if running on 10.5 or later, the deployment target defaults
6621 # to the OS version, if on x86, and 10.4, the deployment
6622 # target defaults to 10.4. Don't you love it?
6623 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6624 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6625 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6626 10.[012][,.]*)
6627 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6628 10.*)
6629 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6630 esac
6632 esac
6633 if test yes = "$lt_cv_apple_cc_single_mod"; then
6634 _lt_dar_single_mod='$single_module'
6636 if test yes = "$lt_cv_ld_exported_symbols_list"; then
6637 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
6638 else
6639 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
6641 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
6642 _lt_dsymutil='~$DSYMUTIL $lib || :'
6643 else
6644 _lt_dsymutil=
6647 esac
6649 # func_munge_path_list VARIABLE PATH
6650 # -----------------------------------
6651 # VARIABLE is name of variable containing _space_ separated list of
6652 # directories to be munged by the contents of PATH, which is string
6653 # having a format:
6654 # "DIR[:DIR]:"
6655 # string "DIR[ DIR]" will be prepended to VARIABLE
6656 # ":DIR[:DIR]"
6657 # string "DIR[ DIR]" will be appended to VARIABLE
6658 # "DIRP[:DIRP]::[DIRA:]DIRA"
6659 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
6660 # "DIRA[ DIRA]" will be appended to VARIABLE
6661 # "DIR[:DIR]"
6662 # VARIABLE will be replaced by "DIR[ DIR]"
6663 func_munge_path_list ()
6665 case x$2 in
6669 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
6671 x:*)
6672 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
6674 *::*)
6675 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
6676 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
6679 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
6681 esac
6684 ac_ext=c
6685 ac_cpp='$CPP $CPPFLAGS'
6686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6690 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6691 # On Suns, sometimes $CPP names a directory.
6692 if test -n "$CPP" && test -d "$CPP"; then
6693 CPP=
6695 if test -z "$CPP"; then
6696 if ${ac_cv_prog_CPP+:} false; then :
6697 $as_echo_n "(cached) " >&6
6698 else
6699 # Double quotes because CPP needs to be expanded
6700 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6702 ac_preproc_ok=false
6703 for ac_c_preproc_warn_flag in '' yes
6705 # Use a header file that comes with gcc, so configuring glibc
6706 # with a fresh cross-compiler works.
6707 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6708 # <limits.h> exists even on freestanding compilers.
6709 # On the NeXT, cc -E runs the code through the compiler's parser,
6710 # not just through cpp. "Syntax error" is here to catch this case.
6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712 /* end confdefs.h. */
6713 #ifdef __STDC__
6714 # include <limits.h>
6715 #else
6716 # include <assert.h>
6717 #endif
6718 Syntax error
6719 _ACEOF
6720 if ac_fn_c_try_cpp "$LINENO"; then :
6722 else
6723 # Broken: fails on valid input.
6724 continue
6726 rm -f conftest.err conftest.i conftest.$ac_ext
6728 # OK, works on sane cases. Now check whether nonexistent headers
6729 # can be detected and how.
6730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6731 /* end confdefs.h. */
6732 #include <ac_nonexistent.h>
6733 _ACEOF
6734 if ac_fn_c_try_cpp "$LINENO"; then :
6735 # Broken: success on invalid input.
6736 continue
6737 else
6738 # Passes both tests.
6739 ac_preproc_ok=:
6740 break
6742 rm -f conftest.err conftest.i conftest.$ac_ext
6744 done
6745 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6746 rm -f conftest.i conftest.err conftest.$ac_ext
6747 if $ac_preproc_ok; then :
6748 break
6751 done
6752 ac_cv_prog_CPP=$CPP
6755 CPP=$ac_cv_prog_CPP
6756 else
6757 ac_cv_prog_CPP=$CPP
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6760 $as_echo "$CPP" >&6; }
6761 ac_preproc_ok=false
6762 for ac_c_preproc_warn_flag in '' yes
6764 # Use a header file that comes with gcc, so configuring glibc
6765 # with a fresh cross-compiler works.
6766 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6767 # <limits.h> exists even on freestanding compilers.
6768 # On the NeXT, cc -E runs the code through the compiler's parser,
6769 # not just through cpp. "Syntax error" is here to catch this case.
6770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6771 /* end confdefs.h. */
6772 #ifdef __STDC__
6773 # include <limits.h>
6774 #else
6775 # include <assert.h>
6776 #endif
6777 Syntax error
6778 _ACEOF
6779 if ac_fn_c_try_cpp "$LINENO"; then :
6781 else
6782 # Broken: fails on valid input.
6783 continue
6785 rm -f conftest.err conftest.i conftest.$ac_ext
6787 # OK, works on sane cases. Now check whether nonexistent headers
6788 # can be detected and how.
6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h. */
6791 #include <ac_nonexistent.h>
6792 _ACEOF
6793 if ac_fn_c_try_cpp "$LINENO"; then :
6794 # Broken: success on invalid input.
6795 continue
6796 else
6797 # Passes both tests.
6798 ac_preproc_ok=:
6799 break
6801 rm -f conftest.err conftest.i conftest.$ac_ext
6803 done
6804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6805 rm -f conftest.i conftest.err conftest.$ac_ext
6806 if $ac_preproc_ok; then :
6808 else
6809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6811 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6812 See \`config.log' for more details" "$LINENO" 5; }
6815 ac_ext=c
6816 ac_cpp='$CPP $CPPFLAGS'
6817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6823 $as_echo_n "checking for ANSI C header files... " >&6; }
6824 if ${ac_cv_header_stdc+:} false; then :
6825 $as_echo_n "(cached) " >&6
6826 else
6827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6828 /* end confdefs.h. */
6829 #include <stdlib.h>
6830 #include <stdarg.h>
6831 #include <string.h>
6832 #include <float.h>
6835 main ()
6839 return 0;
6841 _ACEOF
6842 if ac_fn_c_try_compile "$LINENO"; then :
6843 ac_cv_header_stdc=yes
6844 else
6845 ac_cv_header_stdc=no
6847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6849 if test $ac_cv_header_stdc = yes; then
6850 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6853 #include <string.h>
6855 _ACEOF
6856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6857 $EGREP "memchr" >/dev/null 2>&1; then :
6859 else
6860 ac_cv_header_stdc=no
6862 rm -f conftest*
6866 if test $ac_cv_header_stdc = yes; then
6867 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869 /* end confdefs.h. */
6870 #include <stdlib.h>
6872 _ACEOF
6873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6874 $EGREP "free" >/dev/null 2>&1; then :
6876 else
6877 ac_cv_header_stdc=no
6879 rm -f conftest*
6883 if test $ac_cv_header_stdc = yes; then
6884 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6885 if test "$cross_compiling" = yes; then :
6887 else
6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6890 #include <ctype.h>
6891 #include <stdlib.h>
6892 #if ((' ' & 0x0FF) == 0x020)
6893 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6894 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6895 #else
6896 # define ISLOWER(c) \
6897 (('a' <= (c) && (c) <= 'i') \
6898 || ('j' <= (c) && (c) <= 'r') \
6899 || ('s' <= (c) && (c) <= 'z'))
6900 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6901 #endif
6903 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6905 main ()
6907 int i;
6908 for (i = 0; i < 256; i++)
6909 if (XOR (islower (i), ISLOWER (i))
6910 || toupper (i) != TOUPPER (i))
6911 return 2;
6912 return 0;
6914 _ACEOF
6915 if ac_fn_c_try_run "$LINENO"; then :
6917 else
6918 ac_cv_header_stdc=no
6920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6921 conftest.$ac_objext conftest.beam conftest.$ac_ext
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6927 $as_echo "$ac_cv_header_stdc" >&6; }
6928 if test $ac_cv_header_stdc = yes; then
6930 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6934 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6935 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6936 inttypes.h stdint.h unistd.h
6937 do :
6938 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6939 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6941 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6942 cat >>confdefs.h <<_ACEOF
6943 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6944 _ACEOF
6948 done
6951 for ac_header in dlfcn.h
6952 do :
6953 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6955 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6956 cat >>confdefs.h <<_ACEOF
6957 #define HAVE_DLFCN_H 1
6958 _ACEOF
6962 done
6968 # Set options
6972 enable_dlopen=no
6975 enable_win32_dll=no
6978 # Check whether --enable-shared was given.
6979 if test "${enable_shared+set}" = set; then :
6980 enableval=$enable_shared; p=${PACKAGE-default}
6981 case $enableval in
6982 yes) enable_shared=yes ;;
6983 no) enable_shared=no ;;
6985 enable_shared=no
6986 # Look at the argument we got. We use all the common list separators.
6987 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
6988 for pkg in $enableval; do
6989 IFS=$lt_save_ifs
6990 if test "X$pkg" = "X$p"; then
6991 enable_shared=yes
6993 done
6994 IFS=$lt_save_ifs
6996 esac
6997 else
6998 enable_shared=yes
7009 # Check whether --enable-static was given.
7010 if test "${enable_static+set}" = set; then :
7011 enableval=$enable_static; p=${PACKAGE-default}
7012 case $enableval in
7013 yes) enable_static=yes ;;
7014 no) enable_static=no ;;
7016 enable_static=no
7017 # Look at the argument we got. We use all the common list separators.
7018 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7019 for pkg in $enableval; do
7020 IFS=$lt_save_ifs
7021 if test "X$pkg" = "X$p"; then
7022 enable_static=yes
7024 done
7025 IFS=$lt_save_ifs
7027 esac
7028 else
7029 enable_static=yes
7041 # Check whether --with-pic was given.
7042 if test "${with_pic+set}" = set; then :
7043 withval=$with_pic; lt_p=${PACKAGE-default}
7044 case $withval in
7045 yes|no) pic_mode=$withval ;;
7047 pic_mode=default
7048 # Look at the argument we got. We use all the common list separators.
7049 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7050 for lt_pkg in $withval; do
7051 IFS=$lt_save_ifs
7052 if test "X$lt_pkg" = "X$lt_p"; then
7053 pic_mode=yes
7055 done
7056 IFS=$lt_save_ifs
7058 esac
7059 else
7060 pic_mode=default
7070 # Check whether --enable-fast-install was given.
7071 if test "${enable_fast_install+set}" = set; then :
7072 enableval=$enable_fast_install; p=${PACKAGE-default}
7073 case $enableval in
7074 yes) enable_fast_install=yes ;;
7075 no) enable_fast_install=no ;;
7077 enable_fast_install=no
7078 # Look at the argument we got. We use all the common list separators.
7079 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7080 for pkg in $enableval; do
7081 IFS=$lt_save_ifs
7082 if test "X$pkg" = "X$p"; then
7083 enable_fast_install=yes
7085 done
7086 IFS=$lt_save_ifs
7088 esac
7089 else
7090 enable_fast_install=yes
7100 shared_archive_member_spec=
7101 case $host,$enable_shared in
7102 power*-*-aix[5-9]*,yes)
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7104 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7106 # Check whether --with-aix-soname was given.
7107 if test "${with_aix_soname+set}" = set; then :
7108 withval=$with_aix_soname; case $withval in
7109 aix|svr4|both)
7112 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7114 esac
7115 lt_cv_with_aix_soname=$with_aix_soname
7116 else
7117 if ${lt_cv_with_aix_soname+:} false; then :
7118 $as_echo_n "(cached) " >&6
7119 else
7120 lt_cv_with_aix_soname=aix
7123 with_aix_soname=$lt_cv_with_aix_soname
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7127 $as_echo "$with_aix_soname" >&6; }
7128 if test aix != "$with_aix_soname"; then
7129 # For the AIX way of multilib, we name the shared archive member
7130 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7131 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7132 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7133 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7134 if test 64 = "${OBJECT_MODE-32}"; then
7135 shared_archive_member_spec=shr_64
7136 else
7137 shared_archive_member_spec=shr
7142 with_aix_soname=aix
7144 esac
7155 # This can be used to rebuild libtool when needed
7156 LIBTOOL_DEPS=$ltmain
7158 # Always use our own libtool.
7159 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7190 test -z "$LN_S" && LN_S="ln -s"
7205 if test -n "${ZSH_VERSION+set}"; then
7206 setopt NO_GLOB_SUBST
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7210 $as_echo_n "checking for objdir... " >&6; }
7211 if ${lt_cv_objdir+:} false; then :
7212 $as_echo_n "(cached) " >&6
7213 else
7214 rm -f .libs 2>/dev/null
7215 mkdir .libs 2>/dev/null
7216 if test -d .libs; then
7217 lt_cv_objdir=.libs
7218 else
7219 # MS-DOS does not allow filenames that begin with a dot.
7220 lt_cv_objdir=_libs
7222 rmdir .libs 2>/dev/null
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7225 $as_echo "$lt_cv_objdir" >&6; }
7226 objdir=$lt_cv_objdir
7232 cat >>confdefs.h <<_ACEOF
7233 #define LT_OBJDIR "$lt_cv_objdir/"
7234 _ACEOF
7239 case $host_os in
7240 aix3*)
7241 # AIX sometimes has problems with the GCC collect2 program. For some
7242 # reason, if we set the COLLECT_NAMES environment variable, the problems
7243 # vanish in a puff of smoke.
7244 if test set != "${COLLECT_NAMES+set}"; then
7245 COLLECT_NAMES=
7246 export COLLECT_NAMES
7249 esac
7251 # Global variables:
7252 ofile=libtool
7253 can_build_shared=yes
7255 # All known linkers require a '.a' archive for static linking (except MSVC,
7256 # which needs '.lib').
7257 libext=a
7259 with_gnu_ld=$lt_cv_prog_gnu_ld
7261 old_CC=$CC
7262 old_CFLAGS=$CFLAGS
7264 # Set sane defaults for various variables
7265 test -z "$CC" && CC=cc
7266 test -z "$LTCC" && LTCC=$CC
7267 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7268 test -z "$LD" && LD=ld
7269 test -z "$ac_objext" && ac_objext=o
7271 func_cc_basename $compiler
7272 cc_basename=$func_cc_basename_result
7275 # Only perform the check for file, if the check method requires it
7276 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7277 case $deplibs_check_method in
7278 file_magic*)
7279 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7281 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7282 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7283 $as_echo_n "(cached) " >&6
7284 else
7285 case $MAGIC_CMD in
7286 [\\/*] | ?:[\\/]*)
7287 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7290 lt_save_MAGIC_CMD=$MAGIC_CMD
7291 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7292 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7293 for ac_dir in $ac_dummy; do
7294 IFS=$lt_save_ifs
7295 test -z "$ac_dir" && ac_dir=.
7296 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7297 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7298 if test -n "$file_magic_test_file"; then
7299 case $deplibs_check_method in
7300 "file_magic "*)
7301 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7302 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7303 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7304 $EGREP "$file_magic_regex" > /dev/null; then
7306 else
7307 cat <<_LT_EOF 1>&2
7309 *** Warning: the command libtool uses to detect shared libraries,
7310 *** $file_magic_cmd, produces output that libtool cannot recognize.
7311 *** The result is that libtool may fail to recognize shared libraries
7312 *** as such. This will affect the creation of libtool libraries that
7313 *** depend on shared libraries, but programs linked with such libtool
7314 *** libraries will work regardless of this problem. Nevertheless, you
7315 *** may want to report the problem to your system manager and/or to
7316 *** bug-libtool@gnu.org
7318 _LT_EOF
7319 fi ;;
7320 esac
7322 break
7324 done
7325 IFS=$lt_save_ifs
7326 MAGIC_CMD=$lt_save_MAGIC_CMD
7328 esac
7331 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7332 if test -n "$MAGIC_CMD"; then
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7334 $as_echo "$MAGIC_CMD" >&6; }
7335 else
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7337 $as_echo "no" >&6; }
7344 if test -z "$lt_cv_path_MAGIC_CMD"; then
7345 if test -n "$ac_tool_prefix"; then
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7347 $as_echo_n "checking for file... " >&6; }
7348 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7349 $as_echo_n "(cached) " >&6
7350 else
7351 case $MAGIC_CMD in
7352 [\\/*] | ?:[\\/]*)
7353 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7356 lt_save_MAGIC_CMD=$MAGIC_CMD
7357 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7358 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7359 for ac_dir in $ac_dummy; do
7360 IFS=$lt_save_ifs
7361 test -z "$ac_dir" && ac_dir=.
7362 if test -f "$ac_dir/file"; then
7363 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7364 if test -n "$file_magic_test_file"; then
7365 case $deplibs_check_method in
7366 "file_magic "*)
7367 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7368 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7369 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7370 $EGREP "$file_magic_regex" > /dev/null; then
7372 else
7373 cat <<_LT_EOF 1>&2
7375 *** Warning: the command libtool uses to detect shared libraries,
7376 *** $file_magic_cmd, produces output that libtool cannot recognize.
7377 *** The result is that libtool may fail to recognize shared libraries
7378 *** as such. This will affect the creation of libtool libraries that
7379 *** depend on shared libraries, but programs linked with such libtool
7380 *** libraries will work regardless of this problem. Nevertheless, you
7381 *** may want to report the problem to your system manager and/or to
7382 *** bug-libtool@gnu.org
7384 _LT_EOF
7385 fi ;;
7386 esac
7388 break
7390 done
7391 IFS=$lt_save_ifs
7392 MAGIC_CMD=$lt_save_MAGIC_CMD
7394 esac
7397 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7398 if test -n "$MAGIC_CMD"; then
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7400 $as_echo "$MAGIC_CMD" >&6; }
7401 else
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403 $as_echo "no" >&6; }
7407 else
7408 MAGIC_CMD=:
7414 esac
7416 # Use C for the default configuration in the libtool script
7418 lt_save_CC=$CC
7419 ac_ext=c
7420 ac_cpp='$CPP $CPPFLAGS'
7421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7426 # Source file extension for C test sources.
7427 ac_ext=c
7429 # Object file extension for compiled C test sources.
7430 objext=o
7431 objext=$objext
7433 # Code to be used in simple compile tests
7434 lt_simple_compile_test_code="int some_variable = 0;"
7436 # Code to be used in simple link tests
7437 lt_simple_link_test_code='int main(){return(0);}'
7445 # If no C compiler was specified, use CC.
7446 LTCC=${LTCC-"$CC"}
7448 # If no C compiler flags were specified, use CFLAGS.
7449 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7451 # Allow CC to be a program name with arguments.
7452 compiler=$CC
7454 # Save the default compiler, since it gets overwritten when the other
7455 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7456 compiler_DEFAULT=$CC
7458 # save warnings/boilerplate of simple test code
7459 ac_outfile=conftest.$ac_objext
7460 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7461 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7462 _lt_compiler_boilerplate=`cat conftest.err`
7463 $RM conftest*
7465 ac_outfile=conftest.$ac_objext
7466 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7467 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7468 _lt_linker_boilerplate=`cat conftest.err`
7469 $RM -r conftest*
7472 if test -n "$compiler"; then
7474 lt_prog_compiler_no_builtin_flag=
7476 if test yes = "$GCC"; then
7477 case $cc_basename in
7478 nvcc*)
7479 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7481 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7482 esac
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7485 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7486 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7487 $as_echo_n "(cached) " >&6
7488 else
7489 lt_cv_prog_compiler_rtti_exceptions=no
7490 ac_outfile=conftest.$ac_objext
7491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7492 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
7493 # Insert the option either (1) after the last *FLAGS variable, or
7494 # (2) before a word containing "conftest.", or (3) at the end.
7495 # Note that $ac_compile itself does not contain backslashes and begins
7496 # with a dollar sign (not a hyphen), so the echo should work correctly.
7497 # The option is referenced via a variable to avoid confusing sed.
7498 lt_compile=`echo "$ac_compile" | $SED \
7499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7501 -e 's:$: $lt_compiler_flag:'`
7502 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7503 (eval "$lt_compile" 2>conftest.err)
7504 ac_status=$?
7505 cat conftest.err >&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 if (exit $ac_status) && test -s "$ac_outfile"; then
7508 # The compiler can only warn and ignore the option if not recognized
7509 # So say no if there are warnings other than the usual output.
7510 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7512 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7513 lt_cv_prog_compiler_rtti_exceptions=yes
7516 $RM conftest*
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7520 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7522 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7523 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7524 else
7535 lt_prog_compiler_wl=
7536 lt_prog_compiler_pic=
7537 lt_prog_compiler_static=
7540 if test yes = "$GCC"; then
7541 lt_prog_compiler_wl='-Wl,'
7542 lt_prog_compiler_static='-static'
7544 case $host_os in
7545 aix*)
7546 # All AIX code is PIC.
7547 if test ia64 = "$host_cpu"; then
7548 # AIX 5 now supports IA64 processor
7549 lt_prog_compiler_static='-Bstatic'
7551 lt_prog_compiler_pic='-fPIC'
7554 amigaos*)
7555 case $host_cpu in
7556 powerpc)
7557 # see comment about AmigaOS4 .so support
7558 lt_prog_compiler_pic='-fPIC'
7560 m68k)
7561 # FIXME: we need at least 68020 code to build shared libraries, but
7562 # adding the '-m68020' flag to GCC prevents building anything better,
7563 # like '-m68040'.
7564 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7566 esac
7569 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7570 # PIC is the default for these OSes.
7573 mingw* | cygwin* | pw32* | os2* | cegcc*)
7574 # This hack is so that the source file can tell whether it is being
7575 # built for inclusion in a dll (and should export symbols for example).
7576 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7577 # (--disable-auto-import) libraries
7578 lt_prog_compiler_pic='-DDLL_EXPORT'
7579 case $host_os in
7580 os2*)
7581 lt_prog_compiler_static='$wl-static'
7583 esac
7586 darwin* | rhapsody*)
7587 # PIC is the default on this platform
7588 # Common symbols not allowed in MH_DYLIB files
7589 lt_prog_compiler_pic='-fno-common'
7592 haiku*)
7593 # PIC is the default for Haiku.
7594 # The "-static" flag exists, but is broken.
7595 lt_prog_compiler_static=
7598 hpux*)
7599 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7600 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7601 # sets the default TLS model and affects inlining.
7602 case $host_cpu in
7603 hppa*64*)
7604 # +Z the default
7607 lt_prog_compiler_pic='-fPIC'
7609 esac
7612 interix[3-9]*)
7613 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7614 # Instead, we relocate shared libraries at runtime.
7617 msdosdjgpp*)
7618 # Just because we use GCC doesn't mean we suddenly get shared libraries
7619 # on systems that don't support them.
7620 lt_prog_compiler_can_build_shared=no
7621 enable_shared=no
7624 *nto* | *qnx*)
7625 # QNX uses GNU C++, but need to define -shared option too, otherwise
7626 # it will coredump.
7627 lt_prog_compiler_pic='-fPIC -shared'
7630 sysv4*MP*)
7631 if test -d /usr/nec; then
7632 lt_prog_compiler_pic=-Kconform_pic
7637 lt_prog_compiler_pic='-fPIC'
7639 esac
7641 case $cc_basename in
7642 nvcc*) # Cuda Compiler Driver 2.2
7643 lt_prog_compiler_wl='-Xlinker '
7644 if test -n "$lt_prog_compiler_pic"; then
7645 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7648 esac
7649 else
7650 # PORTME Check for flag to pass linker flags through the system compiler.
7651 case $host_os in
7652 aix*)
7653 lt_prog_compiler_wl='-Wl,'
7654 if test ia64 = "$host_cpu"; then
7655 # AIX 5 now supports IA64 processor
7656 lt_prog_compiler_static='-Bstatic'
7657 else
7658 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7662 darwin* | rhapsody*)
7663 # PIC is the default on this platform
7664 # Common symbols not allowed in MH_DYLIB files
7665 lt_prog_compiler_pic='-fno-common'
7666 case $cc_basename in
7667 nagfor*)
7668 # NAG Fortran compiler
7669 lt_prog_compiler_wl='-Wl,-Wl,,'
7670 lt_prog_compiler_pic='-PIC'
7671 lt_prog_compiler_static='-Bstatic'
7673 esac
7676 mingw* | cygwin* | pw32* | os2* | cegcc*)
7677 # This hack is so that the source file can tell whether it is being
7678 # built for inclusion in a dll (and should export symbols for example).
7679 lt_prog_compiler_pic='-DDLL_EXPORT'
7680 case $host_os in
7681 os2*)
7682 lt_prog_compiler_static='$wl-static'
7684 esac
7687 hpux9* | hpux10* | hpux11*)
7688 lt_prog_compiler_wl='-Wl,'
7689 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7690 # not for PA HP-UX.
7691 case $host_cpu in
7692 hppa*64*|ia64*)
7693 # +Z the default
7696 lt_prog_compiler_pic='+Z'
7698 esac
7699 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7700 lt_prog_compiler_static='$wl-a ${wl}archive'
7703 irix5* | irix6* | nonstopux*)
7704 lt_prog_compiler_wl='-Wl,'
7705 # PIC (with -KPIC) is the default.
7706 lt_prog_compiler_static='-non_shared'
7709 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7710 case $cc_basename in
7711 # old Intel for x86_64, which still supported -KPIC.
7712 ecc*)
7713 lt_prog_compiler_wl='-Wl,'
7714 lt_prog_compiler_pic='-KPIC'
7715 lt_prog_compiler_static='-static'
7717 # flang / f18. f95 an alias for gfortran or flang on Debian
7718 flang* | f18* | f95*)
7719 lt_prog_compiler_wl='-Wl,'
7720 lt_prog_compiler_pic='-fPIC'
7721 lt_prog_compiler_static='-static'
7723 # icc used to be incompatible with GCC.
7724 # ICC 10 doesn't accept -KPIC any more.
7725 icc* | ifort*)
7726 lt_prog_compiler_wl='-Wl,'
7727 lt_prog_compiler_pic='-fPIC'
7728 lt_prog_compiler_static='-static'
7730 # Lahey Fortran 8.1.
7731 lf95*)
7732 lt_prog_compiler_wl='-Wl,'
7733 lt_prog_compiler_pic='--shared'
7734 lt_prog_compiler_static='--static'
7736 nagfor*)
7737 # NAG Fortran compiler
7738 lt_prog_compiler_wl='-Wl,-Wl,,'
7739 lt_prog_compiler_pic='-PIC'
7740 lt_prog_compiler_static='-Bstatic'
7742 tcc*)
7743 # Fabrice Bellard et al's Tiny C Compiler
7744 lt_prog_compiler_wl='-Wl,'
7745 lt_prog_compiler_pic='-fPIC'
7746 lt_prog_compiler_static='-static'
7748 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7749 # Portland Group compilers (*not* the Pentium gcc compiler,
7750 # which looks to be a dead project)
7751 lt_prog_compiler_wl='-Wl,'
7752 lt_prog_compiler_pic='-fpic'
7753 lt_prog_compiler_static='-Bstatic'
7755 ccc*)
7756 lt_prog_compiler_wl='-Wl,'
7757 # All Alpha code is PIC.
7758 lt_prog_compiler_static='-non_shared'
7760 xl* | bgxl* | bgf* | mpixl*)
7761 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7762 lt_prog_compiler_wl='-Wl,'
7763 lt_prog_compiler_pic='-qpic'
7764 lt_prog_compiler_static='-qstaticlink'
7767 case `$CC -V 2>&1 | sed 5q` in
7768 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7769 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7770 lt_prog_compiler_pic='-KPIC'
7771 lt_prog_compiler_static='-Bstatic'
7772 lt_prog_compiler_wl=''
7774 *Sun\ F* | *Sun*Fortran*)
7775 lt_prog_compiler_pic='-KPIC'
7776 lt_prog_compiler_static='-Bstatic'
7777 lt_prog_compiler_wl='-Qoption ld '
7779 *Sun\ C*)
7780 # Sun C 5.9
7781 lt_prog_compiler_pic='-KPIC'
7782 lt_prog_compiler_static='-Bstatic'
7783 lt_prog_compiler_wl='-Wl,'
7785 *Intel*\ [CF]*Compiler*)
7786 lt_prog_compiler_wl='-Wl,'
7787 lt_prog_compiler_pic='-fPIC'
7788 lt_prog_compiler_static='-static'
7790 *Portland\ Group*)
7791 lt_prog_compiler_wl='-Wl,'
7792 lt_prog_compiler_pic='-fpic'
7793 lt_prog_compiler_static='-Bstatic'
7795 esac
7797 esac
7800 newsos6)
7801 lt_prog_compiler_pic='-KPIC'
7802 lt_prog_compiler_static='-Bstatic'
7805 *nto* | *qnx*)
7806 # QNX uses GNU C++, but need to define -shared option too, otherwise
7807 # it will coredump.
7808 lt_prog_compiler_pic='-fPIC -shared'
7811 osf3* | osf4* | osf5*)
7812 lt_prog_compiler_wl='-Wl,'
7813 # All OSF/1 code is PIC.
7814 lt_prog_compiler_static='-non_shared'
7817 rdos*)
7818 lt_prog_compiler_static='-non_shared'
7821 solaris*)
7822 lt_prog_compiler_pic='-KPIC'
7823 lt_prog_compiler_static='-Bstatic'
7824 case $cc_basename in
7825 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7826 lt_prog_compiler_wl='-Qoption ld ';;
7828 lt_prog_compiler_wl='-Wl,';;
7829 esac
7832 sunos4*)
7833 lt_prog_compiler_wl='-Qoption ld '
7834 lt_prog_compiler_pic='-PIC'
7835 lt_prog_compiler_static='-Bstatic'
7838 sysv4 | sysv4.2uw2* | sysv4.3*)
7839 lt_prog_compiler_wl='-Wl,'
7840 lt_prog_compiler_pic='-KPIC'
7841 lt_prog_compiler_static='-Bstatic'
7844 sysv4*MP*)
7845 if test -d /usr/nec; then
7846 lt_prog_compiler_pic='-Kconform_pic'
7847 lt_prog_compiler_static='-Bstatic'
7851 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7852 lt_prog_compiler_wl='-Wl,'
7853 lt_prog_compiler_pic='-KPIC'
7854 lt_prog_compiler_static='-Bstatic'
7857 unicos*)
7858 lt_prog_compiler_wl='-Wl,'
7859 lt_prog_compiler_can_build_shared=no
7862 uts4*)
7863 lt_prog_compiler_pic='-pic'
7864 lt_prog_compiler_static='-Bstatic'
7868 lt_prog_compiler_can_build_shared=no
7870 esac
7873 case $host_os in
7874 # For platforms that do not support PIC, -DPIC is meaningless:
7875 *djgpp*)
7876 lt_prog_compiler_pic=
7879 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7881 esac
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7884 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7885 if ${lt_cv_prog_compiler_pic+:} false; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7891 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7892 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7895 # Check to make sure the PIC flag actually works.
7897 if test -n "$lt_prog_compiler_pic"; then
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7899 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7900 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7901 $as_echo_n "(cached) " >&6
7902 else
7903 lt_cv_prog_compiler_pic_works=no
7904 ac_outfile=conftest.$ac_objext
7905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7906 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
7907 # Insert the option either (1) after the last *FLAGS variable, or
7908 # (2) before a word containing "conftest.", or (3) at the end.
7909 # Note that $ac_compile itself does not contain backslashes and begins
7910 # with a dollar sign (not a hyphen), so the echo should work correctly.
7911 # The option is referenced via a variable to avoid confusing sed.
7912 lt_compile=`echo "$ac_compile" | $SED \
7913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7915 -e 's:$: $lt_compiler_flag:'`
7916 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7917 (eval "$lt_compile" 2>conftest.err)
7918 ac_status=$?
7919 cat conftest.err >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 if (exit $ac_status) && test -s "$ac_outfile"; then
7922 # The compiler can only warn and ignore the option if not recognized
7923 # So say no if there are warnings other than the usual output.
7924 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7925 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7926 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7927 lt_cv_prog_compiler_pic_works=yes
7930 $RM conftest*
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7934 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7936 if test yes = "$lt_cv_prog_compiler_pic_works"; then
7937 case $lt_prog_compiler_pic in
7938 "" | " "*) ;;
7939 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7940 esac
7941 else
7942 lt_prog_compiler_pic=
7943 lt_prog_compiler_can_build_shared=no
7959 # Check to make sure the static flag actually works.
7961 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7963 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7964 if ${lt_cv_prog_compiler_static_works+:} false; then :
7965 $as_echo_n "(cached) " >&6
7966 else
7967 lt_cv_prog_compiler_static_works=no
7968 save_LDFLAGS=$LDFLAGS
7969 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7970 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7971 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7972 # The linker can only warn and ignore the option if not recognized
7973 # So say no if there are warnings
7974 if test -s conftest.err; then
7975 # Append any errors to the config.log.
7976 cat conftest.err 1>&5
7977 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7978 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7979 if diff conftest.exp conftest.er2 >/dev/null; then
7980 lt_cv_prog_compiler_static_works=yes
7982 else
7983 lt_cv_prog_compiler_static_works=yes
7986 $RM -r conftest*
7987 LDFLAGS=$save_LDFLAGS
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7991 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7993 if test yes = "$lt_cv_prog_compiler_static_works"; then
7995 else
7996 lt_prog_compiler_static=
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8006 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8007 if ${lt_cv_prog_compiler_c_o+:} false; then :
8008 $as_echo_n "(cached) " >&6
8009 else
8010 lt_cv_prog_compiler_c_o=no
8011 $RM -r conftest 2>/dev/null
8012 mkdir conftest
8013 cd conftest
8014 mkdir out
8015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8017 lt_compiler_flag="-o out/conftest2.$ac_objext"
8018 # Insert the option either (1) after the last *FLAGS variable, or
8019 # (2) before a word containing "conftest.", or (3) at the end.
8020 # Note that $ac_compile itself does not contain backslashes and begins
8021 # with a dollar sign (not a hyphen), so the echo should work correctly.
8022 lt_compile=`echo "$ac_compile" | $SED \
8023 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8024 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8025 -e 's:$: $lt_compiler_flag:'`
8026 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8027 (eval "$lt_compile" 2>out/conftest.err)
8028 ac_status=$?
8029 cat out/conftest.err >&5
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8032 then
8033 # The compiler can only warn and ignore the option if not recognized
8034 # So say no if there are warnings
8035 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8036 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8037 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8038 lt_cv_prog_compiler_c_o=yes
8041 chmod u+w . 2>&5
8042 $RM conftest*
8043 # SGI C++ compiler will create directory out/ii_files/ for
8044 # template instantiation
8045 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8046 $RM out/* && rmdir out
8047 cd ..
8048 $RM -r conftest
8049 $RM conftest*
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8053 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8061 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8062 if ${lt_cv_prog_compiler_c_o+:} false; then :
8063 $as_echo_n "(cached) " >&6
8064 else
8065 lt_cv_prog_compiler_c_o=no
8066 $RM -r conftest 2>/dev/null
8067 mkdir conftest
8068 cd conftest
8069 mkdir out
8070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8072 lt_compiler_flag="-o out/conftest2.$ac_objext"
8073 # Insert the option either (1) after the last *FLAGS variable, or
8074 # (2) before a word containing "conftest.", or (3) at the end.
8075 # Note that $ac_compile itself does not contain backslashes and begins
8076 # with a dollar sign (not a hyphen), so the echo should work correctly.
8077 lt_compile=`echo "$ac_compile" | $SED \
8078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8080 -e 's:$: $lt_compiler_flag:'`
8081 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8082 (eval "$lt_compile" 2>out/conftest.err)
8083 ac_status=$?
8084 cat out/conftest.err >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8087 then
8088 # The compiler can only warn and ignore the option if not recognized
8089 # So say no if there are warnings
8090 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8091 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8092 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8093 lt_cv_prog_compiler_c_o=yes
8096 chmod u+w . 2>&5
8097 $RM conftest*
8098 # SGI C++ compiler will create directory out/ii_files/ for
8099 # template instantiation
8100 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8101 $RM out/* && rmdir out
8102 cd ..
8103 $RM -r conftest
8104 $RM conftest*
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8108 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8113 hard_links=nottested
8114 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8115 # do not overwrite the value of need_locks provided by the user
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8117 $as_echo_n "checking if we can lock with hard links... " >&6; }
8118 hard_links=yes
8119 $RM conftest*
8120 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8121 touch conftest.a
8122 ln conftest.a conftest.b 2>&5 || hard_links=no
8123 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8125 $as_echo "$hard_links" >&6; }
8126 if test no = "$hard_links"; then
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8128 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8129 need_locks=warn
8131 else
8132 need_locks=no
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8141 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8143 runpath_var=
8144 allow_undefined_flag=
8145 always_export_symbols=no
8146 archive_cmds=
8147 archive_expsym_cmds=
8148 compiler_needs_object=no
8149 enable_shared_with_static_runtimes=no
8150 export_dynamic_flag_spec=
8151 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8152 hardcode_automatic=no
8153 hardcode_direct=no
8154 hardcode_direct_absolute=no
8155 hardcode_libdir_flag_spec=
8156 hardcode_libdir_separator=
8157 hardcode_minus_L=no
8158 hardcode_shlibpath_var=unsupported
8159 inherit_rpath=no
8160 link_all_deplibs=unknown
8161 module_cmds=
8162 module_expsym_cmds=
8163 old_archive_from_new_cmds=
8164 old_archive_from_expsyms_cmds=
8165 thread_safe_flag_spec=
8166 whole_archive_flag_spec=
8167 # include_expsyms should be a list of space-separated symbols to be *always*
8168 # included in the symbol list
8169 include_expsyms=
8170 # exclude_expsyms can be an extended regexp of symbols to exclude
8171 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8172 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8173 # as well as any symbol that contains 'd'.
8174 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8175 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8176 # platforms (ab)use it in PIC code, but their linkers get confused if
8177 # the symbol is explicitly referenced. Since portable code cannot
8178 # rely on this symbol name, it's probably fine to never include it in
8179 # preloaded symbol tables.
8180 # Exclude shared library initialization/finalization symbols.
8181 extract_expsyms_cmds=
8183 case $host_os in
8184 cygwin* | mingw* | pw32* | cegcc*)
8185 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8186 # When not using gcc, we currently assume that we are using
8187 # Microsoft Visual C++.
8188 if test yes != "$GCC"; then
8189 with_gnu_ld=no
8192 interix*)
8193 # we just hope/assume this is gcc and not c89 (= MSVC++)
8194 with_gnu_ld=yes
8196 openbsd* | bitrig*)
8197 with_gnu_ld=no
8199 linux* | k*bsd*-gnu | gnu*)
8200 link_all_deplibs=no
8202 esac
8204 ld_shlibs=yes
8206 # On some targets, GNU ld is compatible enough with the native linker
8207 # that we're better off using the native interface for both.
8208 lt_use_gnu_ld_interface=no
8209 if test yes = "$with_gnu_ld"; then
8210 case $host_os in
8211 aix*)
8212 # The AIX port of GNU ld has always aspired to compatibility
8213 # with the native linker. However, as the warning in the GNU ld
8214 # block says, versions before 2.19.5* couldn't really create working
8215 # shared libraries, regardless of the interface used.
8216 case `$LD -v 2>&1` in
8217 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8218 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8219 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8221 lt_use_gnu_ld_interface=yes
8223 esac
8226 lt_use_gnu_ld_interface=yes
8228 esac
8231 if test yes = "$lt_use_gnu_ld_interface"; then
8232 # If archive_cmds runs LD, not CC, wlarc should be empty
8233 wlarc='$wl'
8235 # Set some defaults for GNU ld with shared library support. These
8236 # are reset later if shared libraries are not supported. Putting them
8237 # here allows them to be overridden if necessary.
8238 runpath_var=LD_RUN_PATH
8239 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8240 export_dynamic_flag_spec='$wl--export-dynamic'
8241 # ancient GNU ld didn't support --whole-archive et. al.
8242 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8243 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8244 else
8245 whole_archive_flag_spec=
8247 supports_anon_versioning=no
8248 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8249 *GNU\ gold*) supports_anon_versioning=yes ;;
8250 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8251 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8252 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8253 *\ 2.11.*) ;; # other 2.11 versions
8254 *) supports_anon_versioning=yes ;;
8255 esac
8257 # See if GNU ld supports shared libraries.
8258 case $host_os in
8259 aix[3-9]*)
8260 # On AIX/PPC, the GNU linker is very broken
8261 if test ia64 != "$host_cpu"; then
8262 ld_shlibs=no
8263 cat <<_LT_EOF 1>&2
8265 *** Warning: the GNU linker, at least up to release 2.19, is reported
8266 *** to be unable to reliably create shared libraries on AIX.
8267 *** Therefore, libtool is disabling shared libraries support. If you
8268 *** really care for shared libraries, you may want to install binutils
8269 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8270 *** You will then need to restart the configuration process.
8272 _LT_EOF
8276 amigaos*)
8277 case $host_cpu in
8278 powerpc)
8279 # see comment about AmigaOS4 .so support
8280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8281 archive_expsym_cmds=''
8283 m68k)
8284 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)'
8285 hardcode_libdir_flag_spec='-L$libdir'
8286 hardcode_minus_L=yes
8288 esac
8291 beos*)
8292 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8293 allow_undefined_flag=unsupported
8294 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8295 # support --undefined. This deserves some investigation. FIXME
8296 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8297 else
8298 ld_shlibs=no
8302 cygwin* | mingw* | pw32* | cegcc*)
8303 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8304 # as there is no search path for DLLs.
8305 hardcode_libdir_flag_spec='-L$libdir'
8306 export_dynamic_flag_spec='$wl--export-all-symbols'
8307 allow_undefined_flag=unsupported
8308 always_export_symbols=no
8309 enable_shared_with_static_runtimes=yes
8310 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'
8311 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8313 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8315 # If the export-symbols file already is a .def file, use it as
8316 # is; otherwise, prepend EXPORTS...
8317 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8318 cp $export_symbols $output_objdir/$soname.def;
8319 else
8320 echo EXPORTS > $output_objdir/$soname.def;
8321 cat $export_symbols >> $output_objdir/$soname.def;
8323 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8324 else
8325 ld_shlibs=no
8329 haiku*)
8330 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8331 link_all_deplibs=yes
8334 os2*)
8335 hardcode_libdir_flag_spec='-L$libdir'
8336 hardcode_minus_L=yes
8337 allow_undefined_flag=unsupported
8338 shrext_cmds=.dll
8339 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8340 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8341 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8342 $ECHO EXPORTS >> $output_objdir/$libname.def~
8343 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8344 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8345 emximp -o $lib $output_objdir/$libname.def'
8346 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8347 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8348 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8349 $ECHO EXPORTS >> $output_objdir/$libname.def~
8350 prefix_cmds="$SED"~
8351 if test EXPORTS = "`$SED 1q $export_symbols`"; then
8352 prefix_cmds="$prefix_cmds -e 1d";
8354 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8355 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8356 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8357 emximp -o $lib $output_objdir/$libname.def'
8358 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8359 enable_shared_with_static_runtimes=yes
8362 interix[3-9]*)
8363 hardcode_direct=no
8364 hardcode_shlibpath_var=no
8365 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8366 export_dynamic_flag_spec='$wl-E'
8367 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8368 # Instead, shared libraries are loaded at an image base (0x10000000 by
8369 # default) and relocated if they conflict, which is a slow very memory
8370 # consuming and fragmenting process. To avoid this, we pick a random,
8371 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8372 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8373 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8374 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'
8377 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8378 tmp_diet=no
8379 if test linux-dietlibc = "$host_os"; then
8380 case $cc_basename in
8381 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8382 esac
8384 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8385 && test no = "$tmp_diet"
8386 then
8387 tmp_addflag=' $pic_flag'
8388 tmp_sharedflag='-shared'
8389 case $cc_basename,$host_cpu in
8390 pgcc*) # Portland Group C compiler
8391 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'
8392 tmp_addflag=' $pic_flag'
8394 pgf77* | pgf90* | pgf95* | pgfortran*)
8395 # Portland Group f77 and f90 compilers
8396 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'
8397 tmp_addflag=' $pic_flag -Mnomain' ;;
8398 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8399 tmp_addflag=' -i_dynamic' ;;
8400 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8401 tmp_addflag=' -i_dynamic -nofor_main' ;;
8402 ifc* | ifort*) # Intel Fortran compiler
8403 tmp_addflag=' -nofor_main' ;;
8404 lf95*) # Lahey Fortran 8.1
8405 whole_archive_flag_spec=
8406 tmp_sharedflag='--shared' ;;
8407 nagfor*) # NAGFOR 5.3
8408 tmp_sharedflag='-Wl,-shared' ;;
8409 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8410 tmp_sharedflag='-qmkshrobj'
8411 tmp_addflag= ;;
8412 nvcc*) # Cuda Compiler Driver 2.2
8413 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'
8414 compiler_needs_object=yes
8416 esac
8417 case `$CC -V 2>&1 | sed 5q` in
8418 *Sun\ C*) # Sun C 5.9
8419 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'
8420 compiler_needs_object=yes
8421 tmp_sharedflag='-G' ;;
8422 *Sun\ F*) # Sun Fortran 8.3
8423 tmp_sharedflag='-G' ;;
8424 esac
8425 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8427 if test yes = "$supports_anon_versioning"; then
8428 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8429 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8430 echo "local: *; };" >> $output_objdir/$libname.ver~
8431 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8434 case $cc_basename in
8435 tcc*)
8436 export_dynamic_flag_spec='-rdynamic'
8438 xlf* | bgf* | bgxlf* | mpixlf*)
8439 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8440 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8441 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8442 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8443 if test yes = "$supports_anon_versioning"; then
8444 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8445 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8446 echo "local: *; };" >> $output_objdir/$libname.ver~
8447 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8450 esac
8451 else
8452 ld_shlibs=no
8456 netbsd* | netbsdelf*-gnu)
8457 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8458 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8459 wlarc=
8460 else
8461 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8462 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8466 solaris*)
8467 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8468 ld_shlibs=no
8469 cat <<_LT_EOF 1>&2
8471 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8472 *** create shared libraries on Solaris systems. Therefore, libtool
8473 *** is disabling shared libraries support. We urge you to upgrade GNU
8474 *** binutils to release 2.9.1 or newer. Another option is to modify
8475 *** your PATH or compiler configuration so that the native linker is
8476 *** used, and then restart.
8478 _LT_EOF
8479 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8480 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8481 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8482 else
8483 ld_shlibs=no
8487 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8488 case `$LD -v 2>&1` in
8489 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8490 ld_shlibs=no
8491 cat <<_LT_EOF 1>&2
8493 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8494 *** reliably create shared libraries on SCO systems. Therefore, libtool
8495 *** is disabling shared libraries support. We urge you to upgrade GNU
8496 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8497 *** your PATH or compiler configuration so that the native linker is
8498 *** used, and then restart.
8500 _LT_EOF
8503 # For security reasons, it is highly recommended that you always
8504 # use absolute paths for naming shared libraries, and exclude the
8505 # DT_RUNPATH tag from executables and libraries. But doing so
8506 # requires that you compile everything twice, which is a pain.
8507 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8508 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8510 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8511 else
8512 ld_shlibs=no
8515 esac
8518 sunos4*)
8519 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8520 wlarc=
8521 hardcode_direct=yes
8522 hardcode_shlibpath_var=no
8526 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8527 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8528 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8529 else
8530 ld_shlibs=no
8533 esac
8535 if test no = "$ld_shlibs"; then
8536 runpath_var=
8537 hardcode_libdir_flag_spec=
8538 export_dynamic_flag_spec=
8539 whole_archive_flag_spec=
8541 else
8542 # PORTME fill in a description of your system's linker (not GNU ld)
8543 case $host_os in
8544 aix3*)
8545 allow_undefined_flag=unsupported
8546 always_export_symbols=yes
8547 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'
8548 # Note: this linker hardcodes the directories in LIBPATH if there
8549 # are no directories specified by -L.
8550 hardcode_minus_L=yes
8551 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8552 # Neither direct hardcoding nor static linking is supported with a
8553 # broken collect2.
8554 hardcode_direct=unsupported
8558 aix[4-9]*)
8559 if test ia64 = "$host_cpu"; then
8560 # On IA64, the linker does run time linking by default, so we don't
8561 # have to do anything special.
8562 aix_use_runtimelinking=no
8563 exp_sym_flag='-Bexport'
8564 no_entry_flag=
8565 else
8566 # If we're using GNU nm, then we don't want the "-C" option.
8567 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
8568 # Without the "-l" option, or with the "-B" option, AIX nm treats
8569 # weak defined symbols like other global defined symbols, whereas
8570 # GNU nm marks them as "W".
8571 # While the 'weak' keyword is ignored in the Export File, we need
8572 # it in the Import File for the 'aix-soname' feature, so we have
8573 # to replace the "-B" option with "-P" for AIX nm.
8574 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8575 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'
8576 else
8577 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'
8579 aix_use_runtimelinking=no
8581 # Test if we are trying to use run time linking or normal
8582 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8583 # have runtime linking enabled, and use it for executables.
8584 # For shared libraries, we enable/disable runtime linking
8585 # depending on the kind of the shared library created -
8586 # when "with_aix_soname,aix_use_runtimelinking" is:
8587 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
8588 # "aix,yes" lib.so shared, rtl:yes, for executables
8589 # lib.a static archive
8590 # "both,no" lib.so.V(shr.o) shared, rtl:yes
8591 # lib.a(lib.so.V) shared, rtl:no, for executables
8592 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
8593 # lib.a(lib.so.V) shared, rtl:no
8594 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
8595 # lib.a static archive
8596 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8597 for ld_flag in $LDFLAGS; do
8598 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
8599 aix_use_runtimelinking=yes
8600 break
8602 done
8603 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
8604 # With aix-soname=svr4, we create the lib.so.V shared archives only,
8605 # so we don't have lib.a shared libs to link our executables.
8606 # We have to force runtime linking in this case.
8607 aix_use_runtimelinking=yes
8608 LDFLAGS="$LDFLAGS -Wl,-brtl"
8611 esac
8613 exp_sym_flag='-bexport'
8614 no_entry_flag='-bnoentry'
8617 # When large executables or shared objects are built, AIX ld can
8618 # have problems creating the table of contents. If linking a library
8619 # or program results in "error TOC overflow" add -mminimal-toc to
8620 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8621 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8623 archive_cmds=''
8624 hardcode_direct=yes
8625 hardcode_direct_absolute=yes
8626 hardcode_libdir_separator=':'
8627 link_all_deplibs=yes
8628 file_list_spec='$wl-f,'
8629 case $with_aix_soname,$aix_use_runtimelinking in
8630 aix,*) ;; # traditional, no import file
8631 svr4,* | *,yes) # use import file
8632 # The Import File defines what to hardcode.
8633 hardcode_direct=no
8634 hardcode_direct_absolute=no
8636 esac
8638 if test yes = "$GCC"; then
8639 case $host_os in aix4.[012]|aix4.[012].*)
8640 # We only want to do this on AIX 4.2 and lower, the check
8641 # below for broken collect2 doesn't work under 4.3+
8642 collect2name=`$CC -print-prog-name=collect2`
8643 if test -f "$collect2name" &&
8644 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8645 then
8646 # We have reworked collect2
8648 else
8649 # We have old collect2
8650 hardcode_direct=unsupported
8651 # It fails to find uninstalled libraries when the uninstalled
8652 # path is not listed in the libpath. Setting hardcode_minus_L
8653 # to unsupported forces relinking
8654 hardcode_minus_L=yes
8655 hardcode_libdir_flag_spec='-L$libdir'
8656 hardcode_libdir_separator=
8659 esac
8660 shared_flag='-shared'
8661 if test yes = "$aix_use_runtimelinking"; then
8662 shared_flag="$shared_flag "'$wl-G'
8664 # Need to ensure runtime linking is disabled for the traditional
8665 # shared library, or the linker may eventually find shared libraries
8666 # /with/ Import File - we do not want to mix them.
8667 shared_flag_aix='-shared'
8668 shared_flag_svr4='-shared $wl-G'
8669 else
8670 # not using gcc
8671 if test ia64 = "$host_cpu"; then
8672 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8673 # chokes on -Wl,-G. The following line is correct:
8674 shared_flag='-G'
8675 else
8676 if test yes = "$aix_use_runtimelinking"; then
8677 shared_flag='$wl-G'
8678 else
8679 shared_flag='$wl-bM:SRE'
8681 shared_flag_aix='$wl-bM:SRE'
8682 shared_flag_svr4='$wl-G'
8686 export_dynamic_flag_spec='$wl-bexpall'
8687 # It seems that -bexpall does not export symbols beginning with
8688 # underscore (_), so it is better to generate a list of symbols to export.
8689 always_export_symbols=yes
8690 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
8691 # Warning - without using the other runtime loading flags (-brtl),
8692 # -berok will link without error, but may produce a broken library.
8693 allow_undefined_flag='-berok'
8694 # Determine the default libpath from the value encoded in an
8695 # empty executable.
8696 if test set = "${lt_cv_aix_libpath+set}"; then
8697 aix_libpath=$lt_cv_aix_libpath
8698 else
8699 if ${lt_cv_aix_libpath_+:} false; then :
8700 $as_echo_n "(cached) " >&6
8701 else
8702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703 /* end confdefs.h. */
8706 main ()
8710 return 0;
8712 _ACEOF
8713 if ac_fn_c_try_link "$LINENO"; then :
8715 lt_aix_libpath_sed='
8716 /Import File Strings/,/^$/ {
8717 /^0/ {
8718 s/^0 *\([^ ]*\) *$/\1/
8722 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8723 # Check for a 64-bit object if we didn't find anything.
8724 if test -z "$lt_cv_aix_libpath_"; then
8725 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8728 rm -f core conftest.err conftest.$ac_objext \
8729 conftest$ac_exeext conftest.$ac_ext
8730 if test -z "$lt_cv_aix_libpath_"; then
8731 lt_cv_aix_libpath_=/usr/lib:/lib
8736 aix_libpath=$lt_cv_aix_libpath_
8739 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
8740 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
8741 else
8742 if test ia64 = "$host_cpu"; then
8743 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
8744 allow_undefined_flag="-z nodefs"
8745 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"
8746 else
8747 # Determine the default libpath from the value encoded in an
8748 # empty executable.
8749 if test set = "${lt_cv_aix_libpath+set}"; then
8750 aix_libpath=$lt_cv_aix_libpath
8751 else
8752 if ${lt_cv_aix_libpath_+:} false; then :
8753 $as_echo_n "(cached) " >&6
8754 else
8755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8756 /* end confdefs.h. */
8759 main ()
8763 return 0;
8765 _ACEOF
8766 if ac_fn_c_try_link "$LINENO"; then :
8768 lt_aix_libpath_sed='
8769 /Import File Strings/,/^$/ {
8770 /^0/ {
8771 s/^0 *\([^ ]*\) *$/\1/
8775 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8776 # Check for a 64-bit object if we didn't find anything.
8777 if test -z "$lt_cv_aix_libpath_"; then
8778 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8781 rm -f core conftest.err conftest.$ac_objext \
8782 conftest$ac_exeext conftest.$ac_ext
8783 if test -z "$lt_cv_aix_libpath_"; then
8784 lt_cv_aix_libpath_=/usr/lib:/lib
8789 aix_libpath=$lt_cv_aix_libpath_
8792 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
8793 # Warning - without using the other run time loading flags,
8794 # -berok will link without error, but may produce a broken library.
8795 no_undefined_flag=' $wl-bernotok'
8796 allow_undefined_flag=' $wl-berok'
8797 if test yes = "$with_gnu_ld"; then
8798 # We only use this code for GNU lds that support --whole-archive.
8799 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
8800 else
8801 # Exported symbols can be pulled into shared objects from archives
8802 whole_archive_flag_spec='$convenience'
8804 archive_cmds_need_lc=yes
8805 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
8806 # -brtl affects multiple linker settings, -berok does not and is overridden later
8807 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
8808 if test svr4 != "$with_aix_soname"; then
8809 # This is similar to how AIX traditionally builds its shared libraries.
8810 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'
8812 if test aix != "$with_aix_soname"; then
8813 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'
8814 else
8815 # used by -dlpreopen to get the symbols
8816 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
8818 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
8823 amigaos*)
8824 case $host_cpu in
8825 powerpc)
8826 # see comment about AmigaOS4 .so support
8827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8828 archive_expsym_cmds=''
8830 m68k)
8831 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)'
8832 hardcode_libdir_flag_spec='-L$libdir'
8833 hardcode_minus_L=yes
8835 esac
8838 bsdi[45]*)
8839 export_dynamic_flag_spec=-rdynamic
8842 cygwin* | mingw* | pw32* | cegcc*)
8843 # When not using gcc, we currently assume that we are using
8844 # Microsoft Visual C++.
8845 # hardcode_libdir_flag_spec is actually meaningless, as there is
8846 # no search path for DLLs.
8847 case $cc_basename in
8848 cl*)
8849 # Native MSVC
8850 hardcode_libdir_flag_spec=' '
8851 allow_undefined_flag=unsupported
8852 always_export_symbols=yes
8853 file_list_spec='@'
8854 # Tell ltmain to make .lib files, not .a files.
8855 libext=lib
8856 # Tell ltmain to make .dll files, not .so files.
8857 shrext_cmds=.dll
8858 # FIXME: Setting linknames here is a bad hack.
8859 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
8860 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8861 cp "$export_symbols" "$output_objdir/$soname.def";
8862 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
8863 else
8864 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
8866 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8867 linknames='
8868 # The linker will not automatically build a static lib if we build a DLL.
8869 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8870 enable_shared_with_static_runtimes=yes
8871 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8872 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8873 # Don't use ranlib
8874 old_postinstall_cmds='chmod 644 $oldlib'
8875 postlink_cmds='lt_outputfile="@OUTPUT@"~
8876 lt_tool_outputfile="@TOOL_OUTPUT@"~
8877 case $lt_outputfile in
8878 *.exe|*.EXE) ;;
8880 lt_outputfile=$lt_outputfile.exe
8881 lt_tool_outputfile=$lt_tool_outputfile.exe
8883 esac~
8884 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
8885 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8886 $RM "$lt_outputfile.manifest";
8890 # Assume MSVC wrapper
8891 hardcode_libdir_flag_spec=' '
8892 allow_undefined_flag=unsupported
8893 # Tell ltmain to make .lib files, not .a files.
8894 libext=lib
8895 # Tell ltmain to make .dll files, not .so files.
8896 shrext_cmds=.dll
8897 # FIXME: Setting linknames here is a bad hack.
8898 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8899 # The linker will automatically build a .lib file if we build a DLL.
8900 old_archive_from_new_cmds='true'
8901 # FIXME: Should let the user specify the lib program.
8902 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8903 enable_shared_with_static_runtimes=yes
8905 esac
8908 darwin* | rhapsody*)
8911 archive_cmds_need_lc=no
8912 hardcode_direct=no
8913 hardcode_automatic=yes
8914 hardcode_shlibpath_var=unsupported
8915 if test yes = "$lt_cv_ld_force_load"; then
8916 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\"`'
8918 else
8919 whole_archive_flag_spec=''
8921 link_all_deplibs=yes
8922 allow_undefined_flag=$_lt_dar_allow_undefined
8923 case $cc_basename in
8924 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
8925 *) _lt_dar_can_shared=$GCC ;;
8926 esac
8927 if test yes = "$_lt_dar_can_shared"; then
8928 output_verbose_link_cmd=func_echo_all
8929 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
8930 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
8931 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"
8932 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"
8934 else
8935 ld_shlibs=no
8940 dgux*)
8941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8942 hardcode_libdir_flag_spec='-L$libdir'
8943 hardcode_shlibpath_var=no
8946 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8947 # support. Future versions do this automatically, but an explicit c++rt0.o
8948 # does not break anything, and helps significantly (at the cost of a little
8949 # extra space).
8950 freebsd2.2*)
8951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8952 hardcode_libdir_flag_spec='-R$libdir'
8953 hardcode_direct=yes
8954 hardcode_shlibpath_var=no
8957 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8958 freebsd2.*)
8959 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8960 hardcode_direct=yes
8961 hardcode_minus_L=yes
8962 hardcode_shlibpath_var=no
8965 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8966 freebsd* | dragonfly*)
8967 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8968 hardcode_libdir_flag_spec='-R$libdir'
8969 hardcode_direct=yes
8970 hardcode_shlibpath_var=no
8973 hpux9*)
8974 if test yes = "$GCC"; then
8975 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'
8976 else
8977 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'
8979 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
8980 hardcode_libdir_separator=:
8981 hardcode_direct=yes
8983 # hardcode_minus_L: Not really in the search PATH,
8984 # but as the default location of the library.
8985 hardcode_minus_L=yes
8986 export_dynamic_flag_spec='$wl-E'
8989 hpux10*)
8990 if test yes,no = "$GCC,$with_gnu_ld"; then
8991 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8992 else
8993 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8995 if test no = "$with_gnu_ld"; then
8996 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
8997 hardcode_libdir_separator=:
8998 hardcode_direct=yes
8999 hardcode_direct_absolute=yes
9000 export_dynamic_flag_spec='$wl-E'
9001 # hardcode_minus_L: Not really in the search PATH,
9002 # but as the default location of the library.
9003 hardcode_minus_L=yes
9007 hpux11*)
9008 if test yes,no = "$GCC,$with_gnu_ld"; then
9009 case $host_cpu in
9010 hppa*64*)
9011 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9013 ia64*)
9014 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9017 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9019 esac
9020 else
9021 case $host_cpu in
9022 hppa*64*)
9023 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9025 ia64*)
9026 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9030 # Older versions of the 11.00 compiler do not understand -b yet
9031 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9033 $as_echo_n "checking if $CC understands -b... " >&6; }
9034 if ${lt_cv_prog_compiler__b+:} false; then :
9035 $as_echo_n "(cached) " >&6
9036 else
9037 lt_cv_prog_compiler__b=no
9038 save_LDFLAGS=$LDFLAGS
9039 LDFLAGS="$LDFLAGS -b"
9040 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9041 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9042 # The linker can only warn and ignore the option if not recognized
9043 # So say no if there are warnings
9044 if test -s conftest.err; then
9045 # Append any errors to the config.log.
9046 cat conftest.err 1>&5
9047 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9048 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9049 if diff conftest.exp conftest.er2 >/dev/null; then
9050 lt_cv_prog_compiler__b=yes
9052 else
9053 lt_cv_prog_compiler__b=yes
9056 $RM -r conftest*
9057 LDFLAGS=$save_LDFLAGS
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9061 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9063 if test yes = "$lt_cv_prog_compiler__b"; then
9064 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9065 else
9066 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9070 esac
9072 if test no = "$with_gnu_ld"; then
9073 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9074 hardcode_libdir_separator=:
9076 case $host_cpu in
9077 hppa*64*|ia64*)
9078 hardcode_direct=no
9079 hardcode_shlibpath_var=no
9082 hardcode_direct=yes
9083 hardcode_direct_absolute=yes
9084 export_dynamic_flag_spec='$wl-E'
9086 # hardcode_minus_L: Not really in the search PATH,
9087 # but as the default location of the library.
9088 hardcode_minus_L=yes
9090 esac
9094 irix5* | irix6* | nonstopux*)
9095 if test yes = "$GCC"; then
9096 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'
9097 # Try to use the -exported_symbol ld option, if it does not
9098 # work, assume that -exports_file does not work either and
9099 # implicitly export all symbols.
9100 # This should be the same for all languages, so no per-tag cache variable.
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9102 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9103 if ${lt_cv_irix_exported_symbol+:} false; then :
9104 $as_echo_n "(cached) " >&6
9105 else
9106 save_LDFLAGS=$LDFLAGS
9107 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109 /* end confdefs.h. */
9110 int foo (void) { return 0; }
9111 _ACEOF
9112 if ac_fn_c_try_link "$LINENO"; then :
9113 lt_cv_irix_exported_symbol=yes
9114 else
9115 lt_cv_irix_exported_symbol=no
9117 rm -f core conftest.err conftest.$ac_objext \
9118 conftest$ac_exeext conftest.$ac_ext
9119 LDFLAGS=$save_LDFLAGS
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9122 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9123 if test yes = "$lt_cv_irix_exported_symbol"; then
9124 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'
9126 link_all_deplibs=no
9127 else
9128 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'
9129 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'
9131 archive_cmds_need_lc='no'
9132 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9133 hardcode_libdir_separator=:
9134 inherit_rpath=yes
9135 link_all_deplibs=yes
9138 linux*)
9139 case $cc_basename in
9140 tcc*)
9141 # Fabrice Bellard et al's Tiny C Compiler
9142 ld_shlibs=yes
9143 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9145 esac
9148 netbsd* | netbsdelf*-gnu)
9149 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9150 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9151 else
9152 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9154 hardcode_libdir_flag_spec='-R$libdir'
9155 hardcode_direct=yes
9156 hardcode_shlibpath_var=no
9159 newsos6)
9160 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9161 hardcode_direct=yes
9162 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9163 hardcode_libdir_separator=:
9164 hardcode_shlibpath_var=no
9167 *nto* | *qnx*)
9170 openbsd* | bitrig*)
9171 if test -f /usr/libexec/ld.so; then
9172 hardcode_direct=yes
9173 hardcode_shlibpath_var=no
9174 hardcode_direct_absolute=yes
9175 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9176 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9177 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9178 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9179 export_dynamic_flag_spec='$wl-E'
9180 else
9181 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9182 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9184 else
9185 ld_shlibs=no
9189 os2*)
9190 hardcode_libdir_flag_spec='-L$libdir'
9191 hardcode_minus_L=yes
9192 allow_undefined_flag=unsupported
9193 shrext_cmds=.dll
9194 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9195 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9196 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9197 $ECHO EXPORTS >> $output_objdir/$libname.def~
9198 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9199 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9200 emximp -o $lib $output_objdir/$libname.def'
9201 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9202 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9203 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9204 $ECHO EXPORTS >> $output_objdir/$libname.def~
9205 prefix_cmds="$SED"~
9206 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9207 prefix_cmds="$prefix_cmds -e 1d";
9209 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9210 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9211 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9212 emximp -o $lib $output_objdir/$libname.def'
9213 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9214 enable_shared_with_static_runtimes=yes
9217 osf3*)
9218 if test yes = "$GCC"; then
9219 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9220 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'
9221 else
9222 allow_undefined_flag=' -expect_unresolved \*'
9223 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'
9225 archive_cmds_need_lc='no'
9226 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9227 hardcode_libdir_separator=:
9230 osf4* | osf5*) # as osf3* with the addition of -msym flag
9231 if test yes = "$GCC"; then
9232 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9233 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'
9234 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9235 else
9236 allow_undefined_flag=' -expect_unresolved \*'
9237 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'
9238 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~
9239 $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'
9241 # Both c and cxx compiler support -rpath directly
9242 hardcode_libdir_flag_spec='-rpath $libdir'
9244 archive_cmds_need_lc='no'
9245 hardcode_libdir_separator=:
9248 solaris*)
9249 no_undefined_flag=' -z defs'
9250 if test yes = "$GCC"; then
9251 wlarc='$wl'
9252 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9253 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9254 $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'
9255 else
9256 case `$CC -V 2>&1` in
9257 *"Compilers 5.0"*)
9258 wlarc=''
9259 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9260 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9261 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9264 wlarc='$wl'
9265 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9266 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9267 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9269 esac
9271 hardcode_libdir_flag_spec='-R$libdir'
9272 hardcode_shlibpath_var=no
9273 case $host_os in
9274 solaris2.[0-5] | solaris2.[0-5].*) ;;
9276 # The compiler driver will combine and reorder linker options,
9277 # but understands '-z linker_flag'. GCC discards it without '$wl',
9278 # but is careful enough not to reorder.
9279 # Supported since Solaris 2.6 (maybe 2.5.1?)
9280 if test yes = "$GCC"; then
9281 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9282 else
9283 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9286 esac
9287 link_all_deplibs=yes
9290 sunos4*)
9291 if test sequent = "$host_vendor"; then
9292 # Use $CC to link under sequent, because it throws in some extra .o
9293 # files that make .init and .fini sections work.
9294 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9295 else
9296 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9298 hardcode_libdir_flag_spec='-L$libdir'
9299 hardcode_direct=yes
9300 hardcode_minus_L=yes
9301 hardcode_shlibpath_var=no
9304 sysv4)
9305 case $host_vendor in
9306 sni)
9307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9308 hardcode_direct=yes # is this really true???
9310 siemens)
9311 ## LD is ld it makes a PLAMLIB
9312 ## CC just makes a GrossModule.
9313 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9314 reload_cmds='$CC -r -o $output$reload_objs'
9315 hardcode_direct=no
9317 motorola)
9318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9319 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9321 esac
9322 runpath_var='LD_RUN_PATH'
9323 hardcode_shlibpath_var=no
9326 sysv4.3*)
9327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9328 hardcode_shlibpath_var=no
9329 export_dynamic_flag_spec='-Bexport'
9332 sysv4*MP*)
9333 if test -d /usr/nec; then
9334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9335 hardcode_shlibpath_var=no
9336 runpath_var=LD_RUN_PATH
9337 hardcode_runpath_var=yes
9338 ld_shlibs=yes
9342 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9343 no_undefined_flag='$wl-z,text'
9344 archive_cmds_need_lc=no
9345 hardcode_shlibpath_var=no
9346 runpath_var='LD_RUN_PATH'
9348 if test yes = "$GCC"; then
9349 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9350 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9351 else
9352 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9353 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9357 sysv5* | sco3.2v5* | sco5v6*)
9358 # Note: We CANNOT use -z defs as we might desire, because we do not
9359 # link with -lc, and that would cause any symbols used from libc to
9360 # always be unresolved, which means just about no library would
9361 # ever link correctly. If we're not using GNU ld we use -z text
9362 # though, which does catch some bad symbols but isn't as heavy-handed
9363 # as -z defs.
9364 no_undefined_flag='$wl-z,text'
9365 allow_undefined_flag='$wl-z,nodefs'
9366 archive_cmds_need_lc=no
9367 hardcode_shlibpath_var=no
9368 hardcode_libdir_flag_spec='$wl-R,$libdir'
9369 hardcode_libdir_separator=':'
9370 link_all_deplibs=yes
9371 export_dynamic_flag_spec='$wl-Bexport'
9372 runpath_var='LD_RUN_PATH'
9374 if test yes = "$GCC"; then
9375 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9376 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9377 else
9378 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9379 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9383 uts4*)
9384 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9385 hardcode_libdir_flag_spec='-L$libdir'
9386 hardcode_shlibpath_var=no
9390 ld_shlibs=no
9392 esac
9394 if test sni = "$host_vendor"; then
9395 case $host in
9396 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9397 export_dynamic_flag_spec='$wl-Blargedynsym'
9399 esac
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9404 $as_echo "$ld_shlibs" >&6; }
9405 test no = "$ld_shlibs" && can_build_shared=no
9407 with_gnu_ld=$with_gnu_ld
9424 # Do we need to explicitly link libc?
9426 case "x$archive_cmds_need_lc" in
9427 x|xyes)
9428 # Assume -lc should be added
9429 archive_cmds_need_lc=yes
9431 if test yes,yes = "$GCC,$enable_shared"; then
9432 case $archive_cmds in
9433 *'~'*)
9434 # FIXME: we may have to deal with multi-command sequences.
9436 '$CC '*)
9437 # Test whether the compiler implicitly links with -lc since on some
9438 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9439 # to ld, don't add -lc before -lgcc.
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9441 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9442 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9443 $as_echo_n "(cached) " >&6
9444 else
9445 $RM conftest*
9446 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9449 (eval $ac_compile) 2>&5
9450 ac_status=$?
9451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9452 test $ac_status = 0; } 2>conftest.err; then
9453 soname=conftest
9454 lib=conftest
9455 libobjs=conftest.$ac_objext
9456 deplibs=
9457 wl=$lt_prog_compiler_wl
9458 pic_flag=$lt_prog_compiler_pic
9459 compiler_flags=-v
9460 linker_flags=-v
9461 verstring=
9462 output_objdir=.
9463 libname=conftest
9464 lt_save_allow_undefined_flag=$allow_undefined_flag
9465 allow_undefined_flag=
9466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9467 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9468 ac_status=$?
9469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9470 test $ac_status = 0; }
9471 then
9472 lt_cv_archive_cmds_need_lc=no
9473 else
9474 lt_cv_archive_cmds_need_lc=yes
9476 allow_undefined_flag=$lt_save_allow_undefined_flag
9477 else
9478 cat conftest.err 1>&5
9480 $RM conftest*
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9484 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9485 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9487 esac
9490 esac
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9644 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9646 if test yes = "$GCC"; then
9647 case $host_os in
9648 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
9649 *) lt_awk_arg='/^libraries:/' ;;
9650 esac
9651 case $host_os in
9652 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
9653 *) lt_sed_strip_eq='s|=/|/|g' ;;
9654 esac
9655 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9656 case $lt_search_path_spec in
9657 *\;*)
9658 # if the path contains ";" then we assume it to be the separator
9659 # otherwise default to the standard path separator (i.e. ":") - it is
9660 # assumed that no part of a normal pathname contains ";" but that should
9661 # okay in the real world where ";" in dirpaths is itself problematic.
9662 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9665 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9667 esac
9668 # Ok, now we have the path, separated by spaces, we can step through it
9669 # and add multilib dir if necessary...
9670 lt_tmp_lt_search_path_spec=
9671 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9672 # ...but if some path component already ends with the multilib dir we assume
9673 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
9674 case "$lt_multi_os_dir; $lt_search_path_spec " in
9675 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
9676 lt_multi_os_dir=
9678 esac
9679 for lt_sys_path in $lt_search_path_spec; do
9680 if test -d "$lt_sys_path$lt_multi_os_dir"; then
9681 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
9682 elif test -n "$lt_multi_os_dir"; then
9683 test -d "$lt_sys_path" && \
9684 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9686 done
9687 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9688 BEGIN {RS = " "; FS = "/|\n";} {
9689 lt_foo = "";
9690 lt_count = 0;
9691 for (lt_i = NF; lt_i > 0; lt_i--) {
9692 if ($lt_i != "" && $lt_i != ".") {
9693 if ($lt_i == "..") {
9694 lt_count++;
9695 } else {
9696 if (lt_count == 0) {
9697 lt_foo = "/" $lt_i lt_foo;
9698 } else {
9699 lt_count--;
9704 if (lt_foo != "") { lt_freq[lt_foo]++; }
9705 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9707 # AWK program above erroneously prepends '/' to C:/dos/paths
9708 # for these hosts.
9709 case $host_os in
9710 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9711 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
9712 esac
9713 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9714 else
9715 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9717 library_names_spec=
9718 libname_spec='lib$name'
9719 soname_spec=
9720 shrext_cmds=.so
9721 postinstall_cmds=
9722 postuninstall_cmds=
9723 finish_cmds=
9724 finish_eval=
9725 shlibpath_var=
9726 shlibpath_overrides_runpath=unknown
9727 version_type=none
9728 dynamic_linker="$host_os ld.so"
9729 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9730 need_lib_prefix=unknown
9731 hardcode_into_libs=no
9733 # when you set need_version to no, make sure it does not cause -set_version
9734 # flags to be left without arguments
9735 need_version=unknown
9739 case $host_os in
9740 aix3*)
9741 version_type=linux # correct to gnu/linux during the next big refactor
9742 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
9743 shlibpath_var=LIBPATH
9745 # AIX 3 has no versioning support, so we append a major version to the name.
9746 soname_spec='$libname$release$shared_ext$major'
9749 aix[4-9]*)
9750 version_type=linux # correct to gnu/linux during the next big refactor
9751 need_lib_prefix=no
9752 need_version=no
9753 hardcode_into_libs=yes
9754 if test ia64 = "$host_cpu"; then
9755 # AIX 5 supports IA64
9756 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
9757 shlibpath_var=LD_LIBRARY_PATH
9758 else
9759 # With GCC up to 2.95.x, collect2 would create an import file
9760 # for dependence libraries. The import file would start with
9761 # the line '#! .'. This would cause the generated library to
9762 # depend on '.', always an invalid library. This was fixed in
9763 # development snapshots of GCC prior to 3.0.
9764 case $host_os in
9765 aix4 | aix4.[01] | aix4.[01].*)
9766 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9767 echo ' yes '
9768 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
9770 else
9771 can_build_shared=no
9774 esac
9775 # Using Import Files as archive members, it is possible to support
9776 # filename-based versioning of shared library archives on AIX. While
9777 # this would work for both with and without runtime linking, it will
9778 # prevent static linking of such archives. So we do filename-based
9779 # shared library versioning with .so extension only, which is used
9780 # when both runtime linking and shared linking is enabled.
9781 # Unfortunately, runtime linking may impact performance, so we do
9782 # not want this to be the default eventually. Also, we use the
9783 # versioned .so libs for executables only if there is the -brtl
9784 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
9785 # To allow for filename-based versioning support, we need to create
9786 # libNAME.so.V as an archive file, containing:
9787 # *) an Import File, referring to the versioned filename of the
9788 # archive as well as the shared archive member, telling the
9789 # bitwidth (32 or 64) of that shared object, and providing the
9790 # list of exported symbols of that shared object, eventually
9791 # decorated with the 'weak' keyword
9792 # *) the shared object with the F_LOADONLY flag set, to really avoid
9793 # it being seen by the linker.
9794 # At run time we better use the real file rather than another symlink,
9795 # but for link time we create the symlink libNAME.so -> libNAME.so.V
9797 case $with_aix_soname,$aix_use_runtimelinking in
9798 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
9799 # soname into executable. Probably we can add versioning support to
9800 # collect2, so additional links can be useful in future.
9801 aix,yes) # traditional libtool
9802 dynamic_linker='AIX unversionable lib.so'
9803 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9804 # instead of lib<name>.a to let people know that these are not
9805 # typical AIX shared libraries.
9806 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9808 aix,no) # traditional AIX only
9809 dynamic_linker='AIX lib.a(lib.so.V)'
9810 # We preserve .a as extension for shared libraries through AIX4.2
9811 # and later when we are not doing run time linking.
9812 library_names_spec='$libname$release.a $libname.a'
9813 soname_spec='$libname$release$shared_ext$major'
9815 svr4,*) # full svr4 only
9816 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
9817 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
9818 # We do not specify a path in Import Files, so LIBPATH fires.
9819 shlibpath_overrides_runpath=yes
9821 *,yes) # both, prefer svr4
9822 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
9823 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
9824 # unpreferred sharedlib libNAME.a needs extra handling
9825 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"'
9826 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"'
9827 # We do not specify a path in Import Files, so LIBPATH fires.
9828 shlibpath_overrides_runpath=yes
9830 *,no) # both, prefer aix
9831 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
9832 library_names_spec='$libname$release.a $libname.a'
9833 soname_spec='$libname$release$shared_ext$major'
9834 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
9835 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)'
9836 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"'
9838 esac
9839 shlibpath_var=LIBPATH
9843 amigaos*)
9844 case $host_cpu in
9845 powerpc)
9846 # Since July 2007 AmigaOS4 officially supports .so libraries.
9847 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9848 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9850 m68k)
9851 library_names_spec='$libname.ixlibrary $libname.a'
9852 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9853 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'
9855 esac
9858 beos*)
9859 library_names_spec='$libname$shared_ext'
9860 dynamic_linker="$host_os ld.so"
9861 shlibpath_var=LIBRARY_PATH
9864 bsdi[45]*)
9865 version_type=linux # correct to gnu/linux during the next big refactor
9866 need_version=no
9867 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9868 soname_spec='$libname$release$shared_ext$major'
9869 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9870 shlibpath_var=LD_LIBRARY_PATH
9871 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9872 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9873 # the default ld.so.conf also contains /usr/contrib/lib and
9874 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9875 # libtool to hard-code these into programs
9878 cygwin* | mingw* | pw32* | cegcc*)
9879 version_type=windows
9880 shrext_cmds=.dll
9881 need_version=no
9882 need_lib_prefix=no
9884 case $GCC,$cc_basename in
9885 yes,*)
9886 # gcc
9887 library_names_spec='$libname.dll.a'
9888 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9889 postinstall_cmds='base_file=`basename \$file`~
9890 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
9891 dldir=$destdir/`dirname \$dlpath`~
9892 test -d \$dldir || mkdir -p \$dldir~
9893 $install_prog $dir/$dlname \$dldir/$dlname~
9894 chmod a+x \$dldir/$dlname~
9895 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9896 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9898 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9899 dlpath=$dir/\$dldll~
9900 $RM \$dlpath'
9901 shlibpath_overrides_runpath=yes
9903 case $host_os in
9904 cygwin*)
9905 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9906 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9908 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9910 mingw* | cegcc*)
9911 # MinGW DLLs use traditional 'lib' prefix
9912 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9914 pw32*)
9915 # pw32 DLLs use 'pw' prefix rather than 'lib'
9916 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9918 esac
9919 dynamic_linker='Win32 ld.exe'
9922 *,cl*)
9923 # Native MSVC
9924 libname_spec='$name'
9925 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9926 library_names_spec='$libname.dll.lib'
9928 case $build_os in
9929 mingw*)
9930 sys_lib_search_path_spec=
9931 lt_save_ifs=$IFS
9932 IFS=';'
9933 for lt_path in $LIB
9935 IFS=$lt_save_ifs
9936 # Let DOS variable expansion print the short 8.3 style file name.
9937 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9938 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9939 done
9940 IFS=$lt_save_ifs
9941 # Convert to MSYS style.
9942 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9944 cygwin*)
9945 # Convert to unix form, then to dos form, then back to unix form
9946 # but this time dos style (no spaces!) so that the unix form looks
9947 # like /cygdrive/c/PROGRA~1:/cygdr...
9948 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9949 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9950 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9953 sys_lib_search_path_spec=$LIB
9954 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9955 # It is most probably a Windows format PATH.
9956 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9957 else
9958 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9960 # FIXME: find the short name or the path components, as spaces are
9961 # common. (e.g. "Program Files" -> "PROGRA~1")
9963 esac
9965 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9966 postinstall_cmds='base_file=`basename \$file`~
9967 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
9968 dldir=$destdir/`dirname \$dlpath`~
9969 test -d \$dldir || mkdir -p \$dldir~
9970 $install_prog $dir/$dlname \$dldir/$dlname'
9971 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9972 dlpath=$dir/\$dldll~
9973 $RM \$dlpath'
9974 shlibpath_overrides_runpath=yes
9975 dynamic_linker='Win32 link.exe'
9979 # Assume MSVC wrapper
9980 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
9981 dynamic_linker='Win32 ld.exe'
9983 esac
9984 # FIXME: first we should search . and the directory the executable is in
9985 shlibpath_var=PATH
9988 darwin* | rhapsody*)
9989 dynamic_linker="$host_os dyld"
9990 version_type=darwin
9991 need_lib_prefix=no
9992 need_version=no
9993 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
9994 soname_spec='$libname$release$major$shared_ext'
9995 shlibpath_overrides_runpath=yes
9996 shlibpath_var=DYLD_LIBRARY_PATH
9997 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9999 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10000 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10003 dgux*)
10004 version_type=linux # correct to gnu/linux during the next big refactor
10005 need_lib_prefix=no
10006 need_version=no
10007 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10008 soname_spec='$libname$release$shared_ext$major'
10009 shlibpath_var=LD_LIBRARY_PATH
10012 freebsd* | dragonfly*)
10013 # DragonFly does not have aout. When/if they implement a new
10014 # versioning mechanism, adjust this.
10015 if test -x /usr/bin/objformat; then
10016 objformat=`/usr/bin/objformat`
10017 else
10018 case $host_os in
10019 freebsd[23].*) objformat=aout ;;
10020 *) objformat=elf ;;
10021 esac
10023 version_type=freebsd-$objformat
10024 case $version_type in
10025 freebsd-elf*)
10026 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10027 soname_spec='$libname$release$shared_ext$major'
10028 need_version=no
10029 need_lib_prefix=no
10031 freebsd-*)
10032 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10033 need_version=yes
10035 esac
10036 shlibpath_var=LD_LIBRARY_PATH
10037 case $host_os in
10038 freebsd2.*)
10039 shlibpath_overrides_runpath=yes
10041 freebsd3.[01]* | freebsdelf3.[01]*)
10042 shlibpath_overrides_runpath=yes
10043 hardcode_into_libs=yes
10045 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10046 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10047 shlibpath_overrides_runpath=no
10048 hardcode_into_libs=yes
10050 *) # from 4.6 on, and DragonFly
10051 shlibpath_overrides_runpath=yes
10052 hardcode_into_libs=yes
10054 esac
10057 haiku*)
10058 version_type=linux # correct to gnu/linux during the next big refactor
10059 need_lib_prefix=no
10060 need_version=no
10061 dynamic_linker="$host_os runtime_loader"
10062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10063 soname_spec='$libname$release$shared_ext$major'
10064 shlibpath_var=LIBRARY_PATH
10065 shlibpath_overrides_runpath=no
10066 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10067 hardcode_into_libs=yes
10070 hpux9* | hpux10* | hpux11*)
10071 # Give a soname corresponding to the major version so that dld.sl refuses to
10072 # link against other versions.
10073 version_type=sunos
10074 need_lib_prefix=no
10075 need_version=no
10076 case $host_cpu in
10077 ia64*)
10078 shrext_cmds='.so'
10079 hardcode_into_libs=yes
10080 dynamic_linker="$host_os dld.so"
10081 shlibpath_var=LD_LIBRARY_PATH
10082 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10083 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10084 soname_spec='$libname$release$shared_ext$major'
10085 if test 32 = "$HPUX_IA64_MODE"; then
10086 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10087 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10088 else
10089 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10090 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10093 hppa*64*)
10094 shrext_cmds='.sl'
10095 hardcode_into_libs=yes
10096 dynamic_linker="$host_os dld.sl"
10097 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10098 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10099 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10100 soname_spec='$libname$release$shared_ext$major'
10101 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10102 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10105 shrext_cmds='.sl'
10106 dynamic_linker="$host_os dld.sl"
10107 shlibpath_var=SHLIB_PATH
10108 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10109 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10110 soname_spec='$libname$release$shared_ext$major'
10112 esac
10113 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10114 postinstall_cmds='chmod 555 $lib'
10115 # or fails outright, so override atomically:
10116 install_override_mode=555
10119 interix[3-9]*)
10120 version_type=linux # correct to gnu/linux during the next big refactor
10121 need_lib_prefix=no
10122 need_version=no
10123 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10124 soname_spec='$libname$release$shared_ext$major'
10125 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10126 shlibpath_var=LD_LIBRARY_PATH
10127 shlibpath_overrides_runpath=no
10128 hardcode_into_libs=yes
10131 irix5* | irix6* | nonstopux*)
10132 case $host_os in
10133 nonstopux*) version_type=nonstopux ;;
10135 if test yes = "$lt_cv_prog_gnu_ld"; then
10136 version_type=linux # correct to gnu/linux during the next big refactor
10137 else
10138 version_type=irix
10139 fi ;;
10140 esac
10141 need_lib_prefix=no
10142 need_version=no
10143 soname_spec='$libname$release$shared_ext$major'
10144 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10145 case $host_os in
10146 irix5* | nonstopux*)
10147 libsuff= shlibsuff=
10150 case $LD in # libtool.m4 will add one of these switches to LD
10151 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10152 libsuff= shlibsuff= libmagic=32-bit;;
10153 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10154 libsuff=32 shlibsuff=N32 libmagic=N32;;
10155 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10156 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10157 *) libsuff= shlibsuff= libmagic=never-match;;
10158 esac
10160 esac
10161 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10162 shlibpath_overrides_runpath=no
10163 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10164 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10165 hardcode_into_libs=yes
10168 # No shared lib support for Linux oldld, aout, or coff.
10169 linux*oldld* | linux*aout* | linux*coff*)
10170 dynamic_linker=no
10173 linux*android*)
10174 version_type=none # Android doesn't support versioned libraries.
10175 need_lib_prefix=no
10176 need_version=no
10177 library_names_spec='$libname$release$shared_ext'
10178 soname_spec='$libname$release$shared_ext'
10179 finish_cmds=
10180 shlibpath_var=LD_LIBRARY_PATH
10181 shlibpath_overrides_runpath=yes
10183 # This implies no fast_install, which is unacceptable.
10184 # Some rework will be needed to allow for fast_install
10185 # before this can be enabled.
10186 hardcode_into_libs=yes
10188 dynamic_linker='Android linker'
10189 # Don't embed -rpath directories since the linker doesn't support them.
10190 hardcode_libdir_flag_spec='-L$libdir'
10193 # This must be glibc/ELF.
10194 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10195 version_type=linux # correct to gnu/linux during the next big refactor
10196 need_lib_prefix=no
10197 need_version=no
10198 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10199 soname_spec='$libname$release$shared_ext$major'
10200 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10201 shlibpath_var=LD_LIBRARY_PATH
10202 shlibpath_overrides_runpath=no
10204 # Some binutils ld are patched to set DT_RUNPATH
10205 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10206 $as_echo_n "(cached) " >&6
10207 else
10208 lt_cv_shlibpath_overrides_runpath=no
10209 save_LDFLAGS=$LDFLAGS
10210 save_libdir=$libdir
10211 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10212 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214 /* end confdefs.h. */
10217 main ()
10221 return 0;
10223 _ACEOF
10224 if ac_fn_c_try_link "$LINENO"; then :
10225 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10226 lt_cv_shlibpath_overrides_runpath=yes
10229 rm -f core conftest.err conftest.$ac_objext \
10230 conftest$ac_exeext conftest.$ac_ext
10231 LDFLAGS=$save_LDFLAGS
10232 libdir=$save_libdir
10236 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10238 # This implies no fast_install, which is unacceptable.
10239 # Some rework will be needed to allow for fast_install
10240 # before this can be enabled.
10241 hardcode_into_libs=yes
10243 # Ideally, we could use ldconfig to report *all* directores which are
10244 # searched for libraries, however this is still not possible. Aside from not
10245 # being certain /sbin/ldconfig is available, command
10246 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10247 # even though it is searched at run-time. Try to do the best guess by
10248 # appending ld.so.conf contents (and includes) to the search path.
10249 if test -f /etc/ld.so.conf; then
10250 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' ' '`
10251 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10254 # We used to test for /lib/ld.so.1 and disable shared libraries on
10255 # powerpc, because MkLinux only supported shared libraries with the
10256 # GNU dynamic linker. Since this was broken with cross compilers,
10257 # most powerpc-linux boxes support dynamic linking these days and
10258 # people can always --disable-shared, the test was removed, and we
10259 # assume the GNU/Linux dynamic linker is in use.
10260 dynamic_linker='GNU/Linux ld.so'
10263 netbsdelf*-gnu)
10264 version_type=linux
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='NetBSD ld.elf_so'
10275 netbsd*)
10276 version_type=sunos
10277 need_lib_prefix=no
10278 need_version=no
10279 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10280 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10281 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10282 dynamic_linker='NetBSD (a.out) ld.so'
10283 else
10284 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10285 soname_spec='$libname$release$shared_ext$major'
10286 dynamic_linker='NetBSD ld.elf_so'
10288 shlibpath_var=LD_LIBRARY_PATH
10289 shlibpath_overrides_runpath=yes
10290 hardcode_into_libs=yes
10293 newsos6)
10294 version_type=linux # correct to gnu/linux during the next big refactor
10295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10296 shlibpath_var=LD_LIBRARY_PATH
10297 shlibpath_overrides_runpath=yes
10300 *nto* | *qnx*)
10301 version_type=qnx
10302 need_lib_prefix=no
10303 need_version=no
10304 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10305 soname_spec='$libname$release$shared_ext$major'
10306 shlibpath_var=LD_LIBRARY_PATH
10307 shlibpath_overrides_runpath=no
10308 hardcode_into_libs=yes
10309 dynamic_linker='ldqnx.so'
10312 openbsd* | bitrig*)
10313 version_type=sunos
10314 sys_lib_dlsearch_path_spec=/usr/lib
10315 need_lib_prefix=no
10316 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10317 need_version=no
10318 else
10319 need_version=yes
10321 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10322 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10323 shlibpath_var=LD_LIBRARY_PATH
10324 shlibpath_overrides_runpath=yes
10327 os2*)
10328 libname_spec='$name'
10329 version_type=windows
10330 shrext_cmds=.dll
10331 need_version=no
10332 need_lib_prefix=no
10333 # OS/2 can only load a DLL with a base name of 8 characters or less.
10334 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10335 v=$($ECHO $release$versuffix | tr -d .-);
10336 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10337 $ECHO $n$v`$shared_ext'
10338 library_names_spec='${libname}_dll.$libext'
10339 dynamic_linker='OS/2 ld.exe'
10340 shlibpath_var=BEGINLIBPATH
10341 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10343 postinstall_cmds='base_file=`basename \$file`~
10344 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10345 dldir=$destdir/`dirname \$dlpath`~
10346 test -d \$dldir || mkdir -p \$dldir~
10347 $install_prog $dir/$dlname \$dldir/$dlname~
10348 chmod a+x \$dldir/$dlname~
10349 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10350 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10352 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10353 dlpath=$dir/\$dldll~
10354 $RM \$dlpath'
10357 osf3* | osf4* | osf5*)
10358 version_type=osf
10359 need_lib_prefix=no
10360 need_version=no
10361 soname_spec='$libname$release$shared_ext$major'
10362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10363 shlibpath_var=LD_LIBRARY_PATH
10364 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10368 rdos*)
10369 dynamic_linker=no
10372 solaris*)
10373 version_type=linux # correct to gnu/linux during the next big refactor
10374 need_lib_prefix=no
10375 need_version=no
10376 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10377 soname_spec='$libname$release$shared_ext$major'
10378 shlibpath_var=LD_LIBRARY_PATH
10379 shlibpath_overrides_runpath=yes
10380 hardcode_into_libs=yes
10381 # ldd complains unless libraries are executable
10382 postinstall_cmds='chmod +x $lib'
10385 sunos4*)
10386 version_type=sunos
10387 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10388 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10389 shlibpath_var=LD_LIBRARY_PATH
10390 shlibpath_overrides_runpath=yes
10391 if test yes = "$with_gnu_ld"; then
10392 need_lib_prefix=no
10394 need_version=yes
10397 sysv4 | sysv4.3*)
10398 version_type=linux # correct to gnu/linux during the next big refactor
10399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10400 soname_spec='$libname$release$shared_ext$major'
10401 shlibpath_var=LD_LIBRARY_PATH
10402 case $host_vendor in
10403 sni)
10404 shlibpath_overrides_runpath=no
10405 need_lib_prefix=no
10406 runpath_var=LD_RUN_PATH
10408 siemens)
10409 need_lib_prefix=no
10411 motorola)
10412 need_lib_prefix=no
10413 need_version=no
10414 shlibpath_overrides_runpath=no
10415 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10417 esac
10420 sysv4*MP*)
10421 if test -d /usr/nec; then
10422 version_type=linux # correct to gnu/linux during the next big refactor
10423 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10424 soname_spec='$libname$shared_ext.$major'
10425 shlibpath_var=LD_LIBRARY_PATH
10429 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10430 version_type=sco
10431 need_lib_prefix=no
10432 need_version=no
10433 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10434 soname_spec='$libname$release$shared_ext$major'
10435 shlibpath_var=LD_LIBRARY_PATH
10436 shlibpath_overrides_runpath=yes
10437 hardcode_into_libs=yes
10438 if test yes = "$with_gnu_ld"; then
10439 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10440 else
10441 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10442 case $host_os in
10443 sco3.2v5*)
10444 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10446 esac
10448 sys_lib_dlsearch_path_spec='/usr/lib'
10451 tpf*)
10452 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10453 version_type=linux # correct to gnu/linux during the next big refactor
10454 need_lib_prefix=no
10455 need_version=no
10456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10457 shlibpath_var=LD_LIBRARY_PATH
10458 shlibpath_overrides_runpath=no
10459 hardcode_into_libs=yes
10462 uts4*)
10463 version_type=linux # correct to gnu/linux during the next big refactor
10464 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10465 soname_spec='$libname$release$shared_ext$major'
10466 shlibpath_var=LD_LIBRARY_PATH
10470 dynamic_linker=no
10472 esac
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10474 $as_echo "$dynamic_linker" >&6; }
10475 test no = "$dynamic_linker" && can_build_shared=no
10477 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10478 if test yes = "$GCC"; then
10479 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10482 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10483 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
10486 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10487 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
10490 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
10491 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
10493 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
10494 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
10496 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
10497 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10596 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10597 hardcode_action=
10598 if test -n "$hardcode_libdir_flag_spec" ||
10599 test -n "$runpath_var" ||
10600 test yes = "$hardcode_automatic"; then
10602 # We can hardcode non-existent directories.
10603 if test no != "$hardcode_direct" &&
10604 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10605 # have to relink, otherwise we might link with an installed library
10606 # when we should be linking with a yet-to-be-installed one
10607 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
10608 test no != "$hardcode_minus_L"; then
10609 # Linking always hardcodes the temporary library directory.
10610 hardcode_action=relink
10611 else
10612 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10613 hardcode_action=immediate
10615 else
10616 # We cannot hardcode anything, or else we can only hardcode existing
10617 # directories.
10618 hardcode_action=unsupported
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10621 $as_echo "$hardcode_action" >&6; }
10623 if test relink = "$hardcode_action" ||
10624 test yes = "$inherit_rpath"; then
10625 # Fast installation is not supported
10626 enable_fast_install=no
10627 elif test yes = "$shlibpath_overrides_runpath" ||
10628 test no = "$enable_shared"; then
10629 # Fast installation is not necessary
10630 enable_fast_install=needless
10638 if test yes != "$enable_dlopen"; then
10639 enable_dlopen=unknown
10640 enable_dlopen_self=unknown
10641 enable_dlopen_self_static=unknown
10642 else
10643 lt_cv_dlopen=no
10644 lt_cv_dlopen_libs=
10646 case $host_os in
10647 beos*)
10648 lt_cv_dlopen=load_add_on
10649 lt_cv_dlopen_libs=
10650 lt_cv_dlopen_self=yes
10653 mingw* | pw32* | cegcc*)
10654 lt_cv_dlopen=LoadLibrary
10655 lt_cv_dlopen_libs=
10658 cygwin*)
10659 lt_cv_dlopen=dlopen
10660 lt_cv_dlopen_libs=
10663 darwin*)
10664 # if libdl is installed we need to link against it
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10666 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10667 if ${ac_cv_lib_dl_dlopen+:} false; then :
10668 $as_echo_n "(cached) " >&6
10669 else
10670 ac_check_lib_save_LIBS=$LIBS
10671 LIBS="-ldl $LIBS"
10672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h. */
10675 /* Override any GCC internal prototype to avoid an error.
10676 Use char because int might match the return type of a GCC
10677 builtin and then its argument prototype would still apply. */
10678 #ifdef __cplusplus
10679 extern "C"
10680 #endif
10681 char dlopen ();
10683 main ()
10685 return dlopen ();
10687 return 0;
10689 _ACEOF
10690 if ac_fn_c_try_link "$LINENO"; then :
10691 ac_cv_lib_dl_dlopen=yes
10692 else
10693 ac_cv_lib_dl_dlopen=no
10695 rm -f core conftest.err conftest.$ac_objext \
10696 conftest$ac_exeext conftest.$ac_ext
10697 LIBS=$ac_check_lib_save_LIBS
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10700 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10701 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10702 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
10703 else
10705 lt_cv_dlopen=dyld
10706 lt_cv_dlopen_libs=
10707 lt_cv_dlopen_self=yes
10713 tpf*)
10714 # Don't try to run any link tests for TPF. We know it's impossible
10715 # because TPF is a cross-compiler, and we know how we open DSOs.
10716 lt_cv_dlopen=dlopen
10717 lt_cv_dlopen_libs=
10718 lt_cv_dlopen_self=no
10722 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10723 if test "x$ac_cv_func_shl_load" = xyes; then :
10724 lt_cv_dlopen=shl_load
10725 else
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10727 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10728 if ${ac_cv_lib_dld_shl_load+:} false; then :
10729 $as_echo_n "(cached) " >&6
10730 else
10731 ac_check_lib_save_LIBS=$LIBS
10732 LIBS="-ldld $LIBS"
10733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10736 /* Override any GCC internal prototype to avoid an error.
10737 Use char because int might match the return type of a GCC
10738 builtin and then its argument prototype would still apply. */
10739 #ifdef __cplusplus
10740 extern "C"
10741 #endif
10742 char shl_load ();
10744 main ()
10746 return shl_load ();
10748 return 0;
10750 _ACEOF
10751 if ac_fn_c_try_link "$LINENO"; then :
10752 ac_cv_lib_dld_shl_load=yes
10753 else
10754 ac_cv_lib_dld_shl_load=no
10756 rm -f core conftest.err conftest.$ac_objext \
10757 conftest$ac_exeext conftest.$ac_ext
10758 LIBS=$ac_check_lib_save_LIBS
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10761 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10762 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10763 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
10764 else
10765 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10766 if test "x$ac_cv_func_dlopen" = xyes; then :
10767 lt_cv_dlopen=dlopen
10768 else
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10770 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10771 if ${ac_cv_lib_dl_dlopen+:} false; then :
10772 $as_echo_n "(cached) " >&6
10773 else
10774 ac_check_lib_save_LIBS=$LIBS
10775 LIBS="-ldl $LIBS"
10776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10779 /* Override any GCC internal prototype to avoid an error.
10780 Use char because int might match the return type of a GCC
10781 builtin and then its argument prototype would still apply. */
10782 #ifdef __cplusplus
10783 extern "C"
10784 #endif
10785 char dlopen ();
10787 main ()
10789 return dlopen ();
10791 return 0;
10793 _ACEOF
10794 if ac_fn_c_try_link "$LINENO"; then :
10795 ac_cv_lib_dl_dlopen=yes
10796 else
10797 ac_cv_lib_dl_dlopen=no
10799 rm -f core conftest.err conftest.$ac_objext \
10800 conftest$ac_exeext conftest.$ac_ext
10801 LIBS=$ac_check_lib_save_LIBS
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10804 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10805 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10806 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
10807 else
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10809 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10810 if ${ac_cv_lib_svld_dlopen+:} false; then :
10811 $as_echo_n "(cached) " >&6
10812 else
10813 ac_check_lib_save_LIBS=$LIBS
10814 LIBS="-lsvld $LIBS"
10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816 /* end confdefs.h. */
10818 /* Override any GCC internal prototype to avoid an error.
10819 Use char because int might match the return type of a GCC
10820 builtin and then its argument prototype would still apply. */
10821 #ifdef __cplusplus
10822 extern "C"
10823 #endif
10824 char dlopen ();
10826 main ()
10828 return dlopen ();
10830 return 0;
10832 _ACEOF
10833 if ac_fn_c_try_link "$LINENO"; then :
10834 ac_cv_lib_svld_dlopen=yes
10835 else
10836 ac_cv_lib_svld_dlopen=no
10838 rm -f core conftest.err conftest.$ac_objext \
10839 conftest$ac_exeext conftest.$ac_ext
10840 LIBS=$ac_check_lib_save_LIBS
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10843 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10844 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10845 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
10846 else
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10848 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10849 if ${ac_cv_lib_dld_dld_link+:} false; then :
10850 $as_echo_n "(cached) " >&6
10851 else
10852 ac_check_lib_save_LIBS=$LIBS
10853 LIBS="-ldld $LIBS"
10854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h. */
10857 /* Override any GCC internal prototype to avoid an error.
10858 Use char because int might match the return type of a GCC
10859 builtin and then its argument prototype would still apply. */
10860 #ifdef __cplusplus
10861 extern "C"
10862 #endif
10863 char dld_link ();
10865 main ()
10867 return dld_link ();
10869 return 0;
10871 _ACEOF
10872 if ac_fn_c_try_link "$LINENO"; then :
10873 ac_cv_lib_dld_dld_link=yes
10874 else
10875 ac_cv_lib_dld_dld_link=no
10877 rm -f core conftest.err conftest.$ac_objext \
10878 conftest$ac_exeext conftest.$ac_ext
10879 LIBS=$ac_check_lib_save_LIBS
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10882 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10883 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10884 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
10903 esac
10905 if test no = "$lt_cv_dlopen"; then
10906 enable_dlopen=no
10907 else
10908 enable_dlopen=yes
10911 case $lt_cv_dlopen in
10912 dlopen)
10913 save_CPPFLAGS=$CPPFLAGS
10914 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10916 save_LDFLAGS=$LDFLAGS
10917 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10919 save_LIBS=$LIBS
10920 LIBS="$lt_cv_dlopen_libs $LIBS"
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10923 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10924 if ${lt_cv_dlopen_self+:} false; then :
10925 $as_echo_n "(cached) " >&6
10926 else
10927 if test yes = "$cross_compiling"; then :
10928 lt_cv_dlopen_self=cross
10929 else
10930 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10931 lt_status=$lt_dlunknown
10932 cat > conftest.$ac_ext <<_LT_EOF
10933 #line $LINENO "configure"
10934 #include "confdefs.h"
10936 #if HAVE_DLFCN_H
10937 #include <dlfcn.h>
10938 #endif
10940 #include <stdio.h>
10942 #ifdef RTLD_GLOBAL
10943 # define LT_DLGLOBAL RTLD_GLOBAL
10944 #else
10945 # ifdef DL_GLOBAL
10946 # define LT_DLGLOBAL DL_GLOBAL
10947 # else
10948 # define LT_DLGLOBAL 0
10949 # endif
10950 #endif
10952 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10953 find out it does not work in some platform. */
10954 #ifndef LT_DLLAZY_OR_NOW
10955 # ifdef RTLD_LAZY
10956 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10957 # else
10958 # ifdef DL_LAZY
10959 # define LT_DLLAZY_OR_NOW DL_LAZY
10960 # else
10961 # ifdef RTLD_NOW
10962 # define LT_DLLAZY_OR_NOW RTLD_NOW
10963 # else
10964 # ifdef DL_NOW
10965 # define LT_DLLAZY_OR_NOW DL_NOW
10966 # else
10967 # define LT_DLLAZY_OR_NOW 0
10968 # endif
10969 # endif
10970 # endif
10971 # endif
10972 #endif
10974 /* When -fvisibility=hidden is used, assume the code has been annotated
10975 correspondingly for the symbols needed. */
10976 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10977 int fnord () __attribute__((visibility("default")));
10978 #endif
10980 int fnord () { return 42; }
10981 int main ()
10983 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10984 int status = $lt_dlunknown;
10986 if (self)
10988 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10989 else
10991 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10992 else puts (dlerror ());
10994 /* dlclose (self); */
10996 else
10997 puts (dlerror ());
10999 return status;
11001 _LT_EOF
11002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11003 (eval $ac_link) 2>&5
11004 ac_status=$?
11005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11006 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11007 (./conftest; exit; ) >&5 2>/dev/null
11008 lt_status=$?
11009 case x$lt_status in
11010 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11011 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11012 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11013 esac
11014 else :
11015 # compilation failed
11016 lt_cv_dlopen_self=no
11019 rm -fr conftest*
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11024 $as_echo "$lt_cv_dlopen_self" >&6; }
11026 if test yes = "$lt_cv_dlopen_self"; then
11027 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11029 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11030 if ${lt_cv_dlopen_self_static+:} false; then :
11031 $as_echo_n "(cached) " >&6
11032 else
11033 if test yes = "$cross_compiling"; then :
11034 lt_cv_dlopen_self_static=cross
11035 else
11036 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11037 lt_status=$lt_dlunknown
11038 cat > conftest.$ac_ext <<_LT_EOF
11039 #line $LINENO "configure"
11040 #include "confdefs.h"
11042 #if HAVE_DLFCN_H
11043 #include <dlfcn.h>
11044 #endif
11046 #include <stdio.h>
11048 #ifdef RTLD_GLOBAL
11049 # define LT_DLGLOBAL RTLD_GLOBAL
11050 #else
11051 # ifdef DL_GLOBAL
11052 # define LT_DLGLOBAL DL_GLOBAL
11053 # else
11054 # define LT_DLGLOBAL 0
11055 # endif
11056 #endif
11058 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11059 find out it does not work in some platform. */
11060 #ifndef LT_DLLAZY_OR_NOW
11061 # ifdef RTLD_LAZY
11062 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11063 # else
11064 # ifdef DL_LAZY
11065 # define LT_DLLAZY_OR_NOW DL_LAZY
11066 # else
11067 # ifdef RTLD_NOW
11068 # define LT_DLLAZY_OR_NOW RTLD_NOW
11069 # else
11070 # ifdef DL_NOW
11071 # define LT_DLLAZY_OR_NOW DL_NOW
11072 # else
11073 # define LT_DLLAZY_OR_NOW 0
11074 # endif
11075 # endif
11076 # endif
11077 # endif
11078 #endif
11080 /* When -fvisibility=hidden is used, assume the code has been annotated
11081 correspondingly for the symbols needed. */
11082 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11083 int fnord () __attribute__((visibility("default")));
11084 #endif
11086 int fnord () { return 42; }
11087 int main ()
11089 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11090 int status = $lt_dlunknown;
11092 if (self)
11094 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11095 else
11097 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11098 else puts (dlerror ());
11100 /* dlclose (self); */
11102 else
11103 puts (dlerror ());
11105 return status;
11107 _LT_EOF
11108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11109 (eval $ac_link) 2>&5
11110 ac_status=$?
11111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11112 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11113 (./conftest; exit; ) >&5 2>/dev/null
11114 lt_status=$?
11115 case x$lt_status in
11116 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11117 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11118 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11119 esac
11120 else :
11121 # compilation failed
11122 lt_cv_dlopen_self_static=no
11125 rm -fr conftest*
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11130 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11133 CPPFLAGS=$save_CPPFLAGS
11134 LDFLAGS=$save_LDFLAGS
11135 LIBS=$save_LIBS
11137 esac
11139 case $lt_cv_dlopen_self in
11140 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11141 *) enable_dlopen_self=unknown ;;
11142 esac
11144 case $lt_cv_dlopen_self_static in
11145 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11146 *) enable_dlopen_self_static=unknown ;;
11147 esac
11166 striplib=
11167 old_striplib=
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11169 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11170 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11171 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11172 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11174 $as_echo "yes" >&6; }
11175 else
11176 # FIXME - insert some real tests, host_os isn't really good enough
11177 case $host_os in
11178 darwin*)
11179 if test -n "$STRIP"; then
11180 striplib="$STRIP -x"
11181 old_striplib="$STRIP -S"
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11183 $as_echo "yes" >&6; }
11184 else
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186 $as_echo "no" >&6; }
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11191 $as_echo "no" >&6; }
11193 esac
11207 # Report what library types will actually be built
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11209 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11211 $as_echo "$can_build_shared" >&6; }
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11214 $as_echo_n "checking whether to build shared libraries... " >&6; }
11215 test no = "$can_build_shared" && enable_shared=no
11217 # On AIX, shared libraries and static libraries use the same namespace, and
11218 # are all built from PIC.
11219 case $host_os in
11220 aix3*)
11221 test yes = "$enable_shared" && enable_static=no
11222 if test -n "$RANLIB"; then
11223 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11224 postinstall_cmds='$RANLIB $lib'
11228 aix[4-9]*)
11229 if test ia64 != "$host_cpu"; then
11230 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11231 yes,aix,yes) ;; # shared object as lib.so file only
11232 yes,svr4,*) ;; # shared object as lib.so archive member only
11233 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11234 esac
11237 esac
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11239 $as_echo "$enable_shared" >&6; }
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11242 $as_echo_n "checking whether to build static libraries... " >&6; }
11243 # Make sure either enable_shared or enable_static is yes.
11244 test yes = "$enable_shared" || enable_static=yes
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11246 $as_echo "$enable_static" >&6; }
11252 ac_ext=c
11253 ac_cpp='$CPP $CPPFLAGS'
11254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11258 CC=$lt_save_CC
11274 ac_config_commands="$ac_config_commands libtool"
11279 # Only expand once:
11282 # Find a good install program. We prefer a C program (faster),
11283 # so one script is as good as another. But avoid the broken or
11284 # incompatible versions:
11285 # SysV /etc/install, /usr/sbin/install
11286 # SunOS /usr/etc/install
11287 # IRIX /sbin/install
11288 # AIX /bin/install
11289 # AmigaOS /C/install, which installs bootblocks on floppy discs
11290 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11291 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11292 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11293 # OS/2's system install, which has a completely different semantic
11294 # ./install, which can be erroneously created by make from ./install.sh.
11295 # Reject install programs that cannot install multiple files.
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11297 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11298 if test -z "$INSTALL"; then
11299 if ${ac_cv_path_install+:} false; then :
11300 $as_echo_n "(cached) " >&6
11301 else
11302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11303 for as_dir in $PATH
11305 IFS=$as_save_IFS
11306 test -z "$as_dir" && as_dir=.
11307 # Account for people who put trailing slashes in PATH elements.
11308 case $as_dir/ in #((
11309 ./ | .// | /[cC]/* | \
11310 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11311 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11312 /usr/ucb/* ) ;;
11314 # OSF1 and SCO ODT 3.0 have their own names for install.
11315 # Don't use installbsd from OSF since it installs stuff as root
11316 # by default.
11317 for ac_prog in ginstall scoinst install; do
11318 for ac_exec_ext in '' $ac_executable_extensions; do
11319 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11320 if test $ac_prog = install &&
11321 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11322 # AIX install. It has an incompatible calling convention.
11324 elif test $ac_prog = install &&
11325 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11326 # program-specific install script used by HP pwplus--don't use.
11328 else
11329 rm -rf conftest.one conftest.two conftest.dir
11330 echo one > conftest.one
11331 echo two > conftest.two
11332 mkdir conftest.dir
11333 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11334 test -s conftest.one && test -s conftest.two &&
11335 test -s conftest.dir/conftest.one &&
11336 test -s conftest.dir/conftest.two
11337 then
11338 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11339 break 3
11343 done
11344 done
11346 esac
11348 done
11349 IFS=$as_save_IFS
11351 rm -rf conftest.one conftest.two conftest.dir
11354 if test "${ac_cv_path_install+set}" = set; then
11355 INSTALL=$ac_cv_path_install
11356 else
11357 # As a last resort, use the slow shell script. Don't cache a
11358 # value for INSTALL within a source directory, because that will
11359 # break other packages using the cache if that directory is
11360 # removed, or if the value is a relative name.
11361 INSTALL=$ac_install_sh
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11365 $as_echo "$INSTALL" >&6; }
11367 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11368 # It thinks the first close brace ends the variable substitution.
11369 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11371 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11373 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11376 #########
11377 # Enable large file support (if special flags are necessary)
11379 # Check whether --enable-largefile was given.
11380 if test "${enable_largefile+set}" = set; then :
11381 enableval=$enable_largefile;
11384 if test "$enable_largefile" != no; then
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11387 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11388 if ${ac_cv_sys_largefile_CC+:} false; then :
11389 $as_echo_n "(cached) " >&6
11390 else
11391 ac_cv_sys_largefile_CC=no
11392 if test "$GCC" != yes; then
11393 ac_save_CC=$CC
11394 while :; do
11395 # IRIX 6.2 and later do not support large files by default,
11396 # so use the C compiler's -n32 option if that helps.
11397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11398 /* end confdefs.h. */
11399 #include <sys/types.h>
11400 /* Check that off_t can represent 2**63 - 1 correctly.
11401 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11402 since some C++ compilers masquerading as C compilers
11403 incorrectly reject 9223372036854775807. */
11404 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11405 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11406 && LARGE_OFF_T % 2147483647 == 1)
11407 ? 1 : -1];
11409 main ()
11413 return 0;
11415 _ACEOF
11416 if ac_fn_c_try_compile "$LINENO"; then :
11417 break
11419 rm -f core conftest.err conftest.$ac_objext
11420 CC="$CC -n32"
11421 if ac_fn_c_try_compile "$LINENO"; then :
11422 ac_cv_sys_largefile_CC=' -n32'; break
11424 rm -f core conftest.err conftest.$ac_objext
11425 break
11426 done
11427 CC=$ac_save_CC
11428 rm -f conftest.$ac_ext
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11432 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11433 if test "$ac_cv_sys_largefile_CC" != no; then
11434 CC=$CC$ac_cv_sys_largefile_CC
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11438 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11439 if ${ac_cv_sys_file_offset_bits+:} false; then :
11440 $as_echo_n "(cached) " >&6
11441 else
11442 while :; do
11443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11444 /* end confdefs.h. */
11445 #include <sys/types.h>
11446 /* Check that off_t can represent 2**63 - 1 correctly.
11447 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11448 since some C++ compilers masquerading as C compilers
11449 incorrectly reject 9223372036854775807. */
11450 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11451 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11452 && LARGE_OFF_T % 2147483647 == 1)
11453 ? 1 : -1];
11455 main ()
11459 return 0;
11461 _ACEOF
11462 if ac_fn_c_try_compile "$LINENO"; then :
11463 ac_cv_sys_file_offset_bits=no; break
11465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h. */
11468 #define _FILE_OFFSET_BITS 64
11469 #include <sys/types.h>
11470 /* Check that off_t can represent 2**63 - 1 correctly.
11471 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11472 since some C++ compilers masquerading as C compilers
11473 incorrectly reject 9223372036854775807. */
11474 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11475 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11476 && LARGE_OFF_T % 2147483647 == 1)
11477 ? 1 : -1];
11479 main ()
11483 return 0;
11485 _ACEOF
11486 if ac_fn_c_try_compile "$LINENO"; then :
11487 ac_cv_sys_file_offset_bits=64; break
11489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11490 ac_cv_sys_file_offset_bits=unknown
11491 break
11492 done
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11495 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11496 case $ac_cv_sys_file_offset_bits in #(
11497 no | unknown) ;;
11499 cat >>confdefs.h <<_ACEOF
11500 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11501 _ACEOF
11503 esac
11504 rm -rf conftest*
11505 if test $ac_cv_sys_file_offset_bits = unknown; then
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11507 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11508 if ${ac_cv_sys_large_files+:} false; then :
11509 $as_echo_n "(cached) " >&6
11510 else
11511 while :; do
11512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11513 /* end confdefs.h. */
11514 #include <sys/types.h>
11515 /* Check that off_t can represent 2**63 - 1 correctly.
11516 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11517 since some C++ compilers masquerading as C compilers
11518 incorrectly reject 9223372036854775807. */
11519 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11520 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11521 && LARGE_OFF_T % 2147483647 == 1)
11522 ? 1 : -1];
11524 main ()
11528 return 0;
11530 _ACEOF
11531 if ac_fn_c_try_compile "$LINENO"; then :
11532 ac_cv_sys_large_files=no; break
11534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536 /* end confdefs.h. */
11537 #define _LARGE_FILES 1
11538 #include <sys/types.h>
11539 /* Check that off_t can represent 2**63 - 1 correctly.
11540 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11541 since some C++ compilers masquerading as C compilers
11542 incorrectly reject 9223372036854775807. */
11543 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11544 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11545 && LARGE_OFF_T % 2147483647 == 1)
11546 ? 1 : -1];
11548 main ()
11552 return 0;
11554 _ACEOF
11555 if ac_fn_c_try_compile "$LINENO"; then :
11556 ac_cv_sys_large_files=1; break
11558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11559 ac_cv_sys_large_files=unknown
11560 break
11561 done
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11564 $as_echo "$ac_cv_sys_large_files" >&6; }
11565 case $ac_cv_sys_large_files in #(
11566 no | unknown) ;;
11568 cat >>confdefs.h <<_ACEOF
11569 #define _LARGE_FILES $ac_cv_sys_large_files
11570 _ACEOF
11572 esac
11573 rm -rf conftest*
11580 #########
11581 # Check for needed/wanted data types
11582 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
11583 if test "x$ac_cv_type_int8_t" = xyes; then :
11585 cat >>confdefs.h <<_ACEOF
11586 #define HAVE_INT8_T 1
11587 _ACEOF
11591 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
11592 if test "x$ac_cv_type_int16_t" = xyes; then :
11594 cat >>confdefs.h <<_ACEOF
11595 #define HAVE_INT16_T 1
11596 _ACEOF
11600 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
11601 if test "x$ac_cv_type_int32_t" = xyes; then :
11603 cat >>confdefs.h <<_ACEOF
11604 #define HAVE_INT32_T 1
11605 _ACEOF
11609 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
11610 if test "x$ac_cv_type_int64_t" = xyes; then :
11612 cat >>confdefs.h <<_ACEOF
11613 #define HAVE_INT64_T 1
11614 _ACEOF
11618 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
11619 if test "x$ac_cv_type_intptr_t" = xyes; then :
11621 cat >>confdefs.h <<_ACEOF
11622 #define HAVE_INTPTR_T 1
11623 _ACEOF
11627 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
11628 if test "x$ac_cv_type_uint8_t" = xyes; then :
11630 cat >>confdefs.h <<_ACEOF
11631 #define HAVE_UINT8_T 1
11632 _ACEOF
11636 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
11637 if test "x$ac_cv_type_uint16_t" = xyes; then :
11639 cat >>confdefs.h <<_ACEOF
11640 #define HAVE_UINT16_T 1
11641 _ACEOF
11645 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
11646 if test "x$ac_cv_type_uint32_t" = xyes; then :
11648 cat >>confdefs.h <<_ACEOF
11649 #define HAVE_UINT32_T 1
11650 _ACEOF
11654 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
11655 if test "x$ac_cv_type_uint64_t" = xyes; then :
11657 cat >>confdefs.h <<_ACEOF
11658 #define HAVE_UINT64_T 1
11659 _ACEOF
11663 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
11664 if test "x$ac_cv_type_uintptr_t" = xyes; then :
11666 cat >>confdefs.h <<_ACEOF
11667 #define HAVE_UINTPTR_T 1
11668 _ACEOF
11674 #########
11675 # Check for needed/wanted headers
11676 for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
11677 do :
11678 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11679 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11680 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11681 cat >>confdefs.h <<_ACEOF
11682 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11683 _ACEOF
11687 done
11690 #########
11691 # Figure out whether or not we have these functions
11693 for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime pread pread64 pwrite pwrite64
11694 do :
11695 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11696 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11697 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11698 cat >>confdefs.h <<_ACEOF
11699 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11700 _ACEOF
11703 done
11706 #########
11707 # By default, we use the amalgamation (this may be changed below...)
11709 USE_AMALGAMATION=1
11711 #########
11712 # See whether we can run specific tclsh versions known to work well;
11713 # if not, then we fall back to plain tclsh.
11714 # TODO: try other versions before falling back?
11716 for ac_prog in tclsh8.7 tclsh8.6 tclsh8.5 tclsh
11718 # Extract the first word of "$ac_prog", so it can be a program name with args.
11719 set dummy $ac_prog; ac_word=$2
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11721 $as_echo_n "checking for $ac_word... " >&6; }
11722 if ${ac_cv_prog_TCLSH_CMD+:} false; then :
11723 $as_echo_n "(cached) " >&6
11724 else
11725 if test -n "$TCLSH_CMD"; then
11726 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
11727 else
11728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11729 for as_dir in $PATH
11731 IFS=$as_save_IFS
11732 test -z "$as_dir" && as_dir=.
11733 for ac_exec_ext in '' $ac_executable_extensions; do
11734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11735 ac_cv_prog_TCLSH_CMD="$ac_prog"
11736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11737 break 2
11739 done
11740 done
11741 IFS=$as_save_IFS
11745 TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
11746 if test -n "$TCLSH_CMD"; then
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
11748 $as_echo "$TCLSH_CMD" >&6; }
11749 else
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11751 $as_echo "no" >&6; }
11755 test -n "$TCLSH_CMD" && break
11756 done
11757 test -n "$TCLSH_CMD" || TCLSH_CMD="none"
11759 if test "$TCLSH_CMD" = "none"; then
11760 # If we can't find a local tclsh, then building the amalgamation will fail.
11761 # We act as though --disable-amalgamation has been used.
11762 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
11763 USE_AMALGAMATION=0
11764 TCLSH_CMD="tclsh"
11769 if test "x${TCLLIBDIR+set}" != "xset" ; then
11770 TCLLIBDIR='$(libdir)'
11771 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
11772 TCLLIBDIR=$i
11773 break
11774 done
11775 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
11778 #########
11779 # Set up an appropriate program prefix
11781 if test "$program_prefix" = "NONE"; then
11782 program_prefix=""
11786 VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
11788 $as_echo "$as_me: Version set to $VERSION" >&6;}
11790 RELEASE=`cat $srcdir/VERSION`
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
11792 $as_echo "$as_me: Release set to $RELEASE" >&6;}
11795 #########
11796 # Locate a compiler for the build machine. This compiler should
11797 # generate command-line programs that run on the build machine.
11799 if test x"$cross_compiling" = xno; then
11800 BUILD_CC=$CC
11801 BUILD_CFLAGS=$CFLAGS
11802 else
11803 if test "${BUILD_CC+set}" != set; then
11804 for ac_prog in gcc cc cl
11806 # Extract the first word of "$ac_prog", so it can be a program name with args.
11807 set dummy $ac_prog; ac_word=$2
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11809 $as_echo_n "checking for $ac_word... " >&6; }
11810 if ${ac_cv_prog_BUILD_CC+:} false; then :
11811 $as_echo_n "(cached) " >&6
11812 else
11813 if test -n "$BUILD_CC"; then
11814 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11815 else
11816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11817 for as_dir in $PATH
11819 IFS=$as_save_IFS
11820 test -z "$as_dir" && as_dir=.
11821 for ac_exec_ext in '' $ac_executable_extensions; do
11822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11823 ac_cv_prog_BUILD_CC="$ac_prog"
11824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11825 break 2
11827 done
11828 done
11829 IFS=$as_save_IFS
11833 BUILD_CC=$ac_cv_prog_BUILD_CC
11834 if test -n "$BUILD_CC"; then
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
11836 $as_echo "$BUILD_CC" >&6; }
11837 else
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11839 $as_echo "no" >&6; }
11843 test -n "$BUILD_CC" && break
11844 done
11847 if test "${BUILD_CFLAGS+set}" != set; then
11848 BUILD_CFLAGS="-g"
11853 ##########
11854 # Do we want to support multithreaded use of sqlite
11856 # Check whether --enable-threadsafe was given.
11857 if test "${enable_threadsafe+set}" = set; then :
11858 enableval=$enable_threadsafe;
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
11862 $as_echo_n "checking whether to support threadsafe operation... " >&6; }
11863 if test "$enable_threadsafe" = "no"; then
11864 SQLITE_THREADSAFE=0
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11866 $as_echo "no" >&6; }
11867 else
11868 SQLITE_THREADSAFE=1
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11870 $as_echo "yes" >&6; }
11874 if test "$SQLITE_THREADSAFE" = "1"; then
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
11876 $as_echo_n "checking for library containing pthread_create... " >&6; }
11877 if ${ac_cv_search_pthread_create+:} false; then :
11878 $as_echo_n "(cached) " >&6
11879 else
11880 ac_func_search_save_LIBS=$LIBS
11881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11882 /* end confdefs.h. */
11884 /* Override any GCC internal prototype to avoid an error.
11885 Use char because int might match the return type of a GCC
11886 builtin and then its argument prototype would still apply. */
11887 #ifdef __cplusplus
11888 extern "C"
11889 #endif
11890 char pthread_create ();
11892 main ()
11894 return pthread_create ();
11896 return 0;
11898 _ACEOF
11899 for ac_lib in '' pthread; do
11900 if test -z "$ac_lib"; then
11901 ac_res="none required"
11902 else
11903 ac_res=-l$ac_lib
11904 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11906 if ac_fn_c_try_link "$LINENO"; then :
11907 ac_cv_search_pthread_create=$ac_res
11909 rm -f core conftest.err conftest.$ac_objext \
11910 conftest$ac_exeext
11911 if ${ac_cv_search_pthread_create+:} false; then :
11912 break
11914 done
11915 if ${ac_cv_search_pthread_create+:} false; then :
11917 else
11918 ac_cv_search_pthread_create=no
11920 rm conftest.$ac_ext
11921 LIBS=$ac_func_search_save_LIBS
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
11924 $as_echo "$ac_cv_search_pthread_create" >&6; }
11925 ac_res=$ac_cv_search_pthread_create
11926 if test "$ac_res" != no; then :
11927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
11932 $as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
11933 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
11934 $as_echo_n "(cached) " >&6
11935 else
11936 ac_func_search_save_LIBS=$LIBS
11937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938 /* end confdefs.h. */
11940 /* Override any GCC internal prototype to avoid an error.
11941 Use char because int might match the return type of a GCC
11942 builtin and then its argument prototype would still apply. */
11943 #ifdef __cplusplus
11944 extern "C"
11945 #endif
11946 char pthread_mutexattr_init ();
11948 main ()
11950 return pthread_mutexattr_init ();
11952 return 0;
11954 _ACEOF
11955 for ac_lib in '' pthread; do
11956 if test -z "$ac_lib"; then
11957 ac_res="none required"
11958 else
11959 ac_res=-l$ac_lib
11960 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11962 if ac_fn_c_try_link "$LINENO"; then :
11963 ac_cv_search_pthread_mutexattr_init=$ac_res
11965 rm -f core conftest.err conftest.$ac_objext \
11966 conftest$ac_exeext
11967 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
11968 break
11970 done
11971 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
11973 else
11974 ac_cv_search_pthread_mutexattr_init=no
11976 rm conftest.$ac_ext
11977 LIBS=$ac_func_search_save_LIBS
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
11980 $as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
11981 ac_res=$ac_cv_search_pthread_mutexattr_init
11982 if test "$ac_res" != no; then :
11983 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11989 ##########
11990 # Which crypto library do we use
11993 # Check whether --with-crypto-lib was given.
11994 if test "${with_crypto_lib+set}" = set; then :
11995 withval=$with_crypto_lib; crypto_lib=$withval
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto library to use" >&5
11999 $as_echo_n "checking for crypto library to use... " >&6; }
12000 if test "$crypto_lib" = "none"; then
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12002 $as_echo "none" >&6; }
12003 else
12004 if test "$crypto_lib" = "commoncrypto"; then
12005 CFLAGS="$CFLAGS -DSQLCIPHER_CRYPTO_CC"
12006 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_CC"
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: commoncrypto" >&5
12008 $as_echo "commoncrypto" >&6; }
12009 else
12010 if test "$crypto_lib" = "libtomcrypt"; then
12011 CFLAGS="$CFLAGS -DSQLCIPHER_CRYPTO_LIBTOMCRYPT"
12012 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_LIBTOMCRYPT"
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libtomcrypt" >&5
12014 $as_echo "libtomcrypt" >&6; }
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for register_cipher in -ltomcrypt" >&5
12016 $as_echo_n "checking for register_cipher in -ltomcrypt... " >&6; }
12017 if ${ac_cv_lib_tomcrypt_register_cipher+:} false; then :
12018 $as_echo_n "(cached) " >&6
12019 else
12020 ac_check_lib_save_LIBS=$LIBS
12021 LIBS="-ltomcrypt $LIBS"
12022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12023 /* end confdefs.h. */
12025 /* Override any GCC internal prototype to avoid an error.
12026 Use char because int might match the return type of a GCC
12027 builtin and then its argument prototype would still apply. */
12028 #ifdef __cplusplus
12029 extern "C"
12030 #endif
12031 char register_cipher ();
12033 main ()
12035 return register_cipher ();
12037 return 0;
12039 _ACEOF
12040 if ac_fn_c_try_link "$LINENO"; then :
12041 ac_cv_lib_tomcrypt_register_cipher=yes
12042 else
12043 ac_cv_lib_tomcrypt_register_cipher=no
12045 rm -f core conftest.err conftest.$ac_objext \
12046 conftest$ac_exeext conftest.$ac_ext
12047 LIBS=$ac_check_lib_save_LIBS
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tomcrypt_register_cipher" >&5
12050 $as_echo "$ac_cv_lib_tomcrypt_register_cipher" >&6; }
12051 if test "x$ac_cv_lib_tomcrypt_register_cipher" = xyes; then :
12052 cat >>confdefs.h <<_ACEOF
12053 #define HAVE_LIBTOMCRYPT 1
12054 _ACEOF
12056 LIBS="-ltomcrypt $LIBS"
12058 else
12059 as_fn_error $? "Library crypto not found. Install libtomcrypt!\"" "$LINENO" 5
12062 else
12063 if test "$crypto_lib" = "nss"; then
12064 CFLAGS="$CFLAGS -DSQLCIPHER_CRYPTO_NSS"
12065 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_NSS"
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nss3" >&5
12067 $as_echo "nss3" >&6; }
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PK11_Decrypt in -lnss3" >&5
12069 $as_echo_n "checking for PK11_Decrypt in -lnss3... " >&6; }
12070 if ${ac_cv_lib_nss3_PK11_Decrypt+:} false; then :
12071 $as_echo_n "(cached) " >&6
12072 else
12073 ac_check_lib_save_LIBS=$LIBS
12074 LIBS="-lnss3 $LIBS"
12075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12076 /* end confdefs.h. */
12078 /* Override any GCC internal prototype to avoid an error.
12079 Use char because int might match the return type of a GCC
12080 builtin and then its argument prototype would still apply. */
12081 #ifdef __cplusplus
12082 extern "C"
12083 #endif
12084 char PK11_Decrypt ();
12086 main ()
12088 return PK11_Decrypt ();
12090 return 0;
12092 _ACEOF
12093 if ac_fn_c_try_link "$LINENO"; then :
12094 ac_cv_lib_nss3_PK11_Decrypt=yes
12095 else
12096 ac_cv_lib_nss3_PK11_Decrypt=no
12098 rm -f core conftest.err conftest.$ac_objext \
12099 conftest$ac_exeext conftest.$ac_ext
12100 LIBS=$ac_check_lib_save_LIBS
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_Decrypt" >&5
12103 $as_echo "$ac_cv_lib_nss3_PK11_Decrypt" >&6; }
12104 if test "x$ac_cv_lib_nss3_PK11_Decrypt" = xyes; then :
12105 cat >>confdefs.h <<_ACEOF
12106 #define HAVE_LIBNSS3 1
12107 _ACEOF
12109 LIBS="-lnss3 $LIBS"
12111 else
12112 as_fn_error $? "Library crypto not found. Install nss!\"" "$LINENO" 5
12115 else
12116 CFLAGS="$CFLAGS -DSQLCIPHER_CRYPTO_OPENSSL"
12117 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_OPENSSL"
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: openssl" >&5
12119 $as_echo "openssl" >&6; }
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
12121 $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
12122 if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
12123 $as_echo_n "(cached) " >&6
12124 else
12125 ac_check_lib_save_LIBS=$LIBS
12126 LIBS="-lcrypto $LIBS"
12127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12128 /* end confdefs.h. */
12130 /* Override any GCC internal prototype to avoid an error.
12131 Use char because int might match the return type of a GCC
12132 builtin and then its argument prototype would still apply. */
12133 #ifdef __cplusplus
12134 extern "C"
12135 #endif
12136 char HMAC_Init_ex ();
12138 main ()
12140 return HMAC_Init_ex ();
12142 return 0;
12144 _ACEOF
12145 if ac_fn_c_try_link "$LINENO"; then :
12146 ac_cv_lib_crypto_HMAC_Init_ex=yes
12147 else
12148 ac_cv_lib_crypto_HMAC_Init_ex=no
12150 rm -f core conftest.err conftest.$ac_objext \
12151 conftest$ac_exeext conftest.$ac_ext
12152 LIBS=$ac_check_lib_save_LIBS
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
12155 $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
12156 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
12157 cat >>confdefs.h <<_ACEOF
12158 #define HAVE_LIBCRYPTO 1
12159 _ACEOF
12161 LIBS="-lcrypto $LIBS"
12163 else
12164 as_fn_error $? "Library crypto not found. Install openssl!\"" "$LINENO" 5
12172 ##########
12173 # Do we want to allow a connection created in one thread to be used
12174 # in another thread. This does not work on many Linux systems (ex: RedHat 9)
12175 # due to bugs in the threading implementations. This is thus off by default.
12177 # Check whether --enable-cross-thread-connections was given.
12178 if test "${enable_cross_thread_connections+set}" = set; then :
12179 enableval=$enable_cross_thread_connections;
12180 else
12181 enable_xthreadconnect=no
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allow connections to be shared across threads" >&5
12185 $as_echo_n "checking whether to allow connections to be shared across threads... " >&6; }
12186 if test "$enable_xthreadconnect" = "no"; then
12187 XTHREADCONNECT=''
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12189 $as_echo "no" >&6; }
12190 else
12191 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12193 $as_echo "yes" >&6; }
12197 ##########
12198 # Do we want to support release
12200 # Check whether --enable-releasemode was given.
12201 if test "${enable_releasemode+set}" = set; then :
12202 enableval=$enable_releasemode;
12203 else
12204 enable_releasemode=no
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
12208 $as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
12209 if test "$enable_releasemode" = "no"; then
12210 ALLOWRELEASE=""
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12212 $as_echo "no" >&6; }
12213 else
12214 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12216 $as_echo "yes" >&6; }
12220 ##########
12221 # Do we want temporary databases in memory
12223 # Check whether --enable-tempstore was given.
12224 if test "${enable_tempstore+set}" = set; then :
12225 enableval=$enable_tempstore;
12226 else
12227 enable_tempstore=no
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
12231 $as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
12232 case "$enable_tempstore" in
12233 never )
12234 TEMP_STORE=0
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
12236 $as_echo "never" >&6; }
12238 no )
12239 TEMP_STORE=1
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12241 $as_echo "no" >&6; }
12243 yes )
12244 TEMP_STORE=2
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12246 $as_echo "yes" >&6; }
12248 always )
12249 TEMP_STORE=3
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
12251 $as_echo "always" >&6; }
12254 TEMP_STORE=1
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12256 $as_echo "no" >&6; }
12258 esac
12262 ###########
12263 # Lots of things are different if we are compiling for Windows using
12264 # the CYGWIN environment. So check for that special case and handle
12265 # things accordingly.
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
12268 $as_echo_n "checking if executables have the .exe suffix... " >&6; }
12269 if test "$config_BUILD_EXEEXT" = ".exe"; then
12270 CYGWIN=yes
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12272 $as_echo "yes" >&6; }
12273 else
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12275 $as_echo "unknown" >&6; }
12277 if test "$CYGWIN" != "yes"; then
12279 case $host_os in
12280 *cygwin* ) CYGWIN=yes;;
12281 * ) CYGWIN=no;;
12282 esac
12285 if test "$CYGWIN" = "yes"; then
12286 BUILD_EXEEXT=.exe
12287 else
12288 BUILD_EXEEXT=$EXEEXT
12290 if test x"$cross_compiling" = xno; then
12291 TARGET_EXEEXT=$BUILD_EXEEXT
12292 else
12293 TARGET_EXEEXT=$config_TARGET_EXEEXT
12295 if test "$TARGET_EXEEXT" = ".exe"; then
12296 SQLITE_OS_UNIX=0
12297 SQLITE_OS_WIN=1
12298 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
12299 else
12300 SQLITE_OS_UNIX=1
12301 SQLITE_OS_WIN=0
12302 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
12310 ##########
12311 # Figure out all the parameters needed to compile against Tcl.
12313 # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
12314 # macros in the in the tcl.m4 file of the standard TCL distribution.
12315 # Those macros could not be used directly since we have to make some
12316 # minor changes to accomodate systems that do not have TCL installed.
12318 # Check whether --enable-tcl was given.
12319 if test "${enable_tcl+set}" = set; then :
12320 enableval=$enable_tcl; use_tcl=$enableval
12321 else
12322 use_tcl=yes
12325 if test "${use_tcl}" = "yes" ; then
12327 # Check whether --with-tcl was given.
12328 if test "${with_tcl+set}" = set; then :
12329 withval=$with_tcl; with_tclconfig=${withval}
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
12333 $as_echo_n "checking for Tcl configuration... " >&6; }
12334 if ${ac_cv_c_tclconfig+:} false; then :
12335 $as_echo_n "(cached) " >&6
12336 else
12338 # First check to see if --with-tcl was specified.
12339 if test x"${with_tclconfig}" != x ; then
12340 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12341 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
12342 else
12343 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
12347 # Start autosearch by asking tclsh
12348 if test x"${ac_cv_c_tclconfig}" = x ; then
12349 if test x"$cross_compiling" = xno; then
12350 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
12352 if test -f "$i/tclConfig.sh" ; then
12353 ac_cv_c_tclconfig="$i"
12354 break
12356 done
12360 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
12361 # So try again after applying corrections.
12362 if test x"${ac_cv_c_tclconfig}" = x ; then
12363 if test x"$cross_compiling" = xno; then
12364 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
12366 if test -f "$i/tclConfig.sh" ; then
12367 ac_cv_c_tclconfig="$i"
12368 break
12370 done
12374 # Recent versions of Xcode on Macs hid the tclConfig.sh file
12375 # in a strange place.
12376 if test x"${ac_cv_c_tclconfig}" = x ; then
12377 if test x"$cross_compiling" = xno; then
12378 for i in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.sdk/usr/lib
12380 if test -f "$i/tclConfig.sh" ; then
12381 ac_cv_c_tclconfig="$i"
12382 break
12384 done
12388 # then check for a private Tcl installation
12389 if test x"${ac_cv_c_tclconfig}" = x ; then
12390 for i in \
12391 ../tcl \
12392 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12393 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12394 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12395 ../../tcl \
12396 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12397 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12398 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12399 ../../../tcl \
12400 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12401 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12402 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
12404 if test -f "$i/unix/tclConfig.sh" ; then
12405 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12406 break
12408 done
12411 # check in a few common install locations
12412 if test x"${ac_cv_c_tclconfig}" = x ; then
12413 for i in \
12414 `ls -d ${libdir} 2>/dev/null` \
12415 `ls -d /usr/local/lib 2>/dev/null` \
12416 `ls -d /usr/contrib/lib 2>/dev/null` \
12417 `ls -d /usr/lib 2>/dev/null`
12419 if test -f "$i/tclConfig.sh" ; then
12420 ac_cv_c_tclconfig=`(cd $i; pwd)`
12421 break
12423 done
12426 # check in a few other private locations
12427 if test x"${ac_cv_c_tclconfig}" = x ; then
12428 for i in \
12429 ${srcdir}/../tcl \
12430 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12431 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12432 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
12434 if test -f "$i/unix/tclConfig.sh" ; then
12435 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12436 break
12438 done
12444 if test x"${ac_cv_c_tclconfig}" = x ; then
12445 use_tcl=no
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
12447 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
12449 $as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
12451 $as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
12452 else
12453 TCL_BIN_DIR=${ac_cv_c_tclconfig}
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
12455 $as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
12458 $as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
12459 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
12461 $as_echo "loading" >&6; }
12462 . $TCL_BIN_DIR/tclConfig.sh
12463 else
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
12465 $as_echo "file not found" >&6; }
12469 # If the TCL_BIN_DIR is the build directory (not the install directory),
12470 # then set the common variable name to the value of the build variables.
12471 # For example, the variable TCL_LIB_SPEC will be set to the value
12472 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12473 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12474 # installed and uninstalled version of Tcl.
12477 if test -f $TCL_BIN_DIR/Makefile ; then
12478 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
12479 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
12480 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
12484 # eval is required to do the TCL_DBGX substitution
12487 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12488 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12489 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12491 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12492 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12493 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12510 if test "${use_tcl}" = "no" ; then
12511 HAVE_TCL=""
12512 else
12513 HAVE_TCL=1
12517 ##########
12518 # Figure out what C libraries are required to compile programs
12519 # that use "readline()" library.
12521 TARGET_READLINE_LIBS=""
12522 TARGET_READLINE_INC=""
12523 TARGET_HAVE_READLINE=0
12524 TARGET_HAVE_EDITLINE=0
12525 # Check whether --enable-editline was given.
12526 if test "${enable_editline+set}" = set; then :
12527 enableval=$enable_editline; with_editline=$enableval
12528 else
12529 with_editline=auto
12532 # Check whether --enable-readline was given.
12533 if test "${enable_readline+set}" = set; then :
12534 enableval=$enable_readline; with_readline=$enableval
12535 else
12536 with_readline=auto
12540 if test x"$with_editline" != xno; then
12541 sLIBS=$LIBS
12542 LIBS=""
12543 TARGET_HAVE_EDITLINE=1
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
12545 $as_echo_n "checking for library containing readline... " >&6; }
12546 if ${ac_cv_search_readline+:} false; then :
12547 $as_echo_n "(cached) " >&6
12548 else
12549 ac_func_search_save_LIBS=$LIBS
12550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12551 /* end confdefs.h. */
12553 /* Override any GCC internal prototype to avoid an error.
12554 Use char because int might match the return type of a GCC
12555 builtin and then its argument prototype would still apply. */
12556 #ifdef __cplusplus
12557 extern "C"
12558 #endif
12559 char readline ();
12561 main ()
12563 return readline ();
12565 return 0;
12567 _ACEOF
12568 for ac_lib in '' edit; do
12569 if test -z "$ac_lib"; then
12570 ac_res="none required"
12571 else
12572 ac_res=-l$ac_lib
12573 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12575 if ac_fn_c_try_link "$LINENO"; then :
12576 ac_cv_search_readline=$ac_res
12578 rm -f core conftest.err conftest.$ac_objext \
12579 conftest$ac_exeext
12580 if ${ac_cv_search_readline+:} false; then :
12581 break
12583 done
12584 if ${ac_cv_search_readline+:} false; then :
12586 else
12587 ac_cv_search_readline=no
12589 rm conftest.$ac_ext
12590 LIBS=$ac_func_search_save_LIBS
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
12593 $as_echo "$ac_cv_search_readline" >&6; }
12594 ac_res=$ac_cv_search_readline
12595 if test "$ac_res" != no; then :
12596 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12597 with_readline=no
12598 else
12599 TARGET_HAVE_EDITLINE=0
12602 TARGET_READLINE_LIBS=$LIBS
12603 LIBS=$sLIBS
12605 if test x"$with_readline" != xno; then
12606 found="yes"
12609 # Check whether --with-readline-lib was given.
12610 if test "${with_readline_lib+set}" = set; then :
12611 withval=$with_readline_lib; with_readline_lib=$withval
12612 else
12613 with_readline_lib="auto"
12616 if test "x$with_readline_lib" = xauto; then
12617 save_LIBS="$LIBS"
12618 LIBS=""
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
12620 $as_echo_n "checking for library containing tgetent... " >&6; }
12621 if ${ac_cv_search_tgetent+:} false; then :
12622 $as_echo_n "(cached) " >&6
12623 else
12624 ac_func_search_save_LIBS=$LIBS
12625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12626 /* end confdefs.h. */
12628 /* Override any GCC internal prototype to avoid an error.
12629 Use char because int might match the return type of a GCC
12630 builtin and then its argument prototype would still apply. */
12631 #ifdef __cplusplus
12632 extern "C"
12633 #endif
12634 char tgetent ();
12636 main ()
12638 return tgetent ();
12640 return 0;
12642 _ACEOF
12643 for ac_lib in '' readline ncurses curses termcap; do
12644 if test -z "$ac_lib"; then
12645 ac_res="none required"
12646 else
12647 ac_res=-l$ac_lib
12648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12650 if ac_fn_c_try_link "$LINENO"; then :
12651 ac_cv_search_tgetent=$ac_res
12653 rm -f core conftest.err conftest.$ac_objext \
12654 conftest$ac_exeext
12655 if ${ac_cv_search_tgetent+:} false; then :
12656 break
12658 done
12659 if ${ac_cv_search_tgetent+:} false; then :
12661 else
12662 ac_cv_search_tgetent=no
12664 rm conftest.$ac_ext
12665 LIBS=$ac_func_search_save_LIBS
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
12668 $as_echo "$ac_cv_search_tgetent" >&6; }
12669 ac_res=$ac_cv_search_tgetent
12670 if test "$ac_res" != no; then :
12671 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12672 term_LIBS="$LIBS"
12673 else
12674 term_LIBS=""
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
12678 $as_echo_n "checking for readline in -lreadline... " >&6; }
12679 if ${ac_cv_lib_readline_readline+:} false; then :
12680 $as_echo_n "(cached) " >&6
12681 else
12682 ac_check_lib_save_LIBS=$LIBS
12683 LIBS="-lreadline $LIBS"
12684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h. */
12687 /* Override any GCC internal prototype to avoid an error.
12688 Use char because int might match the return type of a GCC
12689 builtin and then its argument prototype would still apply. */
12690 #ifdef __cplusplus
12691 extern "C"
12692 #endif
12693 char readline ();
12695 main ()
12697 return readline ();
12699 return 0;
12701 _ACEOF
12702 if ac_fn_c_try_link "$LINENO"; then :
12703 ac_cv_lib_readline_readline=yes
12704 else
12705 ac_cv_lib_readline_readline=no
12707 rm -f core conftest.err conftest.$ac_objext \
12708 conftest$ac_exeext conftest.$ac_ext
12709 LIBS=$ac_check_lib_save_LIBS
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
12712 $as_echo "$ac_cv_lib_readline_readline" >&6; }
12713 if test "x$ac_cv_lib_readline_readline" = xyes; then :
12714 TARGET_READLINE_LIBS="-lreadline"
12715 else
12716 found="no"
12719 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
12720 LIBS="$save_LIBS"
12721 else
12722 TARGET_READLINE_LIBS="$with_readline_lib"
12726 # Check whether --with-readline-inc was given.
12727 if test "${with_readline_inc+set}" = set; then :
12728 withval=$with_readline_inc; with_readline_inc=$withval
12729 else
12730 with_readline_inc="auto"
12733 if test "x$with_readline_inc" = xauto; then
12734 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
12735 if test "x$ac_cv_header_readline_h" = xyes; then :
12736 found="yes"
12737 else
12739 found="no"
12740 if test "$cross_compiling" != yes; then
12741 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
12742 for subdir in include include/readline; do
12743 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
12745 $as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
12746 if eval \${$as_ac_File+:} false; then :
12747 $as_echo_n "(cached) " >&6
12748 else
12749 test "$cross_compiling" = yes &&
12750 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
12751 if test -r "$dir/$subdir/readline.h"; then
12752 eval "$as_ac_File=yes"
12753 else
12754 eval "$as_ac_File=no"
12757 eval ac_res=\$$as_ac_File
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12759 $as_echo "$ac_res" >&6; }
12760 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
12761 found=yes
12764 if test "$found" = "yes"; then
12765 TARGET_READLINE_INC="-I$dir/$subdir"
12766 break
12768 done
12769 test "$found" = "yes" && break
12770 done
12776 else
12777 TARGET_READLINE_INC="$with_readline_inc"
12780 if test x"$found" = xno; then
12781 TARGET_READLINE_LIBS=""
12782 TARGET_READLINE_INC=""
12783 TARGET_HAVE_READLINE=0
12784 else
12785 TARGET_HAVE_READLINE=1
12794 ##########
12795 # Figure out what C libraries are required to compile programs
12796 # that use "fdatasync()" function.
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
12799 $as_echo_n "checking for library containing fdatasync... " >&6; }
12800 if ${ac_cv_search_fdatasync+:} false; then :
12801 $as_echo_n "(cached) " >&6
12802 else
12803 ac_func_search_save_LIBS=$LIBS
12804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12805 /* end confdefs.h. */
12807 /* Override any GCC internal prototype to avoid an error.
12808 Use char because int might match the return type of a GCC
12809 builtin and then its argument prototype would still apply. */
12810 #ifdef __cplusplus
12811 extern "C"
12812 #endif
12813 char fdatasync ();
12815 main ()
12817 return fdatasync ();
12819 return 0;
12821 _ACEOF
12822 for ac_lib in '' rt; do
12823 if test -z "$ac_lib"; then
12824 ac_res="none required"
12825 else
12826 ac_res=-l$ac_lib
12827 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12829 if ac_fn_c_try_link "$LINENO"; then :
12830 ac_cv_search_fdatasync=$ac_res
12832 rm -f core conftest.err conftest.$ac_objext \
12833 conftest$ac_exeext
12834 if ${ac_cv_search_fdatasync+:} false; then :
12835 break
12837 done
12838 if ${ac_cv_search_fdatasync+:} false; then :
12840 else
12841 ac_cv_search_fdatasync=no
12843 rm conftest.$ac_ext
12844 LIBS=$ac_func_search_save_LIBS
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
12847 $as_echo "$ac_cv_search_fdatasync" >&6; }
12848 ac_res=$ac_cv_search_fdatasync
12849 if test "$ac_res" != no; then :
12850 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12855 #########
12856 # check for debug enabled
12857 # Check whether --enable-debug was given.
12858 if test "${enable_debug+set}" = set; then :
12859 enableval=$enable_debug;
12862 if test "${enable_debug}" = "yes" ; then
12863 TARGET_DEBUG="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0"
12864 else
12865 TARGET_DEBUG="-DNDEBUG"
12869 #########
12870 # See whether we should use the amalgamation to build
12871 # Check whether --enable-amalgamation was given.
12872 if test "${enable_amalgamation+set}" = set; then :
12873 enableval=$enable_amalgamation;
12876 if test "${enable_amalgamation}" = "no" ; then
12877 USE_AMALGAMATION=0
12881 #########
12882 # By default, amalgamation sqlite3.c will have #line directives.
12883 # This is a build option not shown by ./configure --help
12884 # To control it, use configure option: amalgamation_line_macros=?
12885 # where ? is no to suppress #line directives or yes to create them.
12886 AMALGAMATION_LINE_MACROS=--linemacros=1
12889 if test "${amalgamation_line_macros+set}" = set; then :
12890 enableval=$amalgamation_line_macros;
12892 if test "${amalgamation_line_macros}" = "yes" ; then
12893 AMALGAMATION_LINE_MACROS=--linemacros=1
12895 if test "${amalgamation_line_macros}" = "no" ; then
12896 AMALGAMATION_LINE_MACROS=--linemacros=0
12899 #########
12900 # Look for zlib. Only needed by extensions and by the sqlite3.exe shell
12901 for ac_header in zlib.h
12902 do :
12903 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12904 if test "x$ac_cv_header_zlib_h" = xyes; then :
12905 cat >>confdefs.h <<_ACEOF
12906 #define HAVE_ZLIB_H 1
12907 _ACEOF
12911 done
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
12914 $as_echo_n "checking for library containing deflate... " >&6; }
12915 if ${ac_cv_search_deflate+:} false; then :
12916 $as_echo_n "(cached) " >&6
12917 else
12918 ac_func_search_save_LIBS=$LIBS
12919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12920 /* end confdefs.h. */
12922 /* Override any GCC internal prototype to avoid an error.
12923 Use char because int might match the return type of a GCC
12924 builtin and then its argument prototype would still apply. */
12925 #ifdef __cplusplus
12926 extern "C"
12927 #endif
12928 char deflate ();
12930 main ()
12932 return deflate ();
12934 return 0;
12936 _ACEOF
12937 for ac_lib in '' z; do
12938 if test -z "$ac_lib"; then
12939 ac_res="none required"
12940 else
12941 ac_res=-l$ac_lib
12942 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12944 if ac_fn_c_try_link "$LINENO"; then :
12945 ac_cv_search_deflate=$ac_res
12947 rm -f core conftest.err conftest.$ac_objext \
12948 conftest$ac_exeext
12949 if ${ac_cv_search_deflate+:} false; then :
12950 break
12952 done
12953 if ${ac_cv_search_deflate+:} false; then :
12955 else
12956 ac_cv_search_deflate=no
12958 rm conftest.$ac_ext
12959 LIBS=$ac_func_search_save_LIBS
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
12962 $as_echo "$ac_cv_search_deflate" >&6; }
12963 ac_res=$ac_cv_search_deflate
12964 if test "$ac_res" != no; then :
12965 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12966 HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1"
12967 else
12968 HAVE_ZLIB=""
12973 #########
12974 # See whether we should allow loadable extensions
12975 # Check whether --enable-load-extension was given.
12976 if test "${enable_load_extension+set}" = set; then :
12977 enableval=$enable_load_extension;
12978 else
12979 enable_load_extension=yes
12982 if test "${enable_load_extension}" = "yes" ; then
12983 OPT_FEATURE_FLAGS=""
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12985 $as_echo_n "checking for library containing dlopen... " >&6; }
12986 if ${ac_cv_search_dlopen+:} false; then :
12987 $as_echo_n "(cached) " >&6
12988 else
12989 ac_func_search_save_LIBS=$LIBS
12990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12991 /* end confdefs.h. */
12993 /* Override any GCC internal prototype to avoid an error.
12994 Use char because int might match the return type of a GCC
12995 builtin and then its argument prototype would still apply. */
12996 #ifdef __cplusplus
12997 extern "C"
12998 #endif
12999 char dlopen ();
13001 main ()
13003 return dlopen ();
13005 return 0;
13007 _ACEOF
13008 for ac_lib in '' dl; do
13009 if test -z "$ac_lib"; then
13010 ac_res="none required"
13011 else
13012 ac_res=-l$ac_lib
13013 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13015 if ac_fn_c_try_link "$LINENO"; then :
13016 ac_cv_search_dlopen=$ac_res
13018 rm -f core conftest.err conftest.$ac_objext \
13019 conftest$ac_exeext
13020 if ${ac_cv_search_dlopen+:} false; then :
13021 break
13023 done
13024 if ${ac_cv_search_dlopen+:} false; then :
13026 else
13027 ac_cv_search_dlopen=no
13029 rm conftest.$ac_ext
13030 LIBS=$ac_func_search_save_LIBS
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13033 $as_echo "$ac_cv_search_dlopen" >&6; }
13034 ac_res=$ac_cv_search_dlopen
13035 if test "$ac_res" != no; then :
13036 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13040 else
13041 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
13044 ##########
13045 # Do we want to support memsys3 and/or memsys5
13047 # Check whether --enable-memsys5 was given.
13048 if test "${enable_memsys5+set}" = set; then :
13049 enableval=$enable_memsys5;
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5
13053 $as_echo_n "checking whether to support MEMSYS5... " >&6; }
13054 if test "${enable_memsys5}" = "yes"; then
13055 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5"
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13057 $as_echo "yes" >&6; }
13058 else
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13060 $as_echo "no" >&6; }
13062 # Check whether --enable-memsys3 was given.
13063 if test "${enable_memsys3+set}" = set; then :
13064 enableval=$enable_memsys3;
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5
13068 $as_echo_n "checking whether to support MEMSYS3... " >&6; }
13069 if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then
13070 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3"
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13072 $as_echo "yes" >&6; }
13073 else
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13075 $as_echo "no" >&6; }
13078 ########
13079 # The --enable-extensions argument is short-hand to enable
13080 # multiple extensions.
13081 # Check whether --enable-all was given.
13082 if test "${enable_all+set}" = set; then :
13083 enableval=$enable_all;
13087 #########
13088 # See whether we should enable Full Text Search extensions
13089 # Check whether --enable-fts3 was given.
13090 if test "${enable_fts3+set}" = set; then :
13091 enableval=$enable_fts3;
13094 if test "${enable_fts3}" = "yes" ; then
13095 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3"
13097 # Check whether --enable-fts4 was given.
13098 if test "${enable_fts4+set}" = set; then :
13099 enableval=$enable_fts4;
13102 if test "${enable_fts4}" = "yes" -o "${enable_all}" = "yes" ; then
13103 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4"
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
13105 $as_echo_n "checking for library containing log... " >&6; }
13106 if ${ac_cv_search_log+:} false; then :
13107 $as_echo_n "(cached) " >&6
13108 else
13109 ac_func_search_save_LIBS=$LIBS
13110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13111 /* end confdefs.h. */
13113 /* Override any GCC internal prototype to avoid an error.
13114 Use char because int might match the return type of a GCC
13115 builtin and then its argument prototype would still apply. */
13116 #ifdef __cplusplus
13117 extern "C"
13118 #endif
13119 char log ();
13121 main ()
13123 return log ();
13125 return 0;
13127 _ACEOF
13128 for ac_lib in '' m; do
13129 if test -z "$ac_lib"; then
13130 ac_res="none required"
13131 else
13132 ac_res=-l$ac_lib
13133 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13135 if ac_fn_c_try_link "$LINENO"; then :
13136 ac_cv_search_log=$ac_res
13138 rm -f core conftest.err conftest.$ac_objext \
13139 conftest$ac_exeext
13140 if ${ac_cv_search_log+:} false; then :
13141 break
13143 done
13144 if ${ac_cv_search_log+:} false; then :
13146 else
13147 ac_cv_search_log=no
13149 rm conftest.$ac_ext
13150 LIBS=$ac_func_search_save_LIBS
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
13153 $as_echo "$ac_cv_search_log" >&6; }
13154 ac_res=$ac_cv_search_log
13155 if test "$ac_res" != no; then :
13156 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13161 # Check whether --enable-fts5 was given.
13162 if test "${enable_fts5+set}" = set; then :
13163 enableval=$enable_fts5;
13166 if test "${enable_fts5}" = "yes" -o "${enable_all}" = "yes" ; then
13167 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5"
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
13169 $as_echo_n "checking for library containing log... " >&6; }
13170 if ${ac_cv_search_log+:} false; then :
13171 $as_echo_n "(cached) " >&6
13172 else
13173 ac_func_search_save_LIBS=$LIBS
13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175 /* end confdefs.h. */
13177 /* Override any GCC internal prototype to avoid an error.
13178 Use char because int might match the return type of a GCC
13179 builtin and then its argument prototype would still apply. */
13180 #ifdef __cplusplus
13181 extern "C"
13182 #endif
13183 char log ();
13185 main ()
13187 return log ();
13189 return 0;
13191 _ACEOF
13192 for ac_lib in '' m; do
13193 if test -z "$ac_lib"; then
13194 ac_res="none required"
13195 else
13196 ac_res=-l$ac_lib
13197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13199 if ac_fn_c_try_link "$LINENO"; then :
13200 ac_cv_search_log=$ac_res
13202 rm -f core conftest.err conftest.$ac_objext \
13203 conftest$ac_exeext
13204 if ${ac_cv_search_log+:} false; then :
13205 break
13207 done
13208 if ${ac_cv_search_log+:} false; then :
13210 else
13211 ac_cv_search_log=no
13213 rm conftest.$ac_ext
13214 LIBS=$ac_func_search_save_LIBS
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
13217 $as_echo "$ac_cv_search_log" >&6; }
13218 ac_res=$ac_cv_search_log
13219 if test "$ac_res" != no; then :
13220 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13226 #########
13227 # See whether we should enable JSON1
13228 # Check whether --enable-json1 was given.
13229 if test "${enable_json1+set}" = set; then :
13230 enableval=$enable_json1;
13233 if test "${enable_json1}" = "yes" -o "${enable_all}" = "yes" ; then
13234 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_JSON1"
13237 #########
13238 # See whether we should enable the LIMIT clause on UPDATE and DELETE
13239 # statements.
13240 # Check whether --enable-update-limit was given.
13241 if test "${enable_update_limit+set}" = set; then :
13242 enableval=$enable_update_limit;
13245 if test "${enable_update_limit}" = "yes" ; then
13246 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT"
13249 #########
13250 # See whether we should enable GEOPOLY
13251 # Check whether --enable-geopoly was given.
13252 if test "${enable_geopoly+set}" = set; then :
13253 enableval=$enable_geopoly; enable_geopoly=yes
13254 else
13255 enable_geopoly=no
13258 if test "${enable_geopoly}" = "yes" -o "${enable_all}" = "yes" ; then
13259 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_GEOPOLY"
13260 enable_rtree=yes
13263 #########
13264 # See whether we should enable RTREE
13265 # Check whether --enable-rtree was given.
13266 if test "${enable_rtree+set}" = set; then :
13267 enableval=$enable_rtree;
13270 if test "${enable_rtree}" = "yes" ; then
13271 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE"
13274 #########
13275 # See whether we should enable the SESSION extension
13276 # Check whether --enable-session was given.
13277 if test "${enable_session+set}" = set; then :
13278 enableval=$enable_session;
13281 if test "${enable_session}" = "yes" -o "${enable_all}" = "yes" ; then
13282 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION"
13283 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK"
13286 #########
13287 # attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter
13288 for option in $CFLAGS $CPPFLAGS
13290 case $option in
13291 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
13292 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
13293 esac
13294 done
13298 # attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
13299 ac_temp_CFLAGS=""
13300 for option in $CFLAGS
13302 case $option in
13303 -DSQLITE_OMIT*) ;;
13304 -DSQLITE_ENABLE*) ;;
13305 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
13306 esac
13307 done
13308 CFLAGS=$ac_temp_CFLAGS
13311 # attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
13312 ac_temp_CPPFLAGS=""
13313 for option in $CPPFLAGS
13315 case $option in
13316 -DSQLITE_OMIT*) ;;
13317 -DSQLITE_ENABLE*) ;;
13318 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
13319 esac
13320 done
13321 CPPFLAGS=$ac_temp_CPPFLAGS
13324 # attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
13325 ac_temp_BUILD_CFLAGS=""
13326 for option in $BUILD_CFLAGS
13328 case $option in
13329 -DSQLITE_OMIT*) ;;
13330 -DSQLITE_ENABLE*) ;;
13331 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
13332 esac
13333 done
13334 BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
13337 #########
13338 # See whether we should use GCOV
13339 # Check whether --enable-gcov was given.
13340 if test "${enable_gcov+set}" = set; then :
13341 enableval=$enable_gcov;
13344 if test "${use_gcov}" = "yes" ; then
13345 USE_GCOV=1
13346 else
13347 USE_GCOV=0
13352 #########
13353 # Output the config header
13354 ac_config_headers="$ac_config_headers config.h"
13357 #########
13358 # Generate the output files.
13361 ac_config_files="$ac_config_files Makefile sqlcipher.pc"
13363 cat >confcache <<\_ACEOF
13364 # This file is a shell script that caches the results of configure
13365 # tests run on this system so they can be shared between configure
13366 # scripts and configure runs, see configure's option --config-cache.
13367 # It is not useful on other systems. If it contains results you don't
13368 # want to keep, you may remove or edit it.
13370 # config.status only pays attention to the cache file if you give it
13371 # the --recheck option to rerun configure.
13373 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13374 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13375 # following values.
13377 _ACEOF
13379 # The following way of writing the cache mishandles newlines in values,
13380 # but we know of no workaround that is simple, portable, and efficient.
13381 # So, we kill variables containing newlines.
13382 # Ultrix sh set writes to stderr and can't be redirected directly,
13383 # and sets the high bit in the cache file unless we assign to the vars.
13385 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13386 eval ac_val=\$$ac_var
13387 case $ac_val in #(
13388 *${as_nl}*)
13389 case $ac_var in #(
13390 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13391 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13392 esac
13393 case $ac_var in #(
13394 _ | IFS | as_nl) ;; #(
13395 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13396 *) { eval $ac_var=; unset $ac_var;} ;;
13397 esac ;;
13398 esac
13399 done
13401 (set) 2>&1 |
13402 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13403 *${as_nl}ac_space=\ *)
13404 # `set' does not quote correctly, so add quotes: double-quote
13405 # substitution turns \\\\ into \\, and sed turns \\ into \.
13406 sed -n \
13407 "s/'/'\\\\''/g;
13408 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13409 ;; #(
13411 # `set' quotes correctly as required by POSIX, so do not add quotes.
13412 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13414 esac |
13415 sort
13417 sed '
13418 /^ac_cv_env_/b end
13419 t clear
13420 :clear
13421 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13422 t end
13423 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13424 :end' >>confcache
13425 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13426 if test -w "$cache_file"; then
13427 if test "x$cache_file" != "x/dev/null"; then
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13429 $as_echo "$as_me: updating cache $cache_file" >&6;}
13430 if test ! -f "$cache_file" || test -h "$cache_file"; then
13431 cat confcache >"$cache_file"
13432 else
13433 case $cache_file in #(
13434 */* | ?:*)
13435 mv -f confcache "$cache_file"$$ &&
13436 mv -f "$cache_file"$$ "$cache_file" ;; #(
13438 mv -f confcache "$cache_file" ;;
13439 esac
13442 else
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13444 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13447 rm -f confcache
13449 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13450 # Let make expand exec_prefix.
13451 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13453 DEFS=-DHAVE_CONFIG_H
13455 ac_libobjs=
13456 ac_ltlibobjs=
13458 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13459 # 1. Remove the extension, and $U if already installed.
13460 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13461 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13462 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13463 # will be set to the directory where LIBOBJS objects are built.
13464 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13465 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13466 done
13467 LIBOBJS=$ac_libobjs
13469 LTLIBOBJS=$ac_ltlibobjs
13473 : "${CONFIG_STATUS=./config.status}"
13474 ac_write_fail=0
13475 ac_clean_files_save=$ac_clean_files
13476 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13478 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13479 as_write_fail=0
13480 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13481 #! $SHELL
13482 # Generated by $as_me.
13483 # Run this file to recreate the current configuration.
13484 # Compiler output produced by configure, useful for debugging
13485 # configure, is in config.log if it exists.
13487 debug=false
13488 ac_cs_recheck=false
13489 ac_cs_silent=false
13491 SHELL=\${CONFIG_SHELL-$SHELL}
13492 export SHELL
13493 _ASEOF
13494 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13495 ## -------------------- ##
13496 ## M4sh Initialization. ##
13497 ## -------------------- ##
13499 # Be more Bourne compatible
13500 DUALCASE=1; export DUALCASE # for MKS sh
13501 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13502 emulate sh
13503 NULLCMD=:
13504 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13505 # is contrary to our usage. Disable this feature.
13506 alias -g '${1+"$@"}'='"$@"'
13507 setopt NO_GLOB_SUBST
13508 else
13509 case `(set -o) 2>/dev/null` in #(
13510 *posix*) :
13511 set -o posix ;; #(
13512 *) :
13514 esac
13518 as_nl='
13520 export as_nl
13521 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13522 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13523 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13524 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13525 # Prefer a ksh shell builtin over an external printf program on Solaris,
13526 # but without wasting forks for bash or zsh.
13527 if test -z "$BASH_VERSION$ZSH_VERSION" \
13528 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13529 as_echo='print -r --'
13530 as_echo_n='print -rn --'
13531 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13532 as_echo='printf %s\n'
13533 as_echo_n='printf %s'
13534 else
13535 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13536 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13537 as_echo_n='/usr/ucb/echo -n'
13538 else
13539 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13540 as_echo_n_body='eval
13541 arg=$1;
13542 case $arg in #(
13543 *"$as_nl"*)
13544 expr "X$arg" : "X\\(.*\\)$as_nl";
13545 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13546 esac;
13547 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13549 export as_echo_n_body
13550 as_echo_n='sh -c $as_echo_n_body as_echo'
13552 export as_echo_body
13553 as_echo='sh -c $as_echo_body as_echo'
13556 # The user is always right.
13557 if test "${PATH_SEPARATOR+set}" != set; then
13558 PATH_SEPARATOR=:
13559 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13560 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13561 PATH_SEPARATOR=';'
13566 # IFS
13567 # We need space, tab and new line, in precisely that order. Quoting is
13568 # there to prevent editors from complaining about space-tab.
13569 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13570 # splitting by setting IFS to empty value.)
13571 IFS=" "" $as_nl"
13573 # Find who we are. Look in the path if we contain no directory separator.
13574 as_myself=
13575 case $0 in #((
13576 *[\\/]* ) as_myself=$0 ;;
13577 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13578 for as_dir in $PATH
13580 IFS=$as_save_IFS
13581 test -z "$as_dir" && as_dir=.
13582 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13583 done
13584 IFS=$as_save_IFS
13587 esac
13588 # We did not find ourselves, most probably we were run as `sh COMMAND'
13589 # in which case we are not to be found in the path.
13590 if test "x$as_myself" = x; then
13591 as_myself=$0
13593 if test ! -f "$as_myself"; then
13594 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13595 exit 1
13598 # Unset variables that we do not need and which cause bugs (e.g. in
13599 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13600 # suppresses any "Segmentation fault" message there. '((' could
13601 # trigger a bug in pdksh 5.2.14.
13602 for as_var in BASH_ENV ENV MAIL MAILPATH
13603 do eval test x\${$as_var+set} = xset \
13604 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13605 done
13606 PS1='$ '
13607 PS2='> '
13608 PS4='+ '
13610 # NLS nuisances.
13611 LC_ALL=C
13612 export LC_ALL
13613 LANGUAGE=C
13614 export LANGUAGE
13616 # CDPATH.
13617 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13620 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13621 # ----------------------------------------
13622 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13623 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13624 # script with STATUS, using 1 if that was 0.
13625 as_fn_error ()
13627 as_status=$1; test $as_status -eq 0 && as_status=1
13628 if test "$4"; then
13629 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13630 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13632 $as_echo "$as_me: error: $2" >&2
13633 as_fn_exit $as_status
13634 } # as_fn_error
13637 # as_fn_set_status STATUS
13638 # -----------------------
13639 # Set $? to STATUS, without forking.
13640 as_fn_set_status ()
13642 return $1
13643 } # as_fn_set_status
13645 # as_fn_exit STATUS
13646 # -----------------
13647 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13648 as_fn_exit ()
13650 set +e
13651 as_fn_set_status $1
13652 exit $1
13653 } # as_fn_exit
13655 # as_fn_unset VAR
13656 # ---------------
13657 # Portably unset VAR.
13658 as_fn_unset ()
13660 { eval $1=; unset $1;}
13662 as_unset=as_fn_unset
13663 # as_fn_append VAR VALUE
13664 # ----------------------
13665 # Append the text in VALUE to the end of the definition contained in VAR. Take
13666 # advantage of any shell optimizations that allow amortized linear growth over
13667 # repeated appends, instead of the typical quadratic growth present in naive
13668 # implementations.
13669 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13670 eval 'as_fn_append ()
13672 eval $1+=\$2
13674 else
13675 as_fn_append ()
13677 eval $1=\$$1\$2
13679 fi # as_fn_append
13681 # as_fn_arith ARG...
13682 # ------------------
13683 # Perform arithmetic evaluation on the ARGs, and store the result in the
13684 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13685 # must be portable across $(()) and expr.
13686 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13687 eval 'as_fn_arith ()
13689 as_val=$(( $* ))
13691 else
13692 as_fn_arith ()
13694 as_val=`expr "$@" || test $? -eq 1`
13696 fi # as_fn_arith
13699 if expr a : '\(a\)' >/dev/null 2>&1 &&
13700 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13701 as_expr=expr
13702 else
13703 as_expr=false
13706 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13707 as_basename=basename
13708 else
13709 as_basename=false
13712 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13713 as_dirname=dirname
13714 else
13715 as_dirname=false
13718 as_me=`$as_basename -- "$0" ||
13719 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13720 X"$0" : 'X\(//\)$' \| \
13721 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13722 $as_echo X/"$0" |
13723 sed '/^.*\/\([^/][^/]*\)\/*$/{
13724 s//\1/
13727 /^X\/\(\/\/\)$/{
13728 s//\1/
13731 /^X\/\(\/\).*/{
13732 s//\1/
13735 s/.*/./; q'`
13737 # Avoid depending upon Character Ranges.
13738 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13739 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13740 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13741 as_cr_digits='0123456789'
13742 as_cr_alnum=$as_cr_Letters$as_cr_digits
13744 ECHO_C= ECHO_N= ECHO_T=
13745 case `echo -n x` in #(((((
13746 -n*)
13747 case `echo 'xy\c'` in
13748 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13749 xy) ECHO_C='\c';;
13750 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13751 ECHO_T=' ';;
13752 esac;;
13754 ECHO_N='-n';;
13755 esac
13757 rm -f conf$$ conf$$.exe conf$$.file
13758 if test -d conf$$.dir; then
13759 rm -f conf$$.dir/conf$$.file
13760 else
13761 rm -f conf$$.dir
13762 mkdir conf$$.dir 2>/dev/null
13764 if (echo >conf$$.file) 2>/dev/null; then
13765 if ln -s conf$$.file conf$$ 2>/dev/null; then
13766 as_ln_s='ln -s'
13767 # ... but there are two gotchas:
13768 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13769 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13770 # In both cases, we have to default to `cp -pR'.
13771 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13772 as_ln_s='cp -pR'
13773 elif ln conf$$.file conf$$ 2>/dev/null; then
13774 as_ln_s=ln
13775 else
13776 as_ln_s='cp -pR'
13778 else
13779 as_ln_s='cp -pR'
13781 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13782 rmdir conf$$.dir 2>/dev/null
13785 # as_fn_mkdir_p
13786 # -------------
13787 # Create "$as_dir" as a directory, including parents if necessary.
13788 as_fn_mkdir_p ()
13791 case $as_dir in #(
13792 -*) as_dir=./$as_dir;;
13793 esac
13794 test -d "$as_dir" || eval $as_mkdir_p || {
13795 as_dirs=
13796 while :; do
13797 case $as_dir in #(
13798 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13799 *) as_qdir=$as_dir;;
13800 esac
13801 as_dirs="'$as_qdir' $as_dirs"
13802 as_dir=`$as_dirname -- "$as_dir" ||
13803 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13804 X"$as_dir" : 'X\(//\)[^/]' \| \
13805 X"$as_dir" : 'X\(//\)$' \| \
13806 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13807 $as_echo X"$as_dir" |
13808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13809 s//\1/
13812 /^X\(\/\/\)[^/].*/{
13813 s//\1/
13816 /^X\(\/\/\)$/{
13817 s//\1/
13820 /^X\(\/\).*/{
13821 s//\1/
13824 s/.*/./; q'`
13825 test -d "$as_dir" && break
13826 done
13827 test -z "$as_dirs" || eval "mkdir $as_dirs"
13828 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13831 } # as_fn_mkdir_p
13832 if mkdir -p . 2>/dev/null; then
13833 as_mkdir_p='mkdir -p "$as_dir"'
13834 else
13835 test -d ./-p && rmdir ./-p
13836 as_mkdir_p=false
13840 # as_fn_executable_p FILE
13841 # -----------------------
13842 # Test if FILE is an executable regular file.
13843 as_fn_executable_p ()
13845 test -f "$1" && test -x "$1"
13846 } # as_fn_executable_p
13847 as_test_x='test -x'
13848 as_executable_p=as_fn_executable_p
13850 # Sed expression to map a string onto a valid CPP name.
13851 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13853 # Sed expression to map a string onto a valid variable name.
13854 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13857 exec 6>&1
13858 ## ----------------------------------- ##
13859 ## Main body of $CONFIG_STATUS script. ##
13860 ## ----------------------------------- ##
13861 _ASEOF
13862 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13865 # Save the log message, to keep $0 and so on meaningful, and to
13866 # report actual input values of CONFIG_FILES etc. instead of their
13867 # values after options handling.
13868 ac_log="
13869 This file was extended by sqlcipher $as_me 3.34.1, which was
13870 generated by GNU Autoconf 2.69. Invocation command line was
13872 CONFIG_FILES = $CONFIG_FILES
13873 CONFIG_HEADERS = $CONFIG_HEADERS
13874 CONFIG_LINKS = $CONFIG_LINKS
13875 CONFIG_COMMANDS = $CONFIG_COMMANDS
13876 $ $0 $@
13878 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13881 _ACEOF
13883 case $ac_config_files in *"
13884 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13885 esac
13887 case $ac_config_headers in *"
13888 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13889 esac
13892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13893 # Files that config.status was made for.
13894 config_files="$ac_config_files"
13895 config_headers="$ac_config_headers"
13896 config_commands="$ac_config_commands"
13898 _ACEOF
13900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13901 ac_cs_usage="\
13902 \`$as_me' instantiates files and other configuration actions
13903 from templates according to the current configuration. Unless the files
13904 and actions are specified as TAGs, all are instantiated by default.
13906 Usage: $0 [OPTION]... [TAG]...
13908 -h, --help print this help, then exit
13909 -V, --version print version number and configuration settings, then exit
13910 --config print configuration, then exit
13911 -q, --quiet, --silent
13912 do not print progress messages
13913 -d, --debug don't remove temporary files
13914 --recheck update $as_me by reconfiguring in the same conditions
13915 --file=FILE[:TEMPLATE]
13916 instantiate the configuration file FILE
13917 --header=FILE[:TEMPLATE]
13918 instantiate the configuration header FILE
13920 Configuration files:
13921 $config_files
13923 Configuration headers:
13924 $config_headers
13926 Configuration commands:
13927 $config_commands
13929 Report bugs to the package provider."
13931 _ACEOF
13932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13933 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13934 ac_cs_version="\\
13935 sqlcipher config.status 3.34.1
13936 configured by $0, generated by GNU Autoconf 2.69,
13937 with options \\"\$ac_cs_config\\"
13939 Copyright (C) 2012 Free Software Foundation, Inc.
13940 This config.status script is free software; the Free Software Foundation
13941 gives unlimited permission to copy, distribute and modify it."
13943 ac_pwd='$ac_pwd'
13944 srcdir='$srcdir'
13945 INSTALL='$INSTALL'
13946 AWK='$AWK'
13947 test -n "\$AWK" || AWK=awk
13948 _ACEOF
13950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13951 # The default lists apply if the user does not specify any file.
13952 ac_need_defaults=:
13953 while test $# != 0
13955 case $1 in
13956 --*=?*)
13957 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13958 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13959 ac_shift=:
13961 --*=)
13962 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13963 ac_optarg=
13964 ac_shift=:
13967 ac_option=$1
13968 ac_optarg=$2
13969 ac_shift=shift
13971 esac
13973 case $ac_option in
13974 # Handling of the options.
13975 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13976 ac_cs_recheck=: ;;
13977 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13978 $as_echo "$ac_cs_version"; exit ;;
13979 --config | --confi | --conf | --con | --co | --c )
13980 $as_echo "$ac_cs_config"; exit ;;
13981 --debug | --debu | --deb | --de | --d | -d )
13982 debug=: ;;
13983 --file | --fil | --fi | --f )
13984 $ac_shift
13985 case $ac_optarg in
13986 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13987 '') as_fn_error $? "missing file argument" ;;
13988 esac
13989 as_fn_append CONFIG_FILES " '$ac_optarg'"
13990 ac_need_defaults=false;;
13991 --header | --heade | --head | --hea )
13992 $ac_shift
13993 case $ac_optarg in
13994 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13995 esac
13996 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13997 ac_need_defaults=false;;
13998 --he | --h)
13999 # Conflict between --help and --header
14000 as_fn_error $? "ambiguous option: \`$1'
14001 Try \`$0 --help' for more information.";;
14002 --help | --hel | -h )
14003 $as_echo "$ac_cs_usage"; exit ;;
14004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14005 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14006 ac_cs_silent=: ;;
14008 # This is an error.
14009 -*) as_fn_error $? "unrecognized option: \`$1'
14010 Try \`$0 --help' for more information." ;;
14012 *) as_fn_append ac_config_targets " $1"
14013 ac_need_defaults=false ;;
14015 esac
14016 shift
14017 done
14019 ac_configure_extra_args=
14021 if $ac_cs_silent; then
14022 exec 6>/dev/null
14023 ac_configure_extra_args="$ac_configure_extra_args --silent"
14026 _ACEOF
14027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14028 if \$ac_cs_recheck; then
14029 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14030 shift
14031 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14032 CONFIG_SHELL='$SHELL'
14033 export CONFIG_SHELL
14034 exec "\$@"
14037 _ACEOF
14038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14039 exec 5>>config.log
14041 echo
14042 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14043 ## Running $as_me. ##
14044 _ASBOX
14045 $as_echo "$ac_log"
14046 } >&5
14048 _ACEOF
14049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14051 # INIT-COMMANDS
14055 # The HP-UX ksh and POSIX shell print the target directory to stdout
14056 # if CDPATH is set.
14057 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14059 sed_quote_subst='$sed_quote_subst'
14060 double_quote_subst='$double_quote_subst'
14061 delay_variable_subst='$delay_variable_subst'
14062 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14063 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14064 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14065 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14066 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14067 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14068 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14069 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14070 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14071 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14072 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14073 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14074 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14075 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14076 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14077 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14078 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14079 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14080 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14081 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14082 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14083 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14084 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14085 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14086 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14087 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14088 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14089 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14090 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14091 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14092 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14093 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14094 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14095 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14096 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14097 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14098 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14099 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14100 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14101 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14102 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14103 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14104 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14105 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14106 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14107 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14108 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14109 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14110 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14111 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14112 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14113 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14114 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14115 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14116 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14117 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14118 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14119 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14120 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"`'
14121 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14122 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14123 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14124 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14125 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14126 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14127 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14128 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14129 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14130 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14131 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14132 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14133 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14134 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14135 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14136 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14137 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14138 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14139 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14140 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14141 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14142 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14143 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14144 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14145 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14146 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14147 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14148 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14149 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14150 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14151 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14152 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14153 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14154 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14155 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14156 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14157 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14158 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14159 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14160 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14161 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14162 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14163 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14164 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14165 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14166 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14167 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14168 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14169 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14170 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14171 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14172 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14173 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14174 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14175 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14176 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14177 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14178 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14179 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14180 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14181 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14182 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14183 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14184 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14185 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14186 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14187 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14188 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14189 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14190 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14191 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14192 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14193 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14194 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14195 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14196 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14198 LTCC='$LTCC'
14199 LTCFLAGS='$LTCFLAGS'
14200 compiler='$compiler_DEFAULT'
14202 # A function that is used when there is no print builtin or printf.
14203 func_fallback_echo ()
14205 eval 'cat <<_LTECHO_EOF
14207 _LTECHO_EOF'
14210 # Quote evaled strings.
14211 for var in SHELL \
14212 ECHO \
14213 PATH_SEPARATOR \
14214 SED \
14215 GREP \
14216 EGREP \
14217 FGREP \
14218 LD \
14219 NM \
14220 LN_S \
14221 lt_SP2NL \
14222 lt_NL2SP \
14223 reload_flag \
14224 OBJDUMP \
14225 deplibs_check_method \
14226 file_magic_cmd \
14227 file_magic_glob \
14228 want_nocaseglob \
14229 DLLTOOL \
14230 sharedlib_from_linklib_cmd \
14231 AR \
14232 AR_FLAGS \
14233 archiver_list_spec \
14234 STRIP \
14235 RANLIB \
14236 CC \
14237 CFLAGS \
14238 compiler \
14239 lt_cv_sys_global_symbol_pipe \
14240 lt_cv_sys_global_symbol_to_cdecl \
14241 lt_cv_sys_global_symbol_to_import \
14242 lt_cv_sys_global_symbol_to_c_name_address \
14243 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14244 lt_cv_nm_interface \
14245 nm_file_list_spec \
14246 lt_cv_truncate_bin \
14247 lt_prog_compiler_no_builtin_flag \
14248 lt_prog_compiler_pic \
14249 lt_prog_compiler_wl \
14250 lt_prog_compiler_static \
14251 lt_cv_prog_compiler_c_o \
14252 need_locks \
14253 MANIFEST_TOOL \
14254 DSYMUTIL \
14255 NMEDIT \
14256 LIPO \
14257 OTOOL \
14258 OTOOL64 \
14259 shrext_cmds \
14260 export_dynamic_flag_spec \
14261 whole_archive_flag_spec \
14262 compiler_needs_object \
14263 with_gnu_ld \
14264 allow_undefined_flag \
14265 no_undefined_flag \
14266 hardcode_libdir_flag_spec \
14267 hardcode_libdir_separator \
14268 exclude_expsyms \
14269 include_expsyms \
14270 file_list_spec \
14271 variables_saved_for_relink \
14272 libname_spec \
14273 library_names_spec \
14274 soname_spec \
14275 install_override_mode \
14276 finish_eval \
14277 old_striplib \
14278 striplib; do
14279 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14280 *[\\\\\\\`\\"\\\$]*)
14281 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14284 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14286 esac
14287 done
14289 # Double-quote double-evaled strings.
14290 for var in reload_cmds \
14291 old_postinstall_cmds \
14292 old_postuninstall_cmds \
14293 old_archive_cmds \
14294 extract_expsyms_cmds \
14295 old_archive_from_new_cmds \
14296 old_archive_from_expsyms_cmds \
14297 archive_cmds \
14298 archive_expsym_cmds \
14299 module_cmds \
14300 module_expsym_cmds \
14301 export_symbols_cmds \
14302 prelink_cmds \
14303 postlink_cmds \
14304 postinstall_cmds \
14305 postuninstall_cmds \
14306 finish_cmds \
14307 sys_lib_search_path_spec \
14308 configure_time_dlsearch_path \
14309 configure_time_lt_sys_library_path; do
14310 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14311 *[\\\\\\\`\\"\\\$]*)
14312 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14315 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14317 esac
14318 done
14320 ac_aux_dir='$ac_aux_dir'
14322 # See if we are running on zsh, and set the options that allow our
14323 # commands through without removal of \ escapes INIT.
14324 if test -n "\${ZSH_VERSION+set}"; then
14325 setopt NO_GLOB_SUBST
14329 PACKAGE='$PACKAGE'
14330 VERSION='$VERSION'
14331 RM='$RM'
14332 ofile='$ofile'
14337 _ACEOF
14339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14341 # Handling of arguments.
14342 for ac_config_target in $ac_config_targets
14344 case $ac_config_target in
14345 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14346 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14347 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14348 "sqlcipher.pc") CONFIG_FILES="$CONFIG_FILES sqlcipher.pc" ;;
14350 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14351 esac
14352 done
14355 # If the user did not use the arguments to specify the items to instantiate,
14356 # then the envvar interface is used. Set only those that are not.
14357 # We use the long form for the default assignment because of an extremely
14358 # bizarre bug on SunOS 4.1.3.
14359 if $ac_need_defaults; then
14360 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14361 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14362 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14365 # Have a temporary directory for convenience. Make it in the build tree
14366 # simply because there is no reason against having it here, and in addition,
14367 # creating and moving files from /tmp can sometimes cause problems.
14368 # Hook for its removal unless debugging.
14369 # Note that there is a small window in which the directory will not be cleaned:
14370 # after its creation but before its name has been assigned to `$tmp'.
14371 $debug ||
14373 tmp= ac_tmp=
14374 trap 'exit_status=$?
14375 : "${ac_tmp:=$tmp}"
14376 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14378 trap 'as_fn_exit 1' 1 2 13 15
14380 # Create a (secure) tmp directory for tmp files.
14383 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14384 test -d "$tmp"
14385 } ||
14387 tmp=./conf$$-$RANDOM
14388 (umask 077 && mkdir "$tmp")
14389 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14390 ac_tmp=$tmp
14392 # Set up the scripts for CONFIG_FILES section.
14393 # No need to generate them if there are no CONFIG_FILES.
14394 # This happens for instance with `./config.status config.h'.
14395 if test -n "$CONFIG_FILES"; then
14398 ac_cr=`echo X | tr X '\015'`
14399 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14400 # But we know of no other shell where ac_cr would be empty at this
14401 # point, so we can use a bashism as a fallback.
14402 if test "x$ac_cr" = x; then
14403 eval ac_cr=\$\'\\r\'
14405 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14406 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14407 ac_cs_awk_cr='\\r'
14408 else
14409 ac_cs_awk_cr=$ac_cr
14412 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14413 _ACEOF
14417 echo "cat >conf$$subs.awk <<_ACEOF" &&
14418 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14419 echo "_ACEOF"
14420 } >conf$$subs.sh ||
14421 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14422 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14423 ac_delim='%!_!# '
14424 for ac_last_try in false false false false false :; do
14425 . ./conf$$subs.sh ||
14426 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14428 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14429 if test $ac_delim_n = $ac_delim_num; then
14430 break
14431 elif $ac_last_try; then
14432 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14433 else
14434 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14436 done
14437 rm -f conf$$subs.sh
14439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14440 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14441 _ACEOF
14442 sed -n '
14444 s/^/S["/; s/!.*/"]=/
14447 s/^[^!]*!//
14448 :repl
14449 t repl
14450 s/'"$ac_delim"'$//
14451 t delim
14454 s/\(.\{148\}\)..*/\1/
14455 t more1
14456 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14459 b repl
14460 :more1
14461 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14464 s/.\{148\}//
14465 t nl
14466 :delim
14468 s/\(.\{148\}\)..*/\1/
14469 t more2
14470 s/["\\]/\\&/g; s/^/"/; s/$/"/
14473 :more2
14474 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14477 s/.\{148\}//
14478 t delim
14479 ' <conf$$subs.awk | sed '
14480 /^[^""]/{
14482 s/\n//
14484 ' >>$CONFIG_STATUS || ac_write_fail=1
14485 rm -f conf$$subs.awk
14486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14487 _ACAWK
14488 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14489 for (key in S) S_is_set[key] = 1
14490 FS = "\a"
14494 line = $ 0
14495 nfields = split(line, field, "@")
14496 substed = 0
14497 len = length(field[1])
14498 for (i = 2; i < nfields; i++) {
14499 key = field[i]
14500 keylen = length(key)
14501 if (S_is_set[key]) {
14502 value = S[key]
14503 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14504 len += length(value) + length(field[++i])
14505 substed = 1
14506 } else
14507 len += 1 + keylen
14510 print line
14513 _ACAWK
14514 _ACEOF
14515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14516 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14517 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14518 else
14520 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14521 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14522 _ACEOF
14524 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14525 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14526 # trailing colons and then remove the whole line if VPATH becomes empty
14527 # (actually we leave an empty line to preserve line numbers).
14528 if test "x$srcdir" = x.; then
14529 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14531 s///
14532 s/^/:/
14533 s/[ ]*$/:/
14534 s/:\$(srcdir):/:/g
14535 s/:\${srcdir}:/:/g
14536 s/:@srcdir@:/:/g
14537 s/^:*//
14538 s/:*$//
14540 s/\(=[ ]*\).*/\1/
14542 s/\n//
14543 s/^[^=]*=[ ]*$//
14547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14548 fi # test -n "$CONFIG_FILES"
14550 # Set up the scripts for CONFIG_HEADERS section.
14551 # No need to generate them if there are no CONFIG_HEADERS.
14552 # This happens for instance with `./config.status Makefile'.
14553 if test -n "$CONFIG_HEADERS"; then
14554 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14555 BEGIN {
14556 _ACEOF
14558 # Transform confdefs.h into an awk script `defines.awk', embedded as
14559 # here-document in config.status, that substitutes the proper values into
14560 # config.h.in to produce config.h.
14562 # Create a delimiter string that does not exist in confdefs.h, to ease
14563 # handling of long lines.
14564 ac_delim='%!_!# '
14565 for ac_last_try in false false :; do
14566 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14567 if test -z "$ac_tt"; then
14568 break
14569 elif $ac_last_try; then
14570 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14571 else
14572 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14574 done
14576 # For the awk script, D is an array of macro values keyed by name,
14577 # likewise P contains macro parameters if any. Preserve backslash
14578 # newline sequences.
14580 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14581 sed -n '
14582 s/.\{148\}/&'"$ac_delim"'/g
14583 t rset
14584 :rset
14585 s/^[ ]*#[ ]*define[ ][ ]*/ /
14586 t def
14588 :def
14589 s/\\$//
14590 t bsnl
14591 s/["\\]/\\&/g
14592 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14593 D["\1"]=" \3"/p
14594 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14596 :bsnl
14597 s/["\\]/\\&/g
14598 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14599 D["\1"]=" \3\\\\\\n"\\/p
14600 t cont
14601 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14602 t cont
14604 :cont
14606 s/.\{148\}/&'"$ac_delim"'/g
14607 t clear
14608 :clear
14609 s/\\$//
14610 t bsnlc
14611 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14613 :bsnlc
14614 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14615 b cont
14616 ' <confdefs.h | sed '
14617 s/'"$ac_delim"'/"\\\
14618 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14621 for (key in D) D_is_set[key] = 1
14622 FS = "\a"
14624 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14625 line = \$ 0
14626 split(line, arg, " ")
14627 if (arg[1] == "#") {
14628 defundef = arg[2]
14629 mac1 = arg[3]
14630 } else {
14631 defundef = substr(arg[1], 2)
14632 mac1 = arg[2]
14634 split(mac1, mac2, "(") #)
14635 macro = mac2[1]
14636 prefix = substr(line, 1, index(line, defundef) - 1)
14637 if (D_is_set[macro]) {
14638 # Preserve the white space surrounding the "#".
14639 print prefix "define", macro P[macro] D[macro]
14640 next
14641 } else {
14642 # Replace #undef with comments. This is necessary, for example,
14643 # in the case of _POSIX_SOURCE, which is predefined and required
14644 # on some systems where configure will not decide to define it.
14645 if (defundef == "undef") {
14646 print "/*", prefix defundef, macro, "*/"
14647 next
14651 { print }
14652 _ACAWK
14653 _ACEOF
14654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14655 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14656 fi # test -n "$CONFIG_HEADERS"
14659 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14660 shift
14661 for ac_tag
14663 case $ac_tag in
14664 :[FHLC]) ac_mode=$ac_tag; continue;;
14665 esac
14666 case $ac_mode$ac_tag in
14667 :[FHL]*:*);;
14668 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14669 :[FH]-) ac_tag=-:-;;
14670 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14671 esac
14672 ac_save_IFS=$IFS
14673 IFS=:
14674 set x $ac_tag
14675 IFS=$ac_save_IFS
14676 shift
14677 ac_file=$1
14678 shift
14680 case $ac_mode in
14681 :L) ac_source=$1;;
14682 :[FH])
14683 ac_file_inputs=
14684 for ac_f
14686 case $ac_f in
14687 -) ac_f="$ac_tmp/stdin";;
14688 *) # Look for the file first in the build tree, then in the source tree
14689 # (if the path is not absolute). The absolute path cannot be DOS-style,
14690 # because $ac_f cannot contain `:'.
14691 test -f "$ac_f" ||
14692 case $ac_f in
14693 [\\/$]*) false;;
14694 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14695 esac ||
14696 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14697 esac
14698 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14699 as_fn_append ac_file_inputs " '$ac_f'"
14700 done
14702 # Let's still pretend it is `configure' which instantiates (i.e., don't
14703 # use $as_me), people would be surprised to read:
14704 # /* config.h. Generated by config.status. */
14705 configure_input='Generated from '`
14706 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14707 `' by configure.'
14708 if test x"$ac_file" != x-; then
14709 configure_input="$ac_file. $configure_input"
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14711 $as_echo "$as_me: creating $ac_file" >&6;}
14713 # Neutralize special characters interpreted by sed in replacement strings.
14714 case $configure_input in #(
14715 *\&* | *\|* | *\\* )
14716 ac_sed_conf_input=`$as_echo "$configure_input" |
14717 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14718 *) ac_sed_conf_input=$configure_input;;
14719 esac
14721 case $ac_tag in
14722 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14723 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14724 esac
14726 esac
14728 ac_dir=`$as_dirname -- "$ac_file" ||
14729 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14730 X"$ac_file" : 'X\(//\)[^/]' \| \
14731 X"$ac_file" : 'X\(//\)$' \| \
14732 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14733 $as_echo X"$ac_file" |
14734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14735 s//\1/
14738 /^X\(\/\/\)[^/].*/{
14739 s//\1/
14742 /^X\(\/\/\)$/{
14743 s//\1/
14746 /^X\(\/\).*/{
14747 s//\1/
14750 s/.*/./; q'`
14751 as_dir="$ac_dir"; as_fn_mkdir_p
14752 ac_builddir=.
14754 case "$ac_dir" in
14755 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14757 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14758 # A ".." for each directory in $ac_dir_suffix.
14759 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14760 case $ac_top_builddir_sub in
14761 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14762 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14763 esac ;;
14764 esac
14765 ac_abs_top_builddir=$ac_pwd
14766 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14767 # for backward compatibility:
14768 ac_top_builddir=$ac_top_build_prefix
14770 case $srcdir in
14771 .) # We are building in place.
14772 ac_srcdir=.
14773 ac_top_srcdir=$ac_top_builddir_sub
14774 ac_abs_top_srcdir=$ac_pwd ;;
14775 [\\/]* | ?:[\\/]* ) # Absolute name.
14776 ac_srcdir=$srcdir$ac_dir_suffix;
14777 ac_top_srcdir=$srcdir
14778 ac_abs_top_srcdir=$srcdir ;;
14779 *) # Relative name.
14780 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14781 ac_top_srcdir=$ac_top_build_prefix$srcdir
14782 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14783 esac
14784 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14787 case $ac_mode in
14790 # CONFIG_FILE
14793 case $INSTALL in
14794 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14795 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14796 esac
14797 _ACEOF
14799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14800 # If the template does not know about datarootdir, expand it.
14801 # FIXME: This hack should be removed a few years after 2.60.
14802 ac_datarootdir_hack=; ac_datarootdir_seen=
14803 ac_sed_dataroot='
14804 /datarootdir/ {
14808 /@datadir@/p
14809 /@docdir@/p
14810 /@infodir@/p
14811 /@localedir@/p
14812 /@mandir@/p'
14813 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14814 *datarootdir*) ac_datarootdir_seen=yes;;
14815 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14817 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14818 _ACEOF
14819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14820 ac_datarootdir_hack='
14821 s&@datadir@&$datadir&g
14822 s&@docdir@&$docdir&g
14823 s&@infodir@&$infodir&g
14824 s&@localedir@&$localedir&g
14825 s&@mandir@&$mandir&g
14826 s&\\\${datarootdir}&$datarootdir&g' ;;
14827 esac
14828 _ACEOF
14830 # Neutralize VPATH when `$srcdir' = `.'.
14831 # Shell code in configure.ac might set extrasub.
14832 # FIXME: do we really want to maintain this feature?
14833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14834 ac_sed_extra="$ac_vpsub
14835 $extrasub
14836 _ACEOF
14837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14839 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14840 s|@configure_input@|$ac_sed_conf_input|;t t
14841 s&@top_builddir@&$ac_top_builddir_sub&;t t
14842 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14843 s&@srcdir@&$ac_srcdir&;t t
14844 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14845 s&@top_srcdir@&$ac_top_srcdir&;t t
14846 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14847 s&@builddir@&$ac_builddir&;t t
14848 s&@abs_builddir@&$ac_abs_builddir&;t t
14849 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14850 s&@INSTALL@&$ac_INSTALL&;t t
14851 $ac_datarootdir_hack
14853 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14854 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14856 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14857 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14858 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14859 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14861 which seems to be undefined. Please make sure it is defined" >&5
14862 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14863 which seems to be undefined. Please make sure it is defined" >&2;}
14865 rm -f "$ac_tmp/stdin"
14866 case $ac_file in
14867 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14868 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14869 esac \
14870 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14874 # CONFIG_HEADER
14876 if test x"$ac_file" != x-; then
14878 $as_echo "/* $configure_input */" \
14879 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14880 } >"$ac_tmp/config.h" \
14881 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14882 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14884 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14885 else
14886 rm -f "$ac_file"
14887 mv "$ac_tmp/config.h" "$ac_file" \
14888 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14890 else
14891 $as_echo "/* $configure_input */" \
14892 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14893 || as_fn_error $? "could not create -" "$LINENO" 5
14897 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14898 $as_echo "$as_me: executing $ac_file commands" >&6;}
14900 esac
14903 case $ac_file$ac_mode in
14904 "libtool":C)
14906 # See if we are running on zsh, and set the options that allow our
14907 # commands through without removal of \ escapes.
14908 if test -n "${ZSH_VERSION+set}"; then
14909 setopt NO_GLOB_SUBST
14912 cfgfile=${ofile}T
14913 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14914 $RM "$cfgfile"
14916 cat <<_LT_EOF >> "$cfgfile"
14917 #! $SHELL
14918 # Generated automatically by $as_me ($PACKAGE) $VERSION
14919 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14921 # Provide generalized library-building support services.
14922 # Written by Gordon Matzigkeit, 1996
14924 # Copyright (C) 2014 Free Software Foundation, Inc.
14925 # This is free software; see the source for copying conditions. There is NO
14926 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14928 # GNU Libtool is free software; you can redistribute it and/or modify
14929 # it under the terms of the GNU General Public License as published by
14930 # the Free Software Foundation; either version 2 of of the License, or
14931 # (at your option) any later version.
14933 # As a special exception to the GNU General Public License, if you
14934 # distribute this file as part of a program or library that is built
14935 # using GNU Libtool, you may include this file under the same
14936 # distribution terms that you use for the rest of that program.
14938 # GNU Libtool is distributed in the hope that it will be useful, but
14939 # WITHOUT ANY WARRANTY; without even the implied warranty of
14940 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14941 # GNU General Public License for more details.
14943 # You should have received a copy of the GNU General Public License
14944 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14947 # The names of the tagged configurations supported by this script.
14948 available_tags=''
14950 # Configured defaults for sys_lib_dlsearch_path munging.
14951 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14953 # ### BEGIN LIBTOOL CONFIG
14955 # Which release of libtool.m4 was used?
14956 macro_version=$macro_version
14957 macro_revision=$macro_revision
14959 # Whether or not to build shared libraries.
14960 build_libtool_libs=$enable_shared
14962 # Whether or not to build static libraries.
14963 build_old_libs=$enable_static
14965 # What type of objects to build.
14966 pic_mode=$pic_mode
14968 # Whether or not to optimize for fast installation.
14969 fast_install=$enable_fast_install
14971 # Shared archive member basename,for filename based shared library versioning on AIX.
14972 shared_archive_member_spec=$shared_archive_member_spec
14974 # Shell to use when invoking shell scripts.
14975 SHELL=$lt_SHELL
14977 # An echo program that protects backslashes.
14978 ECHO=$lt_ECHO
14980 # The PATH separator for the build system.
14981 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14983 # The host system.
14984 host_alias=$host_alias
14985 host=$host
14986 host_os=$host_os
14988 # The build system.
14989 build_alias=$build_alias
14990 build=$build
14991 build_os=$build_os
14993 # A sed program that does not truncate output.
14994 SED=$lt_SED
14996 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14997 Xsed="\$SED -e 1s/^X//"
14999 # A grep program that handles long lines.
15000 GREP=$lt_GREP
15002 # An ERE matcher.
15003 EGREP=$lt_EGREP
15005 # A literal string matcher.
15006 FGREP=$lt_FGREP
15008 # A BSD- or MS-compatible name lister.
15009 NM=$lt_NM
15011 # Whether we need soft or hard links.
15012 LN_S=$lt_LN_S
15014 # What is the maximum length of a command?
15015 max_cmd_len=$max_cmd_len
15017 # Object file suffix (normally "o").
15018 objext=$ac_objext
15020 # Executable file suffix (normally "").
15021 exeext=$exeext
15023 # whether the shell understands "unset".
15024 lt_unset=$lt_unset
15026 # turn spaces into newlines.
15027 SP2NL=$lt_lt_SP2NL
15029 # turn newlines into spaces.
15030 NL2SP=$lt_lt_NL2SP
15032 # convert \$build file names to \$host format.
15033 to_host_file_cmd=$lt_cv_to_host_file_cmd
15035 # convert \$build files to toolchain format.
15036 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15038 # An object symbol dumper.
15039 OBJDUMP=$lt_OBJDUMP
15041 # Method to check whether dependent libraries are shared objects.
15042 deplibs_check_method=$lt_deplibs_check_method
15044 # Command to use when deplibs_check_method = "file_magic".
15045 file_magic_cmd=$lt_file_magic_cmd
15047 # How to find potential files when deplibs_check_method = "file_magic".
15048 file_magic_glob=$lt_file_magic_glob
15050 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15051 want_nocaseglob=$lt_want_nocaseglob
15053 # DLL creation program.
15054 DLLTOOL=$lt_DLLTOOL
15056 # Command to associate shared and link libraries.
15057 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15059 # The archiver.
15060 AR=$lt_AR
15062 # Flags to create an archive.
15063 AR_FLAGS=$lt_AR_FLAGS
15065 # How to feed a file listing to the archiver.
15066 archiver_list_spec=$lt_archiver_list_spec
15068 # A symbol stripping program.
15069 STRIP=$lt_STRIP
15071 # Commands used to install an old-style archive.
15072 RANLIB=$lt_RANLIB
15073 old_postinstall_cmds=$lt_old_postinstall_cmds
15074 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15076 # Whether to use a lock for old archive extraction.
15077 lock_old_archive_extraction=$lock_old_archive_extraction
15079 # A C compiler.
15080 LTCC=$lt_CC
15082 # LTCC compiler flags.
15083 LTCFLAGS=$lt_CFLAGS
15085 # Take the output of nm and produce a listing of raw symbols and C names.
15086 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15088 # Transform the output of nm in a proper C declaration.
15089 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15091 # Transform the output of nm into a list of symbols to manually relocate.
15092 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15094 # Transform the output of nm in a C name address pair.
15095 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15097 # Transform the output of nm in a C name address pair when lib prefix is needed.
15098 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15100 # The name lister interface.
15101 nm_interface=$lt_lt_cv_nm_interface
15103 # Specify filename containing input files for \$NM.
15104 nm_file_list_spec=$lt_nm_file_list_spec
15106 # The root where to search for dependent libraries,and where our libraries should be installed.
15107 lt_sysroot=$lt_sysroot
15109 # Command to truncate a binary pipe.
15110 lt_truncate_bin=$lt_lt_cv_truncate_bin
15112 # The name of the directory that contains temporary libtool files.
15113 objdir=$objdir
15115 # Used to examine libraries when file_magic_cmd begins with "file".
15116 MAGIC_CMD=$MAGIC_CMD
15118 # Must we lock files when doing compilation?
15119 need_locks=$lt_need_locks
15121 # Manifest tool.
15122 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15124 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15125 DSYMUTIL=$lt_DSYMUTIL
15127 # Tool to change global to local symbols on Mac OS X.
15128 NMEDIT=$lt_NMEDIT
15130 # Tool to manipulate fat objects and archives on Mac OS X.
15131 LIPO=$lt_LIPO
15133 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15134 OTOOL=$lt_OTOOL
15136 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15137 OTOOL64=$lt_OTOOL64
15139 # Old archive suffix (normally "a").
15140 libext=$libext
15142 # Shared library suffix (normally ".so").
15143 shrext_cmds=$lt_shrext_cmds
15145 # The commands to extract the exported symbol list from a shared archive.
15146 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15148 # Variables whose values should be saved in libtool wrapper scripts and
15149 # restored at link time.
15150 variables_saved_for_relink=$lt_variables_saved_for_relink
15152 # Do we need the "lib" prefix for modules?
15153 need_lib_prefix=$need_lib_prefix
15155 # Do we need a version for libraries?
15156 need_version=$need_version
15158 # Library versioning type.
15159 version_type=$version_type
15161 # Shared library runtime path variable.
15162 runpath_var=$runpath_var
15164 # Shared library path variable.
15165 shlibpath_var=$shlibpath_var
15167 # Is shlibpath searched before the hard-coded library search path?
15168 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15170 # Format of library name prefix.
15171 libname_spec=$lt_libname_spec
15173 # List of archive names. First name is the real one, the rest are links.
15174 # The last name is the one that the linker finds with -lNAME
15175 library_names_spec=$lt_library_names_spec
15177 # The coded name of the library, if different from the real name.
15178 soname_spec=$lt_soname_spec
15180 # Permission mode override for installation of shared libraries.
15181 install_override_mode=$lt_install_override_mode
15183 # Command to use after installation of a shared archive.
15184 postinstall_cmds=$lt_postinstall_cmds
15186 # Command to use after uninstallation of a shared archive.
15187 postuninstall_cmds=$lt_postuninstall_cmds
15189 # Commands used to finish a libtool library installation in a directory.
15190 finish_cmds=$lt_finish_cmds
15192 # As "finish_cmds", except a single script fragment to be evaled but
15193 # not shown.
15194 finish_eval=$lt_finish_eval
15196 # Whether we should hardcode library paths into libraries.
15197 hardcode_into_libs=$hardcode_into_libs
15199 # Compile-time system search path for libraries.
15200 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15202 # Detected run-time system search path for libraries.
15203 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15205 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15206 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15208 # Whether dlopen is supported.
15209 dlopen_support=$enable_dlopen
15211 # Whether dlopen of programs is supported.
15212 dlopen_self=$enable_dlopen_self
15214 # Whether dlopen of statically linked programs is supported.
15215 dlopen_self_static=$enable_dlopen_self_static
15217 # Commands to strip libraries.
15218 old_striplib=$lt_old_striplib
15219 striplib=$lt_striplib
15222 # The linker used to build libraries.
15223 LD=$lt_LD
15225 # How to create reloadable object files.
15226 reload_flag=$lt_reload_flag
15227 reload_cmds=$lt_reload_cmds
15229 # Commands used to build an old-style archive.
15230 old_archive_cmds=$lt_old_archive_cmds
15232 # A language specific compiler.
15233 CC=$lt_compiler
15235 # Is the compiler the GNU compiler?
15236 with_gcc=$GCC
15238 # Compiler flag to turn off builtin functions.
15239 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15241 # Additional compiler flags for building library objects.
15242 pic_flag=$lt_lt_prog_compiler_pic
15244 # How to pass a linker flag through the compiler.
15245 wl=$lt_lt_prog_compiler_wl
15247 # Compiler flag to prevent dynamic linking.
15248 link_static_flag=$lt_lt_prog_compiler_static
15250 # Does compiler simultaneously support -c and -o options?
15251 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15253 # Whether or not to add -lc for building shared libraries.
15254 build_libtool_need_lc=$archive_cmds_need_lc
15256 # Whether or not to disallow shared libs when runtime libs are static.
15257 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15259 # Compiler flag to allow reflexive dlopens.
15260 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15262 # Compiler flag to generate shared objects directly from archives.
15263 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15265 # Whether the compiler copes with passing no objects directly.
15266 compiler_needs_object=$lt_compiler_needs_object
15268 # Create an old-style archive from a shared archive.
15269 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15271 # Create a temporary old-style archive to link instead of a shared archive.
15272 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15274 # Commands used to build a shared archive.
15275 archive_cmds=$lt_archive_cmds
15276 archive_expsym_cmds=$lt_archive_expsym_cmds
15278 # Commands used to build a loadable module if different from building
15279 # a shared archive.
15280 module_cmds=$lt_module_cmds
15281 module_expsym_cmds=$lt_module_expsym_cmds
15283 # Whether we are building with GNU ld or not.
15284 with_gnu_ld=$lt_with_gnu_ld
15286 # Flag that allows shared libraries with undefined symbols to be built.
15287 allow_undefined_flag=$lt_allow_undefined_flag
15289 # Flag that enforces no undefined symbols.
15290 no_undefined_flag=$lt_no_undefined_flag
15292 # Flag to hardcode \$libdir into a binary during linking.
15293 # This must work even if \$libdir does not exist
15294 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15296 # Whether we need a single "-rpath" flag with a separated argument.
15297 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15299 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15300 # DIR into the resulting binary.
15301 hardcode_direct=$hardcode_direct
15303 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15304 # DIR into the resulting binary and the resulting library dependency is
15305 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15306 # library is relocated.
15307 hardcode_direct_absolute=$hardcode_direct_absolute
15309 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15310 # into the resulting binary.
15311 hardcode_minus_L=$hardcode_minus_L
15313 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15314 # into the resulting binary.
15315 hardcode_shlibpath_var=$hardcode_shlibpath_var
15317 # Set to "yes" if building a shared library automatically hardcodes DIR
15318 # into the library and all subsequent libraries and executables linked
15319 # against it.
15320 hardcode_automatic=$hardcode_automatic
15322 # Set to yes if linker adds runtime paths of dependent libraries
15323 # to runtime path list.
15324 inherit_rpath=$inherit_rpath
15326 # Whether libtool must link a program against all its dependency libraries.
15327 link_all_deplibs=$link_all_deplibs
15329 # Set to "yes" if exported symbols are required.
15330 always_export_symbols=$always_export_symbols
15332 # The commands to list exported symbols.
15333 export_symbols_cmds=$lt_export_symbols_cmds
15335 # Symbols that should not be listed in the preloaded symbols.
15336 exclude_expsyms=$lt_exclude_expsyms
15338 # Symbols that must always be exported.
15339 include_expsyms=$lt_include_expsyms
15341 # Commands necessary for linking programs (against libraries) with templates.
15342 prelink_cmds=$lt_prelink_cmds
15344 # Commands necessary for finishing linking programs.
15345 postlink_cmds=$lt_postlink_cmds
15347 # Specify filename containing input files.
15348 file_list_spec=$lt_file_list_spec
15350 # How to hardcode a shared library path into an executable.
15351 hardcode_action=$hardcode_action
15353 # ### END LIBTOOL CONFIG
15355 _LT_EOF
15357 cat <<'_LT_EOF' >> "$cfgfile"
15359 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15361 # func_munge_path_list VARIABLE PATH
15362 # -----------------------------------
15363 # VARIABLE is name of variable containing _space_ separated list of
15364 # directories to be munged by the contents of PATH, which is string
15365 # having a format:
15366 # "DIR[:DIR]:"
15367 # string "DIR[ DIR]" will be prepended to VARIABLE
15368 # ":DIR[:DIR]"
15369 # string "DIR[ DIR]" will be appended to VARIABLE
15370 # "DIRP[:DIRP]::[DIRA:]DIRA"
15371 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15372 # "DIRA[ DIRA]" will be appended to VARIABLE
15373 # "DIR[:DIR]"
15374 # VARIABLE will be replaced by "DIR[ DIR]"
15375 func_munge_path_list ()
15377 case x$2 in
15381 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15383 x:*)
15384 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15386 *::*)
15387 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15388 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15391 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15393 esac
15397 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15398 func_cc_basename ()
15400 for cc_temp in $*""; do
15401 case $cc_temp in
15402 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15403 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15404 \-*) ;;
15405 *) break;;
15406 esac
15407 done
15408 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15412 # ### END FUNCTIONS SHARED WITH CONFIGURE
15414 _LT_EOF
15416 case $host_os in
15417 aix3*)
15418 cat <<\_LT_EOF >> "$cfgfile"
15419 # AIX sometimes has problems with the GCC collect2 program. For some
15420 # reason, if we set the COLLECT_NAMES environment variable, the problems
15421 # vanish in a puff of smoke.
15422 if test set != "${COLLECT_NAMES+set}"; then
15423 COLLECT_NAMES=
15424 export COLLECT_NAMES
15426 _LT_EOF
15428 esac
15431 ltmain=$ac_aux_dir/ltmain.sh
15434 # We use sed instead of cat because bash on DJGPP gets confused if
15435 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15436 # text mode, it properly converts lines to CR/LF. This bash problem
15437 # is reportedly fixed, but why not run on old versions too?
15438 sed '$q' "$ltmain" >> "$cfgfile" \
15439 || (rm -f "$cfgfile"; exit 1)
15441 mv -f "$cfgfile" "$ofile" ||
15442 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15443 chmod +x "$ofile"
15447 esac
15448 done # for ac_tag
15451 as_fn_exit 0
15452 _ACEOF
15453 ac_clean_files=$ac_clean_files_save
15455 test $ac_write_fail = 0 ||
15456 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15459 # configure is writing to config.log, and then calls config.status.
15460 # config.status does its own redirection, appending to config.log.
15461 # Unfortunately, on DOS this fails, as config.log is still kept open
15462 # by configure, so config.status won't be able to write to it; its
15463 # output is simply discarded. So we exec the FD to /dev/null,
15464 # effectively closing config.log, so it can be properly (re)opened and
15465 # appended to by config.status. When coming back to configure, we
15466 # need to make the FD available again.
15467 if test "$no_create" != yes; then
15468 ac_cs_success=:
15469 ac_config_status_args=
15470 test "$silent" = yes &&
15471 ac_config_status_args="$ac_config_status_args --quiet"
15472 exec 5>/dev/null
15473 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15474 exec 5>>config.log
15475 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15476 # would make configure fail if this is the last instruction.
15477 $ac_cs_success || as_fn_exit 1
15479 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15481 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}