Merge sqlite-release(3.41.2) into prerelease-integration
[sqlcipher.git] / configure
blobd78bd69edcd27ba5bfdd803ac3634940587e799f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sqlcipher 3.41.2.
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.41.2'
591 PACKAGE_STRING='sqlcipher 3.41.2'
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 HAVE_WASI_SDK
667 RELEASE
668 VERSION
669 program_prefix
670 TCLLIBDIR
671 TCLSH_CMD
672 INSTALL_DATA
673 INSTALL_SCRIPT
674 INSTALL_PROGRAM
676 LT_SYS_LIBRARY_PATH
677 OTOOL64
678 OTOOL
679 LIPO
680 NMEDIT
681 DSYMUTIL
682 MANIFEST_TOOL
684 RANLIB
685 STRIP
686 ac_ct_AR
688 DLLTOOL
689 OBJDUMP
690 LN_S
692 ac_ct_DUMPBIN
693 DUMPBIN
695 FGREP
696 EGREP
697 GREP
699 OBJEXT
700 EXEEXT
701 ac_ct_CC
702 CPPFLAGS
703 LDFLAGS
704 CFLAGS
706 host_os
707 host_vendor
708 host_cpu
709 host
710 build_os
711 build_vendor
712 build_cpu
713 build
714 LIBTOOL
715 target_alias
716 host_alias
717 build_alias
718 LIBS
719 ECHO_T
720 ECHO_N
721 ECHO_C
722 DEFS
723 mandir
724 localedir
725 libdir
726 psdir
727 pdfdir
728 dvidir
729 htmldir
730 infodir
731 docdir
732 oldincludedir
733 includedir
734 runstatedir
735 localstatedir
736 sharedstatedir
737 sysconfdir
738 datadir
739 datarootdir
740 libexecdir
741 sbindir
742 bindir
743 program_transform_name
744 prefix
745 exec_prefix
746 PACKAGE_URL
747 PACKAGE_BUGREPORT
748 PACKAGE_STRING
749 PACKAGE_VERSION
750 PACKAGE_TARNAME
751 PACKAGE_NAME
752 PATH_SEPARATOR
753 SHELL'
754 ac_subst_files=''
755 ac_user_opts='
756 enable_option_checking
757 enable_shared
758 enable_static
759 with_pic
760 enable_fast_install
761 with_aix_soname
762 with_gnu_ld
763 with_sysroot
764 enable_libtool_lock
765 enable_largefile
766 with_wasi_sdk
767 enable_threadsafe
768 with_crypto_lib
769 enable_cross_thread_connections
770 enable_releasemode
771 enable_tempstore
772 enable_tcl
773 with_tcl
774 enable_editline
775 enable_readline
776 with_readline_lib
777 with_readline_inc
778 enable_debug
779 enable_amalgamation
780 enable_load_extension
781 enable_math
782 enable_json
783 enable_all
784 enable_memsys5
785 enable_memsys3
786 enable_fts3
787 enable_fts4
788 enable_fts5
789 enable_update_limit
790 enable_geopoly
791 enable_rtree
792 enable_session
793 enable_gcov
795 ac_precious_vars='build_alias
796 host_alias
797 target_alias
799 CFLAGS
800 LDFLAGS
801 LIBS
802 CPPFLAGS
803 LT_SYS_LIBRARY_PATH
805 TCLLIBDIR
806 amalgamation_line_macros'
809 # Initialize some variables set by options.
810 ac_init_help=
811 ac_init_version=false
812 ac_unrecognized_opts=
813 ac_unrecognized_sep=
814 # The variables have the same names as the options, with
815 # dashes changed to underlines.
816 cache_file=/dev/null
817 exec_prefix=NONE
818 no_create=
819 no_recursion=
820 prefix=NONE
821 program_prefix=NONE
822 program_suffix=NONE
823 program_transform_name=s,x,x,
824 silent=
825 site=
826 srcdir=
827 verbose=
828 x_includes=NONE
829 x_libraries=NONE
831 # Installation directory options.
832 # These are left unexpanded so users can "make install exec_prefix=/foo"
833 # and all the variables that are supposed to be based on exec_prefix
834 # by default will actually change.
835 # Use braces instead of parens because sh, perl, etc. also accept them.
836 # (The list follows the same order as the GNU Coding Standards.)
837 bindir='${exec_prefix}/bin'
838 sbindir='${exec_prefix}/sbin'
839 libexecdir='${exec_prefix}/libexec'
840 datarootdir='${prefix}/share'
841 datadir='${datarootdir}'
842 sysconfdir='${prefix}/etc'
843 sharedstatedir='${prefix}/com'
844 localstatedir='${prefix}/var'
845 runstatedir='${localstatedir}/run'
846 includedir='${prefix}/include'
847 oldincludedir='/usr/include'
848 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
849 infodir='${datarootdir}/info'
850 htmldir='${docdir}'
851 dvidir='${docdir}'
852 pdfdir='${docdir}'
853 psdir='${docdir}'
854 libdir='${exec_prefix}/lib'
855 localedir='${datarootdir}/locale'
856 mandir='${datarootdir}/man'
858 ac_prev=
859 ac_dashdash=
860 for ac_option
862 # If the previous option needs an argument, assign it.
863 if test -n "$ac_prev"; then
864 eval $ac_prev=\$ac_option
865 ac_prev=
866 continue
869 case $ac_option in
870 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871 *=) ac_optarg= ;;
872 *) ac_optarg=yes ;;
873 esac
875 # Accept the important Cygnus configure options, so we can diagnose typos.
877 case $ac_dashdash$ac_option in
879 ac_dashdash=yes ;;
881 -bindir | --bindir | --bindi | --bind | --bin | --bi)
882 ac_prev=bindir ;;
883 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884 bindir=$ac_optarg ;;
886 -build | --build | --buil | --bui | --bu)
887 ac_prev=build_alias ;;
888 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889 build_alias=$ac_optarg ;;
891 -cache-file | --cache-file | --cache-fil | --cache-fi \
892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893 ac_prev=cache_file ;;
894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896 cache_file=$ac_optarg ;;
898 --config-cache | -C)
899 cache_file=config.cache ;;
901 -datadir | --datadir | --datadi | --datad)
902 ac_prev=datadir ;;
903 -datadir=* | --datadir=* | --datadi=* | --datad=*)
904 datadir=$ac_optarg ;;
906 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907 | --dataroo | --dataro | --datar)
908 ac_prev=datarootdir ;;
909 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911 datarootdir=$ac_optarg ;;
913 -disable-* | --disable-*)
914 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917 as_fn_error $? "invalid feature name: $ac_useropt"
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
922 "enable_$ac_useropt"
923 "*) ;;
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
926 esac
927 eval enable_$ac_useropt=no ;;
929 -docdir | --docdir | --docdi | --doc | --do)
930 ac_prev=docdir ;;
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 docdir=$ac_optarg ;;
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 ac_prev=dvidir ;;
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 dvidir=$ac_optarg ;;
939 -enable-* | --enable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error $? "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
948 "enable_$ac_useropt"
949 "*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=\$ac_optarg ;;
955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957 | --exec | --exe | --ex)
958 ac_prev=exec_prefix ;;
959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961 | --exec=* | --exe=* | --ex=*)
962 exec_prefix=$ac_optarg ;;
964 -gas | --gas | --ga | --g)
965 # Obsolete; use --with-gas.
966 with_gas=yes ;;
968 -help | --help | --hel | --he | -h)
969 ac_init_help=long ;;
970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971 ac_init_help=recursive ;;
972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973 ac_init_help=short ;;
975 -host | --host | --hos | --ho)
976 ac_prev=host_alias ;;
977 -host=* | --host=* | --hos=* | --ho=*)
978 host_alias=$ac_optarg ;;
980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981 ac_prev=htmldir ;;
982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983 | --ht=*)
984 htmldir=$ac_optarg ;;
986 -includedir | --includedir | --includedi | --included | --include \
987 | --includ | --inclu | --incl | --inc)
988 ac_prev=includedir ;;
989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990 | --includ=* | --inclu=* | --incl=* | --inc=*)
991 includedir=$ac_optarg ;;
993 -infodir | --infodir | --infodi | --infod | --info | --inf)
994 ac_prev=infodir ;;
995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996 infodir=$ac_optarg ;;
998 -libdir | --libdir | --libdi | --libd)
999 ac_prev=libdir ;;
1000 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 libdir=$ac_optarg ;;
1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004 | --libexe | --libex | --libe)
1005 ac_prev=libexecdir ;;
1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007 | --libexe=* | --libex=* | --libe=*)
1008 libexecdir=$ac_optarg ;;
1010 -localedir | --localedir | --localedi | --localed | --locale)
1011 ac_prev=localedir ;;
1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013 localedir=$ac_optarg ;;
1015 -localstatedir | --localstatedir | --localstatedi | --localstated \
1016 | --localstate | --localstat | --localsta | --localst | --locals)
1017 ac_prev=localstatedir ;;
1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020 localstatedir=$ac_optarg ;;
1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023 ac_prev=mandir ;;
1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025 mandir=$ac_optarg ;;
1027 -nfp | --nfp | --nf)
1028 # Obsolete; use --without-fp.
1029 with_fp=no ;;
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032 | --no-cr | --no-c | -n)
1033 no_create=yes ;;
1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037 no_recursion=yes ;;
1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041 | --oldin | --oldi | --old | --ol | --o)
1042 ac_prev=oldincludedir ;;
1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046 oldincludedir=$ac_optarg ;;
1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049 ac_prev=prefix ;;
1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051 prefix=$ac_optarg ;;
1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054 | --program-pre | --program-pr | --program-p)
1055 ac_prev=program_prefix ;;
1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058 program_prefix=$ac_optarg ;;
1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061 | --program-suf | --program-su | --program-s)
1062 ac_prev=program_suffix ;;
1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065 program_suffix=$ac_optarg ;;
1067 -program-transform-name | --program-transform-name \
1068 | --program-transform-nam | --program-transform-na \
1069 | --program-transform-n | --program-transform- \
1070 | --program-transform | --program-transfor \
1071 | --program-transfo | --program-transf \
1072 | --program-trans | --program-tran \
1073 | --progr-tra | --program-tr | --program-t)
1074 ac_prev=program_transform_name ;;
1075 -program-transform-name=* | --program-transform-name=* \
1076 | --program-transform-nam=* | --program-transform-na=* \
1077 | --program-transform-n=* | --program-transform-=* \
1078 | --program-transform=* | --program-transfor=* \
1079 | --program-transfo=* | --program-transf=* \
1080 | --program-trans=* | --program-tran=* \
1081 | --progr-tra=* | --program-tr=* | --program-t=*)
1082 program_transform_name=$ac_optarg ;;
1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085 ac_prev=pdfdir ;;
1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087 pdfdir=$ac_optarg ;;
1089 -psdir | --psdir | --psdi | --psd | --ps)
1090 ac_prev=psdir ;;
1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092 psdir=$ac_optarg ;;
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1096 silent=yes ;;
1098 -runstatedir | --runstatedir | --runstatedi | --runstated \
1099 | --runstate | --runstat | --runsta | --runst | --runs \
1100 | --run | --ru | --r)
1101 ac_prev=runstatedir ;;
1102 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1103 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1104 | --run=* | --ru=* | --r=*)
1105 runstatedir=$ac_optarg ;;
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108 ac_prev=sbindir ;;
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110 | --sbi=* | --sb=*)
1111 sbindir=$ac_optarg ;;
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1116 | --sha | --sh)
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121 | --sha=* | --sh=*)
1122 sharedstatedir=$ac_optarg ;;
1124 -site | --site | --sit)
1125 ac_prev=site ;;
1126 -site=* | --site=* | --sit=*)
1127 site=$ac_optarg ;;
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130 ac_prev=srcdir ;;
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132 srcdir=$ac_optarg ;;
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139 sysconfdir=$ac_optarg ;;
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
1142 ac_prev=target_alias ;;
1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144 target_alias=$ac_optarg ;;
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147 verbose=yes ;;
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
1152 -with-* | --with-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error $? "invalid package name: $ac_useropt"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1161 "with_$ac_useropt"
1162 "*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1165 esac
1166 eval with_$ac_useropt=\$ac_optarg ;;
1168 -without-* | --without-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid package name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1177 "with_$ac_useropt"
1178 "*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval with_$ac_useropt=no ;;
1184 --x)
1185 # Obsolete; use --with-x.
1186 with_x=yes ;;
1188 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189 | --x-incl | --x-inc | --x-in | --x-i)
1190 ac_prev=x_includes ;;
1191 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193 x_includes=$ac_optarg ;;
1195 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197 ac_prev=x_libraries ;;
1198 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200 x_libraries=$ac_optarg ;;
1202 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1203 Try \`$0 --help' for more information"
1206 *=*)
1207 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208 # Reject names that are not valid shell variable names.
1209 case $ac_envvar in #(
1210 '' | [0-9]* | *[!_$as_cr_alnum]* )
1211 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1212 esac
1213 eval $ac_envvar=\$ac_optarg
1214 export $ac_envvar ;;
1217 # FIXME: should be removed in autoconf 3.0.
1218 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1219 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1221 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1224 esac
1225 done
1227 if test -n "$ac_prev"; then
1228 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229 as_fn_error $? "missing argument to $ac_option"
1232 if test -n "$ac_unrecognized_opts"; then
1233 case $enable_option_checking in
1234 no) ;;
1235 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1236 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237 esac
1240 # Check all directory arguments for consistency.
1241 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242 datadir sysconfdir sharedstatedir localstatedir includedir \
1243 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244 libdir localedir mandir runstatedir
1246 eval ac_val=\$$ac_var
1247 # Remove trailing slashes.
1248 case $ac_val in
1249 */ )
1250 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251 eval $ac_var=\$ac_val;;
1252 esac
1253 # Be sure to have absolute directory names.
1254 case $ac_val in
1255 [\\/$]* | ?:[\\/]* ) continue;;
1256 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257 esac
1258 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1259 done
1261 # There might be people who depend on the old broken behavior: `$host'
1262 # used to hold the argument of --host etc.
1263 # FIXME: To remove some day.
1264 build=$build_alias
1265 host=$host_alias
1266 target=$target_alias
1268 # FIXME: To remove some day.
1269 if test "x$host_alias" != x; then
1270 if test "x$build_alias" = x; then
1271 cross_compiling=maybe
1272 elif test "x$build_alias" != "x$host_alias"; then
1273 cross_compiling=yes
1277 ac_tool_prefix=
1278 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1280 test "$silent" = yes && exec 6>/dev/null
1283 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284 ac_ls_di=`ls -di .` &&
1285 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286 as_fn_error $? "working directory cannot be determined"
1287 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1288 as_fn_error $? "pwd does not report name of working directory"
1291 # Find the source files, if location was not specified.
1292 if test -z "$srcdir"; then
1293 ac_srcdir_defaulted=yes
1294 # Try the directory containing this script, then the parent directory.
1295 ac_confdir=`$as_dirname -- "$as_myself" ||
1296 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297 X"$as_myself" : 'X\(//\)[^/]' \| \
1298 X"$as_myself" : 'X\(//\)$' \| \
1299 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1300 $as_echo X"$as_myself" |
1301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302 s//\1/
1305 /^X\(\/\/\)[^/].*/{
1306 s//\1/
1309 /^X\(\/\/\)$/{
1310 s//\1/
1313 /^X\(\/\).*/{
1314 s//\1/
1317 s/.*/./; q'`
1318 srcdir=$ac_confdir
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1320 srcdir=..
1322 else
1323 ac_srcdir_defaulted=no
1325 if test ! -r "$srcdir/$ac_unique_file"; then
1326 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1329 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330 ac_abs_confdir=`(
1331 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1332 pwd)`
1333 # When building in place, set srcdir=.
1334 if test "$ac_abs_confdir" = "$ac_pwd"; then
1335 srcdir=.
1337 # Remove unnecessary trailing slashes from srcdir.
1338 # Double slashes in file names in object file debugging info
1339 # mess up M-x gdb in Emacs.
1340 case $srcdir in
1341 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342 esac
1343 for ac_var in $ac_precious_vars; do
1344 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_env_${ac_var}_value=\$${ac_var}
1346 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348 done
1351 # Report the --help message.
1353 if test "$ac_init_help" = "long"; then
1354 # Omit some internal or obsolete options to make the list less imposing.
1355 # This message is too long to be a string in the A/UX 3.1 sh.
1356 cat <<_ACEOF
1357 \`configure' configures sqlcipher 3.41.2 to adapt to many kinds of systems.
1359 Usage: $0 [OPTION]... [VAR=VALUE]...
1361 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362 VAR=VALUE. See below for descriptions of some of the useful variables.
1364 Defaults for the options are specified in brackets.
1366 Configuration:
1367 -h, --help display this help and exit
1368 --help=short display options specific to this package
1369 --help=recursive display the short help of all the included packages
1370 -V, --version display version information and exit
1371 -q, --quiet, --silent do not print \`checking ...' messages
1372 --cache-file=FILE cache test results in FILE [disabled]
1373 -C, --config-cache alias for \`--cache-file=config.cache'
1374 -n, --no-create do not create output files
1375 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1377 Installation directories:
1378 --prefix=PREFIX install architecture-independent files in PREFIX
1379 [$ac_default_prefix]
1380 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1381 [PREFIX]
1383 By default, \`make install' will install all the files in
1384 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1385 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1386 for instance \`--prefix=\$HOME'.
1388 For better control, use the options below.
1390 Fine tuning of the installation directories:
1391 --bindir=DIR user executables [EPREFIX/bin]
1392 --sbindir=DIR system admin executables [EPREFIX/sbin]
1393 --libexecdir=DIR program executables [EPREFIX/libexec]
1394 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1395 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1396 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1397 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1398 --libdir=DIR object code libraries [EPREFIX/lib]
1399 --includedir=DIR C header files [PREFIX/include]
1400 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1403 --infodir=DIR info documentation [DATAROOTDIR/info]
1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1405 --mandir=DIR man documentation [DATAROOTDIR/man]
1406 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlcipher]
1407 --htmldir=DIR html documentation [DOCDIR]
1408 --dvidir=DIR dvi documentation [DOCDIR]
1409 --pdfdir=DIR pdf documentation [DOCDIR]
1410 --psdir=DIR ps documentation [DOCDIR]
1411 _ACEOF
1413 cat <<\_ACEOF
1415 System types:
1416 --build=BUILD configure for building on BUILD [guessed]
1417 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1418 _ACEOF
1421 if test -n "$ac_init_help"; then
1422 case $ac_init_help in
1423 short | recursive ) echo "Configuration of sqlcipher 3.41.2:";;
1424 esac
1425 cat <<\_ACEOF
1427 Optional Features:
1428 --disable-option-checking ignore unrecognized --enable/--with options
1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1431 --enable-shared[=PKGS] build shared libraries [default=yes]
1432 --enable-static[=PKGS] build static libraries [default=yes]
1433 --enable-fast-install[=PKGS]
1434 optimize for fast installation [default=yes]
1435 --disable-libtool-lock avoid locking (might break parallel builds)
1436 --disable-largefile omit support for large files
1437 --disable-threadsafe Disable mutexing
1438 --enable-cross-thread-connections
1439 Allow connection sharing across threads
1440 --enable-releasemode Support libtool link to release mode
1441 --enable-tempstore Use an in-ram database for temporary tables
1442 (never,no,yes,always)
1443 --disable-tcl do not build TCL extension
1444 --enable-editline enable BSD editline support
1445 --disable-readline disable readline support
1446 --enable-debug enable debugging & verbose explain
1447 --disable-amalgamation Disable the amalgamation and instead build all files
1448 separately
1449 --disable-load-extension
1450 Disable loading of external extensions
1451 --disable-math Disable math functions
1452 --disable-json Disable JSON functions
1453 --enable-all Enable FTS4, FTS5, Geopoly, RTree, Sessions
1454 --enable-memsys5 Enable MEMSYS5
1455 --enable-memsys3 Enable MEMSYS3
1456 --enable-fts3 Enable the FTS3 extension
1457 --enable-fts4 Enable the FTS4 extension
1458 --enable-fts5 Enable the FTS5 extension
1459 --enable-update-limit Enable the UPDATE/DELETE LIMIT clause
1460 --enable-geopoly Enable the GEOPOLY extension
1461 --enable-rtree Enable the RTREE extension
1462 --enable-session Enable the SESSION extension
1463 --enable-gcov Enable coverage testing using gcov
1465 Optional Packages:
1466 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1467 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1468 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1469 both]
1470 --with-aix-soname=aix|svr4|both
1471 shared library versioning (aka "SONAME") variant to
1472 provide on AIX, [default=aix].
1473 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1474 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1475 compiler's sysroot if not specified).
1476 --with-wasi-sdk=DIR directory containing the WASI SDK. Triggers
1477 cross-compile to WASM.
1478 --with-crypto-lib Specify which crypto library to use
1479 --with-tcl=DIR directory containing tcl configuration
1480 (tclConfig.sh)
1481 --with-readline-lib specify readline library
1482 --with-readline-inc specify readline include paths
1484 Some influential environment variables:
1485 CC C compiler command
1486 CFLAGS C compiler flags
1487 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1488 nonstandard directory <lib dir>
1489 LIBS libraries to pass to the linker, e.g. -l<library>
1490 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1491 you have headers in a nonstandard directory <include dir>
1492 LT_SYS_LIBRARY_PATH
1493 User-defined run-time library search path.
1494 CPP C preprocessor
1495 TCLLIBDIR Where to install tcl plugin
1496 amalgamation_line_macros
1499 Use these variables to override the choices made by `configure' or to help
1500 it to find libraries and programs with nonstandard names/locations.
1502 Report bugs to the package provider.
1503 _ACEOF
1504 ac_status=$?
1507 if test "$ac_init_help" = "recursive"; then
1508 # If there are subdirs, report their specific --help.
1509 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1510 test -d "$ac_dir" ||
1511 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1512 continue
1513 ac_builddir=.
1515 case "$ac_dir" in
1516 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1519 # A ".." for each directory in $ac_dir_suffix.
1520 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1521 case $ac_top_builddir_sub in
1522 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1524 esac ;;
1525 esac
1526 ac_abs_top_builddir=$ac_pwd
1527 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1528 # for backward compatibility:
1529 ac_top_builddir=$ac_top_build_prefix
1531 case $srcdir in
1532 .) # We are building in place.
1533 ac_srcdir=.
1534 ac_top_srcdir=$ac_top_builddir_sub
1535 ac_abs_top_srcdir=$ac_pwd ;;
1536 [\\/]* | ?:[\\/]* ) # Absolute name.
1537 ac_srcdir=$srcdir$ac_dir_suffix;
1538 ac_top_srcdir=$srcdir
1539 ac_abs_top_srcdir=$srcdir ;;
1540 *) # Relative name.
1541 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1542 ac_top_srcdir=$ac_top_build_prefix$srcdir
1543 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544 esac
1545 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547 cd "$ac_dir" || { ac_status=$?; continue; }
1548 # Check for guested configure.
1549 if test -f "$ac_srcdir/configure.gnu"; then
1550 echo &&
1551 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1552 elif test -f "$ac_srcdir/configure"; then
1553 echo &&
1554 $SHELL "$ac_srcdir/configure" --help=recursive
1555 else
1556 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557 fi || ac_status=$?
1558 cd "$ac_pwd" || { ac_status=$?; break; }
1559 done
1562 test -n "$ac_init_help" && exit $ac_status
1563 if $ac_init_version; then
1564 cat <<\_ACEOF
1565 sqlcipher configure 3.41.2
1566 generated by GNU Autoconf 2.69
1568 Copyright (C) 2012 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1571 _ACEOF
1572 exit
1575 ## ------------------------ ##
1576 ## Autoconf initialization. ##
1577 ## ------------------------ ##
1579 # ac_fn_c_try_compile LINENO
1580 # --------------------------
1581 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1582 ac_fn_c_try_compile ()
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 rm -f conftest.$ac_objext
1586 if { { ac_try="$ac_compile"
1587 case "(($ac_try" in
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1590 esac
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 $as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_compile") 2>conftest.err
1594 ac_status=$?
1595 if test -s conftest.err; then
1596 grep -v '^ *+' conftest.err >conftest.er1
1597 cat conftest.er1 >&5
1598 mv -f conftest.er1 conftest.err
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } && {
1602 test -z "$ac_c_werror_flag" ||
1603 test ! -s conftest.err
1604 } && test -s conftest.$ac_objext; then :
1605 ac_retval=0
1606 else
1607 $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1610 ac_retval=1
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1615 } # ac_fn_c_try_compile
1617 # ac_fn_c_try_link LINENO
1618 # -----------------------
1619 # Try to link conftest.$ac_ext, and return whether this succeeded.
1620 ac_fn_c_try_link ()
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 rm -f conftest.$ac_objext conftest$ac_exeext
1624 if { { ac_try="$ac_link"
1625 case "(($ac_try" in
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1628 esac
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_link") 2>conftest.err
1632 ac_status=$?
1633 if test -s conftest.err; then
1634 grep -v '^ *+' conftest.err >conftest.er1
1635 cat conftest.er1 >&5
1636 mv -f conftest.er1 conftest.err
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } && {
1640 test -z "$ac_c_werror_flag" ||
1641 test ! -s conftest.err
1642 } && test -s conftest$ac_exeext && {
1643 test "$cross_compiling" = yes ||
1644 test -x conftest$ac_exeext
1645 }; then :
1646 ac_retval=0
1647 else
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1651 ac_retval=1
1653 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1654 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1655 # interfere with the next link command; also delete a directory that is
1656 # left behind by Apple's compiler. We do this before executing the actions.
1657 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 as_fn_set_status $ac_retval
1661 } # ac_fn_c_try_link
1663 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1664 # -------------------------------------------------------
1665 # Tests whether HEADER exists and can be compiled using the include files in
1666 # INCLUDES, setting the cache variable VAR accordingly.
1667 ac_fn_c_check_header_compile ()
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671 $as_echo_n "checking for $2... " >&6; }
1672 if eval \${$3+:} false; then :
1673 $as_echo_n "(cached) " >&6
1674 else
1675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676 /* end confdefs.h. */
1678 #include <$2>
1679 _ACEOF
1680 if ac_fn_c_try_compile "$LINENO"; then :
1681 eval "$3=yes"
1682 else
1683 eval "$3=no"
1685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1687 eval ac_res=\$$3
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689 $as_echo "$ac_res" >&6; }
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 } # ac_fn_c_check_header_compile
1694 # ac_fn_c_try_cpp LINENO
1695 # ----------------------
1696 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1697 ac_fn_c_try_cpp ()
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 if { { ac_try="$ac_cpp conftest.$ac_ext"
1701 case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } > conftest.i && {
1716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 }; then :
1719 ac_retval=0
1720 else
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1724 ac_retval=1
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1729 } # ac_fn_c_try_cpp
1731 # ac_fn_c_try_run LINENO
1732 # ----------------------
1733 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1734 # that executables *can* be run.
1735 ac_fn_c_try_run ()
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 if { { ac_try="$ac_link"
1739 case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>&5
1746 ac_status=$?
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1749 { { case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_try") 2>&5
1756 ac_status=$?
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; }; }; then :
1759 ac_retval=0
1760 else
1761 $as_echo "$as_me: program exited with status $ac_status" >&5
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1765 ac_retval=$ac_status
1767 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1771 } # ac_fn_c_try_run
1773 # ac_fn_c_check_func LINENO FUNC VAR
1774 # ----------------------------------
1775 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1776 ac_fn_c_check_func ()
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \${$3+:} false; then :
1782 $as_echo_n "(cached) " >&6
1783 else
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1786 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1788 #define $2 innocuous_$2
1790 /* System header to define __stub macros and hopefully few prototypes,
1791 which can conflict with char $2 (); below.
1792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1793 <limits.h> exists even on freestanding compilers. */
1795 #ifdef __STDC__
1796 # include <limits.h>
1797 #else
1798 # include <assert.h>
1799 #endif
1801 #undef $2
1803 /* Override any GCC internal prototype to avoid an error.
1804 Use char because int might match the return type of a GCC
1805 builtin and then its argument prototype would still apply. */
1806 #ifdef __cplusplus
1807 extern "C"
1808 #endif
1809 char $2 ();
1810 /* The GNU C library defines this for functions which it implements
1811 to always fail with ENOSYS. Some functions are actually named
1812 something starting with __ and the normal name is an alias. */
1813 #if defined __stub_$2 || defined __stub___$2
1814 choke me
1815 #endif
1818 main ()
1820 return $2 ();
1822 return 0;
1824 _ACEOF
1825 if ac_fn_c_try_link "$LINENO"; then :
1826 eval "$3=yes"
1827 else
1828 eval "$3=no"
1830 rm -f core conftest.err conftest.$ac_objext \
1831 conftest$ac_exeext conftest.$ac_ext
1833 eval ac_res=\$$3
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 } # ac_fn_c_check_func
1840 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1841 # -------------------------------------------
1842 # Tests whether TYPE exists after having included INCLUDES, setting cache
1843 # variable VAR accordingly.
1844 ac_fn_c_check_type ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850 $as_echo_n "(cached) " >&6
1851 else
1852 eval "$3=no"
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1857 main ()
1859 if (sizeof ($2))
1860 return 0;
1862 return 0;
1864 _ACEOF
1865 if ac_fn_c_try_compile "$LINENO"; then :
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1870 main ()
1872 if (sizeof (($2)))
1873 return 0;
1875 return 0;
1877 _ACEOF
1878 if ac_fn_c_try_compile "$LINENO"; then :
1880 else
1881 eval "$3=yes"
1883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1887 eval ac_res=\$$3
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892 } # ac_fn_c_check_type
1894 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1895 # -------------------------------------------------------
1896 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1897 # the include files in INCLUDES and setting the cache variable VAR
1898 # accordingly.
1899 ac_fn_c_check_header_mongrel ()
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 if eval \${$3+:} false; then :
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904 $as_echo_n "checking for $2... " >&6; }
1905 if eval \${$3+:} false; then :
1906 $as_echo_n "(cached) " >&6
1908 eval ac_res=\$$3
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910 $as_echo "$ac_res" >&6; }
1911 else
1912 # Is the header compilable?
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1914 $as_echo_n "checking $2 usability... " >&6; }
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1918 #include <$2>
1919 _ACEOF
1920 if ac_fn_c_try_compile "$LINENO"; then :
1921 ac_header_compiler=yes
1922 else
1923 ac_header_compiler=no
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1927 $as_echo "$ac_header_compiler" >&6; }
1929 # Is the header present?
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1931 $as_echo_n "checking $2 presence... " >&6; }
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1934 #include <$2>
1935 _ACEOF
1936 if ac_fn_c_try_cpp "$LINENO"; then :
1937 ac_header_preproc=yes
1938 else
1939 ac_header_preproc=no
1941 rm -f conftest.err conftest.i conftest.$ac_ext
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1943 $as_echo "$ac_header_preproc" >&6; }
1945 # So? What about this header?
1946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1947 yes:no: )
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1949 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1951 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1953 no:yes:* )
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1955 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1957 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1959 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1961 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1963 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1965 esac
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if eval \${$3+:} false; then :
1969 $as_echo_n "(cached) " >&6
1970 else
1971 eval "$3=\$ac_header_compiler"
1973 eval ac_res=\$$3
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975 $as_echo "$ac_res" >&6; }
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979 } # ac_fn_c_check_header_mongrel
1980 cat >config.log <<_ACEOF
1981 This file contains any messages produced by compilers while
1982 running configure, to aid debugging if configure makes a mistake.
1984 It was created by sqlcipher $as_me 3.41.2, which was
1985 generated by GNU Autoconf 2.69. Invocation command line was
1987 $ $0 $@
1989 _ACEOF
1990 exec 5>>config.log
1992 cat <<_ASUNAME
1993 ## --------- ##
1994 ## Platform. ##
1995 ## --------- ##
1997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2004 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2006 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2007 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2009 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2010 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2011 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2012 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2014 _ASUNAME
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
2021 $as_echo "PATH: $as_dir"
2022 done
2023 IFS=$as_save_IFS
2025 } >&5
2027 cat >&5 <<_ACEOF
2030 ## ----------- ##
2031 ## Core tests. ##
2032 ## ----------- ##
2034 _ACEOF
2037 # Keep a trace of the command line.
2038 # Strip out --no-create and --no-recursion so they do not pile up.
2039 # Strip out --silent because we don't want to record it for future runs.
2040 # Also quote any args containing shell meta-characters.
2041 # Make two passes to allow for proper duplicate-argument suppression.
2042 ac_configure_args=
2043 ac_configure_args0=
2044 ac_configure_args1=
2045 ac_must_keep_next=false
2046 for ac_pass in 1 2
2048 for ac_arg
2050 case $ac_arg in
2051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2053 | -silent | --silent | --silen | --sile | --sil)
2054 continue ;;
2055 *\'*)
2056 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2057 esac
2058 case $ac_pass in
2059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2061 as_fn_append ac_configure_args1 " '$ac_arg'"
2062 if test $ac_must_keep_next = true; then
2063 ac_must_keep_next=false # Got value, back to normal.
2064 else
2065 case $ac_arg in
2066 *=* | --config-cache | -C | -disable-* | --disable-* \
2067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2069 | -with-* | --with-* | -without-* | --without-* | --x)
2070 case "$ac_configure_args0 " in
2071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2072 esac
2074 -* ) ac_must_keep_next=true ;;
2075 esac
2077 as_fn_append ac_configure_args " '$ac_arg'"
2079 esac
2080 done
2081 done
2082 { ac_configure_args0=; unset ac_configure_args0;}
2083 { ac_configure_args1=; unset ac_configure_args1;}
2085 # When interrupted or exit'd, cleanup temporary files, and complete
2086 # config.log. We remove comments because anyway the quotes in there
2087 # would cause problems or look ugly.
2088 # WARNING: Use '\'' to represent an apostrophe within the trap.
2089 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2090 trap 'exit_status=$?
2091 # Save into config.log some information that might help in debugging.
2093 echo
2095 $as_echo "## ---------------- ##
2096 ## Cache variables. ##
2097 ## ---------------- ##"
2098 echo
2099 # The following way of writing the cache mishandles newlines in values,
2101 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2102 eval ac_val=\$$ac_var
2103 case $ac_val in #(
2104 *${as_nl}*)
2105 case $ac_var in #(
2106 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2107 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2108 esac
2109 case $ac_var in #(
2110 _ | IFS | as_nl) ;; #(
2111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2112 *) { eval $ac_var=; unset $ac_var;} ;;
2113 esac ;;
2114 esac
2115 done
2116 (set) 2>&1 |
2117 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2118 *${as_nl}ac_space=\ *)
2119 sed -n \
2120 "s/'\''/'\''\\\\'\'''\''/g;
2121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2122 ;; #(
2124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2126 esac |
2127 sort
2129 echo
2131 $as_echo "## ----------------- ##
2132 ## Output variables. ##
2133 ## ----------------- ##"
2134 echo
2135 for ac_var in $ac_subst_vars
2137 eval ac_val=\$$ac_var
2138 case $ac_val in
2139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140 esac
2141 $as_echo "$ac_var='\''$ac_val'\''"
2142 done | sort
2143 echo
2145 if test -n "$ac_subst_files"; then
2146 $as_echo "## ------------------- ##
2147 ## File substitutions. ##
2148 ## ------------------- ##"
2149 echo
2150 for ac_var in $ac_subst_files
2152 eval ac_val=\$$ac_var
2153 case $ac_val in
2154 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2155 esac
2156 $as_echo "$ac_var='\''$ac_val'\''"
2157 done | sort
2158 echo
2161 if test -s confdefs.h; then
2162 $as_echo "## ----------- ##
2163 ## confdefs.h. ##
2164 ## ----------- ##"
2165 echo
2166 cat confdefs.h
2167 echo
2169 test "$ac_signal" != 0 &&
2170 $as_echo "$as_me: caught signal $ac_signal"
2171 $as_echo "$as_me: exit $exit_status"
2172 } >&5
2173 rm -f core *.core core.conftest.* &&
2174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2175 exit $exit_status
2177 for ac_signal in 1 2 13 15; do
2178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2179 done
2180 ac_signal=0
2182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2183 rm -f -r conftest* confdefs.h
2185 $as_echo "/* confdefs.h */" > confdefs.h
2187 # Predefined preprocessor variables.
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_NAME "$PACKAGE_NAME"
2191 _ACEOF
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2195 _ACEOF
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2199 _ACEOF
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_STRING "$PACKAGE_STRING"
2203 _ACEOF
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2207 _ACEOF
2209 cat >>confdefs.h <<_ACEOF
2210 #define PACKAGE_URL "$PACKAGE_URL"
2211 _ACEOF
2214 # Let the site file select an alternate cache file if it wants to.
2215 # Prefer an explicitly selected file to automatically selected ones.
2216 ac_site_file1=NONE
2217 ac_site_file2=NONE
2218 if test -n "$CONFIG_SITE"; then
2219 # We do not want a PATH search for config.site.
2220 case $CONFIG_SITE in #((
2221 -*) ac_site_file1=./$CONFIG_SITE;;
2222 */*) ac_site_file1=$CONFIG_SITE;;
2223 *) ac_site_file1=./$CONFIG_SITE;;
2224 esac
2225 elif test "x$prefix" != xNONE; then
2226 ac_site_file1=$prefix/share/config.site
2227 ac_site_file2=$prefix/etc/config.site
2228 else
2229 ac_site_file1=$ac_default_prefix/share/config.site
2230 ac_site_file2=$ac_default_prefix/etc/config.site
2232 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2234 test "x$ac_site_file" = xNONE && continue
2235 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2237 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2238 sed 's/^/| /' "$ac_site_file" >&5
2239 . "$ac_site_file" \
2240 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2242 as_fn_error $? "failed to load site script $ac_site_file
2243 See \`config.log' for more details" "$LINENO" 5; }
2245 done
2247 if test -r "$cache_file"; then
2248 # Some versions of bash will fail to source /dev/null (special files
2249 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2250 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2252 $as_echo "$as_me: loading cache $cache_file" >&6;}
2253 case $cache_file in
2254 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2255 *) . "./$cache_file";;
2256 esac
2258 else
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2260 $as_echo "$as_me: creating cache $cache_file" >&6;}
2261 >$cache_file
2264 # Check that the precious variables saved in the cache have kept the same
2265 # value.
2266 ac_cache_corrupted=false
2267 for ac_var in $ac_precious_vars; do
2268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2269 eval ac_new_set=\$ac_env_${ac_var}_set
2270 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2271 eval ac_new_val=\$ac_env_${ac_var}_value
2272 case $ac_old_set,$ac_new_set in
2273 set,)
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2275 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2276 ac_cache_corrupted=: ;;
2277 ,set)
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2279 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2280 ac_cache_corrupted=: ;;
2281 ,);;
2283 if test "x$ac_old_val" != "x$ac_new_val"; then
2284 # differences in whitespace do not lead to failure.
2285 ac_old_val_w=`echo x $ac_old_val`
2286 ac_new_val_w=`echo x $ac_new_val`
2287 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2289 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2290 ac_cache_corrupted=:
2291 else
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2293 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2294 eval $ac_var=\$ac_old_val
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2297 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2299 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2300 fi;;
2301 esac
2302 # Pass precious variables to config.status.
2303 if test "$ac_new_set" = set; then
2304 case $ac_new_val in
2305 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2306 *) ac_arg=$ac_var=$ac_new_val ;;
2307 esac
2308 case " $ac_configure_args " in
2309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2310 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2311 esac
2313 done
2314 if $ac_cache_corrupted; then
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2318 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2319 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2321 ## -------------------- ##
2322 ## Main body of script. ##
2323 ## -------------------- ##
2325 ac_ext=c
2326 ac_cpp='$CPP $CPPFLAGS'
2327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2333 sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
2334 if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2335 as_fn_error $? "configure script is out of date:
2336 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2337 top level VERSION file = $sqlite_version_sanity_check
2338 please regen with autoconf" "$LINENO" 5
2341 #########
2342 # Programs needed
2344 ac_aux_dir=
2345 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2346 if test -f "$ac_dir/install-sh"; then
2347 ac_aux_dir=$ac_dir
2348 ac_install_sh="$ac_aux_dir/install-sh -c"
2349 break
2350 elif test -f "$ac_dir/install.sh"; then
2351 ac_aux_dir=$ac_dir
2352 ac_install_sh="$ac_aux_dir/install.sh -c"
2353 break
2354 elif test -f "$ac_dir/shtool"; then
2355 ac_aux_dir=$ac_dir
2356 ac_install_sh="$ac_aux_dir/shtool install -c"
2357 break
2359 done
2360 if test -z "$ac_aux_dir"; then
2361 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2364 # These three variables are undocumented and unsupported,
2365 # and are intended to be withdrawn in a future Autoconf release.
2366 # They can cause serious problems if a builder's source tree is in a directory
2367 # whose full name contains unusual characters.
2368 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2369 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2370 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2373 case `pwd` in
2374 *\ * | *\ *)
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2376 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2377 esac
2381 macro_version='2.4.6'
2382 macro_revision='2.4.6'
2396 ltmain=$ac_aux_dir/ltmain.sh
2398 # Make sure we can run config.sub.
2399 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2400 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2403 $as_echo_n "checking build system type... " >&6; }
2404 if ${ac_cv_build+:} false; then :
2405 $as_echo_n "(cached) " >&6
2406 else
2407 ac_build_alias=$build_alias
2408 test "x$ac_build_alias" = x &&
2409 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2410 test "x$ac_build_alias" = x &&
2411 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2412 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2413 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2417 $as_echo "$ac_cv_build" >&6; }
2418 case $ac_cv_build in
2419 *-*-*) ;;
2420 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2421 esac
2422 build=$ac_cv_build
2423 ac_save_IFS=$IFS; IFS='-'
2424 set x $ac_cv_build
2425 shift
2426 build_cpu=$1
2427 build_vendor=$2
2428 shift; shift
2429 # Remember, the first character of IFS is used to create $*,
2430 # except with old shells:
2431 build_os=$*
2432 IFS=$ac_save_IFS
2433 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2437 $as_echo_n "checking host system type... " >&6; }
2438 if ${ac_cv_host+:} false; then :
2439 $as_echo_n "(cached) " >&6
2440 else
2441 if test "x$host_alias" = x; then
2442 ac_cv_host=$ac_cv_build
2443 else
2444 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2445 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2450 $as_echo "$ac_cv_host" >&6; }
2451 case $ac_cv_host in
2452 *-*-*) ;;
2453 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2454 esac
2455 host=$ac_cv_host
2456 ac_save_IFS=$IFS; IFS='-'
2457 set x $ac_cv_host
2458 shift
2459 host_cpu=$1
2460 host_vendor=$2
2461 shift; shift
2462 # Remember, the first character of IFS is used to create $*,
2463 # except with old shells:
2464 host_os=$*
2465 IFS=$ac_save_IFS
2466 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2469 # Backslashify metacharacters that are still active within
2470 # double-quoted strings.
2471 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2473 # Same as above, but do not quote variable references.
2474 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2476 # Sed substitution to delay expansion of an escaped shell variable in a
2477 # double_quote_subst'ed string.
2478 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2480 # Sed substitution to delay expansion of an escaped single quote.
2481 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2483 # Sed substitution to avoid accidental globbing in evaled expressions
2484 no_glob_subst='s/\*/\\\*/g'
2486 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2487 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2488 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2491 $as_echo_n "checking how to print strings... " >&6; }
2492 # Test print first, because it will be a builtin if present.
2493 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2494 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2495 ECHO='print -r --'
2496 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2497 ECHO='printf %s\n'
2498 else
2499 # Use this function as a fallback that always works.
2500 func_fallback_echo ()
2502 eval 'cat <<_LTECHO_EOF
2504 _LTECHO_EOF'
2506 ECHO='func_fallback_echo'
2509 # func_echo_all arg...
2510 # Invoke $ECHO with all args, space-separated.
2511 func_echo_all ()
2513 $ECHO ""
2516 case $ECHO in
2517 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2518 $as_echo "printf" >&6; } ;;
2519 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2520 $as_echo "print -r" >&6; } ;;
2521 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2522 $as_echo "cat" >&6; } ;;
2523 esac
2538 ac_ext=c
2539 ac_cpp='$CPP $CPPFLAGS'
2540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2543 if test -n "$ac_tool_prefix"; then
2544 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2545 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2547 $as_echo_n "checking for $ac_word... " >&6; }
2548 if ${ac_cv_prog_CC+:} false; then :
2549 $as_echo_n "(cached) " >&6
2550 else
2551 if test -n "$CC"; then
2552 ac_cv_prog_CC="$CC" # Let the user override the test.
2553 else
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 for as_dir in $PATH
2557 IFS=$as_save_IFS
2558 test -z "$as_dir" && as_dir=.
2559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2561 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 break 2
2565 done
2566 done
2567 IFS=$as_save_IFS
2571 CC=$ac_cv_prog_CC
2572 if test -n "$CC"; then
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2574 $as_echo "$CC" >&6; }
2575 else
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2577 $as_echo "no" >&6; }
2582 if test -z "$ac_cv_prog_CC"; then
2583 ac_ct_CC=$CC
2584 # Extract the first word of "gcc", so it can be a program name with args.
2585 set dummy gcc; ac_word=$2
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2587 $as_echo_n "checking for $ac_word... " >&6; }
2588 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2589 $as_echo_n "(cached) " >&6
2590 else
2591 if test -n "$ac_ct_CC"; then
2592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2593 else
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 for as_dir in $PATH
2597 IFS=$as_save_IFS
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2601 ac_cv_prog_ac_ct_CC="gcc"
2602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 break 2
2605 done
2606 done
2607 IFS=$as_save_IFS
2611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2612 if test -n "$ac_ct_CC"; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2614 $as_echo "$ac_ct_CC" >&6; }
2615 else
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617 $as_echo "no" >&6; }
2620 if test "x$ac_ct_CC" = x; then
2621 CC=""
2622 else
2623 case $cross_compiling:$ac_tool_warned in
2624 yes:)
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2627 ac_tool_warned=yes ;;
2628 esac
2629 CC=$ac_ct_CC
2631 else
2632 CC="$ac_cv_prog_CC"
2635 if test -z "$CC"; then
2636 if test -n "$ac_tool_prefix"; then
2637 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2638 set dummy ${ac_tool_prefix}cc; ac_word=$2
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2640 $as_echo_n "checking for $ac_word... " >&6; }
2641 if ${ac_cv_prog_CC+:} false; then :
2642 $as_echo_n "(cached) " >&6
2643 else
2644 if test -n "$CC"; then
2645 ac_cv_prog_CC="$CC" # Let the user override the test.
2646 else
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 for as_dir in $PATH
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2654 ac_cv_prog_CC="${ac_tool_prefix}cc"
2655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 break 2
2658 done
2659 done
2660 IFS=$as_save_IFS
2664 CC=$ac_cv_prog_CC
2665 if test -n "$CC"; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2667 $as_echo "$CC" >&6; }
2668 else
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2670 $as_echo "no" >&6; }
2676 if test -z "$CC"; then
2677 # Extract the first word of "cc", so it can be a program name with args.
2678 set dummy cc; ac_word=$2
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680 $as_echo_n "checking for $ac_word... " >&6; }
2681 if ${ac_cv_prog_CC+:} false; then :
2682 $as_echo_n "(cached) " >&6
2683 else
2684 if test -n "$CC"; then
2685 ac_cv_prog_CC="$CC" # Let the user override the test.
2686 else
2687 ac_prog_rejected=no
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2695 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2696 ac_prog_rejected=yes
2697 continue
2699 ac_cv_prog_CC="cc"
2700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 break 2
2703 done
2704 done
2705 IFS=$as_save_IFS
2707 if test $ac_prog_rejected = yes; then
2708 # We found a bogon in the path, so make sure we never use it.
2709 set dummy $ac_cv_prog_CC
2710 shift
2711 if test $# != 0; then
2712 # We chose a different compiler from the bogus one.
2713 # However, it has the same basename, so the bogon will be chosen
2714 # first if we set CC to just the basename; use the full file name.
2715 shift
2716 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2721 CC=$ac_cv_prog_CC
2722 if test -n "$CC"; then
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2724 $as_echo "$CC" >&6; }
2725 else
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2727 $as_echo "no" >&6; }
2732 if test -z "$CC"; then
2733 if test -n "$ac_tool_prefix"; then
2734 for ac_prog in cl.exe
2736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2739 $as_echo_n "checking for $ac_word... " >&6; }
2740 if ${ac_cv_prog_CC+:} false; then :
2741 $as_echo_n "(cached) " >&6
2742 else
2743 if test -n "$CC"; then
2744 ac_cv_prog_CC="$CC" # Let the user override the test.
2745 else
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH
2749 IFS=$as_save_IFS
2750 test -z "$as_dir" && as_dir=.
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2753 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 break 2
2757 done
2758 done
2759 IFS=$as_save_IFS
2763 CC=$ac_cv_prog_CC
2764 if test -n "$CC"; then
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2766 $as_echo "$CC" >&6; }
2767 else
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769 $as_echo "no" >&6; }
2773 test -n "$CC" && break
2774 done
2776 if test -z "$CC"; then
2777 ac_ct_CC=$CC
2778 for ac_prog in cl.exe
2780 # Extract the first word of "$ac_prog", so it can be a program name with args.
2781 set dummy $ac_prog; ac_word=$2
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783 $as_echo_n "checking for $ac_word... " >&6; }
2784 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2785 $as_echo_n "(cached) " >&6
2786 else
2787 if test -n "$ac_ct_CC"; then
2788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797 ac_cv_prog_ac_ct_CC="$ac_prog"
2798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2801 done
2802 done
2803 IFS=$as_save_IFS
2807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2808 if test -n "$ac_ct_CC"; then
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2810 $as_echo "$ac_ct_CC" >&6; }
2811 else
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813 $as_echo "no" >&6; }
2817 test -n "$ac_ct_CC" && break
2818 done
2820 if test "x$ac_ct_CC" = x; then
2821 CC=""
2822 else
2823 case $cross_compiling:$ac_tool_warned in
2824 yes:)
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2827 ac_tool_warned=yes ;;
2828 esac
2829 CC=$ac_ct_CC
2836 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2838 as_fn_error $? "no acceptable C compiler found in \$PATH
2839 See \`config.log' for more details" "$LINENO" 5; }
2841 # Provide some information about the compiler.
2842 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2843 set X $ac_compile
2844 ac_compiler=$2
2845 for ac_option in --version -v -V -qversion; do
2846 { { ac_try="$ac_compiler $ac_option >&5"
2847 case "(($ac_try" in
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2850 esac
2851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2852 $as_echo "$ac_try_echo"; } >&5
2853 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2854 ac_status=$?
2855 if test -s conftest.err; then
2856 sed '10a\
2857 ... rest of stderr output deleted ...
2858 10q' conftest.err >conftest.er1
2859 cat conftest.er1 >&5
2861 rm -f conftest.er1 conftest.err
2862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2863 test $ac_status = 0; }
2864 done
2866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2867 /* end confdefs.h. */
2870 main ()
2874 return 0;
2876 _ACEOF
2877 ac_clean_files_save=$ac_clean_files
2878 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2879 # Try to create an executable without -o first, disregard a.out.
2880 # It will help us diagnose broken compilers, and finding out an intuition
2881 # of exeext.
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2883 $as_echo_n "checking whether the C compiler works... " >&6; }
2884 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2886 # The possible output files:
2887 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2889 ac_rmfiles=
2890 for ac_file in $ac_files
2892 case $ac_file in
2893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2894 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2895 esac
2896 done
2897 rm -f $ac_rmfiles
2899 if { { ac_try="$ac_link_default"
2900 case "(($ac_try" in
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2903 esac
2904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2905 $as_echo "$ac_try_echo"; } >&5
2906 (eval "$ac_link_default") 2>&5
2907 ac_status=$?
2908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2909 test $ac_status = 0; }; then :
2910 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2911 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2912 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2913 # so that the user can short-circuit this test for compilers unknown to
2914 # Autoconf.
2915 for ac_file in $ac_files ''
2917 test -f "$ac_file" || continue
2918 case $ac_file in
2919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2921 [ab].out )
2922 # We found the default executable, but exeext='' is most
2923 # certainly right.
2924 break;;
2925 *.* )
2926 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2927 then :; else
2928 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2930 # We set ac_cv_exeext here because the later test for it is not
2931 # safe: cross compilers may not add the suffix if given an `-o'
2932 # argument, so we may need to know it at that point already.
2933 # Even if this section looks crufty: it has the advantage of
2934 # actually working.
2935 break;;
2937 break;;
2938 esac
2939 done
2940 test "$ac_cv_exeext" = no && ac_cv_exeext=
2942 else
2943 ac_file=''
2945 if test -z "$ac_file"; then :
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 $as_echo "no" >&6; }
2948 $as_echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2953 as_fn_error 77 "C compiler cannot create executables
2954 See \`config.log' for more details" "$LINENO" 5; }
2955 else
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2957 $as_echo "yes" >&6; }
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2960 $as_echo_n "checking for C compiler default output file name... " >&6; }
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2962 $as_echo "$ac_file" >&6; }
2963 ac_exeext=$ac_cv_exeext
2965 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2966 ac_clean_files=$ac_clean_files_save
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2968 $as_echo_n "checking for suffix of executables... " >&6; }
2969 if { { ac_try="$ac_link"
2970 case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2973 esac
2974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2975 $as_echo "$ac_try_echo"; } >&5
2976 (eval "$ac_link") 2>&5
2977 ac_status=$?
2978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2979 test $ac_status = 0; }; then :
2980 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2981 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2982 # work properly (i.e., refer to `conftest.exe'), while it won't with
2983 # `rm'.
2984 for ac_file in conftest.exe conftest conftest.*; do
2985 test -f "$ac_file" || continue
2986 case $ac_file in
2987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2988 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2989 break;;
2990 * ) break;;
2991 esac
2992 done
2993 else
2994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2996 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2997 See \`config.log' for more details" "$LINENO" 5; }
2999 rm -f conftest conftest$ac_cv_exeext
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3001 $as_echo "$ac_cv_exeext" >&6; }
3003 rm -f conftest.$ac_ext
3004 EXEEXT=$ac_cv_exeext
3005 ac_exeext=$EXEEXT
3006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3007 /* end confdefs.h. */
3008 #include <stdio.h>
3010 main ()
3012 FILE *f = fopen ("conftest.out", "w");
3013 return ferror (f) || fclose (f) != 0;
3016 return 0;
3018 _ACEOF
3019 ac_clean_files="$ac_clean_files conftest.out"
3020 # Check that the compiler produces executables we can run. If not, either
3021 # the compiler is broken, or we cross compile.
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3023 $as_echo_n "checking whether we are cross compiling... " >&6; }
3024 if test "$cross_compiling" != yes; then
3025 { { ac_try="$ac_link"
3026 case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029 esac
3030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3031 $as_echo "$ac_try_echo"; } >&5
3032 (eval "$ac_link") 2>&5
3033 ac_status=$?
3034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3035 test $ac_status = 0; }
3036 if { ac_try='./conftest$ac_cv_exeext'
3037 { { case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3040 esac
3041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3042 $as_echo "$ac_try_echo"; } >&5
3043 (eval "$ac_try") 2>&5
3044 ac_status=$?
3045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3046 test $ac_status = 0; }; }; then
3047 cross_compiling=no
3048 else
3049 if test "$cross_compiling" = maybe; then
3050 cross_compiling=yes
3051 else
3052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3054 as_fn_error $? "cannot run C compiled programs.
3055 If you meant to cross compile, use \`--host'.
3056 See \`config.log' for more details" "$LINENO" 5; }
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3061 $as_echo "$cross_compiling" >&6; }
3063 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3064 ac_clean_files=$ac_clean_files_save
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3066 $as_echo_n "checking for suffix of object files... " >&6; }
3067 if ${ac_cv_objext+:} false; then :
3068 $as_echo_n "(cached) " >&6
3069 else
3070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3071 /* end confdefs.h. */
3074 main ()
3078 return 0;
3080 _ACEOF
3081 rm -f conftest.o conftest.obj
3082 if { { ac_try="$ac_compile"
3083 case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086 esac
3087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3088 $as_echo "$ac_try_echo"; } >&5
3089 (eval "$ac_compile") 2>&5
3090 ac_status=$?
3091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3092 test $ac_status = 0; }; then :
3093 for ac_file in conftest.o conftest.obj conftest.*; do
3094 test -f "$ac_file" || continue;
3095 case $ac_file in
3096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3097 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3098 break;;
3099 esac
3100 done
3101 else
3102 $as_echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3107 as_fn_error $? "cannot compute suffix of object files: cannot compile
3108 See \`config.log' for more details" "$LINENO" 5; }
3110 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3113 $as_echo "$ac_cv_objext" >&6; }
3114 OBJEXT=$ac_cv_objext
3115 ac_objext=$OBJEXT
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3117 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3118 if ${ac_cv_c_compiler_gnu+:} false; then :
3119 $as_echo_n "(cached) " >&6
3120 else
3121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3122 /* end confdefs.h. */
3125 main ()
3127 #ifndef __GNUC__
3128 choke me
3129 #endif
3132 return 0;
3134 _ACEOF
3135 if ac_fn_c_try_compile "$LINENO"; then :
3136 ac_compiler_gnu=yes
3137 else
3138 ac_compiler_gnu=no
3140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3141 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3145 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3146 if test $ac_compiler_gnu = yes; then
3147 GCC=yes
3148 else
3149 GCC=
3151 ac_test_CFLAGS=${CFLAGS+set}
3152 ac_save_CFLAGS=$CFLAGS
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3154 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3155 if ${ac_cv_prog_cc_g+:} false; then :
3156 $as_echo_n "(cached) " >&6
3157 else
3158 ac_save_c_werror_flag=$ac_c_werror_flag
3159 ac_c_werror_flag=yes
3160 ac_cv_prog_cc_g=no
3161 CFLAGS="-g"
3162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163 /* end confdefs.h. */
3166 main ()
3170 return 0;
3172 _ACEOF
3173 if ac_fn_c_try_compile "$LINENO"; then :
3174 ac_cv_prog_cc_g=yes
3175 else
3176 CFLAGS=""
3177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178 /* end confdefs.h. */
3181 main ()
3185 return 0;
3187 _ACEOF
3188 if ac_fn_c_try_compile "$LINENO"; then :
3190 else
3191 ac_c_werror_flag=$ac_save_c_werror_flag
3192 CFLAGS="-g"
3193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3194 /* end confdefs.h. */
3197 main ()
3201 return 0;
3203 _ACEOF
3204 if ac_fn_c_try_compile "$LINENO"; then :
3205 ac_cv_prog_cc_g=yes
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212 ac_c_werror_flag=$ac_save_c_werror_flag
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3215 $as_echo "$ac_cv_prog_cc_g" >&6; }
3216 if test "$ac_test_CFLAGS" = set; then
3217 CFLAGS=$ac_save_CFLAGS
3218 elif test $ac_cv_prog_cc_g = yes; then
3219 if test "$GCC" = yes; then
3220 CFLAGS="-g -O2"
3221 else
3222 CFLAGS="-g"
3224 else
3225 if test "$GCC" = yes; then
3226 CFLAGS="-O2"
3227 else
3228 CFLAGS=
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3232 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3233 if ${ac_cv_prog_cc_c89+:} false; then :
3234 $as_echo_n "(cached) " >&6
3235 else
3236 ac_cv_prog_cc_c89=no
3237 ac_save_CC=$CC
3238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239 /* end confdefs.h. */
3240 #include <stdarg.h>
3241 #include <stdio.h>
3242 struct stat;
3243 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3244 struct buf { int x; };
3245 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3246 static char *e (p, i)
3247 char **p;
3248 int i;
3250 return p[i];
3252 static char *f (char * (*g) (char **, int), char **p, ...)
3254 char *s;
3255 va_list v;
3256 va_start (v,p);
3257 s = g (p, va_arg (v,int));
3258 va_end (v);
3259 return s;
3262 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3263 function prototypes and stuff, but not '\xHH' hex character constants.
3264 These don't provoke an error unfortunately, instead are silently treated
3265 as 'x'. The following induces an error, until -std is added to get
3266 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3267 array size at least. It's necessary to write '\x00'==0 to get something
3268 that's true only with -std. */
3269 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3271 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3272 inside strings and character constants. */
3273 #define FOO(x) 'x'
3274 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3276 int test (int i, double x);
3277 struct s1 {int (*f) (int a);};
3278 struct s2 {int (*f) (double a);};
3279 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3280 int argc;
3281 char **argv;
3283 main ()
3285 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3287 return 0;
3289 _ACEOF
3290 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3291 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3293 CC="$ac_save_CC $ac_arg"
3294 if ac_fn_c_try_compile "$LINENO"; then :
3295 ac_cv_prog_cc_c89=$ac_arg
3297 rm -f core conftest.err conftest.$ac_objext
3298 test "x$ac_cv_prog_cc_c89" != "xno" && break
3299 done
3300 rm -f conftest.$ac_ext
3301 CC=$ac_save_CC
3304 # AC_CACHE_VAL
3305 case "x$ac_cv_prog_cc_c89" in
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3308 $as_echo "none needed" >&6; } ;;
3309 xno)
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3311 $as_echo "unsupported" >&6; } ;;
3313 CC="$CC $ac_cv_prog_cc_c89"
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3315 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3316 esac
3317 if test "x$ac_cv_prog_cc_c89" != xno; then :
3321 ac_ext=c
3322 ac_cpp='$CPP $CPPFLAGS'
3323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3328 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3329 if ${ac_cv_path_SED+:} false; then :
3330 $as_echo_n "(cached) " >&6
3331 else
3332 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3333 for ac_i in 1 2 3 4 5 6 7; do
3334 ac_script="$ac_script$as_nl$ac_script"
3335 done
3336 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3337 { ac_script=; unset ac_script;}
3338 if test -z "$SED"; then
3339 ac_path_SED_found=false
3340 # Loop through the user's path and test for each of PROGNAME-LIST
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 for as_dir in $PATH
3344 IFS=$as_save_IFS
3345 test -z "$as_dir" && as_dir=.
3346 for ac_prog in sed gsed; do
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3349 as_fn_executable_p "$ac_path_SED" || continue
3350 # Check for GNU ac_path_SED and select it if it is found.
3351 # Check for GNU $ac_path_SED
3352 case `"$ac_path_SED" --version 2>&1` in
3353 *GNU*)
3354 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3356 ac_count=0
3357 $as_echo_n 0123456789 >"conftest.in"
3358 while :
3360 cat "conftest.in" "conftest.in" >"conftest.tmp"
3361 mv "conftest.tmp" "conftest.in"
3362 cp "conftest.in" "conftest.nl"
3363 $as_echo '' >> "conftest.nl"
3364 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3365 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3366 as_fn_arith $ac_count + 1 && ac_count=$as_val
3367 if test $ac_count -gt ${ac_path_SED_max-0}; then
3368 # Best one so far, save it but keep looking for a better one
3369 ac_cv_path_SED="$ac_path_SED"
3370 ac_path_SED_max=$ac_count
3372 # 10*(2^10) chars as input seems more than enough
3373 test $ac_count -gt 10 && break
3374 done
3375 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3376 esac
3378 $ac_path_SED_found && break 3
3379 done
3380 done
3381 done
3382 IFS=$as_save_IFS
3383 if test -z "$ac_cv_path_SED"; then
3384 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3386 else
3387 ac_cv_path_SED=$SED
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3392 $as_echo "$ac_cv_path_SED" >&6; }
3393 SED="$ac_cv_path_SED"
3394 rm -f conftest.sed
3396 test -z "$SED" && SED=sed
3397 Xsed="$SED -e 1s/^X//"
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3410 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3411 if ${ac_cv_path_GREP+:} false; then :
3412 $as_echo_n "(cached) " >&6
3413 else
3414 if test -z "$GREP"; then
3415 ac_path_GREP_found=false
3416 # Loop through the user's path and test for each of PROGNAME-LIST
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3420 IFS=$as_save_IFS
3421 test -z "$as_dir" && as_dir=.
3422 for ac_prog in grep ggrep; do
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3425 as_fn_executable_p "$ac_path_GREP" || continue
3426 # Check for GNU ac_path_GREP and select it if it is found.
3427 # Check for GNU $ac_path_GREP
3428 case `"$ac_path_GREP" --version 2>&1` in
3429 *GNU*)
3430 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3432 ac_count=0
3433 $as_echo_n 0123456789 >"conftest.in"
3434 while :
3436 cat "conftest.in" "conftest.in" >"conftest.tmp"
3437 mv "conftest.tmp" "conftest.in"
3438 cp "conftest.in" "conftest.nl"
3439 $as_echo 'GREP' >> "conftest.nl"
3440 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3441 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3442 as_fn_arith $ac_count + 1 && ac_count=$as_val
3443 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3444 # Best one so far, save it but keep looking for a better one
3445 ac_cv_path_GREP="$ac_path_GREP"
3446 ac_path_GREP_max=$ac_count
3448 # 10*(2^10) chars as input seems more than enough
3449 test $ac_count -gt 10 && break
3450 done
3451 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3452 esac
3454 $ac_path_GREP_found && break 3
3455 done
3456 done
3457 done
3458 IFS=$as_save_IFS
3459 if test -z "$ac_cv_path_GREP"; then
3460 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3462 else
3463 ac_cv_path_GREP=$GREP
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3468 $as_echo "$ac_cv_path_GREP" >&6; }
3469 GREP="$ac_cv_path_GREP"
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3473 $as_echo_n "checking for egrep... " >&6; }
3474 if ${ac_cv_path_EGREP+:} false; then :
3475 $as_echo_n "(cached) " >&6
3476 else
3477 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3478 then ac_cv_path_EGREP="$GREP -E"
3479 else
3480 if test -z "$EGREP"; then
3481 ac_path_EGREP_found=false
3482 # Loop through the user's path and test for each of PROGNAME-LIST
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3486 IFS=$as_save_IFS
3487 test -z "$as_dir" && as_dir=.
3488 for ac_prog in egrep; do
3489 for ac_exec_ext in '' $ac_executable_extensions; do
3490 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3491 as_fn_executable_p "$ac_path_EGREP" || continue
3492 # Check for GNU ac_path_EGREP and select it if it is found.
3493 # Check for GNU $ac_path_EGREP
3494 case `"$ac_path_EGREP" --version 2>&1` in
3495 *GNU*)
3496 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3498 ac_count=0
3499 $as_echo_n 0123456789 >"conftest.in"
3500 while :
3502 cat "conftest.in" "conftest.in" >"conftest.tmp"
3503 mv "conftest.tmp" "conftest.in"
3504 cp "conftest.in" "conftest.nl"
3505 $as_echo 'EGREP' >> "conftest.nl"
3506 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3507 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3508 as_fn_arith $ac_count + 1 && ac_count=$as_val
3509 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3510 # Best one so far, save it but keep looking for a better one
3511 ac_cv_path_EGREP="$ac_path_EGREP"
3512 ac_path_EGREP_max=$ac_count
3514 # 10*(2^10) chars as input seems more than enough
3515 test $ac_count -gt 10 && break
3516 done
3517 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3518 esac
3520 $ac_path_EGREP_found && break 3
3521 done
3522 done
3523 done
3524 IFS=$as_save_IFS
3525 if test -z "$ac_cv_path_EGREP"; then
3526 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3528 else
3529 ac_cv_path_EGREP=$EGREP
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3535 $as_echo "$ac_cv_path_EGREP" >&6; }
3536 EGREP="$ac_cv_path_EGREP"
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3540 $as_echo_n "checking for fgrep... " >&6; }
3541 if ${ac_cv_path_FGREP+:} false; then :
3542 $as_echo_n "(cached) " >&6
3543 else
3544 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3545 then ac_cv_path_FGREP="$GREP -F"
3546 else
3547 if test -z "$FGREP"; then
3548 ac_path_FGREP_found=false
3549 # Loop through the user's path and test for each of PROGNAME-LIST
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3553 IFS=$as_save_IFS
3554 test -z "$as_dir" && as_dir=.
3555 for ac_prog in fgrep; do
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3558 as_fn_executable_p "$ac_path_FGREP" || continue
3559 # Check for GNU ac_path_FGREP and select it if it is found.
3560 # Check for GNU $ac_path_FGREP
3561 case `"$ac_path_FGREP" --version 2>&1` in
3562 *GNU*)
3563 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3565 ac_count=0
3566 $as_echo_n 0123456789 >"conftest.in"
3567 while :
3569 cat "conftest.in" "conftest.in" >"conftest.tmp"
3570 mv "conftest.tmp" "conftest.in"
3571 cp "conftest.in" "conftest.nl"
3572 $as_echo 'FGREP' >> "conftest.nl"
3573 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3574 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3575 as_fn_arith $ac_count + 1 && ac_count=$as_val
3576 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3577 # Best one so far, save it but keep looking for a better one
3578 ac_cv_path_FGREP="$ac_path_FGREP"
3579 ac_path_FGREP_max=$ac_count
3581 # 10*(2^10) chars as input seems more than enough
3582 test $ac_count -gt 10 && break
3583 done
3584 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3585 esac
3587 $ac_path_FGREP_found && break 3
3588 done
3589 done
3590 done
3591 IFS=$as_save_IFS
3592 if test -z "$ac_cv_path_FGREP"; then
3593 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3595 else
3596 ac_cv_path_FGREP=$FGREP
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3602 $as_echo "$ac_cv_path_FGREP" >&6; }
3603 FGREP="$ac_cv_path_FGREP"
3606 test -z "$GREP" && GREP=grep
3626 # Check whether --with-gnu-ld was given.
3627 if test "${with_gnu_ld+set}" = set; then :
3628 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
3629 else
3630 with_gnu_ld=no
3633 ac_prog=ld
3634 if test yes = "$GCC"; then
3635 # Check if gcc -print-prog-name=ld gives a path.
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3637 $as_echo_n "checking for ld used by $CC... " >&6; }
3638 case $host in
3639 *-*-mingw*)
3640 # gcc leaves a trailing carriage return, which upsets mingw
3641 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3643 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3644 esac
3645 case $ac_prog in
3646 # Accept absolute paths.
3647 [\\/]* | ?:[\\/]*)
3648 re_direlt='/[^/][^/]*/\.\./'
3649 # Canonicalize the pathname of ld
3650 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3651 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3652 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3653 done
3654 test -z "$LD" && LD=$ac_prog
3657 # If it fails, then pretend we aren't using GCC.
3658 ac_prog=ld
3661 # If it is relative, then search for the first ld in PATH.
3662 with_gnu_ld=unknown
3664 esac
3665 elif test yes = "$with_gnu_ld"; then
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3667 $as_echo_n "checking for GNU ld... " >&6; }
3668 else
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3670 $as_echo_n "checking for non-GNU ld... " >&6; }
3672 if ${lt_cv_path_LD+:} false; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 if test -z "$LD"; then
3676 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3677 for ac_dir in $PATH; do
3678 IFS=$lt_save_ifs
3679 test -z "$ac_dir" && ac_dir=.
3680 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3681 lt_cv_path_LD=$ac_dir/$ac_prog
3682 # Check to see if the program is GNU ld. I'd rather use --version,
3683 # but apparently some variants of GNU ld only accept -v.
3684 # Break only if it was the GNU/non-GNU ld that we prefer.
3685 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3686 *GNU* | *'with BFD'*)
3687 test no != "$with_gnu_ld" && break
3690 test yes != "$with_gnu_ld" && break
3692 esac
3694 done
3695 IFS=$lt_save_ifs
3696 else
3697 lt_cv_path_LD=$LD # Let the user override the test with a path.
3701 LD=$lt_cv_path_LD
3702 if test -n "$LD"; then
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3704 $as_echo "$LD" >&6; }
3705 else
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 $as_echo "no" >&6; }
3709 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3711 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3712 if ${lt_cv_prog_gnu_ld+:} false; then :
3713 $as_echo_n "(cached) " >&6
3714 else
3715 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3716 case `$LD -v 2>&1 </dev/null` in
3717 *GNU* | *'with BFD'*)
3718 lt_cv_prog_gnu_ld=yes
3721 lt_cv_prog_gnu_ld=no
3723 esac
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3726 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3727 with_gnu_ld=$lt_cv_prog_gnu_ld
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3738 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3739 if ${lt_cv_path_NM+:} false; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 if test -n "$NM"; then
3743 # Let the user override the test.
3744 lt_cv_path_NM=$NM
3745 else
3746 lt_nm_to_check=${ac_tool_prefix}nm
3747 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3748 lt_nm_to_check="$lt_nm_to_check nm"
3750 for lt_tmp_nm in $lt_nm_to_check; do
3751 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3752 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3753 IFS=$lt_save_ifs
3754 test -z "$ac_dir" && ac_dir=.
3755 tmp_nm=$ac_dir/$lt_tmp_nm
3756 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
3757 # Check to see if the nm accepts a BSD-compat flag.
3758 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
3759 # nm: unknown option "B" ignored
3760 # Tru64's nm complains that /dev/null is an invalid object file
3761 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
3762 case $build_os in
3763 mingw*) lt_bad_file=conftest.nm/nofile ;;
3764 *) lt_bad_file=/dev/null ;;
3765 esac
3766 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3767 *$lt_bad_file* | *'Invalid file or object type'*)
3768 lt_cv_path_NM="$tmp_nm -B"
3769 break 2
3772 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3773 */dev/null*)
3774 lt_cv_path_NM="$tmp_nm -p"
3775 break 2
3778 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3779 continue # so that we can try to find one that supports BSD flags
3781 esac
3783 esac
3785 done
3786 IFS=$lt_save_ifs
3787 done
3788 : ${lt_cv_path_NM=no}
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3792 $as_echo "$lt_cv_path_NM" >&6; }
3793 if test no != "$lt_cv_path_NM"; then
3794 NM=$lt_cv_path_NM
3795 else
3796 # Didn't find any BSD compatible name lister, look for dumpbin.
3797 if test -n "$DUMPBIN"; then :
3798 # Let the user override the test.
3799 else
3800 if test -n "$ac_tool_prefix"; then
3801 for ac_prog in dumpbin "link -dump"
3803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3806 $as_echo_n "checking for $ac_word... " >&6; }
3807 if ${ac_cv_prog_DUMPBIN+:} false; then :
3808 $as_echo_n "(cached) " >&6
3809 else
3810 if test -n "$DUMPBIN"; then
3811 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3812 else
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3816 IFS=$as_save_IFS
3817 test -z "$as_dir" && as_dir=.
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3822 break 2
3824 done
3825 done
3826 IFS=$as_save_IFS
3830 DUMPBIN=$ac_cv_prog_DUMPBIN
3831 if test -n "$DUMPBIN"; then
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3833 $as_echo "$DUMPBIN" >&6; }
3834 else
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3836 $as_echo "no" >&6; }
3840 test -n "$DUMPBIN" && break
3841 done
3843 if test -z "$DUMPBIN"; then
3844 ac_ct_DUMPBIN=$DUMPBIN
3845 for ac_prog in dumpbin "link -dump"
3847 # Extract the first word of "$ac_prog", so it can be a program name with args.
3848 set dummy $ac_prog; ac_word=$2
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 $as_echo_n "checking for $ac_word... " >&6; }
3851 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3852 $as_echo_n "(cached) " >&6
3853 else
3854 if test -n "$ac_ct_DUMPBIN"; then
3855 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3860 IFS=$as_save_IFS
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3864 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 break 2
3868 done
3869 done
3870 IFS=$as_save_IFS
3874 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3875 if test -n "$ac_ct_DUMPBIN"; then
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3877 $as_echo "$ac_ct_DUMPBIN" >&6; }
3878 else
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3884 test -n "$ac_ct_DUMPBIN" && break
3885 done
3887 if test "x$ac_ct_DUMPBIN" = x; then
3888 DUMPBIN=":"
3889 else
3890 case $cross_compiling:$ac_tool_warned in
3891 yes:)
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3894 ac_tool_warned=yes ;;
3895 esac
3896 DUMPBIN=$ac_ct_DUMPBIN
3900 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
3901 *COFF*)
3902 DUMPBIN="$DUMPBIN -symbols -headers"
3905 DUMPBIN=:
3907 esac
3910 if test : != "$DUMPBIN"; then
3911 NM=$DUMPBIN
3914 test -z "$NM" && NM=nm
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3922 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3923 if ${lt_cv_nm_interface+:} false; then :
3924 $as_echo_n "(cached) " >&6
3925 else
3926 lt_cv_nm_interface="BSD nm"
3927 echo "int some_variable = 0;" > conftest.$ac_ext
3928 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
3929 (eval "$ac_compile" 2>conftest.err)
3930 cat conftest.err >&5
3931 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3932 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3933 cat conftest.err >&5
3934 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
3935 cat conftest.out >&5
3936 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3937 lt_cv_nm_interface="MS dumpbin"
3939 rm -f conftest*
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3942 $as_echo "$lt_cv_nm_interface" >&6; }
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3945 $as_echo_n "checking whether ln -s works... " >&6; }
3946 LN_S=$as_ln_s
3947 if test "$LN_S" = "ln -s"; then
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3949 $as_echo "yes" >&6; }
3950 else
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3952 $as_echo "no, using $LN_S" >&6; }
3955 # find the maximum length of command line arguments
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3957 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3958 if ${lt_cv_sys_max_cmd_len+:} false; then :
3959 $as_echo_n "(cached) " >&6
3960 else
3962 teststring=ABCD
3964 case $build_os in
3965 msdosdjgpp*)
3966 # On DJGPP, this test can blow up pretty badly due to problems in libc
3967 # (any single argument exceeding 2000 bytes causes a buffer overrun
3968 # during glob expansion). Even if it were fixed, the result of this
3969 # check would be larger than it should be.
3970 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3973 gnu*)
3974 # Under GNU Hurd, this test is not required because there is
3975 # no limit to the length of command line arguments.
3976 # Libtool will interpret -1 as no limit whatsoever
3977 lt_cv_sys_max_cmd_len=-1;
3980 cygwin* | mingw* | cegcc*)
3981 # On Win9x/ME, this test blows up -- it succeeds, but takes
3982 # about 5 minutes as the teststring grows exponentially.
3983 # Worse, since 9x/ME are not pre-emptively multitasking,
3984 # you end up with a "frozen" computer, even though with patience
3985 # the test eventually succeeds (with a max line length of 256k).
3986 # Instead, let's just punt: use the minimum linelength reported by
3987 # all of the supported platforms: 8192 (on NT/2K/XP).
3988 lt_cv_sys_max_cmd_len=8192;
3991 mint*)
3992 # On MiNT this can take a long time and run out of memory.
3993 lt_cv_sys_max_cmd_len=8192;
3996 amigaos*)
3997 # On AmigaOS with pdksh, this test takes hours, literally.
3998 # So we just punt and use a minimum line length of 8192.
3999 lt_cv_sys_max_cmd_len=8192;
4002 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4003 # This has been around since 386BSD, at least. Likely further.
4004 if test -x /sbin/sysctl; then
4005 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4006 elif test -x /usr/sbin/sysctl; then
4007 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4008 else
4009 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4011 # And add a safety zone
4012 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4013 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4016 interix*)
4017 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4018 lt_cv_sys_max_cmd_len=196608
4021 os2*)
4022 # The test takes a long time on OS/2.
4023 lt_cv_sys_max_cmd_len=8192
4026 osf*)
4027 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4028 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4029 # nice to cause kernel panics so lets avoid the loop below.
4030 # First set a reasonable default.
4031 lt_cv_sys_max_cmd_len=16384
4033 if test -x /sbin/sysconfig; then
4034 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4035 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4036 esac
4039 sco3.2v5*)
4040 lt_cv_sys_max_cmd_len=102400
4042 sysv5* | sco5v6* | sysv4.2uw2*)
4043 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4044 if test -n "$kargmax"; then
4045 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4046 else
4047 lt_cv_sys_max_cmd_len=32768
4051 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4052 if test -n "$lt_cv_sys_max_cmd_len" && \
4053 test undefined != "$lt_cv_sys_max_cmd_len"; then
4054 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4055 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4056 else
4057 # Make teststring a little bigger before we do anything with it.
4058 # a 1K string should be a reasonable start.
4059 for i in 1 2 3 4 5 6 7 8; do
4060 teststring=$teststring$teststring
4061 done
4062 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4063 # If test is not a shell built-in, we'll probably end up computing a
4064 # maximum length that is only half of the actual maximum length, but
4065 # we can't tell.
4066 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4067 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4068 test 17 != "$i" # 1/2 MB should be enough
4070 i=`expr $i + 1`
4071 teststring=$teststring$teststring
4072 done
4073 # Only check the string length outside the loop.
4074 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4075 teststring=
4076 # Add a significant safety factor because C++ compilers can tack on
4077 # massive amounts of additional arguments before passing them to the
4078 # linker. It appears as though 1/2 is a usable value.
4079 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4082 esac
4086 if test -n "$lt_cv_sys_max_cmd_len"; then
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4088 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4089 else
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4091 $as_echo "none" >&6; }
4093 max_cmd_len=$lt_cv_sys_max_cmd_len
4100 : ${CP="cp -f"}
4101 : ${MV="mv -f"}
4102 : ${RM="rm -f"}
4104 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4105 lt_unset=unset
4106 else
4107 lt_unset=false
4114 # test EBCDIC or ASCII
4115 case `echo X|tr X '\101'` in
4116 A) # ASCII based system
4117 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4118 lt_SP2NL='tr \040 \012'
4119 lt_NL2SP='tr \015\012 \040\040'
4121 *) # EBCDIC based system
4122 lt_SP2NL='tr \100 \n'
4123 lt_NL2SP='tr \r\n \100\100'
4125 esac
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4136 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4137 if ${lt_cv_to_host_file_cmd+:} false; then :
4138 $as_echo_n "(cached) " >&6
4139 else
4140 case $host in
4141 *-*-mingw* )
4142 case $build in
4143 *-*-mingw* ) # actually msys
4144 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4146 *-*-cygwin* )
4147 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4149 * ) # otherwise, assume *nix
4150 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4152 esac
4154 *-*-cygwin* )
4155 case $build in
4156 *-*-mingw* ) # actually msys
4157 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4159 *-*-cygwin* )
4160 lt_cv_to_host_file_cmd=func_convert_file_noop
4162 * ) # otherwise, assume *nix
4163 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4165 esac
4167 * ) # unhandled hosts (and "normal" native builds)
4168 lt_cv_to_host_file_cmd=func_convert_file_noop
4170 esac
4174 to_host_file_cmd=$lt_cv_to_host_file_cmd
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4176 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4183 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4184 if ${lt_cv_to_tool_file_cmd+:} false; then :
4185 $as_echo_n "(cached) " >&6
4186 else
4187 #assume ordinary cross tools, or native build.
4188 lt_cv_to_tool_file_cmd=func_convert_file_noop
4189 case $host in
4190 *-*-mingw* )
4191 case $build in
4192 *-*-mingw* ) # actually msys
4193 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4195 esac
4197 esac
4201 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4203 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4210 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4211 if ${lt_cv_ld_reload_flag+:} false; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 lt_cv_ld_reload_flag='-r'
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4217 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4218 reload_flag=$lt_cv_ld_reload_flag
4219 case $reload_flag in
4220 "" | " "*) ;;
4221 *) reload_flag=" $reload_flag" ;;
4222 esac
4223 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4224 case $host_os in
4225 cygwin* | mingw* | pw32* | cegcc*)
4226 if test yes != "$GCC"; then
4227 reload_cmds=false
4230 darwin*)
4231 if test yes = "$GCC"; then
4232 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4233 else
4234 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4237 esac
4247 if test -n "$ac_tool_prefix"; then
4248 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4249 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4251 $as_echo_n "checking for $ac_word... " >&6; }
4252 if ${ac_cv_prog_OBJDUMP+:} false; then :
4253 $as_echo_n "(cached) " >&6
4254 else
4255 if test -n "$OBJDUMP"; then
4256 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4257 else
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 for as_dir in $PATH
4261 IFS=$as_save_IFS
4262 test -z "$as_dir" && as_dir=.
4263 for ac_exec_ext in '' $ac_executable_extensions; do
4264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4265 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4267 break 2
4269 done
4270 done
4271 IFS=$as_save_IFS
4275 OBJDUMP=$ac_cv_prog_OBJDUMP
4276 if test -n "$OBJDUMP"; then
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4278 $as_echo "$OBJDUMP" >&6; }
4279 else
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4281 $as_echo "no" >&6; }
4286 if test -z "$ac_cv_prog_OBJDUMP"; then
4287 ac_ct_OBJDUMP=$OBJDUMP
4288 # Extract the first word of "objdump", so it can be a program name with args.
4289 set dummy objdump; ac_word=$2
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291 $as_echo_n "checking for $ac_word... " >&6; }
4292 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4293 $as_echo_n "(cached) " >&6
4294 else
4295 if test -n "$ac_ct_OBJDUMP"; then
4296 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4297 else
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH
4301 IFS=$as_save_IFS
4302 test -z "$as_dir" && as_dir=.
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4305 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4307 break 2
4309 done
4310 done
4311 IFS=$as_save_IFS
4315 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4316 if test -n "$ac_ct_OBJDUMP"; then
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4318 $as_echo "$ac_ct_OBJDUMP" >&6; }
4319 else
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4324 if test "x$ac_ct_OBJDUMP" = x; then
4325 OBJDUMP="false"
4326 else
4327 case $cross_compiling:$ac_tool_warned in
4328 yes:)
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4331 ac_tool_warned=yes ;;
4332 esac
4333 OBJDUMP=$ac_ct_OBJDUMP
4335 else
4336 OBJDUMP="$ac_cv_prog_OBJDUMP"
4339 test -z "$OBJDUMP" && OBJDUMP=objdump
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4350 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4351 if ${lt_cv_deplibs_check_method+:} false; then :
4352 $as_echo_n "(cached) " >&6
4353 else
4354 lt_cv_file_magic_cmd='$MAGIC_CMD'
4355 lt_cv_file_magic_test_file=
4356 lt_cv_deplibs_check_method='unknown'
4357 # Need to set the preceding variable on all platforms that support
4358 # interlibrary dependencies.
4359 # 'none' -- dependencies not supported.
4360 # 'unknown' -- same as none, but documents that we really don't know.
4361 # 'pass_all' -- all dependencies passed with no checks.
4362 # 'test_compile' -- check by making test program.
4363 # 'file_magic [[regex]]' -- check by looking for files in library path
4364 # that responds to the $file_magic_cmd with a given extended regex.
4365 # If you have 'file' or equivalent on your system and you're not sure
4366 # whether 'pass_all' will *always* work, you probably want this one.
4368 case $host_os in
4369 aix[4-9]*)
4370 lt_cv_deplibs_check_method=pass_all
4373 beos*)
4374 lt_cv_deplibs_check_method=pass_all
4377 bsdi[45]*)
4378 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4379 lt_cv_file_magic_cmd='/usr/bin/file -L'
4380 lt_cv_file_magic_test_file=/shlib/libc.so
4383 cygwin*)
4384 # func_win32_libid is a shell function defined in ltmain.sh
4385 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4386 lt_cv_file_magic_cmd='func_win32_libid'
4389 mingw* | pw32*)
4390 # Base MSYS/MinGW do not provide the 'file' command needed by
4391 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4392 # unless we find 'file', for example because we are cross-compiling.
4393 if ( file / ) >/dev/null 2>&1; then
4394 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4395 lt_cv_file_magic_cmd='func_win32_libid'
4396 else
4397 # Keep this pattern in sync with the one in func_win32_libid.
4398 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4399 lt_cv_file_magic_cmd='$OBJDUMP -f'
4403 cegcc*)
4404 # use the weaker test based on 'objdump'. See mingw*.
4405 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4406 lt_cv_file_magic_cmd='$OBJDUMP -f'
4409 darwin* | rhapsody*)
4410 lt_cv_deplibs_check_method=pass_all
4413 freebsd* | dragonfly*)
4414 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4415 case $host_cpu in
4416 i*86 )
4417 # Not sure whether the presence of OpenBSD here was a mistake.
4418 # Let's accept both of them until this is cleared up.
4419 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4420 lt_cv_file_magic_cmd=/usr/bin/file
4421 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4423 esac
4424 else
4425 lt_cv_deplibs_check_method=pass_all
4429 haiku*)
4430 lt_cv_deplibs_check_method=pass_all
4433 hpux10.20* | hpux11*)
4434 lt_cv_file_magic_cmd=/usr/bin/file
4435 case $host_cpu in
4436 ia64*)
4437 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4438 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4440 hppa*64*)
4441 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]'
4442 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4445 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4446 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4448 esac
4451 interix[3-9]*)
4452 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4453 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4456 irix5* | irix6* | nonstopux*)
4457 case $LD in
4458 *-32|*"-32 ") libmagic=32-bit;;
4459 *-n32|*"-n32 ") libmagic=N32;;
4460 *-64|*"-64 ") libmagic=64-bit;;
4461 *) libmagic=never-match;;
4462 esac
4463 lt_cv_deplibs_check_method=pass_all
4466 # This must be glibc/ELF.
4467 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4468 lt_cv_deplibs_check_method=pass_all
4471 netbsd* | netbsdelf*-gnu)
4472 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4473 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4474 else
4475 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4479 newos6*)
4480 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4481 lt_cv_file_magic_cmd=/usr/bin/file
4482 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4485 *nto* | *qnx*)
4486 lt_cv_deplibs_check_method=pass_all
4489 openbsd* | bitrig*)
4490 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
4491 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4492 else
4493 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4497 osf3* | osf4* | osf5*)
4498 lt_cv_deplibs_check_method=pass_all
4501 rdos*)
4502 lt_cv_deplibs_check_method=pass_all
4505 solaris*)
4506 lt_cv_deplibs_check_method=pass_all
4509 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4510 lt_cv_deplibs_check_method=pass_all
4513 sysv4 | sysv4.3*)
4514 case $host_vendor in
4515 motorola)
4516 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]'
4517 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4519 ncr)
4520 lt_cv_deplibs_check_method=pass_all
4522 sequent)
4523 lt_cv_file_magic_cmd='/bin/file'
4524 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4526 sni)
4527 lt_cv_file_magic_cmd='/bin/file'
4528 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4529 lt_cv_file_magic_test_file=/lib/libc.so
4531 siemens)
4532 lt_cv_deplibs_check_method=pass_all
4535 lt_cv_deplibs_check_method=pass_all
4537 esac
4540 tpf*)
4541 lt_cv_deplibs_check_method=pass_all
4543 os2*)
4544 lt_cv_deplibs_check_method=pass_all
4546 esac
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4550 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4552 file_magic_glob=
4553 want_nocaseglob=no
4554 if test "$build" = "$host"; then
4555 case $host_os in
4556 mingw* | pw32*)
4557 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4558 want_nocaseglob=yes
4559 else
4560 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4563 esac
4566 file_magic_cmd=$lt_cv_file_magic_cmd
4567 deplibs_check_method=$lt_cv_deplibs_check_method
4568 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4591 if test -n "$ac_tool_prefix"; then
4592 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4593 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595 $as_echo_n "checking for $ac_word... " >&6; }
4596 if ${ac_cv_prog_DLLTOOL+:} false; then :
4597 $as_echo_n "(cached) " >&6
4598 else
4599 if test -n "$DLLTOOL"; then
4600 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4601 else
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4609 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 break 2
4613 done
4614 done
4615 IFS=$as_save_IFS
4619 DLLTOOL=$ac_cv_prog_DLLTOOL
4620 if test -n "$DLLTOOL"; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4622 $as_echo "$DLLTOOL" >&6; }
4623 else
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 $as_echo "no" >&6; }
4630 if test -z "$ac_cv_prog_DLLTOOL"; then
4631 ac_ct_DLLTOOL=$DLLTOOL
4632 # Extract the first word of "dlltool", so it can be a program name with args.
4633 set dummy dlltool; ac_word=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4637 $as_echo_n "(cached) " >&6
4638 else
4639 if test -n "$ac_ct_DLLTOOL"; then
4640 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4641 else
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4649 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4653 done
4654 done
4655 IFS=$as_save_IFS
4659 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4660 if test -n "$ac_ct_DLLTOOL"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4662 $as_echo "$ac_ct_DLLTOOL" >&6; }
4663 else
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4668 if test "x$ac_ct_DLLTOOL" = x; then
4669 DLLTOOL="false"
4670 else
4671 case $cross_compiling:$ac_tool_warned in
4672 yes:)
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4675 ac_tool_warned=yes ;;
4676 esac
4677 DLLTOOL=$ac_ct_DLLTOOL
4679 else
4680 DLLTOOL="$ac_cv_prog_DLLTOOL"
4683 test -z "$DLLTOOL" && DLLTOOL=dlltool
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4695 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4696 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 lt_cv_sharedlib_from_linklib_cmd='unknown'
4701 case $host_os in
4702 cygwin* | mingw* | pw32* | cegcc*)
4703 # two different shell functions defined in ltmain.sh;
4704 # decide which one to use based on capabilities of $DLLTOOL
4705 case `$DLLTOOL --help 2>&1` in
4706 *--identify-strict*)
4707 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4710 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4712 esac
4715 # fallback: assume linklib IS sharedlib
4716 lt_cv_sharedlib_from_linklib_cmd=$ECHO
4718 esac
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4722 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4723 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4724 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4733 if test -n "$ac_tool_prefix"; then
4734 for ac_prog in ar
4736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if ${ac_cv_prog_AR+:} false; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 if test -n "$AR"; then
4744 ac_cv_prog_AR="$AR" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4753 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4757 done
4758 done
4759 IFS=$as_save_IFS
4763 AR=$ac_cv_prog_AR
4764 if test -n "$AR"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4766 $as_echo "$AR" >&6; }
4767 else
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4773 test -n "$AR" && break
4774 done
4776 if test -z "$AR"; then
4777 ac_ct_AR=$AR
4778 for ac_prog in ar
4780 # Extract the first word of "$ac_prog", so it can be a program name with args.
4781 set dummy $ac_prog; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4785 $as_echo_n "(cached) " >&6
4786 else
4787 if test -n "$ac_ct_AR"; then
4788 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4789 else
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4797 ac_cv_prog_ac_ct_AR="$ac_prog"
4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4801 done
4802 done
4803 IFS=$as_save_IFS
4807 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4808 if test -n "$ac_ct_AR"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4810 $as_echo "$ac_ct_AR" >&6; }
4811 else
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4817 test -n "$ac_ct_AR" && break
4818 done
4820 if test "x$ac_ct_AR" = x; then
4821 AR="false"
4822 else
4823 case $cross_compiling:$ac_tool_warned in
4824 yes:)
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4827 ac_tool_warned=yes ;;
4828 esac
4829 AR=$ac_ct_AR
4833 : ${AR=ar}
4834 : ${AR_FLAGS=cr}
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
4847 $as_echo_n "checking for archiver @FILE support... " >&6; }
4848 if ${lt_cv_ar_at_file+:} false; then :
4849 $as_echo_n "(cached) " >&6
4850 else
4851 lt_cv_ar_at_file=no
4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h. */
4856 main ()
4860 return 0;
4862 _ACEOF
4863 if ac_fn_c_try_compile "$LINENO"; then :
4864 echo conftest.$ac_objext > conftest.lst
4865 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
4866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4867 (eval $lt_ar_try) 2>&5
4868 ac_status=$?
4869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4870 test $ac_status = 0; }
4871 if test 0 -eq "$ac_status"; then
4872 # Ensure the archiver fails upon bogus file names.
4873 rm -f conftest.$ac_objext libconftest.a
4874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4875 (eval $lt_ar_try) 2>&5
4876 ac_status=$?
4877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4878 test $ac_status = 0; }
4879 if test 0 -ne "$ac_status"; then
4880 lt_cv_ar_at_file=@
4883 rm -f conftest.* libconftest.a
4886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
4890 $as_echo "$lt_cv_ar_at_file" >&6; }
4892 if test no = "$lt_cv_ar_at_file"; then
4893 archiver_list_spec=
4894 else
4895 archiver_list_spec=$lt_cv_ar_at_file
4904 if test -n "$ac_tool_prefix"; then
4905 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4906 set dummy ${ac_tool_prefix}strip; ac_word=$2
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4908 $as_echo_n "checking for $ac_word... " >&6; }
4909 if ${ac_cv_prog_STRIP+:} false; then :
4910 $as_echo_n "(cached) " >&6
4911 else
4912 if test -n "$STRIP"; then
4913 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4914 else
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 for as_dir in $PATH
4918 IFS=$as_save_IFS
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4922 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 break 2
4926 done
4927 done
4928 IFS=$as_save_IFS
4932 STRIP=$ac_cv_prog_STRIP
4933 if test -n "$STRIP"; then
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4935 $as_echo "$STRIP" >&6; }
4936 else
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938 $as_echo "no" >&6; }
4943 if test -z "$ac_cv_prog_STRIP"; then
4944 ac_ct_STRIP=$STRIP
4945 # Extract the first word of "strip", so it can be a program name with args.
4946 set dummy strip; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4950 $as_echo_n "(cached) " >&6
4951 else
4952 if test -n "$ac_ct_STRIP"; then
4953 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4962 ac_cv_prog_ac_ct_STRIP="strip"
4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 break 2
4966 done
4967 done
4968 IFS=$as_save_IFS
4972 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4973 if test -n "$ac_ct_STRIP"; then
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4975 $as_echo "$ac_ct_STRIP" >&6; }
4976 else
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4981 if test "x$ac_ct_STRIP" = x; then
4982 STRIP=":"
4983 else
4984 case $cross_compiling:$ac_tool_warned in
4985 yes:)
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4988 ac_tool_warned=yes ;;
4989 esac
4990 STRIP=$ac_ct_STRIP
4992 else
4993 STRIP="$ac_cv_prog_STRIP"
4996 test -z "$STRIP" && STRIP=:
5003 if test -n "$ac_tool_prefix"; then
5004 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5005 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5007 $as_echo_n "checking for $ac_word... " >&6; }
5008 if ${ac_cv_prog_RANLIB+:} false; then :
5009 $as_echo_n "(cached) " >&6
5010 else
5011 if test -n "$RANLIB"; then
5012 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5013 else
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5017 IFS=$as_save_IFS
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5021 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 break 2
5025 done
5026 done
5027 IFS=$as_save_IFS
5031 RANLIB=$ac_cv_prog_RANLIB
5032 if test -n "$RANLIB"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5034 $as_echo "$RANLIB" >&6; }
5035 else
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5042 if test -z "$ac_cv_prog_RANLIB"; then
5043 ac_ct_RANLIB=$RANLIB
5044 # Extract the first word of "ranlib", so it can be a program name with args.
5045 set dummy ranlib; ac_word=$2
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5047 $as_echo_n "checking for $ac_word... " >&6; }
5048 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 if test -n "$ac_ct_RANLIB"; then
5052 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5053 else
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5061 ac_cv_prog_ac_ct_RANLIB="ranlib"
5062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 break 2
5065 done
5066 done
5067 IFS=$as_save_IFS
5071 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5072 if test -n "$ac_ct_RANLIB"; then
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5074 $as_echo "$ac_ct_RANLIB" >&6; }
5075 else
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5080 if test "x$ac_ct_RANLIB" = x; then
5081 RANLIB=":"
5082 else
5083 case $cross_compiling:$ac_tool_warned in
5084 yes:)
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5087 ac_tool_warned=yes ;;
5088 esac
5089 RANLIB=$ac_ct_RANLIB
5091 else
5092 RANLIB="$ac_cv_prog_RANLIB"
5095 test -z "$RANLIB" && RANLIB=:
5102 # Determine commands to create old-style static archives.
5103 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5104 old_postinstall_cmds='chmod 644 $oldlib'
5105 old_postuninstall_cmds=
5107 if test -n "$RANLIB"; then
5108 case $host_os in
5109 bitrig* | openbsd*)
5110 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5113 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5115 esac
5116 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5119 case $host_os in
5120 darwin*)
5121 lock_old_archive_extraction=yes ;;
5123 lock_old_archive_extraction=no ;;
5124 esac
5146 for ac_prog in gawk mawk nawk awk
5148 # Extract the first word of "$ac_prog", so it can be a program name with args.
5149 set dummy $ac_prog; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if ${ac_cv_prog_AWK+:} false; then :
5153 $as_echo_n "(cached) " >&6
5154 else
5155 if test -n "$AWK"; then
5156 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5157 else
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5165 ac_cv_prog_AWK="$ac_prog"
5166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 break 2
5169 done
5170 done
5171 IFS=$as_save_IFS
5175 AWK=$ac_cv_prog_AWK
5176 if test -n "$AWK"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5178 $as_echo "$AWK" >&6; }
5179 else
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5185 test -n "$AWK" && break
5186 done
5206 # If no C compiler was specified, use CC.
5207 LTCC=${LTCC-"$CC"}
5209 # If no C compiler flags were specified, use CFLAGS.
5210 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5212 # Allow CC to be a program name with arguments.
5213 compiler=$CC
5216 # Check for command to grab the raw symbol name followed by C symbol from nm.
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5218 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5219 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5220 $as_echo_n "(cached) " >&6
5221 else
5223 # These are sane defaults that work on at least a few old systems.
5224 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5226 # Character class describing NM global symbol codes.
5227 symcode='[BCDEGRST]'
5229 # Regexp to match symbols that can be accessed directly from C.
5230 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5232 # Define system-specific variables.
5233 case $host_os in
5234 aix*)
5235 symcode='[BCDT]'
5237 cygwin* | mingw* | pw32* | cegcc*)
5238 symcode='[ABCDGISTW]'
5240 hpux*)
5241 if test ia64 = "$host_cpu"; then
5242 symcode='[ABCDEGRST]'
5245 irix* | nonstopux*)
5246 symcode='[BCDEGRST]'
5248 osf*)
5249 symcode='[BCDEGQRST]'
5251 solaris*)
5252 symcode='[BDRT]'
5254 sco3.2v5*)
5255 symcode='[DT]'
5257 sysv4.2uw2*)
5258 symcode='[DT]'
5260 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5261 symcode='[ABDT]'
5263 sysv4)
5264 symcode='[DFNSTU]'
5266 esac
5268 # If we're using GNU nm, then use its standard symbol codes.
5269 case `$NM -V 2>&1` in
5270 *GNU* | *'with BFD'*)
5271 symcode='[ABCDGIRSTW]' ;;
5272 esac
5274 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5275 # Gets list of data symbols to import.
5276 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5277 # Adjust the below global symbol transforms to fixup imported variables.
5278 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5279 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5280 lt_c_name_lib_hook="\
5281 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5282 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5283 else
5284 # Disable hooks by default.
5285 lt_cv_sys_global_symbol_to_import=
5286 lt_cdecl_hook=
5287 lt_c_name_hook=
5288 lt_c_name_lib_hook=
5291 # Transform an extracted symbol line into a proper C declaration.
5292 # Some systems (esp. on ia64) link data and code symbols differently,
5293 # so use this general approach.
5294 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5295 $lt_cdecl_hook\
5296 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5297 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5299 # Transform an extracted symbol line into symbol name and symbol address
5300 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5301 $lt_c_name_hook\
5302 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5303 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5305 # Transform an extracted symbol line into symbol name with lib prefix and
5306 # symbol address.
5307 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5308 $lt_c_name_lib_hook\
5309 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5310 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5311 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5313 # Handle CRLF in mingw tool chain
5314 opt_cr=
5315 case $build_os in
5316 mingw*)
5317 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5319 esac
5321 # Try without a prefix underscore, then with it.
5322 for ac_symprfx in "" "_"; do
5324 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5325 symxfrm="\\1 $ac_symprfx\\2 \\2"
5327 # Write the raw and C identifiers.
5328 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5329 # Fake it for dumpbin and say T for any non-static function,
5330 # D for any global variable and I for any imported variable.
5331 # Also find C++ and __fastcall symbols from MSVC++,
5332 # which start with @ or ?.
5333 lt_cv_sys_global_symbol_pipe="$AWK '"\
5334 " {last_section=section; section=\$ 3};"\
5335 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5336 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5337 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5338 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5339 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5340 " \$ 0!~/External *\|/{next};"\
5341 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5342 " {if(hide[section]) next};"\
5343 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5344 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5345 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5346 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5347 " ' prfx=^$ac_symprfx"
5348 else
5349 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5351 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5353 # Check to see that the pipe works correctly.
5354 pipe_works=no
5356 rm -f conftest*
5357 cat > conftest.$ac_ext <<_LT_EOF
5358 #ifdef __cplusplus
5359 extern "C" {
5360 #endif
5361 char nm_test_var;
5362 void nm_test_func(void);
5363 void nm_test_func(void){}
5364 #ifdef __cplusplus
5366 #endif
5367 int main(){nm_test_var='a';nm_test_func();return(0);}
5368 _LT_EOF
5370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5371 (eval $ac_compile) 2>&5
5372 ac_status=$?
5373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5374 test $ac_status = 0; }; then
5375 # Now try to grab the symbols.
5376 nlist=conftest.nm
5377 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
5378 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
5379 # Try sorting and uniquifying the output.
5380 if sort "$nlist" | uniq > "$nlist"T; then
5381 mv -f "$nlist"T "$nlist"
5382 else
5383 rm -f "$nlist"T
5386 # Make sure that we snagged all the symbols we need.
5387 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5388 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5389 cat <<_LT_EOF > conftest.$ac_ext
5390 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5391 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5392 /* DATA imports from DLLs on WIN32 can't be const, because runtime
5393 relocations are performed -- see ld's documentation on pseudo-relocs. */
5394 # define LT_DLSYM_CONST
5395 #elif defined __osf__
5396 /* This system does not cope well with relocations in const data. */
5397 # define LT_DLSYM_CONST
5398 #else
5399 # define LT_DLSYM_CONST const
5400 #endif
5402 #ifdef __cplusplus
5403 extern "C" {
5404 #endif
5406 _LT_EOF
5407 # Now generate the symbol file.
5408 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5410 cat <<_LT_EOF >> conftest.$ac_ext
5412 /* The mapping between symbol names and symbols. */
5413 LT_DLSYM_CONST struct {
5414 const char *name;
5415 void *address;
5417 lt__PROGRAM__LTX_preloaded_symbols[] =
5419 { "@PROGRAM@", (void *) 0 },
5420 _LT_EOF
5421 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5422 cat <<\_LT_EOF >> conftest.$ac_ext
5423 {0, (void *) 0}
5426 /* This works around a problem in FreeBSD linker */
5427 #ifdef FREEBSD_WORKAROUND
5428 static const void *lt_preloaded_setup() {
5429 return lt__PROGRAM__LTX_preloaded_symbols;
5431 #endif
5433 #ifdef __cplusplus
5435 #endif
5436 _LT_EOF
5437 # Now try linking the two files.
5438 mv conftest.$ac_objext conftstm.$ac_objext
5439 lt_globsym_save_LIBS=$LIBS
5440 lt_globsym_save_CFLAGS=$CFLAGS
5441 LIBS=conftstm.$ac_objext
5442 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5444 (eval $ac_link) 2>&5
5445 ac_status=$?
5446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5447 test $ac_status = 0; } && test -s conftest$ac_exeext; then
5448 pipe_works=yes
5450 LIBS=$lt_globsym_save_LIBS
5451 CFLAGS=$lt_globsym_save_CFLAGS
5452 else
5453 echo "cannot find nm_test_func in $nlist" >&5
5455 else
5456 echo "cannot find nm_test_var in $nlist" >&5
5458 else
5459 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5461 else
5462 echo "$progname: failed program was:" >&5
5463 cat conftest.$ac_ext >&5
5465 rm -rf conftest* conftst*
5467 # Do not use the global_symbol_pipe unless it works.
5468 if test yes = "$pipe_works"; then
5469 break
5470 else
5471 lt_cv_sys_global_symbol_pipe=
5473 done
5477 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5478 lt_cv_sys_global_symbol_to_cdecl=
5480 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5482 $as_echo "failed" >&6; }
5483 else
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5485 $as_echo "ok" >&6; }
5488 # Response file support.
5489 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5490 nm_file_list_spec='@'
5491 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5492 nm_file_list_spec='@'
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5532 $as_echo_n "checking for sysroot... " >&6; }
5534 # Check whether --with-sysroot was given.
5535 if test "${with_sysroot+set}" = set; then :
5536 withval=$with_sysroot;
5537 else
5538 with_sysroot=no
5542 lt_sysroot=
5543 case $with_sysroot in #(
5544 yes)
5545 if test yes = "$GCC"; then
5546 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5548 ;; #(
5550 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5551 ;; #(
5552 no|'')
5553 ;; #(
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
5556 $as_echo "$with_sysroot" >&6; }
5557 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5559 esac
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5562 $as_echo "${lt_sysroot:-no}" >&6; }
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
5569 $as_echo_n "checking for a working dd... " >&6; }
5570 if ${ac_cv_path_lt_DD+:} false; then :
5571 $as_echo_n "(cached) " >&6
5572 else
5573 printf 0123456789abcdef0123456789abcdef >conftest.i
5574 cat conftest.i conftest.i >conftest2.i
5575 : ${lt_DD:=$DD}
5576 if test -z "$lt_DD"; then
5577 ac_path_lt_DD_found=false
5578 # Loop through the user's path and test for each of PROGNAME-LIST
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 for as_dir in $PATH
5582 IFS=$as_save_IFS
5583 test -z "$as_dir" && as_dir=.
5584 for ac_prog in dd; do
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
5587 as_fn_executable_p "$ac_path_lt_DD" || continue
5588 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5589 cmp -s conftest.i conftest.out \
5590 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
5592 $ac_path_lt_DD_found && break 3
5593 done
5594 done
5595 done
5596 IFS=$as_save_IFS
5597 if test -z "$ac_cv_path_lt_DD"; then
5600 else
5601 ac_cv_path_lt_DD=$lt_DD
5604 rm -f conftest.i conftest2.i conftest.out
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
5607 $as_echo "$ac_cv_path_lt_DD" >&6; }
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
5611 $as_echo_n "checking how to truncate binary pipes... " >&6; }
5612 if ${lt_cv_truncate_bin+:} false; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 printf 0123456789abcdef0123456789abcdef >conftest.i
5616 cat conftest.i conftest.i >conftest2.i
5617 lt_cv_truncate_bin=
5618 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5619 cmp -s conftest.i conftest.out \
5620 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
5622 rm -f conftest.i conftest2.i conftest.out
5623 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
5626 $as_echo "$lt_cv_truncate_bin" >&6; }
5634 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
5635 func_cc_basename ()
5637 for cc_temp in $*""; do
5638 case $cc_temp in
5639 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5640 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5641 \-*) ;;
5642 *) break;;
5643 esac
5644 done
5645 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
5648 # Check whether --enable-libtool-lock was given.
5649 if test "${enable_libtool_lock+set}" = set; then :
5650 enableval=$enable_libtool_lock;
5653 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
5655 # Some flags need to be propagated to the compiler or linker for good
5656 # libtool support.
5657 case $host in
5658 ia64-*-hpux*)
5659 # Find out what ABI is being produced by ac_compile, and set mode
5660 # options accordingly.
5661 echo 'int i;' > conftest.$ac_ext
5662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5663 (eval $ac_compile) 2>&5
5664 ac_status=$?
5665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5666 test $ac_status = 0; }; then
5667 case `/usr/bin/file conftest.$ac_objext` in
5668 *ELF-32*)
5669 HPUX_IA64_MODE=32
5671 *ELF-64*)
5672 HPUX_IA64_MODE=64
5674 esac
5676 rm -rf conftest*
5678 *-*-irix6*)
5679 # Find out what ABI is being produced by ac_compile, and set linker
5680 # options accordingly.
5681 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5683 (eval $ac_compile) 2>&5
5684 ac_status=$?
5685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5686 test $ac_status = 0; }; then
5687 if test yes = "$lt_cv_prog_gnu_ld"; then
5688 case `/usr/bin/file conftest.$ac_objext` in
5689 *32-bit*)
5690 LD="${LD-ld} -melf32bsmip"
5692 *N32*)
5693 LD="${LD-ld} -melf32bmipn32"
5695 *64-bit*)
5696 LD="${LD-ld} -melf64bmip"
5698 esac
5699 else
5700 case `/usr/bin/file conftest.$ac_objext` in
5701 *32-bit*)
5702 LD="${LD-ld} -32"
5704 *N32*)
5705 LD="${LD-ld} -n32"
5707 *64-bit*)
5708 LD="${LD-ld} -64"
5710 esac
5713 rm -rf conftest*
5716 mips64*-*linux*)
5717 # Find out what ABI is being produced by ac_compile, and set linker
5718 # options accordingly.
5719 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5721 (eval $ac_compile) 2>&5
5722 ac_status=$?
5723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5724 test $ac_status = 0; }; then
5725 emul=elf
5726 case `/usr/bin/file conftest.$ac_objext` in
5727 *32-bit*)
5728 emul="${emul}32"
5730 *64-bit*)
5731 emul="${emul}64"
5733 esac
5734 case `/usr/bin/file conftest.$ac_objext` in
5735 *MSB*)
5736 emul="${emul}btsmip"
5738 *LSB*)
5739 emul="${emul}ltsmip"
5741 esac
5742 case `/usr/bin/file conftest.$ac_objext` in
5743 *N32*)
5744 emul="${emul}n32"
5746 esac
5747 LD="${LD-ld} -m $emul"
5749 rm -rf conftest*
5752 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5753 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5754 # Find out what ABI is being produced by ac_compile, and set linker
5755 # options accordingly. Note that the listed cases only cover the
5756 # situations where additional linker options are needed (such as when
5757 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
5758 # vice versa); the common cases where no linker options are needed do
5759 # not appear in the list.
5760 echo 'int i;' > conftest.$ac_ext
5761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5762 (eval $ac_compile) 2>&5
5763 ac_status=$?
5764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5765 test $ac_status = 0; }; then
5766 case `/usr/bin/file conftest.o` in
5767 *32-bit*)
5768 case $host in
5769 x86_64-*kfreebsd*-gnu)
5770 LD="${LD-ld} -m elf_i386_fbsd"
5772 x86_64-*linux*)
5773 case `/usr/bin/file conftest.o` in
5774 *x86-64*)
5775 LD="${LD-ld} -m elf32_x86_64"
5778 LD="${LD-ld} -m elf_i386"
5780 esac
5782 powerpc64le-*linux*)
5783 LD="${LD-ld} -m elf32lppclinux"
5785 powerpc64-*linux*)
5786 LD="${LD-ld} -m elf32ppclinux"
5788 s390x-*linux*)
5789 LD="${LD-ld} -m elf_s390"
5791 sparc64-*linux*)
5792 LD="${LD-ld} -m elf32_sparc"
5794 esac
5796 *64-bit*)
5797 case $host in
5798 x86_64-*kfreebsd*-gnu)
5799 LD="${LD-ld} -m elf_x86_64_fbsd"
5801 x86_64-*linux*)
5802 LD="${LD-ld} -m elf_x86_64"
5804 powerpcle-*linux*)
5805 LD="${LD-ld} -m elf64lppc"
5807 powerpc-*linux*)
5808 LD="${LD-ld} -m elf64ppc"
5810 s390*-*linux*|s390*-*tpf*)
5811 LD="${LD-ld} -m elf64_s390"
5813 sparc*-*linux*)
5814 LD="${LD-ld} -m elf64_sparc"
5816 esac
5818 esac
5820 rm -rf conftest*
5823 *-*-sco3.2v5*)
5824 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5825 SAVE_CFLAGS=$CFLAGS
5826 CFLAGS="$CFLAGS -belf"
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5828 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5829 if ${lt_cv_cc_needs_belf+:} false; then :
5830 $as_echo_n "(cached) " >&6
5831 else
5832 ac_ext=c
5833 ac_cpp='$CPP $CPPFLAGS'
5834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839 /* end confdefs.h. */
5842 main ()
5846 return 0;
5848 _ACEOF
5849 if ac_fn_c_try_link "$LINENO"; then :
5850 lt_cv_cc_needs_belf=yes
5851 else
5852 lt_cv_cc_needs_belf=no
5854 rm -f core conftest.err conftest.$ac_objext \
5855 conftest$ac_exeext conftest.$ac_ext
5856 ac_ext=c
5857 ac_cpp='$CPP $CPPFLAGS'
5858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5864 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5865 if test yes != "$lt_cv_cc_needs_belf"; then
5866 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5867 CFLAGS=$SAVE_CFLAGS
5870 *-*solaris*)
5871 # Find out what ABI is being produced by ac_compile, and set linker
5872 # options accordingly.
5873 echo 'int i;' > conftest.$ac_ext
5874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5875 (eval $ac_compile) 2>&5
5876 ac_status=$?
5877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5878 test $ac_status = 0; }; then
5879 case `/usr/bin/file conftest.o` in
5880 *64-bit*)
5881 case $lt_cv_prog_gnu_ld in
5882 yes*)
5883 case $host in
5884 i?86-*-solaris*|x86_64-*-solaris*)
5885 LD="${LD-ld} -m elf_x86_64"
5887 sparc*-*-solaris*)
5888 LD="${LD-ld} -m elf64_sparc"
5890 esac
5891 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
5892 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5893 LD=${LD-ld}_sol2
5897 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5898 LD="${LD-ld} -64"
5901 esac
5903 esac
5905 rm -rf conftest*
5907 esac
5909 need_locks=$enable_libtool_lock
5911 if test -n "$ac_tool_prefix"; then
5912 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5913 set dummy ${ac_tool_prefix}mt; ac_word=$2
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5915 $as_echo_n "checking for $ac_word... " >&6; }
5916 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
5917 $as_echo_n "(cached) " >&6
5918 else
5919 if test -n "$MANIFEST_TOOL"; then
5920 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5921 else
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5925 IFS=$as_save_IFS
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 break 2
5933 done
5934 done
5935 IFS=$as_save_IFS
5939 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5940 if test -n "$MANIFEST_TOOL"; then
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
5942 $as_echo "$MANIFEST_TOOL" >&6; }
5943 else
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945 $as_echo "no" >&6; }
5950 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5951 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5952 # Extract the first word of "mt", so it can be a program name with args.
5953 set dummy mt; ac_word=$2
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5955 $as_echo_n "checking for $ac_word... " >&6; }
5956 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5959 if test -n "$ac_ct_MANIFEST_TOOL"; then
5960 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5961 else
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 for as_dir in $PATH
5965 IFS=$as_save_IFS
5966 test -z "$as_dir" && as_dir=.
5967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5971 break 2
5973 done
5974 done
5975 IFS=$as_save_IFS
5979 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5980 if test -n "$ac_ct_MANIFEST_TOOL"; then
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
5982 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
5983 else
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5985 $as_echo "no" >&6; }
5988 if test "x$ac_ct_MANIFEST_TOOL" = x; then
5989 MANIFEST_TOOL=":"
5990 else
5991 case $cross_compiling:$ac_tool_warned in
5992 yes:)
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5995 ac_tool_warned=yes ;;
5996 esac
5997 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5999 else
6000 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6003 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6005 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6006 if ${lt_cv_path_mainfest_tool+:} false; then :
6007 $as_echo_n "(cached) " >&6
6008 else
6009 lt_cv_path_mainfest_tool=no
6010 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6011 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6012 cat conftest.err >&5
6013 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6014 lt_cv_path_mainfest_tool=yes
6016 rm -f conftest*
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6019 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6020 if test yes != "$lt_cv_path_mainfest_tool"; then
6021 MANIFEST_TOOL=:
6029 case $host_os in
6030 rhapsody* | darwin*)
6031 if test -n "$ac_tool_prefix"; then
6032 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6033 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6035 $as_echo_n "checking for $ac_word... " >&6; }
6036 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6037 $as_echo_n "(cached) " >&6
6038 else
6039 if test -n "$DSYMUTIL"; then
6040 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6041 else
6042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 for as_dir in $PATH
6045 IFS=$as_save_IFS
6046 test -z "$as_dir" && as_dir=.
6047 for ac_exec_ext in '' $ac_executable_extensions; do
6048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6049 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6051 break 2
6053 done
6054 done
6055 IFS=$as_save_IFS
6059 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6060 if test -n "$DSYMUTIL"; then
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6062 $as_echo "$DSYMUTIL" >&6; }
6063 else
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065 $as_echo "no" >&6; }
6070 if test -z "$ac_cv_prog_DSYMUTIL"; then
6071 ac_ct_DSYMUTIL=$DSYMUTIL
6072 # Extract the first word of "dsymutil", so it can be a program name with args.
6073 set dummy dsymutil; ac_word=$2
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075 $as_echo_n "checking for $ac_word... " >&6; }
6076 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6077 $as_echo_n "(cached) " >&6
6078 else
6079 if test -n "$ac_ct_DSYMUTIL"; then
6080 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6081 else
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 for as_dir in $PATH
6085 IFS=$as_save_IFS
6086 test -z "$as_dir" && as_dir=.
6087 for ac_exec_ext in '' $ac_executable_extensions; do
6088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6089 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 break 2
6093 done
6094 done
6095 IFS=$as_save_IFS
6099 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6100 if test -n "$ac_ct_DSYMUTIL"; then
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6102 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6103 else
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105 $as_echo "no" >&6; }
6108 if test "x$ac_ct_DSYMUTIL" = x; then
6109 DSYMUTIL=":"
6110 else
6111 case $cross_compiling:$ac_tool_warned in
6112 yes:)
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6115 ac_tool_warned=yes ;;
6116 esac
6117 DSYMUTIL=$ac_ct_DSYMUTIL
6119 else
6120 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6123 if test -n "$ac_tool_prefix"; then
6124 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6125 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127 $as_echo_n "checking for $ac_word... " >&6; }
6128 if ${ac_cv_prog_NMEDIT+:} false; then :
6129 $as_echo_n "(cached) " >&6
6130 else
6131 if test -n "$NMEDIT"; then
6132 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6133 else
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6141 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 break 2
6145 done
6146 done
6147 IFS=$as_save_IFS
6151 NMEDIT=$ac_cv_prog_NMEDIT
6152 if test -n "$NMEDIT"; then
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6154 $as_echo "$NMEDIT" >&6; }
6155 else
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157 $as_echo "no" >&6; }
6162 if test -z "$ac_cv_prog_NMEDIT"; then
6163 ac_ct_NMEDIT=$NMEDIT
6164 # Extract the first word of "nmedit", so it can be a program name with args.
6165 set dummy nmedit; ac_word=$2
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167 $as_echo_n "checking for $ac_word... " >&6; }
6168 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 if test -n "$ac_ct_NMEDIT"; then
6172 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6173 else
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH
6177 IFS=$as_save_IFS
6178 test -z "$as_dir" && as_dir=.
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6181 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6183 break 2
6185 done
6186 done
6187 IFS=$as_save_IFS
6191 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6192 if test -n "$ac_ct_NMEDIT"; then
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6194 $as_echo "$ac_ct_NMEDIT" >&6; }
6195 else
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197 $as_echo "no" >&6; }
6200 if test "x$ac_ct_NMEDIT" = x; then
6201 NMEDIT=":"
6202 else
6203 case $cross_compiling:$ac_tool_warned in
6204 yes:)
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6207 ac_tool_warned=yes ;;
6208 esac
6209 NMEDIT=$ac_ct_NMEDIT
6211 else
6212 NMEDIT="$ac_cv_prog_NMEDIT"
6215 if test -n "$ac_tool_prefix"; then
6216 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6217 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6219 $as_echo_n "checking for $ac_word... " >&6; }
6220 if ${ac_cv_prog_LIPO+:} false; then :
6221 $as_echo_n "(cached) " >&6
6222 else
6223 if test -n "$LIPO"; then
6224 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6225 else
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 for as_dir in $PATH
6229 IFS=$as_save_IFS
6230 test -z "$as_dir" && as_dir=.
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6233 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6235 break 2
6237 done
6238 done
6239 IFS=$as_save_IFS
6243 LIPO=$ac_cv_prog_LIPO
6244 if test -n "$LIPO"; then
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6246 $as_echo "$LIPO" >&6; }
6247 else
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6249 $as_echo "no" >&6; }
6254 if test -z "$ac_cv_prog_LIPO"; then
6255 ac_ct_LIPO=$LIPO
6256 # Extract the first word of "lipo", so it can be a program name with args.
6257 set dummy lipo; ac_word=$2
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6259 $as_echo_n "checking for $ac_word... " >&6; }
6260 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6261 $as_echo_n "(cached) " >&6
6262 else
6263 if test -n "$ac_ct_LIPO"; then
6264 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6265 else
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 for as_dir in $PATH
6269 IFS=$as_save_IFS
6270 test -z "$as_dir" && as_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6273 ac_cv_prog_ac_ct_LIPO="lipo"
6274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6275 break 2
6277 done
6278 done
6279 IFS=$as_save_IFS
6283 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6284 if test -n "$ac_ct_LIPO"; then
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6286 $as_echo "$ac_ct_LIPO" >&6; }
6287 else
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289 $as_echo "no" >&6; }
6292 if test "x$ac_ct_LIPO" = x; then
6293 LIPO=":"
6294 else
6295 case $cross_compiling:$ac_tool_warned in
6296 yes:)
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6299 ac_tool_warned=yes ;;
6300 esac
6301 LIPO=$ac_ct_LIPO
6303 else
6304 LIPO="$ac_cv_prog_LIPO"
6307 if test -n "$ac_tool_prefix"; then
6308 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6309 set dummy ${ac_tool_prefix}otool; ac_word=$2
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311 $as_echo_n "checking for $ac_word... " >&6; }
6312 if ${ac_cv_prog_OTOOL+:} false; then :
6313 $as_echo_n "(cached) " >&6
6314 else
6315 if test -n "$OTOOL"; then
6316 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6317 else
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 for as_dir in $PATH
6321 IFS=$as_save_IFS
6322 test -z "$as_dir" && as_dir=.
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6325 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6327 break 2
6329 done
6330 done
6331 IFS=$as_save_IFS
6335 OTOOL=$ac_cv_prog_OTOOL
6336 if test -n "$OTOOL"; then
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6338 $as_echo "$OTOOL" >&6; }
6339 else
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341 $as_echo "no" >&6; }
6346 if test -z "$ac_cv_prog_OTOOL"; then
6347 ac_ct_OTOOL=$OTOOL
6348 # Extract the first word of "otool", so it can be a program name with args.
6349 set dummy otool; ac_word=$2
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6351 $as_echo_n "checking for $ac_word... " >&6; }
6352 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6353 $as_echo_n "(cached) " >&6
6354 else
6355 if test -n "$ac_ct_OTOOL"; then
6356 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6357 else
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 for as_dir in $PATH
6361 IFS=$as_save_IFS
6362 test -z "$as_dir" && as_dir=.
6363 for ac_exec_ext in '' $ac_executable_extensions; do
6364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6365 ac_cv_prog_ac_ct_OTOOL="otool"
6366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6367 break 2
6369 done
6370 done
6371 IFS=$as_save_IFS
6375 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6376 if test -n "$ac_ct_OTOOL"; then
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6378 $as_echo "$ac_ct_OTOOL" >&6; }
6379 else
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6381 $as_echo "no" >&6; }
6384 if test "x$ac_ct_OTOOL" = x; then
6385 OTOOL=":"
6386 else
6387 case $cross_compiling:$ac_tool_warned in
6388 yes:)
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6391 ac_tool_warned=yes ;;
6392 esac
6393 OTOOL=$ac_ct_OTOOL
6395 else
6396 OTOOL="$ac_cv_prog_OTOOL"
6399 if test -n "$ac_tool_prefix"; then
6400 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6401 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6403 $as_echo_n "checking for $ac_word... " >&6; }
6404 if ${ac_cv_prog_OTOOL64+:} false; then :
6405 $as_echo_n "(cached) " >&6
6406 else
6407 if test -n "$OTOOL64"; then
6408 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6409 else
6410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 for as_dir in $PATH
6413 IFS=$as_save_IFS
6414 test -z "$as_dir" && as_dir=.
6415 for ac_exec_ext in '' $ac_executable_extensions; do
6416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6417 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6419 break 2
6421 done
6422 done
6423 IFS=$as_save_IFS
6427 OTOOL64=$ac_cv_prog_OTOOL64
6428 if test -n "$OTOOL64"; then
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6430 $as_echo "$OTOOL64" >&6; }
6431 else
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6433 $as_echo "no" >&6; }
6438 if test -z "$ac_cv_prog_OTOOL64"; then
6439 ac_ct_OTOOL64=$OTOOL64
6440 # Extract the first word of "otool64", so it can be a program name with args.
6441 set dummy otool64; ac_word=$2
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6445 $as_echo_n "(cached) " >&6
6446 else
6447 if test -n "$ac_ct_OTOOL64"; then
6448 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6449 else
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in $PATH
6453 IFS=$as_save_IFS
6454 test -z "$as_dir" && as_dir=.
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6457 ac_cv_prog_ac_ct_OTOOL64="otool64"
6458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459 break 2
6461 done
6462 done
6463 IFS=$as_save_IFS
6467 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6468 if test -n "$ac_ct_OTOOL64"; then
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6470 $as_echo "$ac_ct_OTOOL64" >&6; }
6471 else
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6476 if test "x$ac_ct_OTOOL64" = x; then
6477 OTOOL64=":"
6478 else
6479 case $cross_compiling:$ac_tool_warned in
6480 yes:)
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6483 ac_tool_warned=yes ;;
6484 esac
6485 OTOOL64=$ac_ct_OTOOL64
6487 else
6488 OTOOL64="$ac_cv_prog_OTOOL64"
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6518 $as_echo_n "checking for -single_module linker flag... " >&6; }
6519 if ${lt_cv_apple_cc_single_mod+:} false; then :
6520 $as_echo_n "(cached) " >&6
6521 else
6522 lt_cv_apple_cc_single_mod=no
6523 if test -z "$LT_MULTI_MODULE"; then
6524 # By default we will add the -single_module flag. You can override
6525 # by either setting the environment variable LT_MULTI_MODULE
6526 # non-empty at configure time, or by adding -multi_module to the
6527 # link flags.
6528 rm -rf libconftest.dylib*
6529 echo "int foo(void){return 1;}" > conftest.c
6530 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6531 -dynamiclib -Wl,-single_module conftest.c" >&5
6532 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6533 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6534 _lt_result=$?
6535 # If there is a non-empty error log, and "single_module"
6536 # appears in it, assume the flag caused a linker warning
6537 if test -s conftest.err && $GREP single_module conftest.err; then
6538 cat conftest.err >&5
6539 # Otherwise, if the output was created with a 0 exit code from
6540 # the compiler, it worked.
6541 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
6542 lt_cv_apple_cc_single_mod=yes
6543 else
6544 cat conftest.err >&5
6546 rm -rf libconftest.dylib*
6547 rm -f conftest.*
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6551 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6554 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6555 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6556 $as_echo_n "(cached) " >&6
6557 else
6558 lt_cv_ld_exported_symbols_list=no
6559 save_LDFLAGS=$LDFLAGS
6560 echo "_main" > conftest.sym
6561 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563 /* end confdefs.h. */
6566 main ()
6570 return 0;
6572 _ACEOF
6573 if ac_fn_c_try_link "$LINENO"; then :
6574 lt_cv_ld_exported_symbols_list=yes
6575 else
6576 lt_cv_ld_exported_symbols_list=no
6578 rm -f core conftest.err conftest.$ac_objext \
6579 conftest$ac_exeext conftest.$ac_ext
6580 LDFLAGS=$save_LDFLAGS
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6584 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6587 $as_echo_n "checking for -force_load linker flag... " >&6; }
6588 if ${lt_cv_ld_force_load+:} false; then :
6589 $as_echo_n "(cached) " >&6
6590 else
6591 lt_cv_ld_force_load=no
6592 cat > conftest.c << _LT_EOF
6593 int forced_loaded() { return 2;}
6594 _LT_EOF
6595 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6596 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6597 echo "$AR cr libconftest.a conftest.o" >&5
6598 $AR cr libconftest.a conftest.o 2>&5
6599 echo "$RANLIB libconftest.a" >&5
6600 $RANLIB libconftest.a 2>&5
6601 cat > conftest.c << _LT_EOF
6602 int main() { return 0;}
6603 _LT_EOF
6604 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6605 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6606 _lt_result=$?
6607 if test -s conftest.err && $GREP force_load conftest.err; then
6608 cat conftest.err >&5
6609 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
6610 lt_cv_ld_force_load=yes
6611 else
6612 cat conftest.err >&5
6614 rm -f conftest.err libconftest.a conftest conftest.c
6615 rm -rf conftest.dSYM
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6619 $as_echo "$lt_cv_ld_force_load" >&6; }
6620 case $host_os in
6621 rhapsody* | darwin1.[012])
6622 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
6623 darwin1.*)
6624 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6625 darwin*) # darwin 5.x on
6626 # if running on 10.5 or later, the deployment target defaults
6627 # to the OS version, if on x86, and 10.4, the deployment
6628 # target defaults to 10.4. Don't you love it?
6629 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6630 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6631 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6632 10.[012][,.]*)
6633 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6634 10.*)
6635 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6636 esac
6638 esac
6639 if test yes = "$lt_cv_apple_cc_single_mod"; then
6640 _lt_dar_single_mod='$single_module'
6642 if test yes = "$lt_cv_ld_exported_symbols_list"; then
6643 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
6644 else
6645 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
6647 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
6648 _lt_dsymutil='~$DSYMUTIL $lib || :'
6649 else
6650 _lt_dsymutil=
6653 esac
6655 # func_munge_path_list VARIABLE PATH
6656 # -----------------------------------
6657 # VARIABLE is name of variable containing _space_ separated list of
6658 # directories to be munged by the contents of PATH, which is string
6659 # having a format:
6660 # "DIR[:DIR]:"
6661 # string "DIR[ DIR]" will be prepended to VARIABLE
6662 # ":DIR[:DIR]"
6663 # string "DIR[ DIR]" will be appended to VARIABLE
6664 # "DIRP[:DIRP]::[DIRA:]DIRA"
6665 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
6666 # "DIRA[ DIRA]" will be appended to VARIABLE
6667 # "DIR[:DIR]"
6668 # VARIABLE will be replaced by "DIR[ DIR]"
6669 func_munge_path_list ()
6671 case x$2 in
6675 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
6677 x:*)
6678 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
6680 *::*)
6681 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
6682 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
6685 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
6687 esac
6690 ac_ext=c
6691 ac_cpp='$CPP $CPPFLAGS'
6692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6696 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6697 # On Suns, sometimes $CPP names a directory.
6698 if test -n "$CPP" && test -d "$CPP"; then
6699 CPP=
6701 if test -z "$CPP"; then
6702 if ${ac_cv_prog_CPP+:} false; then :
6703 $as_echo_n "(cached) " >&6
6704 else
6705 # Double quotes because CPP needs to be expanded
6706 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6708 ac_preproc_ok=false
6709 for ac_c_preproc_warn_flag in '' yes
6711 # Use a header file that comes with gcc, so configuring glibc
6712 # with a fresh cross-compiler works.
6713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6714 # <limits.h> exists even on freestanding compilers.
6715 # On the NeXT, cc -E runs the code through the compiler's parser,
6716 # not just through cpp. "Syntax error" is here to catch this case.
6717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6719 #ifdef __STDC__
6720 # include <limits.h>
6721 #else
6722 # include <assert.h>
6723 #endif
6724 Syntax error
6725 _ACEOF
6726 if ac_fn_c_try_cpp "$LINENO"; then :
6728 else
6729 # Broken: fails on valid input.
6730 continue
6732 rm -f conftest.err conftest.i conftest.$ac_ext
6734 # OK, works on sane cases. Now check whether nonexistent headers
6735 # can be detected and how.
6736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737 /* end confdefs.h. */
6738 #include <ac_nonexistent.h>
6739 _ACEOF
6740 if ac_fn_c_try_cpp "$LINENO"; then :
6741 # Broken: success on invalid input.
6742 continue
6743 else
6744 # Passes both tests.
6745 ac_preproc_ok=:
6746 break
6748 rm -f conftest.err conftest.i conftest.$ac_ext
6750 done
6751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6752 rm -f conftest.i conftest.err conftest.$ac_ext
6753 if $ac_preproc_ok; then :
6754 break
6757 done
6758 ac_cv_prog_CPP=$CPP
6761 CPP=$ac_cv_prog_CPP
6762 else
6763 ac_cv_prog_CPP=$CPP
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6766 $as_echo "$CPP" >&6; }
6767 ac_preproc_ok=false
6768 for ac_c_preproc_warn_flag in '' yes
6770 # Use a header file that comes with gcc, so configuring glibc
6771 # with a fresh cross-compiler works.
6772 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6773 # <limits.h> exists even on freestanding compilers.
6774 # On the NeXT, cc -E runs the code through the compiler's parser,
6775 # not just through cpp. "Syntax error" is here to catch this case.
6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6778 #ifdef __STDC__
6779 # include <limits.h>
6780 #else
6781 # include <assert.h>
6782 #endif
6783 Syntax error
6784 _ACEOF
6785 if ac_fn_c_try_cpp "$LINENO"; then :
6787 else
6788 # Broken: fails on valid input.
6789 continue
6791 rm -f conftest.err conftest.i conftest.$ac_ext
6793 # OK, works on sane cases. Now check whether nonexistent headers
6794 # can be detected and how.
6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h. */
6797 #include <ac_nonexistent.h>
6798 _ACEOF
6799 if ac_fn_c_try_cpp "$LINENO"; then :
6800 # Broken: success on invalid input.
6801 continue
6802 else
6803 # Passes both tests.
6804 ac_preproc_ok=:
6805 break
6807 rm -f conftest.err conftest.i conftest.$ac_ext
6809 done
6810 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6811 rm -f conftest.i conftest.err conftest.$ac_ext
6812 if $ac_preproc_ok; then :
6814 else
6815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6817 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6818 See \`config.log' for more details" "$LINENO" 5; }
6821 ac_ext=c
6822 ac_cpp='$CPP $CPPFLAGS'
6823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6829 $as_echo_n "checking for ANSI C header files... " >&6; }
6830 if ${ac_cv_header_stdc+:} false; then :
6831 $as_echo_n "(cached) " >&6
6832 else
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6835 #include <stdlib.h>
6836 #include <stdarg.h>
6837 #include <string.h>
6838 #include <float.h>
6841 main ()
6845 return 0;
6847 _ACEOF
6848 if ac_fn_c_try_compile "$LINENO"; then :
6849 ac_cv_header_stdc=yes
6850 else
6851 ac_cv_header_stdc=no
6853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6855 if test $ac_cv_header_stdc = yes; then
6856 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6859 #include <string.h>
6861 _ACEOF
6862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6863 $EGREP "memchr" >/dev/null 2>&1; then :
6865 else
6866 ac_cv_header_stdc=no
6868 rm -f conftest*
6872 if test $ac_cv_header_stdc = yes; then
6873 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6876 #include <stdlib.h>
6878 _ACEOF
6879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6880 $EGREP "free" >/dev/null 2>&1; then :
6882 else
6883 ac_cv_header_stdc=no
6885 rm -f conftest*
6889 if test $ac_cv_header_stdc = yes; then
6890 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6891 if test "$cross_compiling" = yes; then :
6893 else
6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6896 #include <ctype.h>
6897 #include <stdlib.h>
6898 #if ((' ' & 0x0FF) == 0x020)
6899 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6900 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6901 #else
6902 # define ISLOWER(c) \
6903 (('a' <= (c) && (c) <= 'i') \
6904 || ('j' <= (c) && (c) <= 'r') \
6905 || ('s' <= (c) && (c) <= 'z'))
6906 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6907 #endif
6909 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6911 main ()
6913 int i;
6914 for (i = 0; i < 256; i++)
6915 if (XOR (islower (i), ISLOWER (i))
6916 || toupper (i) != TOUPPER (i))
6917 return 2;
6918 return 0;
6920 _ACEOF
6921 if ac_fn_c_try_run "$LINENO"; then :
6923 else
6924 ac_cv_header_stdc=no
6926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6927 conftest.$ac_objext conftest.beam conftest.$ac_ext
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6933 $as_echo "$ac_cv_header_stdc" >&6; }
6934 if test $ac_cv_header_stdc = yes; then
6936 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6940 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6941 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6942 inttypes.h stdint.h unistd.h
6943 do :
6944 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6945 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6947 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6948 cat >>confdefs.h <<_ACEOF
6949 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6950 _ACEOF
6954 done
6957 for ac_header in dlfcn.h
6958 do :
6959 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6961 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6962 cat >>confdefs.h <<_ACEOF
6963 #define HAVE_DLFCN_H 1
6964 _ACEOF
6968 done
6974 # Set options
6978 enable_dlopen=no
6981 enable_win32_dll=no
6984 # Check whether --enable-shared was given.
6985 if test "${enable_shared+set}" = set; then :
6986 enableval=$enable_shared; p=${PACKAGE-default}
6987 case $enableval in
6988 yes) enable_shared=yes ;;
6989 no) enable_shared=no ;;
6991 enable_shared=no
6992 # Look at the argument we got. We use all the common list separators.
6993 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
6994 for pkg in $enableval; do
6995 IFS=$lt_save_ifs
6996 if test "X$pkg" = "X$p"; then
6997 enable_shared=yes
6999 done
7000 IFS=$lt_save_ifs
7002 esac
7003 else
7004 enable_shared=yes
7015 # Check whether --enable-static was given.
7016 if test "${enable_static+set}" = set; then :
7017 enableval=$enable_static; p=${PACKAGE-default}
7018 case $enableval in
7019 yes) enable_static=yes ;;
7020 no) enable_static=no ;;
7022 enable_static=no
7023 # Look at the argument we got. We use all the common list separators.
7024 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7025 for pkg in $enableval; do
7026 IFS=$lt_save_ifs
7027 if test "X$pkg" = "X$p"; then
7028 enable_static=yes
7030 done
7031 IFS=$lt_save_ifs
7033 esac
7034 else
7035 enable_static=yes
7047 # Check whether --with-pic was given.
7048 if test "${with_pic+set}" = set; then :
7049 withval=$with_pic; lt_p=${PACKAGE-default}
7050 case $withval in
7051 yes|no) pic_mode=$withval ;;
7053 pic_mode=default
7054 # Look at the argument we got. We use all the common list separators.
7055 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7056 for lt_pkg in $withval; do
7057 IFS=$lt_save_ifs
7058 if test "X$lt_pkg" = "X$lt_p"; then
7059 pic_mode=yes
7061 done
7062 IFS=$lt_save_ifs
7064 esac
7065 else
7066 pic_mode=default
7076 # Check whether --enable-fast-install was given.
7077 if test "${enable_fast_install+set}" = set; then :
7078 enableval=$enable_fast_install; p=${PACKAGE-default}
7079 case $enableval in
7080 yes) enable_fast_install=yes ;;
7081 no) enable_fast_install=no ;;
7083 enable_fast_install=no
7084 # Look at the argument we got. We use all the common list separators.
7085 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7086 for pkg in $enableval; do
7087 IFS=$lt_save_ifs
7088 if test "X$pkg" = "X$p"; then
7089 enable_fast_install=yes
7091 done
7092 IFS=$lt_save_ifs
7094 esac
7095 else
7096 enable_fast_install=yes
7106 shared_archive_member_spec=
7107 case $host,$enable_shared in
7108 power*-*-aix[5-9]*,yes)
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7110 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7112 # Check whether --with-aix-soname was given.
7113 if test "${with_aix_soname+set}" = set; then :
7114 withval=$with_aix_soname; case $withval in
7115 aix|svr4|both)
7118 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7120 esac
7121 lt_cv_with_aix_soname=$with_aix_soname
7122 else
7123 if ${lt_cv_with_aix_soname+:} false; then :
7124 $as_echo_n "(cached) " >&6
7125 else
7126 lt_cv_with_aix_soname=aix
7129 with_aix_soname=$lt_cv_with_aix_soname
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7133 $as_echo "$with_aix_soname" >&6; }
7134 if test aix != "$with_aix_soname"; then
7135 # For the AIX way of multilib, we name the shared archive member
7136 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7137 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7138 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7139 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7140 if test 64 = "${OBJECT_MODE-32}"; then
7141 shared_archive_member_spec=shr_64
7142 else
7143 shared_archive_member_spec=shr
7148 with_aix_soname=aix
7150 esac
7161 # This can be used to rebuild libtool when needed
7162 LIBTOOL_DEPS=$ltmain
7164 # Always use our own libtool.
7165 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7196 test -z "$LN_S" && LN_S="ln -s"
7211 if test -n "${ZSH_VERSION+set}"; then
7212 setopt NO_GLOB_SUBST
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7216 $as_echo_n "checking for objdir... " >&6; }
7217 if ${lt_cv_objdir+:} false; then :
7218 $as_echo_n "(cached) " >&6
7219 else
7220 rm -f .libs 2>/dev/null
7221 mkdir .libs 2>/dev/null
7222 if test -d .libs; then
7223 lt_cv_objdir=.libs
7224 else
7225 # MS-DOS does not allow filenames that begin with a dot.
7226 lt_cv_objdir=_libs
7228 rmdir .libs 2>/dev/null
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7231 $as_echo "$lt_cv_objdir" >&6; }
7232 objdir=$lt_cv_objdir
7238 cat >>confdefs.h <<_ACEOF
7239 #define LT_OBJDIR "$lt_cv_objdir/"
7240 _ACEOF
7245 case $host_os in
7246 aix3*)
7247 # AIX sometimes has problems with the GCC collect2 program. For some
7248 # reason, if we set the COLLECT_NAMES environment variable, the problems
7249 # vanish in a puff of smoke.
7250 if test set != "${COLLECT_NAMES+set}"; then
7251 COLLECT_NAMES=
7252 export COLLECT_NAMES
7255 esac
7257 # Global variables:
7258 ofile=libtool
7259 can_build_shared=yes
7261 # All known linkers require a '.a' archive for static linking (except MSVC,
7262 # which needs '.lib').
7263 libext=a
7265 with_gnu_ld=$lt_cv_prog_gnu_ld
7267 old_CC=$CC
7268 old_CFLAGS=$CFLAGS
7270 # Set sane defaults for various variables
7271 test -z "$CC" && CC=cc
7272 test -z "$LTCC" && LTCC=$CC
7273 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7274 test -z "$LD" && LD=ld
7275 test -z "$ac_objext" && ac_objext=o
7277 func_cc_basename $compiler
7278 cc_basename=$func_cc_basename_result
7281 # Only perform the check for file, if the check method requires it
7282 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7283 case $deplibs_check_method in
7284 file_magic*)
7285 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7287 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7288 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7289 $as_echo_n "(cached) " >&6
7290 else
7291 case $MAGIC_CMD in
7292 [\\/*] | ?:[\\/]*)
7293 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7296 lt_save_MAGIC_CMD=$MAGIC_CMD
7297 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7298 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7299 for ac_dir in $ac_dummy; do
7300 IFS=$lt_save_ifs
7301 test -z "$ac_dir" && ac_dir=.
7302 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7303 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7304 if test -n "$file_magic_test_file"; then
7305 case $deplibs_check_method in
7306 "file_magic "*)
7307 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7308 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7309 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7310 $EGREP "$file_magic_regex" > /dev/null; then
7312 else
7313 cat <<_LT_EOF 1>&2
7315 *** Warning: the command libtool uses to detect shared libraries,
7316 *** $file_magic_cmd, produces output that libtool cannot recognize.
7317 *** The result is that libtool may fail to recognize shared libraries
7318 *** as such. This will affect the creation of libtool libraries that
7319 *** depend on shared libraries, but programs linked with such libtool
7320 *** libraries will work regardless of this problem. Nevertheless, you
7321 *** may want to report the problem to your system manager and/or to
7322 *** bug-libtool@gnu.org
7324 _LT_EOF
7325 fi ;;
7326 esac
7328 break
7330 done
7331 IFS=$lt_save_ifs
7332 MAGIC_CMD=$lt_save_MAGIC_CMD
7334 esac
7337 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7338 if test -n "$MAGIC_CMD"; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7340 $as_echo "$MAGIC_CMD" >&6; }
7341 else
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343 $as_echo "no" >&6; }
7350 if test -z "$lt_cv_path_MAGIC_CMD"; then
7351 if test -n "$ac_tool_prefix"; then
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7353 $as_echo_n "checking for file... " >&6; }
7354 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7355 $as_echo_n "(cached) " >&6
7356 else
7357 case $MAGIC_CMD in
7358 [\\/*] | ?:[\\/]*)
7359 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7362 lt_save_MAGIC_CMD=$MAGIC_CMD
7363 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7364 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7365 for ac_dir in $ac_dummy; do
7366 IFS=$lt_save_ifs
7367 test -z "$ac_dir" && ac_dir=.
7368 if test -f "$ac_dir/file"; then
7369 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7370 if test -n "$file_magic_test_file"; then
7371 case $deplibs_check_method in
7372 "file_magic "*)
7373 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7374 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7375 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7376 $EGREP "$file_magic_regex" > /dev/null; then
7378 else
7379 cat <<_LT_EOF 1>&2
7381 *** Warning: the command libtool uses to detect shared libraries,
7382 *** $file_magic_cmd, produces output that libtool cannot recognize.
7383 *** The result is that libtool may fail to recognize shared libraries
7384 *** as such. This will affect the creation of libtool libraries that
7385 *** depend on shared libraries, but programs linked with such libtool
7386 *** libraries will work regardless of this problem. Nevertheless, you
7387 *** may want to report the problem to your system manager and/or to
7388 *** bug-libtool@gnu.org
7390 _LT_EOF
7391 fi ;;
7392 esac
7394 break
7396 done
7397 IFS=$lt_save_ifs
7398 MAGIC_CMD=$lt_save_MAGIC_CMD
7400 esac
7403 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7404 if test -n "$MAGIC_CMD"; then
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7406 $as_echo "$MAGIC_CMD" >&6; }
7407 else
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409 $as_echo "no" >&6; }
7413 else
7414 MAGIC_CMD=:
7420 esac
7422 # Use C for the default configuration in the libtool script
7424 lt_save_CC=$CC
7425 ac_ext=c
7426 ac_cpp='$CPP $CPPFLAGS'
7427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7432 # Source file extension for C test sources.
7433 ac_ext=c
7435 # Object file extension for compiled C test sources.
7436 objext=o
7437 objext=$objext
7439 # Code to be used in simple compile tests
7440 lt_simple_compile_test_code="int some_variable = 0;"
7442 # Code to be used in simple link tests
7443 lt_simple_link_test_code='int main(){return(0);}'
7451 # If no C compiler was specified, use CC.
7452 LTCC=${LTCC-"$CC"}
7454 # If no C compiler flags were specified, use CFLAGS.
7455 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7457 # Allow CC to be a program name with arguments.
7458 compiler=$CC
7460 # Save the default compiler, since it gets overwritten when the other
7461 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7462 compiler_DEFAULT=$CC
7464 # save warnings/boilerplate of simple test code
7465 ac_outfile=conftest.$ac_objext
7466 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7467 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7468 _lt_compiler_boilerplate=`cat conftest.err`
7469 $RM conftest*
7471 ac_outfile=conftest.$ac_objext
7472 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7473 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7474 _lt_linker_boilerplate=`cat conftest.err`
7475 $RM -r conftest*
7478 if test -n "$compiler"; then
7480 lt_prog_compiler_no_builtin_flag=
7482 if test yes = "$GCC"; then
7483 case $cc_basename in
7484 nvcc*)
7485 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7487 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7488 esac
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7491 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7492 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7493 $as_echo_n "(cached) " >&6
7494 else
7495 lt_cv_prog_compiler_rtti_exceptions=no
7496 ac_outfile=conftest.$ac_objext
7497 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7498 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
7499 # Insert the option either (1) after the last *FLAGS variable, or
7500 # (2) before a word containing "conftest.", or (3) at the end.
7501 # Note that $ac_compile itself does not contain backslashes and begins
7502 # with a dollar sign (not a hyphen), so the echo should work correctly.
7503 # The option is referenced via a variable to avoid confusing sed.
7504 lt_compile=`echo "$ac_compile" | $SED \
7505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7507 -e 's:$: $lt_compiler_flag:'`
7508 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7509 (eval "$lt_compile" 2>conftest.err)
7510 ac_status=$?
7511 cat conftest.err >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 if (exit $ac_status) && test -s "$ac_outfile"; then
7514 # The compiler can only warn and ignore the option if not recognized
7515 # So say no if there are warnings other than the usual output.
7516 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7517 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7518 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7519 lt_cv_prog_compiler_rtti_exceptions=yes
7522 $RM conftest*
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7526 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7528 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7529 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7530 else
7541 lt_prog_compiler_wl=
7542 lt_prog_compiler_pic=
7543 lt_prog_compiler_static=
7546 if test yes = "$GCC"; then
7547 lt_prog_compiler_wl='-Wl,'
7548 lt_prog_compiler_static='-static'
7550 case $host_os in
7551 aix*)
7552 # All AIX code is PIC.
7553 if test ia64 = "$host_cpu"; then
7554 # AIX 5 now supports IA64 processor
7555 lt_prog_compiler_static='-Bstatic'
7557 lt_prog_compiler_pic='-fPIC'
7560 amigaos*)
7561 case $host_cpu in
7562 powerpc)
7563 # see comment about AmigaOS4 .so support
7564 lt_prog_compiler_pic='-fPIC'
7566 m68k)
7567 # FIXME: we need at least 68020 code to build shared libraries, but
7568 # adding the '-m68020' flag to GCC prevents building anything better,
7569 # like '-m68040'.
7570 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7572 esac
7575 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7576 # PIC is the default for these OSes.
7579 mingw* | cygwin* | pw32* | os2* | cegcc*)
7580 # This hack is so that the source file can tell whether it is being
7581 # built for inclusion in a dll (and should export symbols for example).
7582 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7583 # (--disable-auto-import) libraries
7584 lt_prog_compiler_pic='-DDLL_EXPORT'
7585 case $host_os in
7586 os2*)
7587 lt_prog_compiler_static='$wl-static'
7589 esac
7592 darwin* | rhapsody*)
7593 # PIC is the default on this platform
7594 # Common symbols not allowed in MH_DYLIB files
7595 lt_prog_compiler_pic='-fno-common'
7598 haiku*)
7599 # PIC is the default for Haiku.
7600 # The "-static" flag exists, but is broken.
7601 lt_prog_compiler_static=
7604 hpux*)
7605 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7606 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7607 # sets the default TLS model and affects inlining.
7608 case $host_cpu in
7609 hppa*64*)
7610 # +Z the default
7613 lt_prog_compiler_pic='-fPIC'
7615 esac
7618 interix[3-9]*)
7619 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7620 # Instead, we relocate shared libraries at runtime.
7623 msdosdjgpp*)
7624 # Just because we use GCC doesn't mean we suddenly get shared libraries
7625 # on systems that don't support them.
7626 lt_prog_compiler_can_build_shared=no
7627 enable_shared=no
7630 *nto* | *qnx*)
7631 # QNX uses GNU C++, but need to define -shared option too, otherwise
7632 # it will coredump.
7633 lt_prog_compiler_pic='-fPIC -shared'
7636 sysv4*MP*)
7637 if test -d /usr/nec; then
7638 lt_prog_compiler_pic=-Kconform_pic
7643 lt_prog_compiler_pic='-fPIC'
7645 esac
7647 case $cc_basename in
7648 nvcc*) # Cuda Compiler Driver 2.2
7649 lt_prog_compiler_wl='-Xlinker '
7650 if test -n "$lt_prog_compiler_pic"; then
7651 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7654 esac
7655 else
7656 # PORTME Check for flag to pass linker flags through the system compiler.
7657 case $host_os in
7658 aix*)
7659 lt_prog_compiler_wl='-Wl,'
7660 if test ia64 = "$host_cpu"; then
7661 # AIX 5 now supports IA64 processor
7662 lt_prog_compiler_static='-Bstatic'
7663 else
7664 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7668 darwin* | rhapsody*)
7669 # PIC is the default on this platform
7670 # Common symbols not allowed in MH_DYLIB files
7671 lt_prog_compiler_pic='-fno-common'
7672 case $cc_basename in
7673 nagfor*)
7674 # NAG Fortran compiler
7675 lt_prog_compiler_wl='-Wl,-Wl,,'
7676 lt_prog_compiler_pic='-PIC'
7677 lt_prog_compiler_static='-Bstatic'
7679 esac
7682 mingw* | cygwin* | pw32* | os2* | cegcc*)
7683 # This hack is so that the source file can tell whether it is being
7684 # built for inclusion in a dll (and should export symbols for example).
7685 lt_prog_compiler_pic='-DDLL_EXPORT'
7686 case $host_os in
7687 os2*)
7688 lt_prog_compiler_static='$wl-static'
7690 esac
7693 hpux9* | hpux10* | hpux11*)
7694 lt_prog_compiler_wl='-Wl,'
7695 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7696 # not for PA HP-UX.
7697 case $host_cpu in
7698 hppa*64*|ia64*)
7699 # +Z the default
7702 lt_prog_compiler_pic='+Z'
7704 esac
7705 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7706 lt_prog_compiler_static='$wl-a ${wl}archive'
7709 irix5* | irix6* | nonstopux*)
7710 lt_prog_compiler_wl='-Wl,'
7711 # PIC (with -KPIC) is the default.
7712 lt_prog_compiler_static='-non_shared'
7715 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7716 case $cc_basename in
7717 # old Intel for x86_64, which still supported -KPIC.
7718 ecc*)
7719 lt_prog_compiler_wl='-Wl,'
7720 lt_prog_compiler_pic='-KPIC'
7721 lt_prog_compiler_static='-static'
7723 # flang / f18. f95 an alias for gfortran or flang on Debian
7724 flang* | f18* | f95*)
7725 lt_prog_compiler_wl='-Wl,'
7726 lt_prog_compiler_pic='-fPIC'
7727 lt_prog_compiler_static='-static'
7729 # icc used to be incompatible with GCC.
7730 # ICC 10 doesn't accept -KPIC any more.
7731 icc* | ifort*)
7732 lt_prog_compiler_wl='-Wl,'
7733 lt_prog_compiler_pic='-fPIC'
7734 lt_prog_compiler_static='-static'
7736 # Lahey Fortran 8.1.
7737 lf95*)
7738 lt_prog_compiler_wl='-Wl,'
7739 lt_prog_compiler_pic='--shared'
7740 lt_prog_compiler_static='--static'
7742 nagfor*)
7743 # NAG Fortran compiler
7744 lt_prog_compiler_wl='-Wl,-Wl,,'
7745 lt_prog_compiler_pic='-PIC'
7746 lt_prog_compiler_static='-Bstatic'
7748 tcc*)
7749 # Fabrice Bellard et al's Tiny C Compiler
7750 lt_prog_compiler_wl='-Wl,'
7751 lt_prog_compiler_pic='-fPIC'
7752 lt_prog_compiler_static='-static'
7754 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7755 # Portland Group compilers (*not* the Pentium gcc compiler,
7756 # which looks to be a dead project)
7757 lt_prog_compiler_wl='-Wl,'
7758 lt_prog_compiler_pic='-fpic'
7759 lt_prog_compiler_static='-Bstatic'
7761 ccc*)
7762 lt_prog_compiler_wl='-Wl,'
7763 # All Alpha code is PIC.
7764 lt_prog_compiler_static='-non_shared'
7766 xl* | bgxl* | bgf* | mpixl*)
7767 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7768 lt_prog_compiler_wl='-Wl,'
7769 lt_prog_compiler_pic='-qpic'
7770 lt_prog_compiler_static='-qstaticlink'
7773 case `$CC -V 2>&1 | sed 5q` in
7774 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7775 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7776 lt_prog_compiler_pic='-KPIC'
7777 lt_prog_compiler_static='-Bstatic'
7778 lt_prog_compiler_wl=''
7780 *Sun\ F* | *Sun*Fortran*)
7781 lt_prog_compiler_pic='-KPIC'
7782 lt_prog_compiler_static='-Bstatic'
7783 lt_prog_compiler_wl='-Qoption ld '
7785 *Sun\ C*)
7786 # Sun C 5.9
7787 lt_prog_compiler_pic='-KPIC'
7788 lt_prog_compiler_static='-Bstatic'
7789 lt_prog_compiler_wl='-Wl,'
7791 *Intel*\ [CF]*Compiler*)
7792 lt_prog_compiler_wl='-Wl,'
7793 lt_prog_compiler_pic='-fPIC'
7794 lt_prog_compiler_static='-static'
7796 *Portland\ Group*)
7797 lt_prog_compiler_wl='-Wl,'
7798 lt_prog_compiler_pic='-fpic'
7799 lt_prog_compiler_static='-Bstatic'
7801 esac
7803 esac
7806 newsos6)
7807 lt_prog_compiler_pic='-KPIC'
7808 lt_prog_compiler_static='-Bstatic'
7811 *nto* | *qnx*)
7812 # QNX uses GNU C++, but need to define -shared option too, otherwise
7813 # it will coredump.
7814 lt_prog_compiler_pic='-fPIC -shared'
7817 osf3* | osf4* | osf5*)
7818 lt_prog_compiler_wl='-Wl,'
7819 # All OSF/1 code is PIC.
7820 lt_prog_compiler_static='-non_shared'
7823 rdos*)
7824 lt_prog_compiler_static='-non_shared'
7827 solaris*)
7828 lt_prog_compiler_pic='-KPIC'
7829 lt_prog_compiler_static='-Bstatic'
7830 case $cc_basename in
7831 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7832 lt_prog_compiler_wl='-Qoption ld ';;
7834 lt_prog_compiler_wl='-Wl,';;
7835 esac
7838 sunos4*)
7839 lt_prog_compiler_wl='-Qoption ld '
7840 lt_prog_compiler_pic='-PIC'
7841 lt_prog_compiler_static='-Bstatic'
7844 sysv4 | sysv4.2uw2* | sysv4.3*)
7845 lt_prog_compiler_wl='-Wl,'
7846 lt_prog_compiler_pic='-KPIC'
7847 lt_prog_compiler_static='-Bstatic'
7850 sysv4*MP*)
7851 if test -d /usr/nec; then
7852 lt_prog_compiler_pic='-Kconform_pic'
7853 lt_prog_compiler_static='-Bstatic'
7857 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7858 lt_prog_compiler_wl='-Wl,'
7859 lt_prog_compiler_pic='-KPIC'
7860 lt_prog_compiler_static='-Bstatic'
7863 unicos*)
7864 lt_prog_compiler_wl='-Wl,'
7865 lt_prog_compiler_can_build_shared=no
7868 uts4*)
7869 lt_prog_compiler_pic='-pic'
7870 lt_prog_compiler_static='-Bstatic'
7874 lt_prog_compiler_can_build_shared=no
7876 esac
7879 case $host_os in
7880 # For platforms that do not support PIC, -DPIC is meaningless:
7881 *djgpp*)
7882 lt_prog_compiler_pic=
7885 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7887 esac
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7890 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7891 if ${lt_cv_prog_compiler_pic+:} false; then :
7892 $as_echo_n "(cached) " >&6
7893 else
7894 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7897 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7898 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7901 # Check to make sure the PIC flag actually works.
7903 if test -n "$lt_prog_compiler_pic"; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7905 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7906 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7907 $as_echo_n "(cached) " >&6
7908 else
7909 lt_cv_prog_compiler_pic_works=no
7910 ac_outfile=conftest.$ac_objext
7911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7912 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
7913 # Insert the option either (1) after the last *FLAGS variable, or
7914 # (2) before a word containing "conftest.", or (3) at the end.
7915 # Note that $ac_compile itself does not contain backslashes and begins
7916 # with a dollar sign (not a hyphen), so the echo should work correctly.
7917 # The option is referenced via a variable to avoid confusing sed.
7918 lt_compile=`echo "$ac_compile" | $SED \
7919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7921 -e 's:$: $lt_compiler_flag:'`
7922 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7923 (eval "$lt_compile" 2>conftest.err)
7924 ac_status=$?
7925 cat conftest.err >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 if (exit $ac_status) && test -s "$ac_outfile"; then
7928 # The compiler can only warn and ignore the option if not recognized
7929 # So say no if there are warnings other than the usual output.
7930 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7932 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7933 lt_cv_prog_compiler_pic_works=yes
7936 $RM conftest*
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7940 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7942 if test yes = "$lt_cv_prog_compiler_pic_works"; then
7943 case $lt_prog_compiler_pic in
7944 "" | " "*) ;;
7945 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7946 esac
7947 else
7948 lt_prog_compiler_pic=
7949 lt_prog_compiler_can_build_shared=no
7965 # Check to make sure the static flag actually works.
7967 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7969 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7970 if ${lt_cv_prog_compiler_static_works+:} false; then :
7971 $as_echo_n "(cached) " >&6
7972 else
7973 lt_cv_prog_compiler_static_works=no
7974 save_LDFLAGS=$LDFLAGS
7975 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7976 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7977 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7978 # The linker can only warn and ignore the option if not recognized
7979 # So say no if there are warnings
7980 if test -s conftest.err; then
7981 # Append any errors to the config.log.
7982 cat conftest.err 1>&5
7983 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7984 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7985 if diff conftest.exp conftest.er2 >/dev/null; then
7986 lt_cv_prog_compiler_static_works=yes
7988 else
7989 lt_cv_prog_compiler_static_works=yes
7992 $RM -r conftest*
7993 LDFLAGS=$save_LDFLAGS
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7997 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7999 if test yes = "$lt_cv_prog_compiler_static_works"; then
8001 else
8002 lt_prog_compiler_static=
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8012 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8013 if ${lt_cv_prog_compiler_c_o+:} false; then :
8014 $as_echo_n "(cached) " >&6
8015 else
8016 lt_cv_prog_compiler_c_o=no
8017 $RM -r conftest 2>/dev/null
8018 mkdir conftest
8019 cd conftest
8020 mkdir out
8021 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8023 lt_compiler_flag="-o out/conftest2.$ac_objext"
8024 # Insert the option either (1) after the last *FLAGS variable, or
8025 # (2) before a word containing "conftest.", or (3) at the end.
8026 # Note that $ac_compile itself does not contain backslashes and begins
8027 # with a dollar sign (not a hyphen), so the echo should work correctly.
8028 lt_compile=`echo "$ac_compile" | $SED \
8029 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8031 -e 's:$: $lt_compiler_flag:'`
8032 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8033 (eval "$lt_compile" 2>out/conftest.err)
8034 ac_status=$?
8035 cat out/conftest.err >&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8038 then
8039 # The compiler can only warn and ignore the option if not recognized
8040 # So say no if there are warnings
8041 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8042 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8043 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8044 lt_cv_prog_compiler_c_o=yes
8047 chmod u+w . 2>&5
8048 $RM conftest*
8049 # SGI C++ compiler will create directory out/ii_files/ for
8050 # template instantiation
8051 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8052 $RM out/* && rmdir out
8053 cd ..
8054 $RM -r conftest
8055 $RM conftest*
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8059 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8067 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8068 if ${lt_cv_prog_compiler_c_o+:} false; then :
8069 $as_echo_n "(cached) " >&6
8070 else
8071 lt_cv_prog_compiler_c_o=no
8072 $RM -r conftest 2>/dev/null
8073 mkdir conftest
8074 cd conftest
8075 mkdir out
8076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8078 lt_compiler_flag="-o out/conftest2.$ac_objext"
8079 # Insert the option either (1) after the last *FLAGS variable, or
8080 # (2) before a word containing "conftest.", or (3) at the end.
8081 # Note that $ac_compile itself does not contain backslashes and begins
8082 # with a dollar sign (not a hyphen), so the echo should work correctly.
8083 lt_compile=`echo "$ac_compile" | $SED \
8084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8085 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8086 -e 's:$: $lt_compiler_flag:'`
8087 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8088 (eval "$lt_compile" 2>out/conftest.err)
8089 ac_status=$?
8090 cat out/conftest.err >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8093 then
8094 # The compiler can only warn and ignore the option if not recognized
8095 # So say no if there are warnings
8096 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8097 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8098 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8099 lt_cv_prog_compiler_c_o=yes
8102 chmod u+w . 2>&5
8103 $RM conftest*
8104 # SGI C++ compiler will create directory out/ii_files/ for
8105 # template instantiation
8106 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8107 $RM out/* && rmdir out
8108 cd ..
8109 $RM -r conftest
8110 $RM conftest*
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8114 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8119 hard_links=nottested
8120 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8121 # do not overwrite the value of need_locks provided by the user
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8123 $as_echo_n "checking if we can lock with hard links... " >&6; }
8124 hard_links=yes
8125 $RM conftest*
8126 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8127 touch conftest.a
8128 ln conftest.a conftest.b 2>&5 || hard_links=no
8129 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8131 $as_echo "$hard_links" >&6; }
8132 if test no = "$hard_links"; then
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8134 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8135 need_locks=warn
8137 else
8138 need_locks=no
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8147 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8149 runpath_var=
8150 allow_undefined_flag=
8151 always_export_symbols=no
8152 archive_cmds=
8153 archive_expsym_cmds=
8154 compiler_needs_object=no
8155 enable_shared_with_static_runtimes=no
8156 export_dynamic_flag_spec=
8157 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8158 hardcode_automatic=no
8159 hardcode_direct=no
8160 hardcode_direct_absolute=no
8161 hardcode_libdir_flag_spec=
8162 hardcode_libdir_separator=
8163 hardcode_minus_L=no
8164 hardcode_shlibpath_var=unsupported
8165 inherit_rpath=no
8166 link_all_deplibs=unknown
8167 module_cmds=
8168 module_expsym_cmds=
8169 old_archive_from_new_cmds=
8170 old_archive_from_expsyms_cmds=
8171 thread_safe_flag_spec=
8172 whole_archive_flag_spec=
8173 # include_expsyms should be a list of space-separated symbols to be *always*
8174 # included in the symbol list
8175 include_expsyms=
8176 # exclude_expsyms can be an extended regexp of symbols to exclude
8177 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8178 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8179 # as well as any symbol that contains 'd'.
8180 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8181 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8182 # platforms (ab)use it in PIC code, but their linkers get confused if
8183 # the symbol is explicitly referenced. Since portable code cannot
8184 # rely on this symbol name, it's probably fine to never include it in
8185 # preloaded symbol tables.
8186 # Exclude shared library initialization/finalization symbols.
8187 extract_expsyms_cmds=
8189 case $host_os in
8190 cygwin* | mingw* | pw32* | cegcc*)
8191 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8192 # When not using gcc, we currently assume that we are using
8193 # Microsoft Visual C++.
8194 if test yes != "$GCC"; then
8195 with_gnu_ld=no
8198 interix*)
8199 # we just hope/assume this is gcc and not c89 (= MSVC++)
8200 with_gnu_ld=yes
8202 openbsd* | bitrig*)
8203 with_gnu_ld=no
8205 linux* | k*bsd*-gnu | gnu*)
8206 link_all_deplibs=no
8208 esac
8210 ld_shlibs=yes
8212 # On some targets, GNU ld is compatible enough with the native linker
8213 # that we're better off using the native interface for both.
8214 lt_use_gnu_ld_interface=no
8215 if test yes = "$with_gnu_ld"; then
8216 case $host_os in
8217 aix*)
8218 # The AIX port of GNU ld has always aspired to compatibility
8219 # with the native linker. However, as the warning in the GNU ld
8220 # block says, versions before 2.19.5* couldn't really create working
8221 # shared libraries, regardless of the interface used.
8222 case `$LD -v 2>&1` in
8223 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8224 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8225 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8227 lt_use_gnu_ld_interface=yes
8229 esac
8232 lt_use_gnu_ld_interface=yes
8234 esac
8237 if test yes = "$lt_use_gnu_ld_interface"; then
8238 # If archive_cmds runs LD, not CC, wlarc should be empty
8239 wlarc='$wl'
8241 # Set some defaults for GNU ld with shared library support. These
8242 # are reset later if shared libraries are not supported. Putting them
8243 # here allows them to be overridden if necessary.
8244 runpath_var=LD_RUN_PATH
8245 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8246 export_dynamic_flag_spec='$wl--export-dynamic'
8247 # ancient GNU ld didn't support --whole-archive et. al.
8248 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8249 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8250 else
8251 whole_archive_flag_spec=
8253 supports_anon_versioning=no
8254 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8255 *GNU\ gold*) supports_anon_versioning=yes ;;
8256 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8257 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8258 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8259 *\ 2.11.*) ;; # other 2.11 versions
8260 *) supports_anon_versioning=yes ;;
8261 esac
8263 # See if GNU ld supports shared libraries.
8264 case $host_os in
8265 aix[3-9]*)
8266 # On AIX/PPC, the GNU linker is very broken
8267 if test ia64 != "$host_cpu"; then
8268 ld_shlibs=no
8269 cat <<_LT_EOF 1>&2
8271 *** Warning: the GNU linker, at least up to release 2.19, is reported
8272 *** to be unable to reliably create shared libraries on AIX.
8273 *** Therefore, libtool is disabling shared libraries support. If you
8274 *** really care for shared libraries, you may want to install binutils
8275 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8276 *** You will then need to restart the configuration process.
8278 _LT_EOF
8282 amigaos*)
8283 case $host_cpu in
8284 powerpc)
8285 # see comment about AmigaOS4 .so support
8286 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8287 archive_expsym_cmds=''
8289 m68k)
8290 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)'
8291 hardcode_libdir_flag_spec='-L$libdir'
8292 hardcode_minus_L=yes
8294 esac
8297 beos*)
8298 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8299 allow_undefined_flag=unsupported
8300 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8301 # support --undefined. This deserves some investigation. FIXME
8302 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8303 else
8304 ld_shlibs=no
8308 cygwin* | mingw* | pw32* | cegcc*)
8309 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8310 # as there is no search path for DLLs.
8311 hardcode_libdir_flag_spec='-L$libdir'
8312 export_dynamic_flag_spec='$wl--export-all-symbols'
8313 allow_undefined_flag=unsupported
8314 always_export_symbols=no
8315 enable_shared_with_static_runtimes=yes
8316 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'
8317 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8319 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8320 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8321 # If the export-symbols file already is a .def file, use it as
8322 # is; otherwise, prepend EXPORTS...
8323 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8324 cp $export_symbols $output_objdir/$soname.def;
8325 else
8326 echo EXPORTS > $output_objdir/$soname.def;
8327 cat $export_symbols >> $output_objdir/$soname.def;
8329 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8330 else
8331 ld_shlibs=no
8335 haiku*)
8336 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8337 link_all_deplibs=yes
8340 os2*)
8341 hardcode_libdir_flag_spec='-L$libdir'
8342 hardcode_minus_L=yes
8343 allow_undefined_flag=unsupported
8344 shrext_cmds=.dll
8345 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8346 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8347 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8348 $ECHO EXPORTS >> $output_objdir/$libname.def~
8349 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8350 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8351 emximp -o $lib $output_objdir/$libname.def'
8352 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8353 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8354 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8355 $ECHO EXPORTS >> $output_objdir/$libname.def~
8356 prefix_cmds="$SED"~
8357 if test EXPORTS = "`$SED 1q $export_symbols`"; then
8358 prefix_cmds="$prefix_cmds -e 1d";
8360 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8361 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8362 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8363 emximp -o $lib $output_objdir/$libname.def'
8364 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8365 enable_shared_with_static_runtimes=yes
8368 interix[3-9]*)
8369 hardcode_direct=no
8370 hardcode_shlibpath_var=no
8371 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8372 export_dynamic_flag_spec='$wl-E'
8373 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8374 # Instead, shared libraries are loaded at an image base (0x10000000 by
8375 # default) and relocated if they conflict, which is a slow very memory
8376 # consuming and fragmenting process. To avoid this, we pick a random,
8377 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8378 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8379 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8380 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'
8383 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8384 tmp_diet=no
8385 if test linux-dietlibc = "$host_os"; then
8386 case $cc_basename in
8387 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8388 esac
8390 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8391 && test no = "$tmp_diet"
8392 then
8393 tmp_addflag=' $pic_flag'
8394 tmp_sharedflag='-shared'
8395 case $cc_basename,$host_cpu in
8396 pgcc*) # Portland Group C compiler
8397 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'
8398 tmp_addflag=' $pic_flag'
8400 pgf77* | pgf90* | pgf95* | pgfortran*)
8401 # Portland Group f77 and f90 compilers
8402 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'
8403 tmp_addflag=' $pic_flag -Mnomain' ;;
8404 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8405 tmp_addflag=' -i_dynamic' ;;
8406 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8407 tmp_addflag=' -i_dynamic -nofor_main' ;;
8408 ifc* | ifort*) # Intel Fortran compiler
8409 tmp_addflag=' -nofor_main' ;;
8410 lf95*) # Lahey Fortran 8.1
8411 whole_archive_flag_spec=
8412 tmp_sharedflag='--shared' ;;
8413 nagfor*) # NAGFOR 5.3
8414 tmp_sharedflag='-Wl,-shared' ;;
8415 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8416 tmp_sharedflag='-qmkshrobj'
8417 tmp_addflag= ;;
8418 nvcc*) # Cuda Compiler Driver 2.2
8419 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'
8420 compiler_needs_object=yes
8422 esac
8423 case `$CC -V 2>&1 | sed 5q` in
8424 *Sun\ C*) # Sun C 5.9
8425 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'
8426 compiler_needs_object=yes
8427 tmp_sharedflag='-G' ;;
8428 *Sun\ F*) # Sun Fortran 8.3
8429 tmp_sharedflag='-G' ;;
8430 esac
8431 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8433 if test yes = "$supports_anon_versioning"; then
8434 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8435 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8436 echo "local: *; };" >> $output_objdir/$libname.ver~
8437 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8440 case $cc_basename in
8441 tcc*)
8442 export_dynamic_flag_spec='-rdynamic'
8444 xlf* | bgf* | bgxlf* | mpixlf*)
8445 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8446 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8447 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8448 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8449 if test yes = "$supports_anon_versioning"; then
8450 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8451 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8452 echo "local: *; };" >> $output_objdir/$libname.ver~
8453 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8456 esac
8457 else
8458 ld_shlibs=no
8462 netbsd* | netbsdelf*-gnu)
8463 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8464 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8465 wlarc=
8466 else
8467 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8468 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8472 solaris*)
8473 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8474 ld_shlibs=no
8475 cat <<_LT_EOF 1>&2
8477 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8478 *** create shared libraries on Solaris systems. Therefore, libtool
8479 *** is disabling shared libraries support. We urge you to upgrade GNU
8480 *** binutils to release 2.9.1 or newer. Another option is to modify
8481 *** your PATH or compiler configuration so that the native linker is
8482 *** used, and then restart.
8484 _LT_EOF
8485 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8486 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8487 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8488 else
8489 ld_shlibs=no
8493 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8494 case `$LD -v 2>&1` in
8495 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8496 ld_shlibs=no
8497 cat <<_LT_EOF 1>&2
8499 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8500 *** reliably create shared libraries on SCO systems. Therefore, libtool
8501 *** is disabling shared libraries support. We urge you to upgrade GNU
8502 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8503 *** your PATH or compiler configuration so that the native linker is
8504 *** used, and then restart.
8506 _LT_EOF
8509 # For security reasons, it is highly recommended that you always
8510 # use absolute paths for naming shared libraries, and exclude the
8511 # DT_RUNPATH tag from executables and libraries. But doing so
8512 # requires that you compile everything twice, which is a pain.
8513 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8514 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8515 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8516 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8517 else
8518 ld_shlibs=no
8521 esac
8524 sunos4*)
8525 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8526 wlarc=
8527 hardcode_direct=yes
8528 hardcode_shlibpath_var=no
8532 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8533 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8534 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8535 else
8536 ld_shlibs=no
8539 esac
8541 if test no = "$ld_shlibs"; then
8542 runpath_var=
8543 hardcode_libdir_flag_spec=
8544 export_dynamic_flag_spec=
8545 whole_archive_flag_spec=
8547 else
8548 # PORTME fill in a description of your system's linker (not GNU ld)
8549 case $host_os in
8550 aix3*)
8551 allow_undefined_flag=unsupported
8552 always_export_symbols=yes
8553 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'
8554 # Note: this linker hardcodes the directories in LIBPATH if there
8555 # are no directories specified by -L.
8556 hardcode_minus_L=yes
8557 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8558 # Neither direct hardcoding nor static linking is supported with a
8559 # broken collect2.
8560 hardcode_direct=unsupported
8564 aix[4-9]*)
8565 if test ia64 = "$host_cpu"; then
8566 # On IA64, the linker does run time linking by default, so we don't
8567 # have to do anything special.
8568 aix_use_runtimelinking=no
8569 exp_sym_flag='-Bexport'
8570 no_entry_flag=
8571 else
8572 # If we're using GNU nm, then we don't want the "-C" option.
8573 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
8574 # Without the "-l" option, or with the "-B" option, AIX nm treats
8575 # weak defined symbols like other global defined symbols, whereas
8576 # GNU nm marks them as "W".
8577 # While the 'weak' keyword is ignored in the Export File, we need
8578 # it in the Import File for the 'aix-soname' feature, so we have
8579 # to replace the "-B" option with "-P" for AIX nm.
8580 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8581 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'
8582 else
8583 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'
8585 aix_use_runtimelinking=no
8587 # Test if we are trying to use run time linking or normal
8588 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8589 # have runtime linking enabled, and use it for executables.
8590 # For shared libraries, we enable/disable runtime linking
8591 # depending on the kind of the shared library created -
8592 # when "with_aix_soname,aix_use_runtimelinking" is:
8593 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
8594 # "aix,yes" lib.so shared, rtl:yes, for executables
8595 # lib.a static archive
8596 # "both,no" lib.so.V(shr.o) shared, rtl:yes
8597 # lib.a(lib.so.V) shared, rtl:no, for executables
8598 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
8599 # lib.a(lib.so.V) shared, rtl:no
8600 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
8601 # lib.a static archive
8602 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8603 for ld_flag in $LDFLAGS; do
8604 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
8605 aix_use_runtimelinking=yes
8606 break
8608 done
8609 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
8610 # With aix-soname=svr4, we create the lib.so.V shared archives only,
8611 # so we don't have lib.a shared libs to link our executables.
8612 # We have to force runtime linking in this case.
8613 aix_use_runtimelinking=yes
8614 LDFLAGS="$LDFLAGS -Wl,-brtl"
8617 esac
8619 exp_sym_flag='-bexport'
8620 no_entry_flag='-bnoentry'
8623 # When large executables or shared objects are built, AIX ld can
8624 # have problems creating the table of contents. If linking a library
8625 # or program results in "error TOC overflow" add -mminimal-toc to
8626 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8627 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8629 archive_cmds=''
8630 hardcode_direct=yes
8631 hardcode_direct_absolute=yes
8632 hardcode_libdir_separator=':'
8633 link_all_deplibs=yes
8634 file_list_spec='$wl-f,'
8635 case $with_aix_soname,$aix_use_runtimelinking in
8636 aix,*) ;; # traditional, no import file
8637 svr4,* | *,yes) # use import file
8638 # The Import File defines what to hardcode.
8639 hardcode_direct=no
8640 hardcode_direct_absolute=no
8642 esac
8644 if test yes = "$GCC"; then
8645 case $host_os in aix4.[012]|aix4.[012].*)
8646 # We only want to do this on AIX 4.2 and lower, the check
8647 # below for broken collect2 doesn't work under 4.3+
8648 collect2name=`$CC -print-prog-name=collect2`
8649 if test -f "$collect2name" &&
8650 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8651 then
8652 # We have reworked collect2
8654 else
8655 # We have old collect2
8656 hardcode_direct=unsupported
8657 # It fails to find uninstalled libraries when the uninstalled
8658 # path is not listed in the libpath. Setting hardcode_minus_L
8659 # to unsupported forces relinking
8660 hardcode_minus_L=yes
8661 hardcode_libdir_flag_spec='-L$libdir'
8662 hardcode_libdir_separator=
8665 esac
8666 shared_flag='-shared'
8667 if test yes = "$aix_use_runtimelinking"; then
8668 shared_flag="$shared_flag "'$wl-G'
8670 # Need to ensure runtime linking is disabled for the traditional
8671 # shared library, or the linker may eventually find shared libraries
8672 # /with/ Import File - we do not want to mix them.
8673 shared_flag_aix='-shared'
8674 shared_flag_svr4='-shared $wl-G'
8675 else
8676 # not using gcc
8677 if test ia64 = "$host_cpu"; then
8678 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8679 # chokes on -Wl,-G. The following line is correct:
8680 shared_flag='-G'
8681 else
8682 if test yes = "$aix_use_runtimelinking"; then
8683 shared_flag='$wl-G'
8684 else
8685 shared_flag='$wl-bM:SRE'
8687 shared_flag_aix='$wl-bM:SRE'
8688 shared_flag_svr4='$wl-G'
8692 export_dynamic_flag_spec='$wl-bexpall'
8693 # It seems that -bexpall does not export symbols beginning with
8694 # underscore (_), so it is better to generate a list of symbols to export.
8695 always_export_symbols=yes
8696 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
8697 # Warning - without using the other runtime loading flags (-brtl),
8698 # -berok will link without error, but may produce a broken library.
8699 allow_undefined_flag='-berok'
8700 # Determine the default libpath from the value encoded in an
8701 # empty executable.
8702 if test set = "${lt_cv_aix_libpath+set}"; then
8703 aix_libpath=$lt_cv_aix_libpath
8704 else
8705 if ${lt_cv_aix_libpath_+:} false; then :
8706 $as_echo_n "(cached) " >&6
8707 else
8708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8709 /* end confdefs.h. */
8712 main ()
8716 return 0;
8718 _ACEOF
8719 if ac_fn_c_try_link "$LINENO"; then :
8721 lt_aix_libpath_sed='
8722 /Import File Strings/,/^$/ {
8723 /^0/ {
8724 s/^0 *\([^ ]*\) *$/\1/
8728 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8729 # Check for a 64-bit object if we didn't find anything.
8730 if test -z "$lt_cv_aix_libpath_"; then
8731 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8734 rm -f core conftest.err conftest.$ac_objext \
8735 conftest$ac_exeext conftest.$ac_ext
8736 if test -z "$lt_cv_aix_libpath_"; then
8737 lt_cv_aix_libpath_=/usr/lib:/lib
8742 aix_libpath=$lt_cv_aix_libpath_
8745 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
8746 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
8747 else
8748 if test ia64 = "$host_cpu"; then
8749 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
8750 allow_undefined_flag="-z nodefs"
8751 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"
8752 else
8753 # Determine the default libpath from the value encoded in an
8754 # empty executable.
8755 if test set = "${lt_cv_aix_libpath+set}"; then
8756 aix_libpath=$lt_cv_aix_libpath
8757 else
8758 if ${lt_cv_aix_libpath_+:} false; then :
8759 $as_echo_n "(cached) " >&6
8760 else
8761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8762 /* end confdefs.h. */
8765 main ()
8769 return 0;
8771 _ACEOF
8772 if ac_fn_c_try_link "$LINENO"; then :
8774 lt_aix_libpath_sed='
8775 /Import File Strings/,/^$/ {
8776 /^0/ {
8777 s/^0 *\([^ ]*\) *$/\1/
8781 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8782 # Check for a 64-bit object if we didn't find anything.
8783 if test -z "$lt_cv_aix_libpath_"; then
8784 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8787 rm -f core conftest.err conftest.$ac_objext \
8788 conftest$ac_exeext conftest.$ac_ext
8789 if test -z "$lt_cv_aix_libpath_"; then
8790 lt_cv_aix_libpath_=/usr/lib:/lib
8795 aix_libpath=$lt_cv_aix_libpath_
8798 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
8799 # Warning - without using the other run time loading flags,
8800 # -berok will link without error, but may produce a broken library.
8801 no_undefined_flag=' $wl-bernotok'
8802 allow_undefined_flag=' $wl-berok'
8803 if test yes = "$with_gnu_ld"; then
8804 # We only use this code for GNU lds that support --whole-archive.
8805 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
8806 else
8807 # Exported symbols can be pulled into shared objects from archives
8808 whole_archive_flag_spec='$convenience'
8810 archive_cmds_need_lc=yes
8811 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
8812 # -brtl affects multiple linker settings, -berok does not and is overridden later
8813 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
8814 if test svr4 != "$with_aix_soname"; then
8815 # This is similar to how AIX traditionally builds its shared libraries.
8816 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'
8818 if test aix != "$with_aix_soname"; then
8819 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'
8820 else
8821 # used by -dlpreopen to get the symbols
8822 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
8824 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
8829 amigaos*)
8830 case $host_cpu in
8831 powerpc)
8832 # see comment about AmigaOS4 .so support
8833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8834 archive_expsym_cmds=''
8836 m68k)
8837 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)'
8838 hardcode_libdir_flag_spec='-L$libdir'
8839 hardcode_minus_L=yes
8841 esac
8844 bsdi[45]*)
8845 export_dynamic_flag_spec=-rdynamic
8848 cygwin* | mingw* | pw32* | cegcc*)
8849 # When not using gcc, we currently assume that we are using
8850 # Microsoft Visual C++.
8851 # hardcode_libdir_flag_spec is actually meaningless, as there is
8852 # no search path for DLLs.
8853 case $cc_basename in
8854 cl*)
8855 # Native MSVC
8856 hardcode_libdir_flag_spec=' '
8857 allow_undefined_flag=unsupported
8858 always_export_symbols=yes
8859 file_list_spec='@'
8860 # Tell ltmain to make .lib files, not .a files.
8861 libext=lib
8862 # Tell ltmain to make .dll files, not .so files.
8863 shrext_cmds=.dll
8864 # FIXME: Setting linknames here is a bad hack.
8865 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
8866 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8867 cp "$export_symbols" "$output_objdir/$soname.def";
8868 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
8869 else
8870 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
8872 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8873 linknames='
8874 # The linker will not automatically build a static lib if we build a DLL.
8875 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8876 enable_shared_with_static_runtimes=yes
8877 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8878 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8879 # Don't use ranlib
8880 old_postinstall_cmds='chmod 644 $oldlib'
8881 postlink_cmds='lt_outputfile="@OUTPUT@"~
8882 lt_tool_outputfile="@TOOL_OUTPUT@"~
8883 case $lt_outputfile in
8884 *.exe|*.EXE) ;;
8886 lt_outputfile=$lt_outputfile.exe
8887 lt_tool_outputfile=$lt_tool_outputfile.exe
8889 esac~
8890 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
8891 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8892 $RM "$lt_outputfile.manifest";
8896 # Assume MSVC wrapper
8897 hardcode_libdir_flag_spec=' '
8898 allow_undefined_flag=unsupported
8899 # Tell ltmain to make .lib files, not .a files.
8900 libext=lib
8901 # Tell ltmain to make .dll files, not .so files.
8902 shrext_cmds=.dll
8903 # FIXME: Setting linknames here is a bad hack.
8904 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8905 # The linker will automatically build a .lib file if we build a DLL.
8906 old_archive_from_new_cmds='true'
8907 # FIXME: Should let the user specify the lib program.
8908 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8909 enable_shared_with_static_runtimes=yes
8911 esac
8914 darwin* | rhapsody*)
8917 archive_cmds_need_lc=no
8918 hardcode_direct=no
8919 hardcode_automatic=yes
8920 hardcode_shlibpath_var=unsupported
8921 if test yes = "$lt_cv_ld_force_load"; then
8922 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\"`'
8924 else
8925 whole_archive_flag_spec=''
8927 link_all_deplibs=yes
8928 allow_undefined_flag=$_lt_dar_allow_undefined
8929 case $cc_basename in
8930 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
8931 *) _lt_dar_can_shared=$GCC ;;
8932 esac
8933 if test yes = "$_lt_dar_can_shared"; then
8934 output_verbose_link_cmd=func_echo_all
8935 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
8936 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
8937 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"
8938 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"
8940 else
8941 ld_shlibs=no
8946 dgux*)
8947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8948 hardcode_libdir_flag_spec='-L$libdir'
8949 hardcode_shlibpath_var=no
8952 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8953 # support. Future versions do this automatically, but an explicit c++rt0.o
8954 # does not break anything, and helps significantly (at the cost of a little
8955 # extra space).
8956 freebsd2.2*)
8957 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8958 hardcode_libdir_flag_spec='-R$libdir'
8959 hardcode_direct=yes
8960 hardcode_shlibpath_var=no
8963 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8964 freebsd2.*)
8965 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8966 hardcode_direct=yes
8967 hardcode_minus_L=yes
8968 hardcode_shlibpath_var=no
8971 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8972 freebsd* | dragonfly*)
8973 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8974 hardcode_libdir_flag_spec='-R$libdir'
8975 hardcode_direct=yes
8976 hardcode_shlibpath_var=no
8979 hpux9*)
8980 if test yes = "$GCC"; then
8981 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'
8982 else
8983 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'
8985 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
8986 hardcode_libdir_separator=:
8987 hardcode_direct=yes
8989 # hardcode_minus_L: Not really in the search PATH,
8990 # but as the default location of the library.
8991 hardcode_minus_L=yes
8992 export_dynamic_flag_spec='$wl-E'
8995 hpux10*)
8996 if test yes,no = "$GCC,$with_gnu_ld"; then
8997 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8998 else
8999 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9001 if test no = "$with_gnu_ld"; then
9002 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9003 hardcode_libdir_separator=:
9004 hardcode_direct=yes
9005 hardcode_direct_absolute=yes
9006 export_dynamic_flag_spec='$wl-E'
9007 # hardcode_minus_L: Not really in the search PATH,
9008 # but as the default location of the library.
9009 hardcode_minus_L=yes
9013 hpux11*)
9014 if test yes,no = "$GCC,$with_gnu_ld"; then
9015 case $host_cpu in
9016 hppa*64*)
9017 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9019 ia64*)
9020 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9023 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9025 esac
9026 else
9027 case $host_cpu in
9028 hppa*64*)
9029 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9031 ia64*)
9032 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9036 # Older versions of the 11.00 compiler do not understand -b yet
9037 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9039 $as_echo_n "checking if $CC understands -b... " >&6; }
9040 if ${lt_cv_prog_compiler__b+:} false; then :
9041 $as_echo_n "(cached) " >&6
9042 else
9043 lt_cv_prog_compiler__b=no
9044 save_LDFLAGS=$LDFLAGS
9045 LDFLAGS="$LDFLAGS -b"
9046 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9047 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9048 # The linker can only warn and ignore the option if not recognized
9049 # So say no if there are warnings
9050 if test -s conftest.err; then
9051 # Append any errors to the config.log.
9052 cat conftest.err 1>&5
9053 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9054 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9055 if diff conftest.exp conftest.er2 >/dev/null; then
9056 lt_cv_prog_compiler__b=yes
9058 else
9059 lt_cv_prog_compiler__b=yes
9062 $RM -r conftest*
9063 LDFLAGS=$save_LDFLAGS
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9067 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9069 if test yes = "$lt_cv_prog_compiler__b"; then
9070 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9071 else
9072 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9076 esac
9078 if test no = "$with_gnu_ld"; then
9079 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9080 hardcode_libdir_separator=:
9082 case $host_cpu in
9083 hppa*64*|ia64*)
9084 hardcode_direct=no
9085 hardcode_shlibpath_var=no
9088 hardcode_direct=yes
9089 hardcode_direct_absolute=yes
9090 export_dynamic_flag_spec='$wl-E'
9092 # hardcode_minus_L: Not really in the search PATH,
9093 # but as the default location of the library.
9094 hardcode_minus_L=yes
9096 esac
9100 irix5* | irix6* | nonstopux*)
9101 if test yes = "$GCC"; then
9102 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'
9103 # Try to use the -exported_symbol ld option, if it does not
9104 # work, assume that -exports_file does not work either and
9105 # implicitly export all symbols.
9106 # This should be the same for all languages, so no per-tag cache variable.
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9108 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9109 if ${lt_cv_irix_exported_symbol+:} false; then :
9110 $as_echo_n "(cached) " >&6
9111 else
9112 save_LDFLAGS=$LDFLAGS
9113 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9115 /* end confdefs.h. */
9116 int foo (void) { return 0; }
9117 _ACEOF
9118 if ac_fn_c_try_link "$LINENO"; then :
9119 lt_cv_irix_exported_symbol=yes
9120 else
9121 lt_cv_irix_exported_symbol=no
9123 rm -f core conftest.err conftest.$ac_objext \
9124 conftest$ac_exeext conftest.$ac_ext
9125 LDFLAGS=$save_LDFLAGS
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9128 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9129 if test yes = "$lt_cv_irix_exported_symbol"; then
9130 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'
9132 link_all_deplibs=no
9133 else
9134 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'
9135 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'
9137 archive_cmds_need_lc='no'
9138 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9139 hardcode_libdir_separator=:
9140 inherit_rpath=yes
9141 link_all_deplibs=yes
9144 linux*)
9145 case $cc_basename in
9146 tcc*)
9147 # Fabrice Bellard et al's Tiny C Compiler
9148 ld_shlibs=yes
9149 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9151 esac
9154 netbsd* | netbsdelf*-gnu)
9155 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9156 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9157 else
9158 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9160 hardcode_libdir_flag_spec='-R$libdir'
9161 hardcode_direct=yes
9162 hardcode_shlibpath_var=no
9165 newsos6)
9166 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9167 hardcode_direct=yes
9168 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9169 hardcode_libdir_separator=:
9170 hardcode_shlibpath_var=no
9173 *nto* | *qnx*)
9176 openbsd* | bitrig*)
9177 if test -f /usr/libexec/ld.so; then
9178 hardcode_direct=yes
9179 hardcode_shlibpath_var=no
9180 hardcode_direct_absolute=yes
9181 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9182 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9183 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9184 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9185 export_dynamic_flag_spec='$wl-E'
9186 else
9187 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9188 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9190 else
9191 ld_shlibs=no
9195 os2*)
9196 hardcode_libdir_flag_spec='-L$libdir'
9197 hardcode_minus_L=yes
9198 allow_undefined_flag=unsupported
9199 shrext_cmds=.dll
9200 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9201 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9202 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9203 $ECHO EXPORTS >> $output_objdir/$libname.def~
9204 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9205 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9206 emximp -o $lib $output_objdir/$libname.def'
9207 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9208 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9209 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9210 $ECHO EXPORTS >> $output_objdir/$libname.def~
9211 prefix_cmds="$SED"~
9212 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9213 prefix_cmds="$prefix_cmds -e 1d";
9215 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9216 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9217 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9218 emximp -o $lib $output_objdir/$libname.def'
9219 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9220 enable_shared_with_static_runtimes=yes
9223 osf3*)
9224 if test yes = "$GCC"; then
9225 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9226 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'
9227 else
9228 allow_undefined_flag=' -expect_unresolved \*'
9229 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'
9231 archive_cmds_need_lc='no'
9232 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9233 hardcode_libdir_separator=:
9236 osf4* | osf5*) # as osf3* with the addition of -msym flag
9237 if test yes = "$GCC"; then
9238 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9239 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'
9240 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9241 else
9242 allow_undefined_flag=' -expect_unresolved \*'
9243 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'
9244 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~
9245 $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'
9247 # Both c and cxx compiler support -rpath directly
9248 hardcode_libdir_flag_spec='-rpath $libdir'
9250 archive_cmds_need_lc='no'
9251 hardcode_libdir_separator=:
9254 solaris*)
9255 no_undefined_flag=' -z defs'
9256 if test yes = "$GCC"; then
9257 wlarc='$wl'
9258 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9259 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9260 $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'
9261 else
9262 case `$CC -V 2>&1` in
9263 *"Compilers 5.0"*)
9264 wlarc=''
9265 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9266 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9267 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9270 wlarc='$wl'
9271 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9272 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9273 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9275 esac
9277 hardcode_libdir_flag_spec='-R$libdir'
9278 hardcode_shlibpath_var=no
9279 case $host_os in
9280 solaris2.[0-5] | solaris2.[0-5].*) ;;
9282 # The compiler driver will combine and reorder linker options,
9283 # but understands '-z linker_flag'. GCC discards it without '$wl',
9284 # but is careful enough not to reorder.
9285 # Supported since Solaris 2.6 (maybe 2.5.1?)
9286 if test yes = "$GCC"; then
9287 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9288 else
9289 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9292 esac
9293 link_all_deplibs=yes
9296 sunos4*)
9297 if test sequent = "$host_vendor"; then
9298 # Use $CC to link under sequent, because it throws in some extra .o
9299 # files that make .init and .fini sections work.
9300 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9301 else
9302 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9304 hardcode_libdir_flag_spec='-L$libdir'
9305 hardcode_direct=yes
9306 hardcode_minus_L=yes
9307 hardcode_shlibpath_var=no
9310 sysv4)
9311 case $host_vendor in
9312 sni)
9313 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9314 hardcode_direct=yes # is this really true???
9316 siemens)
9317 ## LD is ld it makes a PLAMLIB
9318 ## CC just makes a GrossModule.
9319 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9320 reload_cmds='$CC -r -o $output$reload_objs'
9321 hardcode_direct=no
9323 motorola)
9324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9325 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9327 esac
9328 runpath_var='LD_RUN_PATH'
9329 hardcode_shlibpath_var=no
9332 sysv4.3*)
9333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9334 hardcode_shlibpath_var=no
9335 export_dynamic_flag_spec='-Bexport'
9338 sysv4*MP*)
9339 if test -d /usr/nec; then
9340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9341 hardcode_shlibpath_var=no
9342 runpath_var=LD_RUN_PATH
9343 hardcode_runpath_var=yes
9344 ld_shlibs=yes
9348 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9349 no_undefined_flag='$wl-z,text'
9350 archive_cmds_need_lc=no
9351 hardcode_shlibpath_var=no
9352 runpath_var='LD_RUN_PATH'
9354 if test yes = "$GCC"; then
9355 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9356 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9357 else
9358 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9359 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9363 sysv5* | sco3.2v5* | sco5v6*)
9364 # Note: We CANNOT use -z defs as we might desire, because we do not
9365 # link with -lc, and that would cause any symbols used from libc to
9366 # always be unresolved, which means just about no library would
9367 # ever link correctly. If we're not using GNU ld we use -z text
9368 # though, which does catch some bad symbols but isn't as heavy-handed
9369 # as -z defs.
9370 no_undefined_flag='$wl-z,text'
9371 allow_undefined_flag='$wl-z,nodefs'
9372 archive_cmds_need_lc=no
9373 hardcode_shlibpath_var=no
9374 hardcode_libdir_flag_spec='$wl-R,$libdir'
9375 hardcode_libdir_separator=':'
9376 link_all_deplibs=yes
9377 export_dynamic_flag_spec='$wl-Bexport'
9378 runpath_var='LD_RUN_PATH'
9380 if test yes = "$GCC"; then
9381 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9382 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9383 else
9384 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9385 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9389 uts4*)
9390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9391 hardcode_libdir_flag_spec='-L$libdir'
9392 hardcode_shlibpath_var=no
9396 ld_shlibs=no
9398 esac
9400 if test sni = "$host_vendor"; then
9401 case $host in
9402 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9403 export_dynamic_flag_spec='$wl-Blargedynsym'
9405 esac
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9410 $as_echo "$ld_shlibs" >&6; }
9411 test no = "$ld_shlibs" && can_build_shared=no
9413 with_gnu_ld=$with_gnu_ld
9430 # Do we need to explicitly link libc?
9432 case "x$archive_cmds_need_lc" in
9433 x|xyes)
9434 # Assume -lc should be added
9435 archive_cmds_need_lc=yes
9437 if test yes,yes = "$GCC,$enable_shared"; then
9438 case $archive_cmds in
9439 *'~'*)
9440 # FIXME: we may have to deal with multi-command sequences.
9442 '$CC '*)
9443 # Test whether the compiler implicitly links with -lc since on some
9444 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9445 # to ld, don't add -lc before -lgcc.
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9447 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9448 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9449 $as_echo_n "(cached) " >&6
9450 else
9451 $RM conftest*
9452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9455 (eval $ac_compile) 2>&5
9456 ac_status=$?
9457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9458 test $ac_status = 0; } 2>conftest.err; then
9459 soname=conftest
9460 lib=conftest
9461 libobjs=conftest.$ac_objext
9462 deplibs=
9463 wl=$lt_prog_compiler_wl
9464 pic_flag=$lt_prog_compiler_pic
9465 compiler_flags=-v
9466 linker_flags=-v
9467 verstring=
9468 output_objdir=.
9469 libname=conftest
9470 lt_save_allow_undefined_flag=$allow_undefined_flag
9471 allow_undefined_flag=
9472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9473 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9474 ac_status=$?
9475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9476 test $ac_status = 0; }
9477 then
9478 lt_cv_archive_cmds_need_lc=no
9479 else
9480 lt_cv_archive_cmds_need_lc=yes
9482 allow_undefined_flag=$lt_save_allow_undefined_flag
9483 else
9484 cat conftest.err 1>&5
9486 $RM conftest*
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9490 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9491 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9493 esac
9496 esac
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9650 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9652 if test yes = "$GCC"; then
9653 case $host_os in
9654 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
9655 *) lt_awk_arg='/^libraries:/' ;;
9656 esac
9657 case $host_os in
9658 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
9659 *) lt_sed_strip_eq='s|=/|/|g' ;;
9660 esac
9661 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9662 case $lt_search_path_spec in
9663 *\;*)
9664 # if the path contains ";" then we assume it to be the separator
9665 # otherwise default to the standard path separator (i.e. ":") - it is
9666 # assumed that no part of a normal pathname contains ";" but that should
9667 # okay in the real world where ";" in dirpaths is itself problematic.
9668 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9671 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9673 esac
9674 # Ok, now we have the path, separated by spaces, we can step through it
9675 # and add multilib dir if necessary...
9676 lt_tmp_lt_search_path_spec=
9677 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9678 # ...but if some path component already ends with the multilib dir we assume
9679 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
9680 case "$lt_multi_os_dir; $lt_search_path_spec " in
9681 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
9682 lt_multi_os_dir=
9684 esac
9685 for lt_sys_path in $lt_search_path_spec; do
9686 if test -d "$lt_sys_path$lt_multi_os_dir"; then
9687 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
9688 elif test -n "$lt_multi_os_dir"; then
9689 test -d "$lt_sys_path" && \
9690 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9692 done
9693 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9694 BEGIN {RS = " "; FS = "/|\n";} {
9695 lt_foo = "";
9696 lt_count = 0;
9697 for (lt_i = NF; lt_i > 0; lt_i--) {
9698 if ($lt_i != "" && $lt_i != ".") {
9699 if ($lt_i == "..") {
9700 lt_count++;
9701 } else {
9702 if (lt_count == 0) {
9703 lt_foo = "/" $lt_i lt_foo;
9704 } else {
9705 lt_count--;
9710 if (lt_foo != "") { lt_freq[lt_foo]++; }
9711 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9713 # AWK program above erroneously prepends '/' to C:/dos/paths
9714 # for these hosts.
9715 case $host_os in
9716 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9717 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
9718 esac
9719 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9720 else
9721 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9723 library_names_spec=
9724 libname_spec='lib$name'
9725 soname_spec=
9726 shrext_cmds=.so
9727 postinstall_cmds=
9728 postuninstall_cmds=
9729 finish_cmds=
9730 finish_eval=
9731 shlibpath_var=
9732 shlibpath_overrides_runpath=unknown
9733 version_type=none
9734 dynamic_linker="$host_os ld.so"
9735 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9736 need_lib_prefix=unknown
9737 hardcode_into_libs=no
9739 # when you set need_version to no, make sure it does not cause -set_version
9740 # flags to be left without arguments
9741 need_version=unknown
9745 case $host_os in
9746 aix3*)
9747 version_type=linux # correct to gnu/linux during the next big refactor
9748 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
9749 shlibpath_var=LIBPATH
9751 # AIX 3 has no versioning support, so we append a major version to the name.
9752 soname_spec='$libname$release$shared_ext$major'
9755 aix[4-9]*)
9756 version_type=linux # correct to gnu/linux during the next big refactor
9757 need_lib_prefix=no
9758 need_version=no
9759 hardcode_into_libs=yes
9760 if test ia64 = "$host_cpu"; then
9761 # AIX 5 supports IA64
9762 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
9763 shlibpath_var=LD_LIBRARY_PATH
9764 else
9765 # With GCC up to 2.95.x, collect2 would create an import file
9766 # for dependence libraries. The import file would start with
9767 # the line '#! .'. This would cause the generated library to
9768 # depend on '.', always an invalid library. This was fixed in
9769 # development snapshots of GCC prior to 3.0.
9770 case $host_os in
9771 aix4 | aix4.[01] | aix4.[01].*)
9772 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9773 echo ' yes '
9774 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
9776 else
9777 can_build_shared=no
9780 esac
9781 # Using Import Files as archive members, it is possible to support
9782 # filename-based versioning of shared library archives on AIX. While
9783 # this would work for both with and without runtime linking, it will
9784 # prevent static linking of such archives. So we do filename-based
9785 # shared library versioning with .so extension only, which is used
9786 # when both runtime linking and shared linking is enabled.
9787 # Unfortunately, runtime linking may impact performance, so we do
9788 # not want this to be the default eventually. Also, we use the
9789 # versioned .so libs for executables only if there is the -brtl
9790 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
9791 # To allow for filename-based versioning support, we need to create
9792 # libNAME.so.V as an archive file, containing:
9793 # *) an Import File, referring to the versioned filename of the
9794 # archive as well as the shared archive member, telling the
9795 # bitwidth (32 or 64) of that shared object, and providing the
9796 # list of exported symbols of that shared object, eventually
9797 # decorated with the 'weak' keyword
9798 # *) the shared object with the F_LOADONLY flag set, to really avoid
9799 # it being seen by the linker.
9800 # At run time we better use the real file rather than another symlink,
9801 # but for link time we create the symlink libNAME.so -> libNAME.so.V
9803 case $with_aix_soname,$aix_use_runtimelinking in
9804 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
9805 # soname into executable. Probably we can add versioning support to
9806 # collect2, so additional links can be useful in future.
9807 aix,yes) # traditional libtool
9808 dynamic_linker='AIX unversionable lib.so'
9809 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9810 # instead of lib<name>.a to let people know that these are not
9811 # typical AIX shared libraries.
9812 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9814 aix,no) # traditional AIX only
9815 dynamic_linker='AIX lib.a(lib.so.V)'
9816 # We preserve .a as extension for shared libraries through AIX4.2
9817 # and later when we are not doing run time linking.
9818 library_names_spec='$libname$release.a $libname.a'
9819 soname_spec='$libname$release$shared_ext$major'
9821 svr4,*) # full svr4 only
9822 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
9823 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
9824 # We do not specify a path in Import Files, so LIBPATH fires.
9825 shlibpath_overrides_runpath=yes
9827 *,yes) # both, prefer svr4
9828 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
9829 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
9830 # unpreferred sharedlib libNAME.a needs extra handling
9831 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"'
9832 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"'
9833 # We do not specify a path in Import Files, so LIBPATH fires.
9834 shlibpath_overrides_runpath=yes
9836 *,no) # both, prefer aix
9837 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
9838 library_names_spec='$libname$release.a $libname.a'
9839 soname_spec='$libname$release$shared_ext$major'
9840 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
9841 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)'
9842 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"'
9844 esac
9845 shlibpath_var=LIBPATH
9849 amigaos*)
9850 case $host_cpu in
9851 powerpc)
9852 # Since July 2007 AmigaOS4 officially supports .so libraries.
9853 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9854 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9856 m68k)
9857 library_names_spec='$libname.ixlibrary $libname.a'
9858 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9859 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'
9861 esac
9864 beos*)
9865 library_names_spec='$libname$shared_ext'
9866 dynamic_linker="$host_os ld.so"
9867 shlibpath_var=LIBRARY_PATH
9870 bsdi[45]*)
9871 version_type=linux # correct to gnu/linux during the next big refactor
9872 need_version=no
9873 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9874 soname_spec='$libname$release$shared_ext$major'
9875 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9876 shlibpath_var=LD_LIBRARY_PATH
9877 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9878 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9879 # the default ld.so.conf also contains /usr/contrib/lib and
9880 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9881 # libtool to hard-code these into programs
9884 cygwin* | mingw* | pw32* | cegcc*)
9885 version_type=windows
9886 shrext_cmds=.dll
9887 need_version=no
9888 need_lib_prefix=no
9890 case $GCC,$cc_basename in
9891 yes,*)
9892 # gcc
9893 library_names_spec='$libname.dll.a'
9894 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9895 postinstall_cmds='base_file=`basename \$file`~
9896 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
9897 dldir=$destdir/`dirname \$dlpath`~
9898 test -d \$dldir || mkdir -p \$dldir~
9899 $install_prog $dir/$dlname \$dldir/$dlname~
9900 chmod a+x \$dldir/$dlname~
9901 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9902 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9904 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9905 dlpath=$dir/\$dldll~
9906 $RM \$dlpath'
9907 shlibpath_overrides_runpath=yes
9909 case $host_os in
9910 cygwin*)
9911 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9912 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9914 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9916 mingw* | cegcc*)
9917 # MinGW DLLs use traditional 'lib' prefix
9918 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9920 pw32*)
9921 # pw32 DLLs use 'pw' prefix rather than 'lib'
9922 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9924 esac
9925 dynamic_linker='Win32 ld.exe'
9928 *,cl*)
9929 # Native MSVC
9930 libname_spec='$name'
9931 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9932 library_names_spec='$libname.dll.lib'
9934 case $build_os in
9935 mingw*)
9936 sys_lib_search_path_spec=
9937 lt_save_ifs=$IFS
9938 IFS=';'
9939 for lt_path in $LIB
9941 IFS=$lt_save_ifs
9942 # Let DOS variable expansion print the short 8.3 style file name.
9943 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9944 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9945 done
9946 IFS=$lt_save_ifs
9947 # Convert to MSYS style.
9948 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9950 cygwin*)
9951 # Convert to unix form, then to dos form, then back to unix form
9952 # but this time dos style (no spaces!) so that the unix form looks
9953 # like /cygdrive/c/PROGRA~1:/cygdr...
9954 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9955 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9956 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9959 sys_lib_search_path_spec=$LIB
9960 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9961 # It is most probably a Windows format PATH.
9962 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9963 else
9964 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9966 # FIXME: find the short name or the path components, as spaces are
9967 # common. (e.g. "Program Files" -> "PROGRA~1")
9969 esac
9971 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9972 postinstall_cmds='base_file=`basename \$file`~
9973 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
9974 dldir=$destdir/`dirname \$dlpath`~
9975 test -d \$dldir || mkdir -p \$dldir~
9976 $install_prog $dir/$dlname \$dldir/$dlname'
9977 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9978 dlpath=$dir/\$dldll~
9979 $RM \$dlpath'
9980 shlibpath_overrides_runpath=yes
9981 dynamic_linker='Win32 link.exe'
9985 # Assume MSVC wrapper
9986 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
9987 dynamic_linker='Win32 ld.exe'
9989 esac
9990 # FIXME: first we should search . and the directory the executable is in
9991 shlibpath_var=PATH
9994 darwin* | rhapsody*)
9995 dynamic_linker="$host_os dyld"
9996 version_type=darwin
9997 need_lib_prefix=no
9998 need_version=no
9999 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10000 soname_spec='$libname$release$major$shared_ext'
10001 shlibpath_overrides_runpath=yes
10002 shlibpath_var=DYLD_LIBRARY_PATH
10003 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10005 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10006 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10009 dgux*)
10010 version_type=linux # correct to gnu/linux during the next big refactor
10011 need_lib_prefix=no
10012 need_version=no
10013 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10014 soname_spec='$libname$release$shared_ext$major'
10015 shlibpath_var=LD_LIBRARY_PATH
10018 freebsd* | dragonfly*)
10019 # DragonFly does not have aout. When/if they implement a new
10020 # versioning mechanism, adjust this.
10021 if test -x /usr/bin/objformat; then
10022 objformat=`/usr/bin/objformat`
10023 else
10024 case $host_os in
10025 freebsd[23].*) objformat=aout ;;
10026 *) objformat=elf ;;
10027 esac
10029 version_type=freebsd-$objformat
10030 case $version_type in
10031 freebsd-elf*)
10032 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10033 soname_spec='$libname$release$shared_ext$major'
10034 need_version=no
10035 need_lib_prefix=no
10037 freebsd-*)
10038 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10039 need_version=yes
10041 esac
10042 shlibpath_var=LD_LIBRARY_PATH
10043 case $host_os in
10044 freebsd2.*)
10045 shlibpath_overrides_runpath=yes
10047 freebsd3.[01]* | freebsdelf3.[01]*)
10048 shlibpath_overrides_runpath=yes
10049 hardcode_into_libs=yes
10051 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10052 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10053 shlibpath_overrides_runpath=no
10054 hardcode_into_libs=yes
10056 *) # from 4.6 on, and DragonFly
10057 shlibpath_overrides_runpath=yes
10058 hardcode_into_libs=yes
10060 esac
10063 haiku*)
10064 version_type=linux # correct to gnu/linux during the next big refactor
10065 need_lib_prefix=no
10066 need_version=no
10067 dynamic_linker="$host_os runtime_loader"
10068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10069 soname_spec='$libname$release$shared_ext$major'
10070 shlibpath_var=LIBRARY_PATH
10071 shlibpath_overrides_runpath=no
10072 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10073 hardcode_into_libs=yes
10076 hpux9* | hpux10* | hpux11*)
10077 # Give a soname corresponding to the major version so that dld.sl refuses to
10078 # link against other versions.
10079 version_type=sunos
10080 need_lib_prefix=no
10081 need_version=no
10082 case $host_cpu in
10083 ia64*)
10084 shrext_cmds='.so'
10085 hardcode_into_libs=yes
10086 dynamic_linker="$host_os dld.so"
10087 shlibpath_var=LD_LIBRARY_PATH
10088 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10089 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10090 soname_spec='$libname$release$shared_ext$major'
10091 if test 32 = "$HPUX_IA64_MODE"; then
10092 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10093 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10094 else
10095 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10096 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10099 hppa*64*)
10100 shrext_cmds='.sl'
10101 hardcode_into_libs=yes
10102 dynamic_linker="$host_os dld.sl"
10103 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10104 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10105 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10106 soname_spec='$libname$release$shared_ext$major'
10107 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10108 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10111 shrext_cmds='.sl'
10112 dynamic_linker="$host_os dld.sl"
10113 shlibpath_var=SHLIB_PATH
10114 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10115 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10116 soname_spec='$libname$release$shared_ext$major'
10118 esac
10119 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10120 postinstall_cmds='chmod 555 $lib'
10121 # or fails outright, so override atomically:
10122 install_override_mode=555
10125 interix[3-9]*)
10126 version_type=linux # correct to gnu/linux during the next big refactor
10127 need_lib_prefix=no
10128 need_version=no
10129 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10130 soname_spec='$libname$release$shared_ext$major'
10131 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10132 shlibpath_var=LD_LIBRARY_PATH
10133 shlibpath_overrides_runpath=no
10134 hardcode_into_libs=yes
10137 irix5* | irix6* | nonstopux*)
10138 case $host_os in
10139 nonstopux*) version_type=nonstopux ;;
10141 if test yes = "$lt_cv_prog_gnu_ld"; then
10142 version_type=linux # correct to gnu/linux during the next big refactor
10143 else
10144 version_type=irix
10145 fi ;;
10146 esac
10147 need_lib_prefix=no
10148 need_version=no
10149 soname_spec='$libname$release$shared_ext$major'
10150 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10151 case $host_os in
10152 irix5* | nonstopux*)
10153 libsuff= shlibsuff=
10156 case $LD in # libtool.m4 will add one of these switches to LD
10157 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10158 libsuff= shlibsuff= libmagic=32-bit;;
10159 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10160 libsuff=32 shlibsuff=N32 libmagic=N32;;
10161 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10162 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10163 *) libsuff= shlibsuff= libmagic=never-match;;
10164 esac
10166 esac
10167 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10168 shlibpath_overrides_runpath=no
10169 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10170 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10171 hardcode_into_libs=yes
10174 # No shared lib support for Linux oldld, aout, or coff.
10175 linux*oldld* | linux*aout* | linux*coff*)
10176 dynamic_linker=no
10179 linux*android*)
10180 version_type=none # Android doesn't support versioned libraries.
10181 need_lib_prefix=no
10182 need_version=no
10183 library_names_spec='$libname$release$shared_ext'
10184 soname_spec='$libname$release$shared_ext'
10185 finish_cmds=
10186 shlibpath_var=LD_LIBRARY_PATH
10187 shlibpath_overrides_runpath=yes
10189 # This implies no fast_install, which is unacceptable.
10190 # Some rework will be needed to allow for fast_install
10191 # before this can be enabled.
10192 hardcode_into_libs=yes
10194 dynamic_linker='Android linker'
10195 # Don't embed -rpath directories since the linker doesn't support them.
10196 hardcode_libdir_flag_spec='-L$libdir'
10199 # This must be glibc/ELF.
10200 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10201 version_type=linux # correct to gnu/linux during the next big refactor
10202 need_lib_prefix=no
10203 need_version=no
10204 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10205 soname_spec='$libname$release$shared_ext$major'
10206 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10207 shlibpath_var=LD_LIBRARY_PATH
10208 shlibpath_overrides_runpath=no
10210 # Some binutils ld are patched to set DT_RUNPATH
10211 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10212 $as_echo_n "(cached) " >&6
10213 else
10214 lt_cv_shlibpath_overrides_runpath=no
10215 save_LDFLAGS=$LDFLAGS
10216 save_libdir=$libdir
10217 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10218 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220 /* end confdefs.h. */
10223 main ()
10227 return 0;
10229 _ACEOF
10230 if ac_fn_c_try_link "$LINENO"; then :
10231 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10232 lt_cv_shlibpath_overrides_runpath=yes
10235 rm -f core conftest.err conftest.$ac_objext \
10236 conftest$ac_exeext conftest.$ac_ext
10237 LDFLAGS=$save_LDFLAGS
10238 libdir=$save_libdir
10242 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10244 # This implies no fast_install, which is unacceptable.
10245 # Some rework will be needed to allow for fast_install
10246 # before this can be enabled.
10247 hardcode_into_libs=yes
10249 # Ideally, we could use ldconfig to report *all* directores which are
10250 # searched for libraries, however this is still not possible. Aside from not
10251 # being certain /sbin/ldconfig is available, command
10252 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10253 # even though it is searched at run-time. Try to do the best guess by
10254 # appending ld.so.conf contents (and includes) to the search path.
10255 if test -f /etc/ld.so.conf; then
10256 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' ' '`
10257 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10260 # We used to test for /lib/ld.so.1 and disable shared libraries on
10261 # powerpc, because MkLinux only supported shared libraries with the
10262 # GNU dynamic linker. Since this was broken with cross compilers,
10263 # most powerpc-linux boxes support dynamic linking these days and
10264 # people can always --disable-shared, the test was removed, and we
10265 # assume the GNU/Linux dynamic linker is in use.
10266 dynamic_linker='GNU/Linux ld.so'
10269 netbsdelf*-gnu)
10270 version_type=linux
10271 need_lib_prefix=no
10272 need_version=no
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10274 soname_spec='${libname}${release}${shared_ext}$major'
10275 shlibpath_var=LD_LIBRARY_PATH
10276 shlibpath_overrides_runpath=no
10277 hardcode_into_libs=yes
10278 dynamic_linker='NetBSD ld.elf_so'
10281 netbsd*)
10282 version_type=sunos
10283 need_lib_prefix=no
10284 need_version=no
10285 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10286 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10287 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10288 dynamic_linker='NetBSD (a.out) ld.so'
10289 else
10290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10291 soname_spec='$libname$release$shared_ext$major'
10292 dynamic_linker='NetBSD ld.elf_so'
10294 shlibpath_var=LD_LIBRARY_PATH
10295 shlibpath_overrides_runpath=yes
10296 hardcode_into_libs=yes
10299 newsos6)
10300 version_type=linux # correct to gnu/linux during the next big refactor
10301 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10302 shlibpath_var=LD_LIBRARY_PATH
10303 shlibpath_overrides_runpath=yes
10306 *nto* | *qnx*)
10307 version_type=qnx
10308 need_lib_prefix=no
10309 need_version=no
10310 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10311 soname_spec='$libname$release$shared_ext$major'
10312 shlibpath_var=LD_LIBRARY_PATH
10313 shlibpath_overrides_runpath=no
10314 hardcode_into_libs=yes
10315 dynamic_linker='ldqnx.so'
10318 openbsd* | bitrig*)
10319 version_type=sunos
10320 sys_lib_dlsearch_path_spec=/usr/lib
10321 need_lib_prefix=no
10322 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10323 need_version=no
10324 else
10325 need_version=yes
10327 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10328 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10329 shlibpath_var=LD_LIBRARY_PATH
10330 shlibpath_overrides_runpath=yes
10333 os2*)
10334 libname_spec='$name'
10335 version_type=windows
10336 shrext_cmds=.dll
10337 need_version=no
10338 need_lib_prefix=no
10339 # OS/2 can only load a DLL with a base name of 8 characters or less.
10340 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10341 v=$($ECHO $release$versuffix | tr -d .-);
10342 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10343 $ECHO $n$v`$shared_ext'
10344 library_names_spec='${libname}_dll.$libext'
10345 dynamic_linker='OS/2 ld.exe'
10346 shlibpath_var=BEGINLIBPATH
10347 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10348 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10349 postinstall_cmds='base_file=`basename \$file`~
10350 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10351 dldir=$destdir/`dirname \$dlpath`~
10352 test -d \$dldir || mkdir -p \$dldir~
10353 $install_prog $dir/$dlname \$dldir/$dlname~
10354 chmod a+x \$dldir/$dlname~
10355 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10356 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10358 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10359 dlpath=$dir/\$dldll~
10360 $RM \$dlpath'
10363 osf3* | osf4* | osf5*)
10364 version_type=osf
10365 need_lib_prefix=no
10366 need_version=no
10367 soname_spec='$libname$release$shared_ext$major'
10368 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10369 shlibpath_var=LD_LIBRARY_PATH
10370 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10371 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10374 rdos*)
10375 dynamic_linker=no
10378 solaris*)
10379 version_type=linux # correct to gnu/linux during the next big refactor
10380 need_lib_prefix=no
10381 need_version=no
10382 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10383 soname_spec='$libname$release$shared_ext$major'
10384 shlibpath_var=LD_LIBRARY_PATH
10385 shlibpath_overrides_runpath=yes
10386 hardcode_into_libs=yes
10387 # ldd complains unless libraries are executable
10388 postinstall_cmds='chmod +x $lib'
10391 sunos4*)
10392 version_type=sunos
10393 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10394 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10395 shlibpath_var=LD_LIBRARY_PATH
10396 shlibpath_overrides_runpath=yes
10397 if test yes = "$with_gnu_ld"; then
10398 need_lib_prefix=no
10400 need_version=yes
10403 sysv4 | sysv4.3*)
10404 version_type=linux # correct to gnu/linux during the next big refactor
10405 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10406 soname_spec='$libname$release$shared_ext$major'
10407 shlibpath_var=LD_LIBRARY_PATH
10408 case $host_vendor in
10409 sni)
10410 shlibpath_overrides_runpath=no
10411 need_lib_prefix=no
10412 runpath_var=LD_RUN_PATH
10414 siemens)
10415 need_lib_prefix=no
10417 motorola)
10418 need_lib_prefix=no
10419 need_version=no
10420 shlibpath_overrides_runpath=no
10421 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10423 esac
10426 sysv4*MP*)
10427 if test -d /usr/nec; then
10428 version_type=linux # correct to gnu/linux during the next big refactor
10429 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10430 soname_spec='$libname$shared_ext.$major'
10431 shlibpath_var=LD_LIBRARY_PATH
10435 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10436 version_type=sco
10437 need_lib_prefix=no
10438 need_version=no
10439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10440 soname_spec='$libname$release$shared_ext$major'
10441 shlibpath_var=LD_LIBRARY_PATH
10442 shlibpath_overrides_runpath=yes
10443 hardcode_into_libs=yes
10444 if test yes = "$with_gnu_ld"; then
10445 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10446 else
10447 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10448 case $host_os in
10449 sco3.2v5*)
10450 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10452 esac
10454 sys_lib_dlsearch_path_spec='/usr/lib'
10457 tpf*)
10458 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10459 version_type=linux # correct to gnu/linux during the next big refactor
10460 need_lib_prefix=no
10461 need_version=no
10462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10463 shlibpath_var=LD_LIBRARY_PATH
10464 shlibpath_overrides_runpath=no
10465 hardcode_into_libs=yes
10468 uts4*)
10469 version_type=linux # correct to gnu/linux during the next big refactor
10470 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10471 soname_spec='$libname$release$shared_ext$major'
10472 shlibpath_var=LD_LIBRARY_PATH
10476 dynamic_linker=no
10478 esac
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10480 $as_echo "$dynamic_linker" >&6; }
10481 test no = "$dynamic_linker" && can_build_shared=no
10483 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10484 if test yes = "$GCC"; then
10485 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10488 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10489 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
10492 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10493 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
10496 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
10497 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
10499 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
10500 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
10502 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
10503 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10602 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10603 hardcode_action=
10604 if test -n "$hardcode_libdir_flag_spec" ||
10605 test -n "$runpath_var" ||
10606 test yes = "$hardcode_automatic"; then
10608 # We can hardcode non-existent directories.
10609 if test no != "$hardcode_direct" &&
10610 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10611 # have to relink, otherwise we might link with an installed library
10612 # when we should be linking with a yet-to-be-installed one
10613 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
10614 test no != "$hardcode_minus_L"; then
10615 # Linking always hardcodes the temporary library directory.
10616 hardcode_action=relink
10617 else
10618 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10619 hardcode_action=immediate
10621 else
10622 # We cannot hardcode anything, or else we can only hardcode existing
10623 # directories.
10624 hardcode_action=unsupported
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10627 $as_echo "$hardcode_action" >&6; }
10629 if test relink = "$hardcode_action" ||
10630 test yes = "$inherit_rpath"; then
10631 # Fast installation is not supported
10632 enable_fast_install=no
10633 elif test yes = "$shlibpath_overrides_runpath" ||
10634 test no = "$enable_shared"; then
10635 # Fast installation is not necessary
10636 enable_fast_install=needless
10644 if test yes != "$enable_dlopen"; then
10645 enable_dlopen=unknown
10646 enable_dlopen_self=unknown
10647 enable_dlopen_self_static=unknown
10648 else
10649 lt_cv_dlopen=no
10650 lt_cv_dlopen_libs=
10652 case $host_os in
10653 beos*)
10654 lt_cv_dlopen=load_add_on
10655 lt_cv_dlopen_libs=
10656 lt_cv_dlopen_self=yes
10659 mingw* | pw32* | cegcc*)
10660 lt_cv_dlopen=LoadLibrary
10661 lt_cv_dlopen_libs=
10664 cygwin*)
10665 lt_cv_dlopen=dlopen
10666 lt_cv_dlopen_libs=
10669 darwin*)
10670 # if libdl is installed we need to link against it
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10672 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10673 if ${ac_cv_lib_dl_dlopen+:} false; then :
10674 $as_echo_n "(cached) " >&6
10675 else
10676 ac_check_lib_save_LIBS=$LIBS
10677 LIBS="-ldl $LIBS"
10678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10679 /* end confdefs.h. */
10681 /* Override any GCC internal prototype to avoid an error.
10682 Use char because int might match the return type of a GCC
10683 builtin and then its argument prototype would still apply. */
10684 #ifdef __cplusplus
10685 extern "C"
10686 #endif
10687 char dlopen ();
10689 main ()
10691 return dlopen ();
10693 return 0;
10695 _ACEOF
10696 if ac_fn_c_try_link "$LINENO"; then :
10697 ac_cv_lib_dl_dlopen=yes
10698 else
10699 ac_cv_lib_dl_dlopen=no
10701 rm -f core conftest.err conftest.$ac_objext \
10702 conftest$ac_exeext conftest.$ac_ext
10703 LIBS=$ac_check_lib_save_LIBS
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10706 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10707 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10708 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
10709 else
10711 lt_cv_dlopen=dyld
10712 lt_cv_dlopen_libs=
10713 lt_cv_dlopen_self=yes
10719 tpf*)
10720 # Don't try to run any link tests for TPF. We know it's impossible
10721 # because TPF is a cross-compiler, and we know how we open DSOs.
10722 lt_cv_dlopen=dlopen
10723 lt_cv_dlopen_libs=
10724 lt_cv_dlopen_self=no
10728 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10729 if test "x$ac_cv_func_shl_load" = xyes; then :
10730 lt_cv_dlopen=shl_load
10731 else
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10733 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10734 if ${ac_cv_lib_dld_shl_load+:} false; then :
10735 $as_echo_n "(cached) " >&6
10736 else
10737 ac_check_lib_save_LIBS=$LIBS
10738 LIBS="-ldld $LIBS"
10739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10740 /* end confdefs.h. */
10742 /* Override any GCC internal prototype to avoid an error.
10743 Use char because int might match the return type of a GCC
10744 builtin and then its argument prototype would still apply. */
10745 #ifdef __cplusplus
10746 extern "C"
10747 #endif
10748 char shl_load ();
10750 main ()
10752 return shl_load ();
10754 return 0;
10756 _ACEOF
10757 if ac_fn_c_try_link "$LINENO"; then :
10758 ac_cv_lib_dld_shl_load=yes
10759 else
10760 ac_cv_lib_dld_shl_load=no
10762 rm -f core conftest.err conftest.$ac_objext \
10763 conftest$ac_exeext conftest.$ac_ext
10764 LIBS=$ac_check_lib_save_LIBS
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10767 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10768 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10769 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
10770 else
10771 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10772 if test "x$ac_cv_func_dlopen" = xyes; then :
10773 lt_cv_dlopen=dlopen
10774 else
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10776 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10777 if ${ac_cv_lib_dl_dlopen+:} false; then :
10778 $as_echo_n "(cached) " >&6
10779 else
10780 ac_check_lib_save_LIBS=$LIBS
10781 LIBS="-ldl $LIBS"
10782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h. */
10785 /* Override any GCC internal prototype to avoid an error.
10786 Use char because int might match the return type of a GCC
10787 builtin and then its argument prototype would still apply. */
10788 #ifdef __cplusplus
10789 extern "C"
10790 #endif
10791 char dlopen ();
10793 main ()
10795 return dlopen ();
10797 return 0;
10799 _ACEOF
10800 if ac_fn_c_try_link "$LINENO"; then :
10801 ac_cv_lib_dl_dlopen=yes
10802 else
10803 ac_cv_lib_dl_dlopen=no
10805 rm -f core conftest.err conftest.$ac_objext \
10806 conftest$ac_exeext conftest.$ac_ext
10807 LIBS=$ac_check_lib_save_LIBS
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10810 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10811 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10812 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
10813 else
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10815 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10816 if ${ac_cv_lib_svld_dlopen+:} false; then :
10817 $as_echo_n "(cached) " >&6
10818 else
10819 ac_check_lib_save_LIBS=$LIBS
10820 LIBS="-lsvld $LIBS"
10821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10822 /* end confdefs.h. */
10824 /* Override any GCC internal prototype to avoid an error.
10825 Use char because int might match the return type of a GCC
10826 builtin and then its argument prototype would still apply. */
10827 #ifdef __cplusplus
10828 extern "C"
10829 #endif
10830 char dlopen ();
10832 main ()
10834 return dlopen ();
10836 return 0;
10838 _ACEOF
10839 if ac_fn_c_try_link "$LINENO"; then :
10840 ac_cv_lib_svld_dlopen=yes
10841 else
10842 ac_cv_lib_svld_dlopen=no
10844 rm -f core conftest.err conftest.$ac_objext \
10845 conftest$ac_exeext conftest.$ac_ext
10846 LIBS=$ac_check_lib_save_LIBS
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10849 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10850 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10851 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
10852 else
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10854 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10855 if ${ac_cv_lib_dld_dld_link+:} false; then :
10856 $as_echo_n "(cached) " >&6
10857 else
10858 ac_check_lib_save_LIBS=$LIBS
10859 LIBS="-ldld $LIBS"
10860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10861 /* end confdefs.h. */
10863 /* Override any GCC internal prototype to avoid an error.
10864 Use char because int might match the return type of a GCC
10865 builtin and then its argument prototype would still apply. */
10866 #ifdef __cplusplus
10867 extern "C"
10868 #endif
10869 char dld_link ();
10871 main ()
10873 return dld_link ();
10875 return 0;
10877 _ACEOF
10878 if ac_fn_c_try_link "$LINENO"; then :
10879 ac_cv_lib_dld_dld_link=yes
10880 else
10881 ac_cv_lib_dld_dld_link=no
10883 rm -f core conftest.err conftest.$ac_objext \
10884 conftest$ac_exeext conftest.$ac_ext
10885 LIBS=$ac_check_lib_save_LIBS
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10888 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10889 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10890 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
10909 esac
10911 if test no = "$lt_cv_dlopen"; then
10912 enable_dlopen=no
10913 else
10914 enable_dlopen=yes
10917 case $lt_cv_dlopen in
10918 dlopen)
10919 save_CPPFLAGS=$CPPFLAGS
10920 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10922 save_LDFLAGS=$LDFLAGS
10923 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10925 save_LIBS=$LIBS
10926 LIBS="$lt_cv_dlopen_libs $LIBS"
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10929 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10930 if ${lt_cv_dlopen_self+:} false; then :
10931 $as_echo_n "(cached) " >&6
10932 else
10933 if test yes = "$cross_compiling"; then :
10934 lt_cv_dlopen_self=cross
10935 else
10936 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10937 lt_status=$lt_dlunknown
10938 cat > conftest.$ac_ext <<_LT_EOF
10939 #line $LINENO "configure"
10940 #include "confdefs.h"
10942 #if HAVE_DLFCN_H
10943 #include <dlfcn.h>
10944 #endif
10946 #include <stdio.h>
10948 #ifdef RTLD_GLOBAL
10949 # define LT_DLGLOBAL RTLD_GLOBAL
10950 #else
10951 # ifdef DL_GLOBAL
10952 # define LT_DLGLOBAL DL_GLOBAL
10953 # else
10954 # define LT_DLGLOBAL 0
10955 # endif
10956 #endif
10958 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10959 find out it does not work in some platform. */
10960 #ifndef LT_DLLAZY_OR_NOW
10961 # ifdef RTLD_LAZY
10962 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10963 # else
10964 # ifdef DL_LAZY
10965 # define LT_DLLAZY_OR_NOW DL_LAZY
10966 # else
10967 # ifdef RTLD_NOW
10968 # define LT_DLLAZY_OR_NOW RTLD_NOW
10969 # else
10970 # ifdef DL_NOW
10971 # define LT_DLLAZY_OR_NOW DL_NOW
10972 # else
10973 # define LT_DLLAZY_OR_NOW 0
10974 # endif
10975 # endif
10976 # endif
10977 # endif
10978 #endif
10980 /* When -fvisibility=hidden is used, assume the code has been annotated
10981 correspondingly for the symbols needed. */
10982 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10983 int fnord () __attribute__((visibility("default")));
10984 #endif
10986 int fnord () { return 42; }
10987 int main ()
10989 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10990 int status = $lt_dlunknown;
10992 if (self)
10994 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10995 else
10997 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10998 else puts (dlerror ());
11000 /* dlclose (self); */
11002 else
11003 puts (dlerror ());
11005 return status;
11007 _LT_EOF
11008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11009 (eval $ac_link) 2>&5
11010 ac_status=$?
11011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11012 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11013 (./conftest; exit; ) >&5 2>/dev/null
11014 lt_status=$?
11015 case x$lt_status in
11016 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11017 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11018 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11019 esac
11020 else :
11021 # compilation failed
11022 lt_cv_dlopen_self=no
11025 rm -fr conftest*
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11030 $as_echo "$lt_cv_dlopen_self" >&6; }
11032 if test yes = "$lt_cv_dlopen_self"; then
11033 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11035 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11036 if ${lt_cv_dlopen_self_static+:} false; then :
11037 $as_echo_n "(cached) " >&6
11038 else
11039 if test yes = "$cross_compiling"; then :
11040 lt_cv_dlopen_self_static=cross
11041 else
11042 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11043 lt_status=$lt_dlunknown
11044 cat > conftest.$ac_ext <<_LT_EOF
11045 #line $LINENO "configure"
11046 #include "confdefs.h"
11048 #if HAVE_DLFCN_H
11049 #include <dlfcn.h>
11050 #endif
11052 #include <stdio.h>
11054 #ifdef RTLD_GLOBAL
11055 # define LT_DLGLOBAL RTLD_GLOBAL
11056 #else
11057 # ifdef DL_GLOBAL
11058 # define LT_DLGLOBAL DL_GLOBAL
11059 # else
11060 # define LT_DLGLOBAL 0
11061 # endif
11062 #endif
11064 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11065 find out it does not work in some platform. */
11066 #ifndef LT_DLLAZY_OR_NOW
11067 # ifdef RTLD_LAZY
11068 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11069 # else
11070 # ifdef DL_LAZY
11071 # define LT_DLLAZY_OR_NOW DL_LAZY
11072 # else
11073 # ifdef RTLD_NOW
11074 # define LT_DLLAZY_OR_NOW RTLD_NOW
11075 # else
11076 # ifdef DL_NOW
11077 # define LT_DLLAZY_OR_NOW DL_NOW
11078 # else
11079 # define LT_DLLAZY_OR_NOW 0
11080 # endif
11081 # endif
11082 # endif
11083 # endif
11084 #endif
11086 /* When -fvisibility=hidden is used, assume the code has been annotated
11087 correspondingly for the symbols needed. */
11088 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11089 int fnord () __attribute__((visibility("default")));
11090 #endif
11092 int fnord () { return 42; }
11093 int main ()
11095 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11096 int status = $lt_dlunknown;
11098 if (self)
11100 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11101 else
11103 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11104 else puts (dlerror ());
11106 /* dlclose (self); */
11108 else
11109 puts (dlerror ());
11111 return status;
11113 _LT_EOF
11114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11115 (eval $ac_link) 2>&5
11116 ac_status=$?
11117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11118 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11119 (./conftest; exit; ) >&5 2>/dev/null
11120 lt_status=$?
11121 case x$lt_status in
11122 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11123 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11124 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11125 esac
11126 else :
11127 # compilation failed
11128 lt_cv_dlopen_self_static=no
11131 rm -fr conftest*
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11136 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11139 CPPFLAGS=$save_CPPFLAGS
11140 LDFLAGS=$save_LDFLAGS
11141 LIBS=$save_LIBS
11143 esac
11145 case $lt_cv_dlopen_self in
11146 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11147 *) enable_dlopen_self=unknown ;;
11148 esac
11150 case $lt_cv_dlopen_self_static in
11151 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11152 *) enable_dlopen_self_static=unknown ;;
11153 esac
11172 striplib=
11173 old_striplib=
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11175 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11176 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11177 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11178 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11180 $as_echo "yes" >&6; }
11181 else
11182 # FIXME - insert some real tests, host_os isn't really good enough
11183 case $host_os in
11184 darwin*)
11185 if test -n "$STRIP"; then
11186 striplib="$STRIP -x"
11187 old_striplib="$STRIP -S"
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11189 $as_echo "yes" >&6; }
11190 else
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11192 $as_echo "no" >&6; }
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11197 $as_echo "no" >&6; }
11199 esac
11213 # Report what library types will actually be built
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11215 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11217 $as_echo "$can_build_shared" >&6; }
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11220 $as_echo_n "checking whether to build shared libraries... " >&6; }
11221 test no = "$can_build_shared" && enable_shared=no
11223 # On AIX, shared libraries and static libraries use the same namespace, and
11224 # are all built from PIC.
11225 case $host_os in
11226 aix3*)
11227 test yes = "$enable_shared" && enable_static=no
11228 if test -n "$RANLIB"; then
11229 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11230 postinstall_cmds='$RANLIB $lib'
11234 aix[4-9]*)
11235 if test ia64 != "$host_cpu"; then
11236 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11237 yes,aix,yes) ;; # shared object as lib.so file only
11238 yes,svr4,*) ;; # shared object as lib.so archive member only
11239 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11240 esac
11243 esac
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11245 $as_echo "$enable_shared" >&6; }
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11248 $as_echo_n "checking whether to build static libraries... " >&6; }
11249 # Make sure either enable_shared or enable_static is yes.
11250 test yes = "$enable_shared" || enable_static=yes
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11252 $as_echo "$enable_static" >&6; }
11258 ac_ext=c
11259 ac_cpp='$CPP $CPPFLAGS'
11260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11264 CC=$lt_save_CC
11280 ac_config_commands="$ac_config_commands libtool"
11285 # Only expand once:
11288 # Find a good install program. We prefer a C program (faster),
11289 # so one script is as good as another. But avoid the broken or
11290 # incompatible versions:
11291 # SysV /etc/install, /usr/sbin/install
11292 # SunOS /usr/etc/install
11293 # IRIX /sbin/install
11294 # AIX /bin/install
11295 # AmigaOS /C/install, which installs bootblocks on floppy discs
11296 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11297 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11298 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11299 # OS/2's system install, which has a completely different semantic
11300 # ./install, which can be erroneously created by make from ./install.sh.
11301 # Reject install programs that cannot install multiple files.
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11303 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11304 if test -z "$INSTALL"; then
11305 if ${ac_cv_path_install+:} false; then :
11306 $as_echo_n "(cached) " >&6
11307 else
11308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11309 for as_dir in $PATH
11311 IFS=$as_save_IFS
11312 test -z "$as_dir" && as_dir=.
11313 # Account for people who put trailing slashes in PATH elements.
11314 case $as_dir/ in #((
11315 ./ | .// | /[cC]/* | \
11316 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11317 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11318 /usr/ucb/* ) ;;
11320 # OSF1 and SCO ODT 3.0 have their own names for install.
11321 # Don't use installbsd from OSF since it installs stuff as root
11322 # by default.
11323 for ac_prog in ginstall scoinst install; do
11324 for ac_exec_ext in '' $ac_executable_extensions; do
11325 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11326 if test $ac_prog = install &&
11327 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11328 # AIX install. It has an incompatible calling convention.
11330 elif test $ac_prog = install &&
11331 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11332 # program-specific install script used by HP pwplus--don't use.
11334 else
11335 rm -rf conftest.one conftest.two conftest.dir
11336 echo one > conftest.one
11337 echo two > conftest.two
11338 mkdir conftest.dir
11339 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11340 test -s conftest.one && test -s conftest.two &&
11341 test -s conftest.dir/conftest.one &&
11342 test -s conftest.dir/conftest.two
11343 then
11344 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11345 break 3
11349 done
11350 done
11352 esac
11354 done
11355 IFS=$as_save_IFS
11357 rm -rf conftest.one conftest.two conftest.dir
11360 if test "${ac_cv_path_install+set}" = set; then
11361 INSTALL=$ac_cv_path_install
11362 else
11363 # As a last resort, use the slow shell script. Don't cache a
11364 # value for INSTALL within a source directory, because that will
11365 # break other packages using the cache if that directory is
11366 # removed, or if the value is a relative name.
11367 INSTALL=$ac_install_sh
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11371 $as_echo "$INSTALL" >&6; }
11373 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11374 # It thinks the first close brace ends the variable substitution.
11375 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11377 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11379 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11382 #########
11383 # Enable large file support (if special flags are necessary)
11385 # Check whether --enable-largefile was given.
11386 if test "${enable_largefile+set}" = set; then :
11387 enableval=$enable_largefile;
11390 if test "$enable_largefile" != no; then
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11393 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11394 if ${ac_cv_sys_largefile_CC+:} false; then :
11395 $as_echo_n "(cached) " >&6
11396 else
11397 ac_cv_sys_largefile_CC=no
11398 if test "$GCC" != yes; then
11399 ac_save_CC=$CC
11400 while :; do
11401 # IRIX 6.2 and later do not support large files by default,
11402 # so use the C compiler's -n32 option if that helps.
11403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11404 /* end confdefs.h. */
11405 #include <sys/types.h>
11406 /* Check that off_t can represent 2**63 - 1 correctly.
11407 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11408 since some C++ compilers masquerading as C compilers
11409 incorrectly reject 9223372036854775807. */
11410 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11411 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11412 && LARGE_OFF_T % 2147483647 == 1)
11413 ? 1 : -1];
11415 main ()
11419 return 0;
11421 _ACEOF
11422 if ac_fn_c_try_compile "$LINENO"; then :
11423 break
11425 rm -f core conftest.err conftest.$ac_objext
11426 CC="$CC -n32"
11427 if ac_fn_c_try_compile "$LINENO"; then :
11428 ac_cv_sys_largefile_CC=' -n32'; break
11430 rm -f core conftest.err conftest.$ac_objext
11431 break
11432 done
11433 CC=$ac_save_CC
11434 rm -f conftest.$ac_ext
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11438 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11439 if test "$ac_cv_sys_largefile_CC" != no; then
11440 CC=$CC$ac_cv_sys_largefile_CC
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11444 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11445 if ${ac_cv_sys_file_offset_bits+:} false; then :
11446 $as_echo_n "(cached) " >&6
11447 else
11448 while :; do
11449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11450 /* end confdefs.h. */
11451 #include <sys/types.h>
11452 /* Check that off_t can represent 2**63 - 1 correctly.
11453 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11454 since some C++ compilers masquerading as C compilers
11455 incorrectly reject 9223372036854775807. */
11456 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11457 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11458 && LARGE_OFF_T % 2147483647 == 1)
11459 ? 1 : -1];
11461 main ()
11465 return 0;
11467 _ACEOF
11468 if ac_fn_c_try_compile "$LINENO"; then :
11469 ac_cv_sys_file_offset_bits=no; break
11471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11473 /* end confdefs.h. */
11474 #define _FILE_OFFSET_BITS 64
11475 #include <sys/types.h>
11476 /* Check that off_t can represent 2**63 - 1 correctly.
11477 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11478 since some C++ compilers masquerading as C compilers
11479 incorrectly reject 9223372036854775807. */
11480 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11481 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11482 && LARGE_OFF_T % 2147483647 == 1)
11483 ? 1 : -1];
11485 main ()
11489 return 0;
11491 _ACEOF
11492 if ac_fn_c_try_compile "$LINENO"; then :
11493 ac_cv_sys_file_offset_bits=64; break
11495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11496 ac_cv_sys_file_offset_bits=unknown
11497 break
11498 done
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11501 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11502 case $ac_cv_sys_file_offset_bits in #(
11503 no | unknown) ;;
11505 cat >>confdefs.h <<_ACEOF
11506 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11507 _ACEOF
11509 esac
11510 rm -rf conftest*
11511 if test $ac_cv_sys_file_offset_bits = unknown; then
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11513 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11514 if ${ac_cv_sys_large_files+:} false; then :
11515 $as_echo_n "(cached) " >&6
11516 else
11517 while :; do
11518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519 /* end confdefs.h. */
11520 #include <sys/types.h>
11521 /* Check that off_t can represent 2**63 - 1 correctly.
11522 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11523 since some C++ compilers masquerading as C compilers
11524 incorrectly reject 9223372036854775807. */
11525 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11526 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11527 && LARGE_OFF_T % 2147483647 == 1)
11528 ? 1 : -1];
11530 main ()
11534 return 0;
11536 _ACEOF
11537 if ac_fn_c_try_compile "$LINENO"; then :
11538 ac_cv_sys_large_files=no; break
11540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11542 /* end confdefs.h. */
11543 #define _LARGE_FILES 1
11544 #include <sys/types.h>
11545 /* Check that off_t can represent 2**63 - 1 correctly.
11546 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11547 since some C++ compilers masquerading as C compilers
11548 incorrectly reject 9223372036854775807. */
11549 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11550 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11551 && LARGE_OFF_T % 2147483647 == 1)
11552 ? 1 : -1];
11554 main ()
11558 return 0;
11560 _ACEOF
11561 if ac_fn_c_try_compile "$LINENO"; then :
11562 ac_cv_sys_large_files=1; break
11564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11565 ac_cv_sys_large_files=unknown
11566 break
11567 done
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11570 $as_echo "$ac_cv_sys_large_files" >&6; }
11571 case $ac_cv_sys_large_files in #(
11572 no | unknown) ;;
11574 cat >>confdefs.h <<_ACEOF
11575 #define _LARGE_FILES $ac_cv_sys_large_files
11576 _ACEOF
11578 esac
11579 rm -rf conftest*
11586 #########
11587 # Check for needed/wanted data types
11588 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
11589 if test "x$ac_cv_type_int8_t" = xyes; then :
11591 cat >>confdefs.h <<_ACEOF
11592 #define HAVE_INT8_T 1
11593 _ACEOF
11597 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
11598 if test "x$ac_cv_type_int16_t" = xyes; then :
11600 cat >>confdefs.h <<_ACEOF
11601 #define HAVE_INT16_T 1
11602 _ACEOF
11606 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
11607 if test "x$ac_cv_type_int32_t" = xyes; then :
11609 cat >>confdefs.h <<_ACEOF
11610 #define HAVE_INT32_T 1
11611 _ACEOF
11615 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
11616 if test "x$ac_cv_type_int64_t" = xyes; then :
11618 cat >>confdefs.h <<_ACEOF
11619 #define HAVE_INT64_T 1
11620 _ACEOF
11624 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
11625 if test "x$ac_cv_type_intptr_t" = xyes; then :
11627 cat >>confdefs.h <<_ACEOF
11628 #define HAVE_INTPTR_T 1
11629 _ACEOF
11633 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
11634 if test "x$ac_cv_type_uint8_t" = xyes; then :
11636 cat >>confdefs.h <<_ACEOF
11637 #define HAVE_UINT8_T 1
11638 _ACEOF
11642 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
11643 if test "x$ac_cv_type_uint16_t" = xyes; then :
11645 cat >>confdefs.h <<_ACEOF
11646 #define HAVE_UINT16_T 1
11647 _ACEOF
11651 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
11652 if test "x$ac_cv_type_uint32_t" = xyes; then :
11654 cat >>confdefs.h <<_ACEOF
11655 #define HAVE_UINT32_T 1
11656 _ACEOF
11660 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
11661 if test "x$ac_cv_type_uint64_t" = xyes; then :
11663 cat >>confdefs.h <<_ACEOF
11664 #define HAVE_UINT64_T 1
11665 _ACEOF
11669 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
11670 if test "x$ac_cv_type_uintptr_t" = xyes; then :
11672 cat >>confdefs.h <<_ACEOF
11673 #define HAVE_UINTPTR_T 1
11674 _ACEOF
11680 #########
11681 # Check for needed/wanted headers
11682 for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
11683 do :
11684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11685 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11686 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11687 cat >>confdefs.h <<_ACEOF
11688 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11689 _ACEOF
11693 done
11696 #########
11697 # Figure out whether or not we have these functions
11699 for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime pread pread64 pwrite pwrite64
11700 do :
11701 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11702 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11703 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11704 cat >>confdefs.h <<_ACEOF
11705 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11706 _ACEOF
11709 done
11712 #########
11713 # By default, we use the amalgamation (this may be changed below...)
11715 USE_AMALGAMATION=1
11717 #########
11718 # See whether we can run specific tclsh versions known to work well;
11719 # if not, then we fall back to plain tclsh.
11720 # TODO: try other versions before falling back?
11722 for ac_prog in tclsh8.7 tclsh8.6 tclsh8.5 tclsh
11724 # Extract the first word of "$ac_prog", so it can be a program name with args.
11725 set dummy $ac_prog; ac_word=$2
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11727 $as_echo_n "checking for $ac_word... " >&6; }
11728 if ${ac_cv_prog_TCLSH_CMD+:} false; then :
11729 $as_echo_n "(cached) " >&6
11730 else
11731 if test -n "$TCLSH_CMD"; then
11732 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
11733 else
11734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11735 for as_dir in $PATH
11737 IFS=$as_save_IFS
11738 test -z "$as_dir" && as_dir=.
11739 for ac_exec_ext in '' $ac_executable_extensions; do
11740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11741 ac_cv_prog_TCLSH_CMD="$ac_prog"
11742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11743 break 2
11745 done
11746 done
11747 IFS=$as_save_IFS
11751 TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
11752 if test -n "$TCLSH_CMD"; then
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
11754 $as_echo "$TCLSH_CMD" >&6; }
11755 else
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757 $as_echo "no" >&6; }
11761 test -n "$TCLSH_CMD" && break
11762 done
11763 test -n "$TCLSH_CMD" || TCLSH_CMD="none"
11765 if test "$TCLSH_CMD" = "none"; then
11766 # If we can't find a local tclsh, then building the amalgamation will fail.
11767 # We act as though --disable-amalgamation has been used.
11768 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
11769 USE_AMALGAMATION=0
11770 TCLSH_CMD="tclsh"
11775 if test "x${TCLLIBDIR+set}" != "xset" ; then
11776 TCLLIBDIR='$(libdir)'
11777 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
11778 if test -d $i ; then
11779 TCLLIBDIR=$i
11780 break
11782 done
11783 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
11786 #########
11787 # Set up an appropriate program prefix
11789 if test "$program_prefix" = "NONE"; then
11790 program_prefix=""
11794 VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
11796 $as_echo "$as_me: Version set to $VERSION" >&6;}
11798 RELEASE=`cat $srcdir/VERSION`
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
11800 $as_echo "$as_me: Release set to $RELEASE" >&6;}
11803 ##########
11804 # Handle --with-wasi-sdk=DIR
11806 # This must be early because it changes the toolchain.
11809 # Check whether --with-wasi-sdk was given.
11810 if test "${with_wasi_sdk+set}" = set; then :
11811 withval=$with_wasi_sdk; with_wasisdk=${withval}
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WASI SDK directory" >&5
11815 $as_echo_n "checking for WASI SDK directory... " >&6; }
11816 if ${ac_cv_c_wasi_sdk+:} false; then :
11817 $as_echo_n "(cached) " >&6
11818 else
11820 # First check to see if --with-tcl was specified.
11821 if test x"${with_wasi_sdk}" != x ; then
11822 if ! test -d "${with_wasi_sdk}" ; then
11823 as_fn_error $? "${with_wasi_sdk} directory doesn't exist" "$LINENO" 5
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_wasi_sdk}: using wasi-sdk clang, disabling: tcl, CLI shell, DLL" >&5
11826 $as_echo "${with_wasi_sdk}: using wasi-sdk clang, disabling: tcl, CLI shell, DLL" >&6; }
11827 use_wasi_sdk=yes
11828 else
11829 use_wasi_sdk=no
11834 if test "${use_wasi_sdk}" = "no" ; then
11835 HAVE_WASI_SDK=""
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837 $as_echo "no" >&6; }
11838 else
11839 HAVE_WASI_SDK=1
11840 # Changing --host and --target have no effect here except to possibly
11841 # cause confusion. autoconf has finished processing them by this
11842 # point.
11844 # host_alias=wasm32-wasi
11845 # target=wasm32-wasi
11847 # Merely changing CC and LD to the wasi-sdk's is enough to get
11848 # sqlite3.o building in WASM format.
11849 CC="${with_wasi_sdk}/bin/clang"
11850 LD="${with_wasi_sdk}/bin/wasm-ld"
11851 RANLIB="${with_wasi_sdk}/bin/llvm-ranlib"
11852 cross_compiling=yes
11853 enable_threadsafe=no
11854 use_tcl=no
11855 enable_tcl=no
11856 # libtool is apparently hard-coded to use gcc for linking DLLs, so
11857 # we disable the DLL build...
11858 enable_shared=no
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11860 $as_echo "yes" >&6; }
11865 #########
11866 # Locate a compiler for the build machine. This compiler should
11867 # generate command-line programs that run on the build machine.
11869 if test x"$cross_compiling" = xno; then
11870 BUILD_CC=$CC
11871 BUILD_CFLAGS=$CFLAGS
11872 else
11873 if test "${BUILD_CC+set}" != set; then
11874 for ac_prog in gcc cc cl
11876 # Extract the first word of "$ac_prog", so it can be a program name with args.
11877 set dummy $ac_prog; ac_word=$2
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11879 $as_echo_n "checking for $ac_word... " >&6; }
11880 if ${ac_cv_prog_BUILD_CC+:} false; then :
11881 $as_echo_n "(cached) " >&6
11882 else
11883 if test -n "$BUILD_CC"; then
11884 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11885 else
11886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11887 for as_dir in $PATH
11889 IFS=$as_save_IFS
11890 test -z "$as_dir" && as_dir=.
11891 for ac_exec_ext in '' $ac_executable_extensions; do
11892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11893 ac_cv_prog_BUILD_CC="$ac_prog"
11894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11895 break 2
11897 done
11898 done
11899 IFS=$as_save_IFS
11903 BUILD_CC=$ac_cv_prog_BUILD_CC
11904 if test -n "$BUILD_CC"; then
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
11906 $as_echo "$BUILD_CC" >&6; }
11907 else
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909 $as_echo "no" >&6; }
11913 test -n "$BUILD_CC" && break
11914 done
11917 if test "${BUILD_CFLAGS+set}" != set; then
11918 BUILD_CFLAGS="-g"
11923 ##########
11924 # Do we want to support multithreaded use of sqlite
11926 # Check whether --enable-threadsafe was given.
11927 if test "${enable_threadsafe+set}" = set; then :
11928 enableval=$enable_threadsafe;
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
11932 $as_echo_n "checking whether to support threadsafe operation... " >&6; }
11933 if test "$enable_threadsafe" = "no"; then
11934 SQLITE_THREADSAFE=0
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11936 $as_echo "no" >&6; }
11937 else
11938 SQLITE_THREADSAFE=1
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11940 $as_echo "yes" >&6; }
11944 if test "$SQLITE_THREADSAFE" = "1"; then
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
11946 $as_echo_n "checking for library containing pthread_create... " >&6; }
11947 if ${ac_cv_search_pthread_create+:} false; then :
11948 $as_echo_n "(cached) " >&6
11949 else
11950 ac_func_search_save_LIBS=$LIBS
11951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952 /* end confdefs.h. */
11954 /* Override any GCC internal prototype to avoid an error.
11955 Use char because int might match the return type of a GCC
11956 builtin and then its argument prototype would still apply. */
11957 #ifdef __cplusplus
11958 extern "C"
11959 #endif
11960 char pthread_create ();
11962 main ()
11964 return pthread_create ();
11966 return 0;
11968 _ACEOF
11969 for ac_lib in '' pthread; do
11970 if test -z "$ac_lib"; then
11971 ac_res="none required"
11972 else
11973 ac_res=-l$ac_lib
11974 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11976 if ac_fn_c_try_link "$LINENO"; then :
11977 ac_cv_search_pthread_create=$ac_res
11979 rm -f core conftest.err conftest.$ac_objext \
11980 conftest$ac_exeext
11981 if ${ac_cv_search_pthread_create+:} false; then :
11982 break
11984 done
11985 if ${ac_cv_search_pthread_create+:} false; then :
11987 else
11988 ac_cv_search_pthread_create=no
11990 rm conftest.$ac_ext
11991 LIBS=$ac_func_search_save_LIBS
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
11994 $as_echo "$ac_cv_search_pthread_create" >&6; }
11995 ac_res=$ac_cv_search_pthread_create
11996 if test "$ac_res" != no; then :
11997 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
12002 $as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
12003 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
12004 $as_echo_n "(cached) " >&6
12005 else
12006 ac_func_search_save_LIBS=$LIBS
12007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12008 /* end confdefs.h. */
12010 /* Override any GCC internal prototype to avoid an error.
12011 Use char because int might match the return type of a GCC
12012 builtin and then its argument prototype would still apply. */
12013 #ifdef __cplusplus
12014 extern "C"
12015 #endif
12016 char pthread_mutexattr_init ();
12018 main ()
12020 return pthread_mutexattr_init ();
12022 return 0;
12024 _ACEOF
12025 for ac_lib in '' pthread; do
12026 if test -z "$ac_lib"; then
12027 ac_res="none required"
12028 else
12029 ac_res=-l$ac_lib
12030 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12032 if ac_fn_c_try_link "$LINENO"; then :
12033 ac_cv_search_pthread_mutexattr_init=$ac_res
12035 rm -f core conftest.err conftest.$ac_objext \
12036 conftest$ac_exeext
12037 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
12038 break
12040 done
12041 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
12043 else
12044 ac_cv_search_pthread_mutexattr_init=no
12046 rm conftest.$ac_ext
12047 LIBS=$ac_func_search_save_LIBS
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
12050 $as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
12051 ac_res=$ac_cv_search_pthread_mutexattr_init
12052 if test "$ac_res" != no; then :
12053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12059 ##########
12060 # Which crypto library do we use
12063 # Check whether --with-crypto-lib was given.
12064 if test "${with_crypto_lib+set}" = set; then :
12065 withval=$with_crypto_lib; crypto_lib=$withval
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto library to use" >&5
12069 $as_echo_n "checking for crypto library to use... " >&6; }
12070 if test "$crypto_lib" = "none"; then
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12072 $as_echo "none" >&6; }
12073 else
12074 if test "$crypto_lib" = "commoncrypto"; then
12075 CFLAGS="$CFLAGS -DSQLCIPHER_CRYPTO_CC"
12076 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_CC"
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: commoncrypto" >&5
12078 $as_echo "commoncrypto" >&6; }
12079 else
12080 if test "$crypto_lib" = "libtomcrypt"; then
12081 CFLAGS="$CFLAGS -DSQLCIPHER_CRYPTO_LIBTOMCRYPT"
12082 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_LIBTOMCRYPT"
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libtomcrypt" >&5
12084 $as_echo "libtomcrypt" >&6; }
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for register_cipher in -ltomcrypt" >&5
12086 $as_echo_n "checking for register_cipher in -ltomcrypt... " >&6; }
12087 if ${ac_cv_lib_tomcrypt_register_cipher+:} false; then :
12088 $as_echo_n "(cached) " >&6
12089 else
12090 ac_check_lib_save_LIBS=$LIBS
12091 LIBS="-ltomcrypt $LIBS"
12092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093 /* end confdefs.h. */
12095 /* Override any GCC internal prototype to avoid an error.
12096 Use char because int might match the return type of a GCC
12097 builtin and then its argument prototype would still apply. */
12098 #ifdef __cplusplus
12099 extern "C"
12100 #endif
12101 char register_cipher ();
12103 main ()
12105 return register_cipher ();
12107 return 0;
12109 _ACEOF
12110 if ac_fn_c_try_link "$LINENO"; then :
12111 ac_cv_lib_tomcrypt_register_cipher=yes
12112 else
12113 ac_cv_lib_tomcrypt_register_cipher=no
12115 rm -f core conftest.err conftest.$ac_objext \
12116 conftest$ac_exeext conftest.$ac_ext
12117 LIBS=$ac_check_lib_save_LIBS
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tomcrypt_register_cipher" >&5
12120 $as_echo "$ac_cv_lib_tomcrypt_register_cipher" >&6; }
12121 if test "x$ac_cv_lib_tomcrypt_register_cipher" = xyes; then :
12122 cat >>confdefs.h <<_ACEOF
12123 #define HAVE_LIBTOMCRYPT 1
12124 _ACEOF
12126 LIBS="-ltomcrypt $LIBS"
12128 else
12129 as_fn_error $? "Library crypto not found. Install libtomcrypt!\"" "$LINENO" 5
12132 else
12133 if test "$crypto_lib" = "nss"; then
12134 CFLAGS="$CFLAGS -DSQLCIPHER_CRYPTO_NSS"
12135 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_NSS"
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nss3" >&5
12137 $as_echo "nss3" >&6; }
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PK11_Decrypt in -lnss3" >&5
12139 $as_echo_n "checking for PK11_Decrypt in -lnss3... " >&6; }
12140 if ${ac_cv_lib_nss3_PK11_Decrypt+:} false; then :
12141 $as_echo_n "(cached) " >&6
12142 else
12143 ac_check_lib_save_LIBS=$LIBS
12144 LIBS="-lnss3 $LIBS"
12145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12146 /* end confdefs.h. */
12148 /* Override any GCC internal prototype to avoid an error.
12149 Use char because int might match the return type of a GCC
12150 builtin and then its argument prototype would still apply. */
12151 #ifdef __cplusplus
12152 extern "C"
12153 #endif
12154 char PK11_Decrypt ();
12156 main ()
12158 return PK11_Decrypt ();
12160 return 0;
12162 _ACEOF
12163 if ac_fn_c_try_link "$LINENO"; then :
12164 ac_cv_lib_nss3_PK11_Decrypt=yes
12165 else
12166 ac_cv_lib_nss3_PK11_Decrypt=no
12168 rm -f core conftest.err conftest.$ac_objext \
12169 conftest$ac_exeext conftest.$ac_ext
12170 LIBS=$ac_check_lib_save_LIBS
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_Decrypt" >&5
12173 $as_echo "$ac_cv_lib_nss3_PK11_Decrypt" >&6; }
12174 if test "x$ac_cv_lib_nss3_PK11_Decrypt" = xyes; then :
12175 cat >>confdefs.h <<_ACEOF
12176 #define HAVE_LIBNSS3 1
12177 _ACEOF
12179 LIBS="-lnss3 $LIBS"
12181 else
12182 as_fn_error $? "Library crypto not found. Install nss!\"" "$LINENO" 5
12185 else
12186 CFLAGS="$CFLAGS -DSQLCIPHER_CRYPTO_OPENSSL"
12187 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_OPENSSL"
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: openssl" >&5
12189 $as_echo "openssl" >&6; }
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
12191 $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
12192 if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
12193 $as_echo_n "(cached) " >&6
12194 else
12195 ac_check_lib_save_LIBS=$LIBS
12196 LIBS="-lcrypto $LIBS"
12197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12198 /* end confdefs.h. */
12200 /* Override any GCC internal prototype to avoid an error.
12201 Use char because int might match the return type of a GCC
12202 builtin and then its argument prototype would still apply. */
12203 #ifdef __cplusplus
12204 extern "C"
12205 #endif
12206 char HMAC_Init_ex ();
12208 main ()
12210 return HMAC_Init_ex ();
12212 return 0;
12214 _ACEOF
12215 if ac_fn_c_try_link "$LINENO"; then :
12216 ac_cv_lib_crypto_HMAC_Init_ex=yes
12217 else
12218 ac_cv_lib_crypto_HMAC_Init_ex=no
12220 rm -f core conftest.err conftest.$ac_objext \
12221 conftest$ac_exeext conftest.$ac_ext
12222 LIBS=$ac_check_lib_save_LIBS
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
12225 $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
12226 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
12227 cat >>confdefs.h <<_ACEOF
12228 #define HAVE_LIBCRYPTO 1
12229 _ACEOF
12231 LIBS="-lcrypto $LIBS"
12233 else
12234 as_fn_error $? "Library crypto not found. Install openssl!\"" "$LINENO" 5
12242 ##########
12243 # Do we want to allow a connection created in one thread to be used
12244 # in another thread. This does not work on many Linux systems (ex: RedHat 9)
12245 # due to bugs in the threading implementations. This is thus off by default.
12247 # Check whether --enable-cross-thread-connections was given.
12248 if test "${enable_cross_thread_connections+set}" = set; then :
12249 enableval=$enable_cross_thread_connections;
12250 else
12251 enable_xthreadconnect=no
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allow connections to be shared across threads" >&5
12255 $as_echo_n "checking whether to allow connections to be shared across threads... " >&6; }
12256 if test "$enable_xthreadconnect" = "no"; then
12257 XTHREADCONNECT=''
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259 $as_echo "no" >&6; }
12260 else
12261 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12263 $as_echo "yes" >&6; }
12267 ##########
12268 # Do we want to support release
12270 # Check whether --enable-releasemode was given.
12271 if test "${enable_releasemode+set}" = set; then :
12272 enableval=$enable_releasemode;
12273 else
12274 enable_releasemode=no
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
12278 $as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
12279 if test "$enable_releasemode" = "no"; then
12280 ALLOWRELEASE=""
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12282 $as_echo "no" >&6; }
12283 else
12284 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12286 $as_echo "yes" >&6; }
12290 ##########
12291 # Do we want temporary databases in memory
12293 # Check whether --enable-tempstore was given.
12294 if test "${enable_tempstore+set}" = set; then :
12295 enableval=$enable_tempstore;
12296 else
12297 enable_tempstore=no
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
12301 $as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
12302 case "$enable_tempstore" in
12303 never )
12304 TEMP_STORE=0
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
12306 $as_echo "never" >&6; }
12308 no )
12309 TEMP_STORE=1
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311 $as_echo "no" >&6; }
12313 yes )
12314 TEMP_STORE=2
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12316 $as_echo "yes" >&6; }
12318 always )
12319 TEMP_STORE=3
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
12321 $as_echo "always" >&6; }
12324 TEMP_STORE=1
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12326 $as_echo "no" >&6; }
12328 esac
12332 ###########
12333 # Lots of things are different if we are compiling for Windows using
12334 # the CYGWIN environment. So check for that special case and handle
12335 # things accordingly.
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
12338 $as_echo_n "checking if executables have the .exe suffix... " >&6; }
12339 if test "$config_BUILD_EXEEXT" = ".exe"; then
12340 CYGWIN=yes
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12342 $as_echo "yes" >&6; }
12343 else
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12345 $as_echo "unknown" >&6; }
12347 if test "$CYGWIN" != "yes"; then
12349 case $host_os in
12350 *cygwin* ) CYGWIN=yes;;
12351 * ) CYGWIN=no;;
12352 esac
12355 if test "$CYGWIN" = "yes"; then
12356 BUILD_EXEEXT=.exe
12357 else
12358 BUILD_EXEEXT=$EXEEXT
12360 if test x"$cross_compiling" = xno; then
12361 TARGET_EXEEXT=$BUILD_EXEEXT
12362 else
12363 TARGET_EXEEXT=$config_TARGET_EXEEXT
12365 if test "$TARGET_EXEEXT" = ".exe"; then
12366 SQLITE_OS_UNIX=0
12367 SQLITE_OS_WIN=1
12368 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
12369 else
12370 SQLITE_OS_UNIX=1
12371 SQLITE_OS_WIN=0
12372 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
12380 ##########
12381 # Figure out all the parameters needed to compile against Tcl.
12383 # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
12384 # macros in the in the tcl.m4 file of the standard TCL distribution.
12385 # Those macros could not be used directly since we have to make some
12386 # minor changes to accomodate systems that do not have TCL installed.
12388 # Check whether --enable-tcl was given.
12389 if test "${enable_tcl+set}" = set; then :
12390 enableval=$enable_tcl; use_tcl=$enableval
12391 else
12392 use_tcl=yes
12395 if test "${use_tcl}" = "yes" ; then
12397 # Check whether --with-tcl was given.
12398 if test "${with_tcl+set}" = set; then :
12399 withval=$with_tcl; with_tclconfig=${withval}
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
12403 $as_echo_n "checking for Tcl configuration... " >&6; }
12404 if ${ac_cv_c_tclconfig+:} false; then :
12405 $as_echo_n "(cached) " >&6
12406 else
12408 # First check to see if --with-tcl was specified.
12409 if test x"${with_tclconfig}" != x ; then
12410 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12411 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
12412 else
12413 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
12417 # Start autosearch by asking tclsh
12418 if test x"${ac_cv_c_tclconfig}" = x ; then
12419 if test x"$cross_compiling" = xno; then
12420 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
12422 if test -f "$i/tclConfig.sh" ; then
12423 ac_cv_c_tclconfig="$i"
12424 break
12426 done
12430 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
12431 # So try again after applying corrections.
12432 if test x"${ac_cv_c_tclconfig}" = x ; then
12433 if test x"$cross_compiling" = xno; then
12434 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
12436 if test -f "$i/tclConfig.sh" ; then
12437 ac_cv_c_tclconfig="$i"
12438 break
12440 done
12444 # Recent versions of Xcode on Macs hid the tclConfig.sh file
12445 # in a strange place.
12446 if test x"${ac_cv_c_tclconfig}" = x ; then
12447 if test x"$cross_compiling" = xno; then
12448 for i in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.sdk/usr/lib
12450 if test -f "$i/tclConfig.sh" ; then
12451 ac_cv_c_tclconfig="$i"
12452 break
12454 done
12458 # then check for a private Tcl installation
12459 if test x"${ac_cv_c_tclconfig}" = x ; then
12460 for i in \
12461 ../tcl \
12462 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12463 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12464 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12465 ../../tcl \
12466 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12467 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12468 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12469 ../../../tcl \
12470 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12471 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12472 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
12474 if test -f "$i/unix/tclConfig.sh" ; then
12475 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12476 break
12478 done
12481 # check in a few common install locations
12482 if test x"${ac_cv_c_tclconfig}" = x ; then
12483 for i in \
12484 `ls -d ${libdir} 2>/dev/null` \
12485 `ls -d /usr/local/lib 2>/dev/null` \
12486 `ls -d /usr/contrib/lib 2>/dev/null` \
12487 `ls -d /usr/lib 2>/dev/null`
12489 if test -f "$i/tclConfig.sh" ; then
12490 ac_cv_c_tclconfig=`(cd $i; pwd)`
12491 break
12493 done
12496 # check in a few other private locations
12497 if test x"${ac_cv_c_tclconfig}" = x ; then
12498 for i in \
12499 ${srcdir}/../tcl \
12500 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12501 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12502 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
12504 if test -f "$i/unix/tclConfig.sh" ; then
12505 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12506 break
12508 done
12514 if test x"${ac_cv_c_tclconfig}" = x ; then
12515 use_tcl=no
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
12517 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
12519 $as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
12521 $as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
12522 else
12523 TCL_BIN_DIR=${ac_cv_c_tclconfig}
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
12525 $as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
12528 $as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
12529 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
12531 $as_echo "loading" >&6; }
12532 . $TCL_BIN_DIR/tclConfig.sh
12533 else
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
12535 $as_echo "file not found" >&6; }
12539 # If the TCL_BIN_DIR is the build directory (not the install directory),
12540 # then set the common variable name to the value of the build variables.
12541 # For example, the variable TCL_LIB_SPEC will be set to the value
12542 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12543 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12544 # installed and uninstalled version of Tcl.
12547 if test -f $TCL_BIN_DIR/Makefile ; then
12548 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
12549 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
12550 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
12554 # eval is required to do the TCL_DBGX substitution
12557 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12558 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12559 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12561 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12562 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12563 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12580 if test "${use_tcl}" = "no" ; then
12581 HAVE_TCL=""
12582 else
12583 HAVE_TCL=1
12587 ##########
12588 # Figure out what C libraries are required to compile programs
12589 # that use "readline()" library.
12591 TARGET_READLINE_LIBS=""
12592 TARGET_READLINE_INC=""
12593 TARGET_HAVE_READLINE=0
12594 TARGET_HAVE_EDITLINE=0
12595 # Check whether --enable-editline was given.
12596 if test "${enable_editline+set}" = set; then :
12597 enableval=$enable_editline; with_editline=$enableval
12598 else
12599 with_editline=auto
12602 # Check whether --enable-readline was given.
12603 if test "${enable_readline+set}" = set; then :
12604 enableval=$enable_readline; with_readline=$enableval
12605 else
12606 with_readline=auto
12610 if test x"$with_editline" != xno; then
12611 sLIBS=$LIBS
12612 LIBS=""
12613 TARGET_HAVE_EDITLINE=1
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
12615 $as_echo_n "checking for library containing readline... " >&6; }
12616 if ${ac_cv_search_readline+:} false; then :
12617 $as_echo_n "(cached) " >&6
12618 else
12619 ac_func_search_save_LIBS=$LIBS
12620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h. */
12623 /* Override any GCC internal prototype to avoid an error.
12624 Use char because int might match the return type of a GCC
12625 builtin and then its argument prototype would still apply. */
12626 #ifdef __cplusplus
12627 extern "C"
12628 #endif
12629 char readline ();
12631 main ()
12633 return readline ();
12635 return 0;
12637 _ACEOF
12638 for ac_lib in '' edit; do
12639 if test -z "$ac_lib"; then
12640 ac_res="none required"
12641 else
12642 ac_res=-l$ac_lib
12643 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12645 if ac_fn_c_try_link "$LINENO"; then :
12646 ac_cv_search_readline=$ac_res
12648 rm -f core conftest.err conftest.$ac_objext \
12649 conftest$ac_exeext
12650 if ${ac_cv_search_readline+:} false; then :
12651 break
12653 done
12654 if ${ac_cv_search_readline+:} false; then :
12656 else
12657 ac_cv_search_readline=no
12659 rm conftest.$ac_ext
12660 LIBS=$ac_func_search_save_LIBS
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
12663 $as_echo "$ac_cv_search_readline" >&6; }
12664 ac_res=$ac_cv_search_readline
12665 if test "$ac_res" != no; then :
12666 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12667 with_readline=no
12668 else
12669 TARGET_HAVE_EDITLINE=0
12672 TARGET_READLINE_LIBS=$LIBS
12673 LIBS=$sLIBS
12675 if test x"$with_readline" != xno; then
12676 found="yes"
12679 # Check whether --with-readline-lib was given.
12680 if test "${with_readline_lib+set}" = set; then :
12681 withval=$with_readline_lib; with_readline_lib=$withval
12682 else
12683 with_readline_lib="auto"
12686 if test "x$with_readline_lib" = xauto; then
12687 save_LIBS="$LIBS"
12688 LIBS=""
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
12690 $as_echo_n "checking for library containing tgetent... " >&6; }
12691 if ${ac_cv_search_tgetent+:} false; then :
12692 $as_echo_n "(cached) " >&6
12693 else
12694 ac_func_search_save_LIBS=$LIBS
12695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12696 /* end confdefs.h. */
12698 /* Override any GCC internal prototype to avoid an error.
12699 Use char because int might match the return type of a GCC
12700 builtin and then its argument prototype would still apply. */
12701 #ifdef __cplusplus
12702 extern "C"
12703 #endif
12704 char tgetent ();
12706 main ()
12708 return tgetent ();
12710 return 0;
12712 _ACEOF
12713 for ac_lib in '' readline ncurses curses termcap; do
12714 if test -z "$ac_lib"; then
12715 ac_res="none required"
12716 else
12717 ac_res=-l$ac_lib
12718 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12720 if ac_fn_c_try_link "$LINENO"; then :
12721 ac_cv_search_tgetent=$ac_res
12723 rm -f core conftest.err conftest.$ac_objext \
12724 conftest$ac_exeext
12725 if ${ac_cv_search_tgetent+:} false; then :
12726 break
12728 done
12729 if ${ac_cv_search_tgetent+:} false; then :
12731 else
12732 ac_cv_search_tgetent=no
12734 rm conftest.$ac_ext
12735 LIBS=$ac_func_search_save_LIBS
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
12738 $as_echo "$ac_cv_search_tgetent" >&6; }
12739 ac_res=$ac_cv_search_tgetent
12740 if test "$ac_res" != no; then :
12741 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12742 term_LIBS="$LIBS"
12743 else
12744 term_LIBS=""
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
12748 $as_echo_n "checking for readline in -lreadline... " >&6; }
12749 if ${ac_cv_lib_readline_readline+:} false; then :
12750 $as_echo_n "(cached) " >&6
12751 else
12752 ac_check_lib_save_LIBS=$LIBS
12753 LIBS="-lreadline $LIBS"
12754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h. */
12757 /* Override any GCC internal prototype to avoid an error.
12758 Use char because int might match the return type of a GCC
12759 builtin and then its argument prototype would still apply. */
12760 #ifdef __cplusplus
12761 extern "C"
12762 #endif
12763 char readline ();
12765 main ()
12767 return readline ();
12769 return 0;
12771 _ACEOF
12772 if ac_fn_c_try_link "$LINENO"; then :
12773 ac_cv_lib_readline_readline=yes
12774 else
12775 ac_cv_lib_readline_readline=no
12777 rm -f core conftest.err conftest.$ac_objext \
12778 conftest$ac_exeext conftest.$ac_ext
12779 LIBS=$ac_check_lib_save_LIBS
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
12782 $as_echo "$ac_cv_lib_readline_readline" >&6; }
12783 if test "x$ac_cv_lib_readline_readline" = xyes; then :
12784 TARGET_READLINE_LIBS="-lreadline"
12785 else
12786 found="no"
12789 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
12790 LIBS="$save_LIBS"
12791 else
12792 TARGET_READLINE_LIBS="$with_readline_lib"
12796 # Check whether --with-readline-inc was given.
12797 if test "${with_readline_inc+set}" = set; then :
12798 withval=$with_readline_inc; with_readline_inc=$withval
12799 else
12800 with_readline_inc="auto"
12803 if test "x$with_readline_inc" = xauto; then
12804 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
12805 if test "x$ac_cv_header_readline_h" = xyes; then :
12806 found="yes"
12807 else
12809 found="no"
12810 if test "$cross_compiling" != yes; then
12811 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
12812 for subdir in include include/readline; do
12813 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
12815 $as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
12816 if eval \${$as_ac_File+:} false; then :
12817 $as_echo_n "(cached) " >&6
12818 else
12819 test "$cross_compiling" = yes &&
12820 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
12821 if test -r "$dir/$subdir/readline.h"; then
12822 eval "$as_ac_File=yes"
12823 else
12824 eval "$as_ac_File=no"
12827 eval ac_res=\$$as_ac_File
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12829 $as_echo "$ac_res" >&6; }
12830 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
12831 found=yes
12834 if test "$found" = "yes"; then
12835 TARGET_READLINE_INC="-I$dir/$subdir"
12836 break
12838 done
12839 test "$found" = "yes" && break
12840 done
12846 else
12847 TARGET_READLINE_INC="$with_readline_inc"
12850 if test x"$found" = xno; then
12851 TARGET_READLINE_LIBS=""
12852 TARGET_READLINE_INC=""
12853 TARGET_HAVE_READLINE=0
12854 else
12855 TARGET_HAVE_READLINE=1
12864 ##########
12865 # Figure out what C libraries are required to compile programs
12866 # that use "fdatasync()" function.
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
12869 $as_echo_n "checking for library containing fdatasync... " >&6; }
12870 if ${ac_cv_search_fdatasync+:} false; then :
12871 $as_echo_n "(cached) " >&6
12872 else
12873 ac_func_search_save_LIBS=$LIBS
12874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12875 /* end confdefs.h. */
12877 /* Override any GCC internal prototype to avoid an error.
12878 Use char because int might match the return type of a GCC
12879 builtin and then its argument prototype would still apply. */
12880 #ifdef __cplusplus
12881 extern "C"
12882 #endif
12883 char fdatasync ();
12885 main ()
12887 return fdatasync ();
12889 return 0;
12891 _ACEOF
12892 for ac_lib in '' rt; do
12893 if test -z "$ac_lib"; then
12894 ac_res="none required"
12895 else
12896 ac_res=-l$ac_lib
12897 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12899 if ac_fn_c_try_link "$LINENO"; then :
12900 ac_cv_search_fdatasync=$ac_res
12902 rm -f core conftest.err conftest.$ac_objext \
12903 conftest$ac_exeext
12904 if ${ac_cv_search_fdatasync+:} false; then :
12905 break
12907 done
12908 if ${ac_cv_search_fdatasync+:} false; then :
12910 else
12911 ac_cv_search_fdatasync=no
12913 rm conftest.$ac_ext
12914 LIBS=$ac_func_search_save_LIBS
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
12917 $as_echo "$ac_cv_search_fdatasync" >&6; }
12918 ac_res=$ac_cv_search_fdatasync
12919 if test "$ac_res" != no; then :
12920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12925 #########
12926 # check for debug enabled
12927 # Check whether --enable-debug was given.
12928 if test "${enable_debug+set}" = set; then :
12929 enableval=$enable_debug;
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build type" >&5
12933 $as_echo_n "checking build type... " >&6; }
12934 if test "${enable_debug}" = "yes" ; then
12935 TARGET_DEBUG="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0"
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
12937 $as_echo "debug" >&6; }
12938 else
12939 TARGET_DEBUG="-DNDEBUG"
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5
12941 $as_echo "release" >&6; }
12945 #########
12946 # See whether we should use the amalgamation to build
12948 # Check whether --enable-amalgamation was given.
12949 if test "${enable_amalgamation+set}" = set; then :
12950 enableval=$enable_amalgamation;
12953 if test "${enable_amalgamation}" = "no" ; then
12954 USE_AMALGAMATION=0
12958 #########
12959 # By default, amalgamation sqlite3.c will have #line directives.
12960 # This is a build option not shown by ./configure --help
12961 # To control it, use configure option: amalgamation_line_macros=?
12962 # where ? is no to suppress #line directives or yes to create them.
12963 AMALGAMATION_LINE_MACROS=--linemacros=1
12966 if test "${amalgamation_line_macros+set}" = set; then :
12967 enableval=$amalgamation_line_macros;
12969 if test "${amalgamation_line_macros}" = "yes" ; then
12970 AMALGAMATION_LINE_MACROS=--linemacros=1
12972 if test "${amalgamation_line_macros}" = "no" ; then
12973 AMALGAMATION_LINE_MACROS=--linemacros=0
12976 #########
12977 # Look for zlib. Only needed by extensions and by the sqlite3.exe shell
12978 for ac_header in zlib.h
12979 do :
12980 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12981 if test "x$ac_cv_header_zlib_h" = xyes; then :
12982 cat >>confdefs.h <<_ACEOF
12983 #define HAVE_ZLIB_H 1
12984 _ACEOF
12988 done
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
12991 $as_echo_n "checking for library containing deflate... " >&6; }
12992 if ${ac_cv_search_deflate+:} false; then :
12993 $as_echo_n "(cached) " >&6
12994 else
12995 ac_func_search_save_LIBS=$LIBS
12996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h. */
12999 /* Override any GCC internal prototype to avoid an error.
13000 Use char because int might match the return type of a GCC
13001 builtin and then its argument prototype would still apply. */
13002 #ifdef __cplusplus
13003 extern "C"
13004 #endif
13005 char deflate ();
13007 main ()
13009 return deflate ();
13011 return 0;
13013 _ACEOF
13014 for ac_lib in '' z; do
13015 if test -z "$ac_lib"; then
13016 ac_res="none required"
13017 else
13018 ac_res=-l$ac_lib
13019 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13021 if ac_fn_c_try_link "$LINENO"; then :
13022 ac_cv_search_deflate=$ac_res
13024 rm -f core conftest.err conftest.$ac_objext \
13025 conftest$ac_exeext
13026 if ${ac_cv_search_deflate+:} false; then :
13027 break
13029 done
13030 if ${ac_cv_search_deflate+:} false; then :
13032 else
13033 ac_cv_search_deflate=no
13035 rm conftest.$ac_ext
13036 LIBS=$ac_func_search_save_LIBS
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
13039 $as_echo "$ac_cv_search_deflate" >&6; }
13040 ac_res=$ac_cv_search_deflate
13041 if test "$ac_res" != no; then :
13042 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13043 HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1"
13044 else
13045 HAVE_ZLIB=""
13050 #########
13051 # See whether we should allow loadable extensions
13052 # Check whether --enable-load-extension was given.
13053 if test "${enable_load_extension+set}" = set; then :
13054 enableval=$enable_load_extension;
13055 else
13056 enable_load_extension=yes
13059 if test "${enable_load_extension}" = "yes" ; then
13060 OPT_FEATURE_FLAGS=""
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13062 $as_echo_n "checking for library containing dlopen... " >&6; }
13063 if ${ac_cv_search_dlopen+:} false; then :
13064 $as_echo_n "(cached) " >&6
13065 else
13066 ac_func_search_save_LIBS=$LIBS
13067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13068 /* end confdefs.h. */
13070 /* Override any GCC internal prototype to avoid an error.
13071 Use char because int might match the return type of a GCC
13072 builtin and then its argument prototype would still apply. */
13073 #ifdef __cplusplus
13074 extern "C"
13075 #endif
13076 char dlopen ();
13078 main ()
13080 return dlopen ();
13082 return 0;
13084 _ACEOF
13085 for ac_lib in '' dl; do
13086 if test -z "$ac_lib"; then
13087 ac_res="none required"
13088 else
13089 ac_res=-l$ac_lib
13090 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13092 if ac_fn_c_try_link "$LINENO"; then :
13093 ac_cv_search_dlopen=$ac_res
13095 rm -f core conftest.err conftest.$ac_objext \
13096 conftest$ac_exeext
13097 if ${ac_cv_search_dlopen+:} false; then :
13098 break
13100 done
13101 if ${ac_cv_search_dlopen+:} false; then :
13103 else
13104 ac_cv_search_dlopen=no
13106 rm conftest.$ac_ext
13107 LIBS=$ac_func_search_save_LIBS
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13110 $as_echo "$ac_cv_search_dlopen" >&6; }
13111 ac_res=$ac_cv_search_dlopen
13112 if test "$ac_res" != no; then :
13113 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13117 else
13118 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
13121 ##########
13122 # Do we want to support math functions
13124 # Check whether --enable-math was given.
13125 if test "${enable_math+set}" = set; then :
13126 enableval=$enable_math;
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support math functions" >&5
13130 $as_echo_n "checking whether to support math functions... " >&6; }
13131 if test "$enable_math" = "no"; then
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13133 $as_echo "no" >&6; }
13134 else
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13136 $as_echo "yes" >&6; }
13137 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MATH_FUNCTIONS"
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5
13139 $as_echo_n "checking for library containing ceil... " >&6; }
13140 if ${ac_cv_search_ceil+:} false; then :
13141 $as_echo_n "(cached) " >&6
13142 else
13143 ac_func_search_save_LIBS=$LIBS
13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13145 /* end confdefs.h. */
13147 /* Override any GCC internal prototype to avoid an error.
13148 Use char because int might match the return type of a GCC
13149 builtin and then its argument prototype would still apply. */
13150 #ifdef __cplusplus
13151 extern "C"
13152 #endif
13153 char ceil ();
13155 main ()
13157 return ceil ();
13159 return 0;
13161 _ACEOF
13162 for ac_lib in '' m; do
13163 if test -z "$ac_lib"; then
13164 ac_res="none required"
13165 else
13166 ac_res=-l$ac_lib
13167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13169 if ac_fn_c_try_link "$LINENO"; then :
13170 ac_cv_search_ceil=$ac_res
13172 rm -f core conftest.err conftest.$ac_objext \
13173 conftest$ac_exeext
13174 if ${ac_cv_search_ceil+:} false; then :
13175 break
13177 done
13178 if ${ac_cv_search_ceil+:} false; then :
13180 else
13181 ac_cv_search_ceil=no
13183 rm conftest.$ac_ext
13184 LIBS=$ac_func_search_save_LIBS
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5
13187 $as_echo "$ac_cv_search_ceil" >&6; }
13188 ac_res=$ac_cv_search_ceil
13189 if test "$ac_res" != no; then :
13190 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13196 ##########
13197 # Do we want to support JSON functions
13199 # Check whether --enable-json was given.
13200 if test "${enable_json+set}" = set; then :
13201 enableval=$enable_json;
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support JSON functions" >&5
13205 $as_echo_n "checking whether to support JSON functions... " >&6; }
13206 if test "$enable_json" = "no"; then
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13208 $as_echo "no" >&6; }
13209 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_OMIT_JSON"
13210 else
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13212 $as_echo "yes" >&6; }
13215 ########
13216 # The --enable-all argument is short-hand to enable
13217 # multiple extensions.
13218 # Check whether --enable-all was given.
13219 if test "${enable_all+set}" = set; then :
13220 enableval=$enable_all;
13224 ##########
13225 # Do we want to support memsys3 and/or memsys5
13227 # Check whether --enable-memsys5 was given.
13228 if test "${enable_memsys5+set}" = set; then :
13229 enableval=$enable_memsys5;
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5
13233 $as_echo_n "checking whether to support MEMSYS5... " >&6; }
13234 if test "${enable_memsys5}" = "yes"; then
13235 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5"
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13237 $as_echo "yes" >&6; }
13238 else
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13240 $as_echo "no" >&6; }
13242 # Check whether --enable-memsys3 was given.
13243 if test "${enable_memsys3+set}" = set; then :
13244 enableval=$enable_memsys3;
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5
13248 $as_echo_n "checking whether to support MEMSYS3... " >&6; }
13249 if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then
13250 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3"
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13252 $as_echo "yes" >&6; }
13253 else
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255 $as_echo "no" >&6; }
13258 #########
13259 # See whether we should enable Full Text Search extensions
13260 # Check whether --enable-fts3 was given.
13261 if test "${enable_fts3+set}" = set; then :
13262 enableval=$enable_fts3;
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS3" >&5
13266 $as_echo_n "checking whether to support FTS3... " >&6; }
13267 if test "${enable_fts3}" = "yes" ; then
13268 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3"
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13270 $as_echo "yes" >&6; }
13271 else
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13273 $as_echo "no" >&6; }
13275 # Check whether --enable-fts4 was given.
13276 if test "${enable_fts4+set}" = set; then :
13277 enableval=$enable_fts4;
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS4" >&5
13281 $as_echo_n "checking whether to support FTS4... " >&6; }
13282 if test "${enable_fts4}" = "yes" -o "${enable_all}" = "yes" ; then
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13284 $as_echo "yes" >&6; }
13285 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4"
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
13287 $as_echo_n "checking for library containing log... " >&6; }
13288 if ${ac_cv_search_log+:} false; then :
13289 $as_echo_n "(cached) " >&6
13290 else
13291 ac_func_search_save_LIBS=$LIBS
13292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293 /* end confdefs.h. */
13295 /* Override any GCC internal prototype to avoid an error.
13296 Use char because int might match the return type of a GCC
13297 builtin and then its argument prototype would still apply. */
13298 #ifdef __cplusplus
13299 extern "C"
13300 #endif
13301 char log ();
13303 main ()
13305 return log ();
13307 return 0;
13309 _ACEOF
13310 for ac_lib in '' m; do
13311 if test -z "$ac_lib"; then
13312 ac_res="none required"
13313 else
13314 ac_res=-l$ac_lib
13315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13317 if ac_fn_c_try_link "$LINENO"; then :
13318 ac_cv_search_log=$ac_res
13320 rm -f core conftest.err conftest.$ac_objext \
13321 conftest$ac_exeext
13322 if ${ac_cv_search_log+:} false; then :
13323 break
13325 done
13326 if ${ac_cv_search_log+:} false; then :
13328 else
13329 ac_cv_search_log=no
13331 rm conftest.$ac_ext
13332 LIBS=$ac_func_search_save_LIBS
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
13335 $as_echo "$ac_cv_search_log" >&6; }
13336 ac_res=$ac_cv_search_log
13337 if test "$ac_res" != no; then :
13338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13342 else
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13344 $as_echo "no" >&6; }
13346 # Check whether --enable-fts5 was given.
13347 if test "${enable_fts5+set}" = set; then :
13348 enableval=$enable_fts5;
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS5" >&5
13352 $as_echo_n "checking whether to support FTS5... " >&6; }
13353 if test "${enable_fts5}" = "yes" -o "${enable_all}" = "yes" ; then
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13355 $as_echo "yes" >&6; }
13356 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5"
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
13358 $as_echo_n "checking for library containing log... " >&6; }
13359 if ${ac_cv_search_log+:} false; then :
13360 $as_echo_n "(cached) " >&6
13361 else
13362 ac_func_search_save_LIBS=$LIBS
13363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13364 /* end confdefs.h. */
13366 /* Override any GCC internal prototype to avoid an error.
13367 Use char because int might match the return type of a GCC
13368 builtin and then its argument prototype would still apply. */
13369 #ifdef __cplusplus
13370 extern "C"
13371 #endif
13372 char log ();
13374 main ()
13376 return log ();
13378 return 0;
13380 _ACEOF
13381 for ac_lib in '' m; do
13382 if test -z "$ac_lib"; then
13383 ac_res="none required"
13384 else
13385 ac_res=-l$ac_lib
13386 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13388 if ac_fn_c_try_link "$LINENO"; then :
13389 ac_cv_search_log=$ac_res
13391 rm -f core conftest.err conftest.$ac_objext \
13392 conftest$ac_exeext
13393 if ${ac_cv_search_log+:} false; then :
13394 break
13396 done
13397 if ${ac_cv_search_log+:} false; then :
13399 else
13400 ac_cv_search_log=no
13402 rm conftest.$ac_ext
13403 LIBS=$ac_func_search_save_LIBS
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
13406 $as_echo "$ac_cv_search_log" >&6; }
13407 ac_res=$ac_cv_search_log
13408 if test "$ac_res" != no; then :
13409 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13413 else
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13415 $as_echo "no" >&6; }
13418 #########
13419 # See whether we should enable the LIMIT clause on UPDATE and DELETE
13420 # statements.
13421 # Check whether --enable-update-limit was given.
13422 if test "${enable_update_limit+set}" = set; then :
13423 enableval=$enable_update_limit;
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support LIMIT on UPDATE and DELETE statements" >&5
13427 $as_echo_n "checking whether to support LIMIT on UPDATE and DELETE statements... " >&6; }
13428 if test "${enable_update_limit}" = "yes" ; then
13429 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT"
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13431 $as_echo "yes" >&6; }
13432 else
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13434 $as_echo "no" >&6; }
13437 #########
13438 # See whether we should enable GEOPOLY
13439 # Check whether --enable-geopoly was given.
13440 if test "${enable_geopoly+set}" = set; then :
13441 enableval=$enable_geopoly; enable_geopoly=yes
13442 else
13443 enable_geopoly=no
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support GEOPOLY" >&5
13447 $as_echo_n "checking whether to support GEOPOLY... " >&6; }
13448 if test "${enable_geopoly}" = "yes" -o "${enable_all}" = "yes" ; then
13449 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_GEOPOLY"
13450 enable_rtree=yes
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13452 $as_echo "yes" >&6; }
13453 else
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13455 $as_echo "no" >&6; }
13458 #########
13459 # See whether we should enable RTREE
13460 # Check whether --enable-rtree was given.
13461 if test "${enable_rtree+set}" = set; then :
13462 enableval=$enable_rtree;
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support RTREE" >&5
13466 $as_echo_n "checking whether to support RTREE... " >&6; }
13467 if test "${enable_rtree}" = "yes" ; then
13468 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE"
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13470 $as_echo "yes" >&6; }
13471 else
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13473 $as_echo "no" >&6; }
13476 #########
13477 # See whether we should enable the SESSION extension
13478 # Check whether --enable-session was given.
13479 if test "${enable_session+set}" = set; then :
13480 enableval=$enable_session;
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support SESSION" >&5
13484 $as_echo_n "checking whether to support SESSION... " >&6; }
13485 if test "${enable_session}" = "yes" -o "${enable_all}" = "yes" ; then
13486 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION"
13487 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK"
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13489 $as_echo "yes" >&6; }
13490 else
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13492 $as_echo "no" >&6; }
13495 #########
13496 # attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter
13497 for option in $CFLAGS $CPPFLAGS
13499 case $option in
13500 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
13501 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
13502 esac
13503 done
13507 # attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
13508 ac_temp_CFLAGS=""
13509 for option in $CFLAGS
13511 case $option in
13512 -DSQLITE_OMIT*) ;;
13513 -DSQLITE_ENABLE*) ;;
13514 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
13515 esac
13516 done
13517 CFLAGS=$ac_temp_CFLAGS
13520 # attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
13521 ac_temp_CPPFLAGS=""
13522 for option in $CPPFLAGS
13524 case $option in
13525 -DSQLITE_OMIT*) ;;
13526 -DSQLITE_ENABLE*) ;;
13527 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
13528 esac
13529 done
13530 CPPFLAGS=$ac_temp_CPPFLAGS
13533 # attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
13534 ac_temp_BUILD_CFLAGS=""
13535 for option in $BUILD_CFLAGS
13537 case $option in
13538 -DSQLITE_OMIT*) ;;
13539 -DSQLITE_ENABLE*) ;;
13540 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
13541 esac
13542 done
13543 BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
13546 #########
13547 # See whether we should use GCOV
13548 # Check whether --enable-gcov was given.
13549 if test "${enable_gcov+set}" = set; then :
13550 enableval=$enable_gcov;
13553 if test "${use_gcov}" = "yes" ; then
13554 USE_GCOV=1
13555 else
13556 USE_GCOV=0
13560 #########
13561 # Enable/disabled amalagamation line macros
13562 ########
13563 AMALGAMATION_LINE_MACROS=--linemacros=0
13564 if test "${amalgamation_line_macros}" = "yes" ; then
13565 AMALGAMATION_LINE_MACROS=--linemacros=1
13567 if test "${amalgamation_line_macros}" = "no" ; then
13568 AMALGAMATION_LINE_MACROS=--linemacros=0
13572 #########
13573 # Output the config header
13574 ac_config_headers="$ac_config_headers sqlite_cfg.h"
13577 #########
13578 # Generate the output files.
13581 ac_config_files="$ac_config_files Makefile sqlcipher.pc"
13583 cat >confcache <<\_ACEOF
13584 # This file is a shell script that caches the results of configure
13585 # tests run on this system so they can be shared between configure
13586 # scripts and configure runs, see configure's option --config-cache.
13587 # It is not useful on other systems. If it contains results you don't
13588 # want to keep, you may remove or edit it.
13590 # config.status only pays attention to the cache file if you give it
13591 # the --recheck option to rerun configure.
13593 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13594 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13595 # following values.
13597 _ACEOF
13599 # The following way of writing the cache mishandles newlines in values,
13600 # but we know of no workaround that is simple, portable, and efficient.
13601 # So, we kill variables containing newlines.
13602 # Ultrix sh set writes to stderr and can't be redirected directly,
13603 # and sets the high bit in the cache file unless we assign to the vars.
13605 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13606 eval ac_val=\$$ac_var
13607 case $ac_val in #(
13608 *${as_nl}*)
13609 case $ac_var in #(
13610 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13611 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13612 esac
13613 case $ac_var in #(
13614 _ | IFS | as_nl) ;; #(
13615 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13616 *) { eval $ac_var=; unset $ac_var;} ;;
13617 esac ;;
13618 esac
13619 done
13621 (set) 2>&1 |
13622 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13623 *${as_nl}ac_space=\ *)
13624 # `set' does not quote correctly, so add quotes: double-quote
13625 # substitution turns \\\\ into \\, and sed turns \\ into \.
13626 sed -n \
13627 "s/'/'\\\\''/g;
13628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13629 ;; #(
13631 # `set' quotes correctly as required by POSIX, so do not add quotes.
13632 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13634 esac |
13635 sort
13637 sed '
13638 /^ac_cv_env_/b end
13639 t clear
13640 :clear
13641 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13642 t end
13643 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13644 :end' >>confcache
13645 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13646 if test -w "$cache_file"; then
13647 if test "x$cache_file" != "x/dev/null"; then
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13649 $as_echo "$as_me: updating cache $cache_file" >&6;}
13650 if test ! -f "$cache_file" || test -h "$cache_file"; then
13651 cat confcache >"$cache_file"
13652 else
13653 case $cache_file in #(
13654 */* | ?:*)
13655 mv -f confcache "$cache_file"$$ &&
13656 mv -f "$cache_file"$$ "$cache_file" ;; #(
13658 mv -f confcache "$cache_file" ;;
13659 esac
13662 else
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13664 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13667 rm -f confcache
13669 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13670 # Let make expand exec_prefix.
13671 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13673 DEFS=-DHAVE_CONFIG_H
13675 ac_libobjs=
13676 ac_ltlibobjs=
13678 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13679 # 1. Remove the extension, and $U if already installed.
13680 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13681 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13682 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13683 # will be set to the directory where LIBOBJS objects are built.
13684 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13685 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13686 done
13687 LIBOBJS=$ac_libobjs
13689 LTLIBOBJS=$ac_ltlibobjs
13693 : "${CONFIG_STATUS=./config.status}"
13694 ac_write_fail=0
13695 ac_clean_files_save=$ac_clean_files
13696 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13698 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13699 as_write_fail=0
13700 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13701 #! $SHELL
13702 # Generated by $as_me.
13703 # Run this file to recreate the current configuration.
13704 # Compiler output produced by configure, useful for debugging
13705 # configure, is in config.log if it exists.
13707 debug=false
13708 ac_cs_recheck=false
13709 ac_cs_silent=false
13711 SHELL=\${CONFIG_SHELL-$SHELL}
13712 export SHELL
13713 _ASEOF
13714 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13715 ## -------------------- ##
13716 ## M4sh Initialization. ##
13717 ## -------------------- ##
13719 # Be more Bourne compatible
13720 DUALCASE=1; export DUALCASE # for MKS sh
13721 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13722 emulate sh
13723 NULLCMD=:
13724 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13725 # is contrary to our usage. Disable this feature.
13726 alias -g '${1+"$@"}'='"$@"'
13727 setopt NO_GLOB_SUBST
13728 else
13729 case `(set -o) 2>/dev/null` in #(
13730 *posix*) :
13731 set -o posix ;; #(
13732 *) :
13734 esac
13738 as_nl='
13740 export as_nl
13741 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13742 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13743 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13744 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13745 # Prefer a ksh shell builtin over an external printf program on Solaris,
13746 # but without wasting forks for bash or zsh.
13747 if test -z "$BASH_VERSION$ZSH_VERSION" \
13748 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13749 as_echo='print -r --'
13750 as_echo_n='print -rn --'
13751 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13752 as_echo='printf %s\n'
13753 as_echo_n='printf %s'
13754 else
13755 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13756 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13757 as_echo_n='/usr/ucb/echo -n'
13758 else
13759 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13760 as_echo_n_body='eval
13761 arg=$1;
13762 case $arg in #(
13763 *"$as_nl"*)
13764 expr "X$arg" : "X\\(.*\\)$as_nl";
13765 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13766 esac;
13767 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13769 export as_echo_n_body
13770 as_echo_n='sh -c $as_echo_n_body as_echo'
13772 export as_echo_body
13773 as_echo='sh -c $as_echo_body as_echo'
13776 # The user is always right.
13777 if test "${PATH_SEPARATOR+set}" != set; then
13778 PATH_SEPARATOR=:
13779 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13780 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13781 PATH_SEPARATOR=';'
13786 # IFS
13787 # We need space, tab and new line, in precisely that order. Quoting is
13788 # there to prevent editors from complaining about space-tab.
13789 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13790 # splitting by setting IFS to empty value.)
13791 IFS=" "" $as_nl"
13793 # Find who we are. Look in the path if we contain no directory separator.
13794 as_myself=
13795 case $0 in #((
13796 *[\\/]* ) as_myself=$0 ;;
13797 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13798 for as_dir in $PATH
13800 IFS=$as_save_IFS
13801 test -z "$as_dir" && as_dir=.
13802 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13803 done
13804 IFS=$as_save_IFS
13807 esac
13808 # We did not find ourselves, most probably we were run as `sh COMMAND'
13809 # in which case we are not to be found in the path.
13810 if test "x$as_myself" = x; then
13811 as_myself=$0
13813 if test ! -f "$as_myself"; then
13814 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13815 exit 1
13818 # Unset variables that we do not need and which cause bugs (e.g. in
13819 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13820 # suppresses any "Segmentation fault" message there. '((' could
13821 # trigger a bug in pdksh 5.2.14.
13822 for as_var in BASH_ENV ENV MAIL MAILPATH
13823 do eval test x\${$as_var+set} = xset \
13824 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13825 done
13826 PS1='$ '
13827 PS2='> '
13828 PS4='+ '
13830 # NLS nuisances.
13831 LC_ALL=C
13832 export LC_ALL
13833 LANGUAGE=C
13834 export LANGUAGE
13836 # CDPATH.
13837 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13840 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13841 # ----------------------------------------
13842 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13843 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13844 # script with STATUS, using 1 if that was 0.
13845 as_fn_error ()
13847 as_status=$1; test $as_status -eq 0 && as_status=1
13848 if test "$4"; then
13849 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13850 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13852 $as_echo "$as_me: error: $2" >&2
13853 as_fn_exit $as_status
13854 } # as_fn_error
13857 # as_fn_set_status STATUS
13858 # -----------------------
13859 # Set $? to STATUS, without forking.
13860 as_fn_set_status ()
13862 return $1
13863 } # as_fn_set_status
13865 # as_fn_exit STATUS
13866 # -----------------
13867 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13868 as_fn_exit ()
13870 set +e
13871 as_fn_set_status $1
13872 exit $1
13873 } # as_fn_exit
13875 # as_fn_unset VAR
13876 # ---------------
13877 # Portably unset VAR.
13878 as_fn_unset ()
13880 { eval $1=; unset $1;}
13882 as_unset=as_fn_unset
13883 # as_fn_append VAR VALUE
13884 # ----------------------
13885 # Append the text in VALUE to the end of the definition contained in VAR. Take
13886 # advantage of any shell optimizations that allow amortized linear growth over
13887 # repeated appends, instead of the typical quadratic growth present in naive
13888 # implementations.
13889 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13890 eval 'as_fn_append ()
13892 eval $1+=\$2
13894 else
13895 as_fn_append ()
13897 eval $1=\$$1\$2
13899 fi # as_fn_append
13901 # as_fn_arith ARG...
13902 # ------------------
13903 # Perform arithmetic evaluation on the ARGs, and store the result in the
13904 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13905 # must be portable across $(()) and expr.
13906 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13907 eval 'as_fn_arith ()
13909 as_val=$(( $* ))
13911 else
13912 as_fn_arith ()
13914 as_val=`expr "$@" || test $? -eq 1`
13916 fi # as_fn_arith
13919 if expr a : '\(a\)' >/dev/null 2>&1 &&
13920 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13921 as_expr=expr
13922 else
13923 as_expr=false
13926 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13927 as_basename=basename
13928 else
13929 as_basename=false
13932 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13933 as_dirname=dirname
13934 else
13935 as_dirname=false
13938 as_me=`$as_basename -- "$0" ||
13939 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13940 X"$0" : 'X\(//\)$' \| \
13941 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13942 $as_echo X/"$0" |
13943 sed '/^.*\/\([^/][^/]*\)\/*$/{
13944 s//\1/
13947 /^X\/\(\/\/\)$/{
13948 s//\1/
13951 /^X\/\(\/\).*/{
13952 s//\1/
13955 s/.*/./; q'`
13957 # Avoid depending upon Character Ranges.
13958 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13959 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13960 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13961 as_cr_digits='0123456789'
13962 as_cr_alnum=$as_cr_Letters$as_cr_digits
13964 ECHO_C= ECHO_N= ECHO_T=
13965 case `echo -n x` in #(((((
13966 -n*)
13967 case `echo 'xy\c'` in
13968 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13969 xy) ECHO_C='\c';;
13970 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13971 ECHO_T=' ';;
13972 esac;;
13974 ECHO_N='-n';;
13975 esac
13977 rm -f conf$$ conf$$.exe conf$$.file
13978 if test -d conf$$.dir; then
13979 rm -f conf$$.dir/conf$$.file
13980 else
13981 rm -f conf$$.dir
13982 mkdir conf$$.dir 2>/dev/null
13984 if (echo >conf$$.file) 2>/dev/null; then
13985 if ln -s conf$$.file conf$$ 2>/dev/null; then
13986 as_ln_s='ln -s'
13987 # ... but there are two gotchas:
13988 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13989 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13990 # In both cases, we have to default to `cp -pR'.
13991 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13992 as_ln_s='cp -pR'
13993 elif ln conf$$.file conf$$ 2>/dev/null; then
13994 as_ln_s=ln
13995 else
13996 as_ln_s='cp -pR'
13998 else
13999 as_ln_s='cp -pR'
14001 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14002 rmdir conf$$.dir 2>/dev/null
14005 # as_fn_mkdir_p
14006 # -------------
14007 # Create "$as_dir" as a directory, including parents if necessary.
14008 as_fn_mkdir_p ()
14011 case $as_dir in #(
14012 -*) as_dir=./$as_dir;;
14013 esac
14014 test -d "$as_dir" || eval $as_mkdir_p || {
14015 as_dirs=
14016 while :; do
14017 case $as_dir in #(
14018 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14019 *) as_qdir=$as_dir;;
14020 esac
14021 as_dirs="'$as_qdir' $as_dirs"
14022 as_dir=`$as_dirname -- "$as_dir" ||
14023 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14024 X"$as_dir" : 'X\(//\)[^/]' \| \
14025 X"$as_dir" : 'X\(//\)$' \| \
14026 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14027 $as_echo X"$as_dir" |
14028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14029 s//\1/
14032 /^X\(\/\/\)[^/].*/{
14033 s//\1/
14036 /^X\(\/\/\)$/{
14037 s//\1/
14040 /^X\(\/\).*/{
14041 s//\1/
14044 s/.*/./; q'`
14045 test -d "$as_dir" && break
14046 done
14047 test -z "$as_dirs" || eval "mkdir $as_dirs"
14048 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14051 } # as_fn_mkdir_p
14052 if mkdir -p . 2>/dev/null; then
14053 as_mkdir_p='mkdir -p "$as_dir"'
14054 else
14055 test -d ./-p && rmdir ./-p
14056 as_mkdir_p=false
14060 # as_fn_executable_p FILE
14061 # -----------------------
14062 # Test if FILE is an executable regular file.
14063 as_fn_executable_p ()
14065 test -f "$1" && test -x "$1"
14066 } # as_fn_executable_p
14067 as_test_x='test -x'
14068 as_executable_p=as_fn_executable_p
14070 # Sed expression to map a string onto a valid CPP name.
14071 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14073 # Sed expression to map a string onto a valid variable name.
14074 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14077 exec 6>&1
14078 ## ----------------------------------- ##
14079 ## Main body of $CONFIG_STATUS script. ##
14080 ## ----------------------------------- ##
14081 _ASEOF
14082 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14085 # Save the log message, to keep $0 and so on meaningful, and to
14086 # report actual input values of CONFIG_FILES etc. instead of their
14087 # values after options handling.
14088 ac_log="
14089 This file was extended by sqlcipher $as_me 3.41.2, which was
14090 generated by GNU Autoconf 2.69. Invocation command line was
14092 CONFIG_FILES = $CONFIG_FILES
14093 CONFIG_HEADERS = $CONFIG_HEADERS
14094 CONFIG_LINKS = $CONFIG_LINKS
14095 CONFIG_COMMANDS = $CONFIG_COMMANDS
14096 $ $0 $@
14098 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14101 _ACEOF
14103 case $ac_config_files in *"
14104 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14105 esac
14107 case $ac_config_headers in *"
14108 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14109 esac
14112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14113 # Files that config.status was made for.
14114 config_files="$ac_config_files"
14115 config_headers="$ac_config_headers"
14116 config_commands="$ac_config_commands"
14118 _ACEOF
14120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14121 ac_cs_usage="\
14122 \`$as_me' instantiates files and other configuration actions
14123 from templates according to the current configuration. Unless the files
14124 and actions are specified as TAGs, all are instantiated by default.
14126 Usage: $0 [OPTION]... [TAG]...
14128 -h, --help print this help, then exit
14129 -V, --version print version number and configuration settings, then exit
14130 --config print configuration, then exit
14131 -q, --quiet, --silent
14132 do not print progress messages
14133 -d, --debug don't remove temporary files
14134 --recheck update $as_me by reconfiguring in the same conditions
14135 --file=FILE[:TEMPLATE]
14136 instantiate the configuration file FILE
14137 --header=FILE[:TEMPLATE]
14138 instantiate the configuration header FILE
14140 Configuration files:
14141 $config_files
14143 Configuration headers:
14144 $config_headers
14146 Configuration commands:
14147 $config_commands
14149 Report bugs to the package provider."
14151 _ACEOF
14152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14153 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14154 ac_cs_version="\\
14155 sqlcipher config.status 3.41.2
14156 configured by $0, generated by GNU Autoconf 2.69,
14157 with options \\"\$ac_cs_config\\"
14159 Copyright (C) 2012 Free Software Foundation, Inc.
14160 This config.status script is free software; the Free Software Foundation
14161 gives unlimited permission to copy, distribute and modify it."
14163 ac_pwd='$ac_pwd'
14164 srcdir='$srcdir'
14165 INSTALL='$INSTALL'
14166 AWK='$AWK'
14167 test -n "\$AWK" || AWK=awk
14168 _ACEOF
14170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14171 # The default lists apply if the user does not specify any file.
14172 ac_need_defaults=:
14173 while test $# != 0
14175 case $1 in
14176 --*=?*)
14177 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14178 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14179 ac_shift=:
14181 --*=)
14182 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14183 ac_optarg=
14184 ac_shift=:
14187 ac_option=$1
14188 ac_optarg=$2
14189 ac_shift=shift
14191 esac
14193 case $ac_option in
14194 # Handling of the options.
14195 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14196 ac_cs_recheck=: ;;
14197 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14198 $as_echo "$ac_cs_version"; exit ;;
14199 --config | --confi | --conf | --con | --co | --c )
14200 $as_echo "$ac_cs_config"; exit ;;
14201 --debug | --debu | --deb | --de | --d | -d )
14202 debug=: ;;
14203 --file | --fil | --fi | --f )
14204 $ac_shift
14205 case $ac_optarg in
14206 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14207 '') as_fn_error $? "missing file argument" ;;
14208 esac
14209 as_fn_append CONFIG_FILES " '$ac_optarg'"
14210 ac_need_defaults=false;;
14211 --header | --heade | --head | --hea )
14212 $ac_shift
14213 case $ac_optarg in
14214 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14215 esac
14216 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14217 ac_need_defaults=false;;
14218 --he | --h)
14219 # Conflict between --help and --header
14220 as_fn_error $? "ambiguous option: \`$1'
14221 Try \`$0 --help' for more information.";;
14222 --help | --hel | -h )
14223 $as_echo "$ac_cs_usage"; exit ;;
14224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14225 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14226 ac_cs_silent=: ;;
14228 # This is an error.
14229 -*) as_fn_error $? "unrecognized option: \`$1'
14230 Try \`$0 --help' for more information." ;;
14232 *) as_fn_append ac_config_targets " $1"
14233 ac_need_defaults=false ;;
14235 esac
14236 shift
14237 done
14239 ac_configure_extra_args=
14241 if $ac_cs_silent; then
14242 exec 6>/dev/null
14243 ac_configure_extra_args="$ac_configure_extra_args --silent"
14246 _ACEOF
14247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14248 if \$ac_cs_recheck; then
14249 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14250 shift
14251 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14252 CONFIG_SHELL='$SHELL'
14253 export CONFIG_SHELL
14254 exec "\$@"
14257 _ACEOF
14258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14259 exec 5>>config.log
14261 echo
14262 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14263 ## Running $as_me. ##
14264 _ASBOX
14265 $as_echo "$ac_log"
14266 } >&5
14268 _ACEOF
14269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14271 # INIT-COMMANDS
14275 # The HP-UX ksh and POSIX shell print the target directory to stdout
14276 # if CDPATH is set.
14277 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14279 sed_quote_subst='$sed_quote_subst'
14280 double_quote_subst='$double_quote_subst'
14281 delay_variable_subst='$delay_variable_subst'
14282 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14283 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14284 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14285 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14286 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14287 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14288 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14289 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14290 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14291 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14292 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14293 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14294 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14295 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14296 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14297 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14298 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14299 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14300 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14301 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14302 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14303 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14304 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14305 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14306 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14307 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14308 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14309 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14310 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14311 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14312 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14313 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14314 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14315 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14316 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14317 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14318 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14319 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14320 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14321 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14322 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14323 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14324 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14325 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14326 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14327 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14328 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14329 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14330 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14331 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14332 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14333 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14334 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14335 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14336 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14337 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14338 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14339 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14340 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"`'
14341 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14342 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14343 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14344 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14345 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14346 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14347 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14348 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14349 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14350 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14351 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14352 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14353 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14354 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14355 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14356 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14357 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14358 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14359 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14360 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14361 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14362 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14363 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14364 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14365 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14366 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14367 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14368 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14369 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14370 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14371 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14372 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14373 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14374 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14375 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14376 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14377 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14378 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14379 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14380 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14381 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14382 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14383 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14384 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14385 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14386 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14387 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14388 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14389 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14390 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14391 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14392 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14393 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14394 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14395 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14396 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14397 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14398 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14399 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14400 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14401 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14402 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14403 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14404 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14405 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14406 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14407 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14408 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14409 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14410 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14411 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14412 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14413 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14414 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14415 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14416 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14418 LTCC='$LTCC'
14419 LTCFLAGS='$LTCFLAGS'
14420 compiler='$compiler_DEFAULT'
14422 # A function that is used when there is no print builtin or printf.
14423 func_fallback_echo ()
14425 eval 'cat <<_LTECHO_EOF
14427 _LTECHO_EOF'
14430 # Quote evaled strings.
14431 for var in SHELL \
14432 ECHO \
14433 PATH_SEPARATOR \
14434 SED \
14435 GREP \
14436 EGREP \
14437 FGREP \
14438 LD \
14439 NM \
14440 LN_S \
14441 lt_SP2NL \
14442 lt_NL2SP \
14443 reload_flag \
14444 OBJDUMP \
14445 deplibs_check_method \
14446 file_magic_cmd \
14447 file_magic_glob \
14448 want_nocaseglob \
14449 DLLTOOL \
14450 sharedlib_from_linklib_cmd \
14451 AR \
14452 AR_FLAGS \
14453 archiver_list_spec \
14454 STRIP \
14455 RANLIB \
14456 CC \
14457 CFLAGS \
14458 compiler \
14459 lt_cv_sys_global_symbol_pipe \
14460 lt_cv_sys_global_symbol_to_cdecl \
14461 lt_cv_sys_global_symbol_to_import \
14462 lt_cv_sys_global_symbol_to_c_name_address \
14463 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14464 lt_cv_nm_interface \
14465 nm_file_list_spec \
14466 lt_cv_truncate_bin \
14467 lt_prog_compiler_no_builtin_flag \
14468 lt_prog_compiler_pic \
14469 lt_prog_compiler_wl \
14470 lt_prog_compiler_static \
14471 lt_cv_prog_compiler_c_o \
14472 need_locks \
14473 MANIFEST_TOOL \
14474 DSYMUTIL \
14475 NMEDIT \
14476 LIPO \
14477 OTOOL \
14478 OTOOL64 \
14479 shrext_cmds \
14480 export_dynamic_flag_spec \
14481 whole_archive_flag_spec \
14482 compiler_needs_object \
14483 with_gnu_ld \
14484 allow_undefined_flag \
14485 no_undefined_flag \
14486 hardcode_libdir_flag_spec \
14487 hardcode_libdir_separator \
14488 exclude_expsyms \
14489 include_expsyms \
14490 file_list_spec \
14491 variables_saved_for_relink \
14492 libname_spec \
14493 library_names_spec \
14494 soname_spec \
14495 install_override_mode \
14496 finish_eval \
14497 old_striplib \
14498 striplib; do
14499 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14500 *[\\\\\\\`\\"\\\$]*)
14501 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14504 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14506 esac
14507 done
14509 # Double-quote double-evaled strings.
14510 for var in reload_cmds \
14511 old_postinstall_cmds \
14512 old_postuninstall_cmds \
14513 old_archive_cmds \
14514 extract_expsyms_cmds \
14515 old_archive_from_new_cmds \
14516 old_archive_from_expsyms_cmds \
14517 archive_cmds \
14518 archive_expsym_cmds \
14519 module_cmds \
14520 module_expsym_cmds \
14521 export_symbols_cmds \
14522 prelink_cmds \
14523 postlink_cmds \
14524 postinstall_cmds \
14525 postuninstall_cmds \
14526 finish_cmds \
14527 sys_lib_search_path_spec \
14528 configure_time_dlsearch_path \
14529 configure_time_lt_sys_library_path; do
14530 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14531 *[\\\\\\\`\\"\\\$]*)
14532 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14535 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14537 esac
14538 done
14540 ac_aux_dir='$ac_aux_dir'
14542 # See if we are running on zsh, and set the options that allow our
14543 # commands through without removal of \ escapes INIT.
14544 if test -n "\${ZSH_VERSION+set}"; then
14545 setopt NO_GLOB_SUBST
14549 PACKAGE='$PACKAGE'
14550 VERSION='$VERSION'
14551 RM='$RM'
14552 ofile='$ofile'
14557 _ACEOF
14559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14561 # Handling of arguments.
14562 for ac_config_target in $ac_config_targets
14564 case $ac_config_target in
14565 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14566 "sqlite_cfg.h") CONFIG_HEADERS="$CONFIG_HEADERS sqlite_cfg.h" ;;
14567 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14568 "sqlcipher.pc") CONFIG_FILES="$CONFIG_FILES sqlcipher.pc" ;;
14570 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14571 esac
14572 done
14575 # If the user did not use the arguments to specify the items to instantiate,
14576 # then the envvar interface is used. Set only those that are not.
14577 # We use the long form for the default assignment because of an extremely
14578 # bizarre bug on SunOS 4.1.3.
14579 if $ac_need_defaults; then
14580 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14581 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14582 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14585 # Have a temporary directory for convenience. Make it in the build tree
14586 # simply because there is no reason against having it here, and in addition,
14587 # creating and moving files from /tmp can sometimes cause problems.
14588 # Hook for its removal unless debugging.
14589 # Note that there is a small window in which the directory will not be cleaned:
14590 # after its creation but before its name has been assigned to `$tmp'.
14591 $debug ||
14593 tmp= ac_tmp=
14594 trap 'exit_status=$?
14595 : "${ac_tmp:=$tmp}"
14596 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14598 trap 'as_fn_exit 1' 1 2 13 15
14600 # Create a (secure) tmp directory for tmp files.
14603 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14604 test -d "$tmp"
14605 } ||
14607 tmp=./conf$$-$RANDOM
14608 (umask 077 && mkdir "$tmp")
14609 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14610 ac_tmp=$tmp
14612 # Set up the scripts for CONFIG_FILES section.
14613 # No need to generate them if there are no CONFIG_FILES.
14614 # This happens for instance with `./config.status config.h'.
14615 if test -n "$CONFIG_FILES"; then
14618 ac_cr=`echo X | tr X '\015'`
14619 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14620 # But we know of no other shell where ac_cr would be empty at this
14621 # point, so we can use a bashism as a fallback.
14622 if test "x$ac_cr" = x; then
14623 eval ac_cr=\$\'\\r\'
14625 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14626 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14627 ac_cs_awk_cr='\\r'
14628 else
14629 ac_cs_awk_cr=$ac_cr
14632 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14633 _ACEOF
14637 echo "cat >conf$$subs.awk <<_ACEOF" &&
14638 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14639 echo "_ACEOF"
14640 } >conf$$subs.sh ||
14641 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14642 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14643 ac_delim='%!_!# '
14644 for ac_last_try in false false false false false :; do
14645 . ./conf$$subs.sh ||
14646 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14648 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14649 if test $ac_delim_n = $ac_delim_num; then
14650 break
14651 elif $ac_last_try; then
14652 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14653 else
14654 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14656 done
14657 rm -f conf$$subs.sh
14659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14660 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14661 _ACEOF
14662 sed -n '
14664 s/^/S["/; s/!.*/"]=/
14667 s/^[^!]*!//
14668 :repl
14669 t repl
14670 s/'"$ac_delim"'$//
14671 t delim
14674 s/\(.\{148\}\)..*/\1/
14675 t more1
14676 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14679 b repl
14680 :more1
14681 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14684 s/.\{148\}//
14685 t nl
14686 :delim
14688 s/\(.\{148\}\)..*/\1/
14689 t more2
14690 s/["\\]/\\&/g; s/^/"/; s/$/"/
14693 :more2
14694 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14697 s/.\{148\}//
14698 t delim
14699 ' <conf$$subs.awk | sed '
14700 /^[^""]/{
14702 s/\n//
14704 ' >>$CONFIG_STATUS || ac_write_fail=1
14705 rm -f conf$$subs.awk
14706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14707 _ACAWK
14708 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14709 for (key in S) S_is_set[key] = 1
14710 FS = "\a"
14714 line = $ 0
14715 nfields = split(line, field, "@")
14716 substed = 0
14717 len = length(field[1])
14718 for (i = 2; i < nfields; i++) {
14719 key = field[i]
14720 keylen = length(key)
14721 if (S_is_set[key]) {
14722 value = S[key]
14723 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14724 len += length(value) + length(field[++i])
14725 substed = 1
14726 } else
14727 len += 1 + keylen
14730 print line
14733 _ACAWK
14734 _ACEOF
14735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14736 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14737 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14738 else
14740 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14741 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14742 _ACEOF
14744 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14745 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14746 # trailing colons and then remove the whole line if VPATH becomes empty
14747 # (actually we leave an empty line to preserve line numbers).
14748 if test "x$srcdir" = x.; then
14749 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14751 s///
14752 s/^/:/
14753 s/[ ]*$/:/
14754 s/:\$(srcdir):/:/g
14755 s/:\${srcdir}:/:/g
14756 s/:@srcdir@:/:/g
14757 s/^:*//
14758 s/:*$//
14760 s/\(=[ ]*\).*/\1/
14762 s/\n//
14763 s/^[^=]*=[ ]*$//
14767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14768 fi # test -n "$CONFIG_FILES"
14770 # Set up the scripts for CONFIG_HEADERS section.
14771 # No need to generate them if there are no CONFIG_HEADERS.
14772 # This happens for instance with `./config.status Makefile'.
14773 if test -n "$CONFIG_HEADERS"; then
14774 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14775 BEGIN {
14776 _ACEOF
14778 # Transform confdefs.h into an awk script `defines.awk', embedded as
14779 # here-document in config.status, that substitutes the proper values into
14780 # config.h.in to produce config.h.
14782 # Create a delimiter string that does not exist in confdefs.h, to ease
14783 # handling of long lines.
14784 ac_delim='%!_!# '
14785 for ac_last_try in false false :; do
14786 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14787 if test -z "$ac_tt"; then
14788 break
14789 elif $ac_last_try; then
14790 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14791 else
14792 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14794 done
14796 # For the awk script, D is an array of macro values keyed by name,
14797 # likewise P contains macro parameters if any. Preserve backslash
14798 # newline sequences.
14800 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14801 sed -n '
14802 s/.\{148\}/&'"$ac_delim"'/g
14803 t rset
14804 :rset
14805 s/^[ ]*#[ ]*define[ ][ ]*/ /
14806 t def
14808 :def
14809 s/\\$//
14810 t bsnl
14811 s/["\\]/\\&/g
14812 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14813 D["\1"]=" \3"/p
14814 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14816 :bsnl
14817 s/["\\]/\\&/g
14818 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14819 D["\1"]=" \3\\\\\\n"\\/p
14820 t cont
14821 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14822 t cont
14824 :cont
14826 s/.\{148\}/&'"$ac_delim"'/g
14827 t clear
14828 :clear
14829 s/\\$//
14830 t bsnlc
14831 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14833 :bsnlc
14834 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14835 b cont
14836 ' <confdefs.h | sed '
14837 s/'"$ac_delim"'/"\\\
14838 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14841 for (key in D) D_is_set[key] = 1
14842 FS = "\a"
14844 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14845 line = \$ 0
14846 split(line, arg, " ")
14847 if (arg[1] == "#") {
14848 defundef = arg[2]
14849 mac1 = arg[3]
14850 } else {
14851 defundef = substr(arg[1], 2)
14852 mac1 = arg[2]
14854 split(mac1, mac2, "(") #)
14855 macro = mac2[1]
14856 prefix = substr(line, 1, index(line, defundef) - 1)
14857 if (D_is_set[macro]) {
14858 # Preserve the white space surrounding the "#".
14859 print prefix "define", macro P[macro] D[macro]
14860 next
14861 } else {
14862 # Replace #undef with comments. This is necessary, for example,
14863 # in the case of _POSIX_SOURCE, which is predefined and required
14864 # on some systems where configure will not decide to define it.
14865 if (defundef == "undef") {
14866 print "/*", prefix defundef, macro, "*/"
14867 next
14871 { print }
14872 _ACAWK
14873 _ACEOF
14874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14875 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14876 fi # test -n "$CONFIG_HEADERS"
14879 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14880 shift
14881 for ac_tag
14883 case $ac_tag in
14884 :[FHLC]) ac_mode=$ac_tag; continue;;
14885 esac
14886 case $ac_mode$ac_tag in
14887 :[FHL]*:*);;
14888 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14889 :[FH]-) ac_tag=-:-;;
14890 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14891 esac
14892 ac_save_IFS=$IFS
14893 IFS=:
14894 set x $ac_tag
14895 IFS=$ac_save_IFS
14896 shift
14897 ac_file=$1
14898 shift
14900 case $ac_mode in
14901 :L) ac_source=$1;;
14902 :[FH])
14903 ac_file_inputs=
14904 for ac_f
14906 case $ac_f in
14907 -) ac_f="$ac_tmp/stdin";;
14908 *) # Look for the file first in the build tree, then in the source tree
14909 # (if the path is not absolute). The absolute path cannot be DOS-style,
14910 # because $ac_f cannot contain `:'.
14911 test -f "$ac_f" ||
14912 case $ac_f in
14913 [\\/$]*) false;;
14914 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14915 esac ||
14916 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14917 esac
14918 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14919 as_fn_append ac_file_inputs " '$ac_f'"
14920 done
14922 # Let's still pretend it is `configure' which instantiates (i.e., don't
14923 # use $as_me), people would be surprised to read:
14924 # /* config.h. Generated by config.status. */
14925 configure_input='Generated from '`
14926 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14927 `' by configure.'
14928 if test x"$ac_file" != x-; then
14929 configure_input="$ac_file. $configure_input"
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14931 $as_echo "$as_me: creating $ac_file" >&6;}
14933 # Neutralize special characters interpreted by sed in replacement strings.
14934 case $configure_input in #(
14935 *\&* | *\|* | *\\* )
14936 ac_sed_conf_input=`$as_echo "$configure_input" |
14937 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14938 *) ac_sed_conf_input=$configure_input;;
14939 esac
14941 case $ac_tag in
14942 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14943 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14944 esac
14946 esac
14948 ac_dir=`$as_dirname -- "$ac_file" ||
14949 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14950 X"$ac_file" : 'X\(//\)[^/]' \| \
14951 X"$ac_file" : 'X\(//\)$' \| \
14952 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14953 $as_echo X"$ac_file" |
14954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14955 s//\1/
14958 /^X\(\/\/\)[^/].*/{
14959 s//\1/
14962 /^X\(\/\/\)$/{
14963 s//\1/
14966 /^X\(\/\).*/{
14967 s//\1/
14970 s/.*/./; q'`
14971 as_dir="$ac_dir"; as_fn_mkdir_p
14972 ac_builddir=.
14974 case "$ac_dir" in
14975 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14977 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14978 # A ".." for each directory in $ac_dir_suffix.
14979 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14980 case $ac_top_builddir_sub in
14981 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14982 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14983 esac ;;
14984 esac
14985 ac_abs_top_builddir=$ac_pwd
14986 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14987 # for backward compatibility:
14988 ac_top_builddir=$ac_top_build_prefix
14990 case $srcdir in
14991 .) # We are building in place.
14992 ac_srcdir=.
14993 ac_top_srcdir=$ac_top_builddir_sub
14994 ac_abs_top_srcdir=$ac_pwd ;;
14995 [\\/]* | ?:[\\/]* ) # Absolute name.
14996 ac_srcdir=$srcdir$ac_dir_suffix;
14997 ac_top_srcdir=$srcdir
14998 ac_abs_top_srcdir=$srcdir ;;
14999 *) # Relative name.
15000 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15001 ac_top_srcdir=$ac_top_build_prefix$srcdir
15002 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15003 esac
15004 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15007 case $ac_mode in
15010 # CONFIG_FILE
15013 case $INSTALL in
15014 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15015 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15016 esac
15017 _ACEOF
15019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15020 # If the template does not know about datarootdir, expand it.
15021 # FIXME: This hack should be removed a few years after 2.60.
15022 ac_datarootdir_hack=; ac_datarootdir_seen=
15023 ac_sed_dataroot='
15024 /datarootdir/ {
15028 /@datadir@/p
15029 /@docdir@/p
15030 /@infodir@/p
15031 /@localedir@/p
15032 /@mandir@/p'
15033 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15034 *datarootdir*) ac_datarootdir_seen=yes;;
15035 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15037 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15038 _ACEOF
15039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15040 ac_datarootdir_hack='
15041 s&@datadir@&$datadir&g
15042 s&@docdir@&$docdir&g
15043 s&@infodir@&$infodir&g
15044 s&@localedir@&$localedir&g
15045 s&@mandir@&$mandir&g
15046 s&\\\${datarootdir}&$datarootdir&g' ;;
15047 esac
15048 _ACEOF
15050 # Neutralize VPATH when `$srcdir' = `.'.
15051 # Shell code in configure.ac might set extrasub.
15052 # FIXME: do we really want to maintain this feature?
15053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15054 ac_sed_extra="$ac_vpsub
15055 $extrasub
15056 _ACEOF
15057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15059 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15060 s|@configure_input@|$ac_sed_conf_input|;t t
15061 s&@top_builddir@&$ac_top_builddir_sub&;t t
15062 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15063 s&@srcdir@&$ac_srcdir&;t t
15064 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15065 s&@top_srcdir@&$ac_top_srcdir&;t t
15066 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15067 s&@builddir@&$ac_builddir&;t t
15068 s&@abs_builddir@&$ac_abs_builddir&;t t
15069 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15070 s&@INSTALL@&$ac_INSTALL&;t t
15071 $ac_datarootdir_hack
15073 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15074 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15076 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15077 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15078 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15079 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15081 which seems to be undefined. Please make sure it is defined" >&5
15082 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15083 which seems to be undefined. Please make sure it is defined" >&2;}
15085 rm -f "$ac_tmp/stdin"
15086 case $ac_file in
15087 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15088 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15089 esac \
15090 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15094 # CONFIG_HEADER
15096 if test x"$ac_file" != x-; then
15098 $as_echo "/* $configure_input */" \
15099 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15100 } >"$ac_tmp/config.h" \
15101 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15102 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15104 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15105 else
15106 rm -f "$ac_file"
15107 mv "$ac_tmp/config.h" "$ac_file" \
15108 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15110 else
15111 $as_echo "/* $configure_input */" \
15112 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15113 || as_fn_error $? "could not create -" "$LINENO" 5
15117 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15118 $as_echo "$as_me: executing $ac_file commands" >&6;}
15120 esac
15123 case $ac_file$ac_mode in
15124 "libtool":C)
15126 # See if we are running on zsh, and set the options that allow our
15127 # commands through without removal of \ escapes.
15128 if test -n "${ZSH_VERSION+set}"; then
15129 setopt NO_GLOB_SUBST
15132 cfgfile=${ofile}T
15133 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15134 $RM "$cfgfile"
15136 cat <<_LT_EOF >> "$cfgfile"
15137 #! $SHELL
15138 # Generated automatically by $as_me ($PACKAGE) $VERSION
15139 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15141 # Provide generalized library-building support services.
15142 # Written by Gordon Matzigkeit, 1996
15144 # Copyright (C) 2014 Free Software Foundation, Inc.
15145 # This is free software; see the source for copying conditions. There is NO
15146 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15148 # GNU Libtool is free software; you can redistribute it and/or modify
15149 # it under the terms of the GNU General Public License as published by
15150 # the Free Software Foundation; either version 2 of of the License, or
15151 # (at your option) any later version.
15153 # As a special exception to the GNU General Public License, if you
15154 # distribute this file as part of a program or library that is built
15155 # using GNU Libtool, you may include this file under the same
15156 # distribution terms that you use for the rest of that program.
15158 # GNU Libtool is distributed in the hope that it will be useful, but
15159 # WITHOUT ANY WARRANTY; without even the implied warranty of
15160 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15161 # GNU General Public License for more details.
15163 # You should have received a copy of the GNU General Public License
15164 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15167 # The names of the tagged configurations supported by this script.
15168 available_tags=''
15170 # Configured defaults for sys_lib_dlsearch_path munging.
15171 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15173 # ### BEGIN LIBTOOL CONFIG
15175 # Which release of libtool.m4 was used?
15176 macro_version=$macro_version
15177 macro_revision=$macro_revision
15179 # Whether or not to build shared libraries.
15180 build_libtool_libs=$enable_shared
15182 # Whether or not to build static libraries.
15183 build_old_libs=$enable_static
15185 # What type of objects to build.
15186 pic_mode=$pic_mode
15188 # Whether or not to optimize for fast installation.
15189 fast_install=$enable_fast_install
15191 # Shared archive member basename,for filename based shared library versioning on AIX.
15192 shared_archive_member_spec=$shared_archive_member_spec
15194 # Shell to use when invoking shell scripts.
15195 SHELL=$lt_SHELL
15197 # An echo program that protects backslashes.
15198 ECHO=$lt_ECHO
15200 # The PATH separator for the build system.
15201 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15203 # The host system.
15204 host_alias=$host_alias
15205 host=$host
15206 host_os=$host_os
15208 # The build system.
15209 build_alias=$build_alias
15210 build=$build
15211 build_os=$build_os
15213 # A sed program that does not truncate output.
15214 SED=$lt_SED
15216 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15217 Xsed="\$SED -e 1s/^X//"
15219 # A grep program that handles long lines.
15220 GREP=$lt_GREP
15222 # An ERE matcher.
15223 EGREP=$lt_EGREP
15225 # A literal string matcher.
15226 FGREP=$lt_FGREP
15228 # A BSD- or MS-compatible name lister.
15229 NM=$lt_NM
15231 # Whether we need soft or hard links.
15232 LN_S=$lt_LN_S
15234 # What is the maximum length of a command?
15235 max_cmd_len=$max_cmd_len
15237 # Object file suffix (normally "o").
15238 objext=$ac_objext
15240 # Executable file suffix (normally "").
15241 exeext=$exeext
15243 # whether the shell understands "unset".
15244 lt_unset=$lt_unset
15246 # turn spaces into newlines.
15247 SP2NL=$lt_lt_SP2NL
15249 # turn newlines into spaces.
15250 NL2SP=$lt_lt_NL2SP
15252 # convert \$build file names to \$host format.
15253 to_host_file_cmd=$lt_cv_to_host_file_cmd
15255 # convert \$build files to toolchain format.
15256 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15258 # An object symbol dumper.
15259 OBJDUMP=$lt_OBJDUMP
15261 # Method to check whether dependent libraries are shared objects.
15262 deplibs_check_method=$lt_deplibs_check_method
15264 # Command to use when deplibs_check_method = "file_magic".
15265 file_magic_cmd=$lt_file_magic_cmd
15267 # How to find potential files when deplibs_check_method = "file_magic".
15268 file_magic_glob=$lt_file_magic_glob
15270 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15271 want_nocaseglob=$lt_want_nocaseglob
15273 # DLL creation program.
15274 DLLTOOL=$lt_DLLTOOL
15276 # Command to associate shared and link libraries.
15277 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15279 # The archiver.
15280 AR=$lt_AR
15282 # Flags to create an archive.
15283 AR_FLAGS=$lt_AR_FLAGS
15285 # How to feed a file listing to the archiver.
15286 archiver_list_spec=$lt_archiver_list_spec
15288 # A symbol stripping program.
15289 STRIP=$lt_STRIP
15291 # Commands used to install an old-style archive.
15292 RANLIB=$lt_RANLIB
15293 old_postinstall_cmds=$lt_old_postinstall_cmds
15294 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15296 # Whether to use a lock for old archive extraction.
15297 lock_old_archive_extraction=$lock_old_archive_extraction
15299 # A C compiler.
15300 LTCC=$lt_CC
15302 # LTCC compiler flags.
15303 LTCFLAGS=$lt_CFLAGS
15305 # Take the output of nm and produce a listing of raw symbols and C names.
15306 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15308 # Transform the output of nm in a proper C declaration.
15309 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15311 # Transform the output of nm into a list of symbols to manually relocate.
15312 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15314 # Transform the output of nm in a C name address pair.
15315 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15317 # Transform the output of nm in a C name address pair when lib prefix is needed.
15318 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15320 # The name lister interface.
15321 nm_interface=$lt_lt_cv_nm_interface
15323 # Specify filename containing input files for \$NM.
15324 nm_file_list_spec=$lt_nm_file_list_spec
15326 # The root where to search for dependent libraries,and where our libraries should be installed.
15327 lt_sysroot=$lt_sysroot
15329 # Command to truncate a binary pipe.
15330 lt_truncate_bin=$lt_lt_cv_truncate_bin
15332 # The name of the directory that contains temporary libtool files.
15333 objdir=$objdir
15335 # Used to examine libraries when file_magic_cmd begins with "file".
15336 MAGIC_CMD=$MAGIC_CMD
15338 # Must we lock files when doing compilation?
15339 need_locks=$lt_need_locks
15341 # Manifest tool.
15342 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15344 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15345 DSYMUTIL=$lt_DSYMUTIL
15347 # Tool to change global to local symbols on Mac OS X.
15348 NMEDIT=$lt_NMEDIT
15350 # Tool to manipulate fat objects and archives on Mac OS X.
15351 LIPO=$lt_LIPO
15353 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15354 OTOOL=$lt_OTOOL
15356 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15357 OTOOL64=$lt_OTOOL64
15359 # Old archive suffix (normally "a").
15360 libext=$libext
15362 # Shared library suffix (normally ".so").
15363 shrext_cmds=$lt_shrext_cmds
15365 # The commands to extract the exported symbol list from a shared archive.
15366 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15368 # Variables whose values should be saved in libtool wrapper scripts and
15369 # restored at link time.
15370 variables_saved_for_relink=$lt_variables_saved_for_relink
15372 # Do we need the "lib" prefix for modules?
15373 need_lib_prefix=$need_lib_prefix
15375 # Do we need a version for libraries?
15376 need_version=$need_version
15378 # Library versioning type.
15379 version_type=$version_type
15381 # Shared library runtime path variable.
15382 runpath_var=$runpath_var
15384 # Shared library path variable.
15385 shlibpath_var=$shlibpath_var
15387 # Is shlibpath searched before the hard-coded library search path?
15388 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15390 # Format of library name prefix.
15391 libname_spec=$lt_libname_spec
15393 # List of archive names. First name is the real one, the rest are links.
15394 # The last name is the one that the linker finds with -lNAME
15395 library_names_spec=$lt_library_names_spec
15397 # The coded name of the library, if different from the real name.
15398 soname_spec=$lt_soname_spec
15400 # Permission mode override for installation of shared libraries.
15401 install_override_mode=$lt_install_override_mode
15403 # Command to use after installation of a shared archive.
15404 postinstall_cmds=$lt_postinstall_cmds
15406 # Command to use after uninstallation of a shared archive.
15407 postuninstall_cmds=$lt_postuninstall_cmds
15409 # Commands used to finish a libtool library installation in a directory.
15410 finish_cmds=$lt_finish_cmds
15412 # As "finish_cmds", except a single script fragment to be evaled but
15413 # not shown.
15414 finish_eval=$lt_finish_eval
15416 # Whether we should hardcode library paths into libraries.
15417 hardcode_into_libs=$hardcode_into_libs
15419 # Compile-time system search path for libraries.
15420 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15422 # Detected run-time system search path for libraries.
15423 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15425 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15426 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15428 # Whether dlopen is supported.
15429 dlopen_support=$enable_dlopen
15431 # Whether dlopen of programs is supported.
15432 dlopen_self=$enable_dlopen_self
15434 # Whether dlopen of statically linked programs is supported.
15435 dlopen_self_static=$enable_dlopen_self_static
15437 # Commands to strip libraries.
15438 old_striplib=$lt_old_striplib
15439 striplib=$lt_striplib
15442 # The linker used to build libraries.
15443 LD=$lt_LD
15445 # How to create reloadable object files.
15446 reload_flag=$lt_reload_flag
15447 reload_cmds=$lt_reload_cmds
15449 # Commands used to build an old-style archive.
15450 old_archive_cmds=$lt_old_archive_cmds
15452 # A language specific compiler.
15453 CC=$lt_compiler
15455 # Is the compiler the GNU compiler?
15456 with_gcc=$GCC
15458 # Compiler flag to turn off builtin functions.
15459 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15461 # Additional compiler flags for building library objects.
15462 pic_flag=$lt_lt_prog_compiler_pic
15464 # How to pass a linker flag through the compiler.
15465 wl=$lt_lt_prog_compiler_wl
15467 # Compiler flag to prevent dynamic linking.
15468 link_static_flag=$lt_lt_prog_compiler_static
15470 # Does compiler simultaneously support -c and -o options?
15471 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15473 # Whether or not to add -lc for building shared libraries.
15474 build_libtool_need_lc=$archive_cmds_need_lc
15476 # Whether or not to disallow shared libs when runtime libs are static.
15477 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15479 # Compiler flag to allow reflexive dlopens.
15480 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15482 # Compiler flag to generate shared objects directly from archives.
15483 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15485 # Whether the compiler copes with passing no objects directly.
15486 compiler_needs_object=$lt_compiler_needs_object
15488 # Create an old-style archive from a shared archive.
15489 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15491 # Create a temporary old-style archive to link instead of a shared archive.
15492 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15494 # Commands used to build a shared archive.
15495 archive_cmds=$lt_archive_cmds
15496 archive_expsym_cmds=$lt_archive_expsym_cmds
15498 # Commands used to build a loadable module if different from building
15499 # a shared archive.
15500 module_cmds=$lt_module_cmds
15501 module_expsym_cmds=$lt_module_expsym_cmds
15503 # Whether we are building with GNU ld or not.
15504 with_gnu_ld=$lt_with_gnu_ld
15506 # Flag that allows shared libraries with undefined symbols to be built.
15507 allow_undefined_flag=$lt_allow_undefined_flag
15509 # Flag that enforces no undefined symbols.
15510 no_undefined_flag=$lt_no_undefined_flag
15512 # Flag to hardcode \$libdir into a binary during linking.
15513 # This must work even if \$libdir does not exist
15514 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15516 # Whether we need a single "-rpath" flag with a separated argument.
15517 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15519 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15520 # DIR into the resulting binary.
15521 hardcode_direct=$hardcode_direct
15523 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15524 # DIR into the resulting binary and the resulting library dependency is
15525 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15526 # library is relocated.
15527 hardcode_direct_absolute=$hardcode_direct_absolute
15529 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15530 # into the resulting binary.
15531 hardcode_minus_L=$hardcode_minus_L
15533 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15534 # into the resulting binary.
15535 hardcode_shlibpath_var=$hardcode_shlibpath_var
15537 # Set to "yes" if building a shared library automatically hardcodes DIR
15538 # into the library and all subsequent libraries and executables linked
15539 # against it.
15540 hardcode_automatic=$hardcode_automatic
15542 # Set to yes if linker adds runtime paths of dependent libraries
15543 # to runtime path list.
15544 inherit_rpath=$inherit_rpath
15546 # Whether libtool must link a program against all its dependency libraries.
15547 link_all_deplibs=$link_all_deplibs
15549 # Set to "yes" if exported symbols are required.
15550 always_export_symbols=$always_export_symbols
15552 # The commands to list exported symbols.
15553 export_symbols_cmds=$lt_export_symbols_cmds
15555 # Symbols that should not be listed in the preloaded symbols.
15556 exclude_expsyms=$lt_exclude_expsyms
15558 # Symbols that must always be exported.
15559 include_expsyms=$lt_include_expsyms
15561 # Commands necessary for linking programs (against libraries) with templates.
15562 prelink_cmds=$lt_prelink_cmds
15564 # Commands necessary for finishing linking programs.
15565 postlink_cmds=$lt_postlink_cmds
15567 # Specify filename containing input files.
15568 file_list_spec=$lt_file_list_spec
15570 # How to hardcode a shared library path into an executable.
15571 hardcode_action=$hardcode_action
15573 # ### END LIBTOOL CONFIG
15575 _LT_EOF
15577 cat <<'_LT_EOF' >> "$cfgfile"
15579 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15581 # func_munge_path_list VARIABLE PATH
15582 # -----------------------------------
15583 # VARIABLE is name of variable containing _space_ separated list of
15584 # directories to be munged by the contents of PATH, which is string
15585 # having a format:
15586 # "DIR[:DIR]:"
15587 # string "DIR[ DIR]" will be prepended to VARIABLE
15588 # ":DIR[:DIR]"
15589 # string "DIR[ DIR]" will be appended to VARIABLE
15590 # "DIRP[:DIRP]::[DIRA:]DIRA"
15591 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15592 # "DIRA[ DIRA]" will be appended to VARIABLE
15593 # "DIR[:DIR]"
15594 # VARIABLE will be replaced by "DIR[ DIR]"
15595 func_munge_path_list ()
15597 case x$2 in
15601 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15603 x:*)
15604 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15606 *::*)
15607 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15608 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15611 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15613 esac
15617 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15618 func_cc_basename ()
15620 for cc_temp in $*""; do
15621 case $cc_temp in
15622 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15623 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15624 \-*) ;;
15625 *) break;;
15626 esac
15627 done
15628 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15632 # ### END FUNCTIONS SHARED WITH CONFIGURE
15634 _LT_EOF
15636 case $host_os in
15637 aix3*)
15638 cat <<\_LT_EOF >> "$cfgfile"
15639 # AIX sometimes has problems with the GCC collect2 program. For some
15640 # reason, if we set the COLLECT_NAMES environment variable, the problems
15641 # vanish in a puff of smoke.
15642 if test set != "${COLLECT_NAMES+set}"; then
15643 COLLECT_NAMES=
15644 export COLLECT_NAMES
15646 _LT_EOF
15648 esac
15651 ltmain=$ac_aux_dir/ltmain.sh
15654 # We use sed instead of cat because bash on DJGPP gets confused if
15655 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15656 # text mode, it properly converts lines to CR/LF. This bash problem
15657 # is reportedly fixed, but why not run on old versions too?
15658 sed '$q' "$ltmain" >> "$cfgfile" \
15659 || (rm -f "$cfgfile"; exit 1)
15661 mv -f "$cfgfile" "$ofile" ||
15662 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15663 chmod +x "$ofile"
15667 esac
15668 done # for ac_tag
15671 as_fn_exit 0
15672 _ACEOF
15673 ac_clean_files=$ac_clean_files_save
15675 test $ac_write_fail = 0 ||
15676 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15679 # configure is writing to config.log, and then calls config.status.
15680 # config.status does its own redirection, appending to config.log.
15681 # Unfortunately, on DOS this fails, as config.log is still kept open
15682 # by configure, so config.status won't be able to write to it; its
15683 # output is simply discarded. So we exec the FD to /dev/null,
15684 # effectively closing config.log, so it can be properly (re)opened and
15685 # appended to by config.status. When coming back to configure, we
15686 # need to make the FD available again.
15687 if test "$no_create" != yes; then
15688 ac_cs_success=:
15689 ac_config_status_args=
15690 test "$silent" = yes &&
15691 ac_config_status_args="$ac_config_status_args --quiet"
15692 exec 5>/dev/null
15693 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15694 exec 5>>config.log
15695 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15696 # would make configure fail if this is the last instruction.
15697 $ac_cs_success || as_fn_exit 1
15699 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15701 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}