2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for sqlcipher 3.45.0.
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
16 # Be more Bourne compatible
17 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
38 # Reset variables that may have inherited troublesome values from
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
54 # Ensure predictable behavior from utilities with locale-dependent output.
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \
${$as_var+y} \
67 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
72 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
78 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
79 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
85 # Find who we are. Look in the path if we contain no directory separator.
88 *[\\/]* ) as_myself
=$0 ;;
89 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
98 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
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
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
118 _as_can_reexec
=no
; export _as_can_reexec
;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
125 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
127 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec
=; unset _as_can_reexec
;}
140 if test "x$CONFIG_SHELL" = x
; then
141 as_bourne_compatible
="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 case \`(set -o) 2>/dev/null\` in #(
159 as_required
="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
174 exitcode=1; echo positional parameters were not saved.
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
180 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
186 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
187 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 PATH=/empty FPATH=/empty; export PATH FPATH
190 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
191 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
192 test \$(( 1 + 1 )) = 2 || exit 1"
193 if (eval "$as_required") 2>/dev
/null
199 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
203 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
205 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
211 *) as_dir
=$as_dir/ ;;
216 for as_base
in sh bash ksh sh5
; do
217 # Try only shells that exist, to save several forks.
218 as_shell
=$as_dir$as_base
219 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
220 as_run
=a
"$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev
/null
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if as_run
=a
"$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev
/null
237 if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
238 as_run
=a
"$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev
/null
240 CONFIG_SHELL
=$SHELL as_have_required
=yes
245 if test "x$CONFIG_SHELL" != x
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.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
270 printf "%s\n" "$0: This script requires a shell more modern than all"
271 printf "%s\n" "$0: the shells that I found on your system."
272 if test ${ZSH_VERSION+y} ; then
273 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
274 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
276 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
277 $0: including any error possibly output before this
278 $0: message. Then install a modern shell, or manually run
279 $0: the script under such a shell if you do have one."
285 SHELL
=${CONFIG_SHELL-/bin/sh}
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE
= GREP_OPTIONS
=
289 unset CLICOLOR_FORCE GREP_OPTIONS
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
296 # Portably unset VAR.
299 { eval $1=; unset $1;}
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
323 # Do nothing but, unlike ":", preserve the value of $?.
332 # Create "$as_dir" as a directory, including parents if necessary.
337 -*) as_dir
=.
/$as_dir;;
339 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
343 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
346 as_dirs
="'$as_qdir' $as_dirs"
347 as_dir
=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
370 test -d "$as_dir" && break
372 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
373 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p
()
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
393 eval 'as_fn_append ()
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
418 as_val
=`expr "$@" || test $? -eq 1`
424 # Do nothing but, unlike ":", preserve the value of $?.
431 # as_fn_error STATUS ERROR [LINENO LOG_FD]
432 # ----------------------------------------
433 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
434 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
435 # script with STATUS, using 1 if that was 0.
438 as_status
=$1; test $as_status -eq 0 && as_status
=1
440 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
443 printf "%s\n" "$as_me: error: $2" >&2
444 as_fn_exit
$as_status
447 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
448 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
454 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
460 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
466 as_me
=`$as_basename -- "$0" ||
467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
468 X"$0" : 'X\(//\)$' \| \
469 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
470 printf "%s\n" X/"$0" |
471 sed '/^.*\/\([^/][^/]*\)\/*$/{
485 # Avoid depending upon Character Ranges.
486 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
487 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
488 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
489 as_cr_digits
='0123456789'
490 as_cr_alnum
=$as_cr_Letters$as_cr_digits
493 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
494 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
495 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
496 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
497 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
509 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 chmod +x
"$as_me.lineno" ||
514 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
516 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
517 # already done that, so ensure we don't try to do so again and fall
518 # in an infinite loop. This has already happened in practice.
519 _as_can_reexec
=no
; export _as_can_reexec
520 # Don't try to exec as it changes $[0], causing all sort of problems
521 # (the dirname of $[0] is not the place where we might find the
522 # original and so on. Autoconf is especially sensitive to this).
524 # Exit status is that of the last command.
529 # Determine whether it's possible to make 'echo' print without a newline.
530 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
531 # for compatibility with existing Makefiles.
532 ECHO_C
= ECHO_N
= ECHO_T
=
533 case `echo -n x` in #(((((
535 case `echo 'xy\c'` in
536 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
538 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
545 # For backward compatibility with old third-party macros, we provide
546 # the shell variables $as_echo and $as_echo_n. New code should use
547 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
548 as_echo
='printf %s\n'
549 as_echo_n
='printf %s'
552 rm -f conf$$ conf$$.exe conf$$.
file
553 if test -d conf$$.dir
; then
554 rm -f conf$$.dir
/conf$$.
file
557 mkdir conf$$.dir
2>/dev
/null
559 if (echo >conf$$.
file) 2>/dev
/null
; then
560 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
562 # ... but there are two gotchas:
563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
565 # In both cases, we have to default to `cp -pR'.
566 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
568 elif ln conf$$.
file conf$$
2>/dev
/null
; then
576 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
577 rmdir conf$$.dir
2>/dev
/null
579 if mkdir
-p .
2>/dev
/null
; then
580 as_mkdir_p
='mkdir -p "$as_dir"'
582 test -d .
/-p && rmdir .
/-p
587 as_executable_p
=as_fn_executable_p
589 # Sed expression to map a string onto a valid CPP name.
590 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
592 # Sed expression to map a string onto a valid variable name.
593 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
595 SHELL
=${CONFIG_SHELL-/bin/sh}
598 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
602 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
603 # so uname gets run too.
604 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
609 ac_default_prefix
=/usr
/local
611 ac_config_libobj_dir
=.
618 # Identity of this package.
619 PACKAGE_NAME
='sqlcipher'
620 PACKAGE_TARNAME
='sqlcipher'
621 PACKAGE_VERSION
='3.45.0'
622 PACKAGE_STRING
='sqlcipher 3.45.0'
626 # Factoring default headers for most tests.
627 ac_includes_default
="\
638 #ifdef HAVE_INTTYPES_H
639 # include <inttypes.h>
644 #ifdef HAVE_STRINGS_H
645 # include <strings.h>
647 #ifdef HAVE_SYS_TYPES_H
648 # include <sys/types.h>
650 #ifdef HAVE_SYS_STAT_H
651 # include <sys/stat.h>
658 ac_subst_vars
='LTLIBOBJS
664 AMALGAMATION_LINE_MACROS
665 amalgamation_line_macros
668 TARGET_HAVE_LINENOISE
770 program_transform_name
783 enable_option_checking
796 enable_cross_thread_connections
808 enable_load_extension
823 ac_precious_vars
='build_alias
833 amalgamation_line_macros'
836 # Initialize some variables set by options.
838 ac_init_version
=false
839 ac_unrecognized_opts
=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
850 program_transform_name
=s
,x
,x
,
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir
='${exec_prefix}/bin'
865 sbindir
='${exec_prefix}/sbin'
866 libexecdir
='${exec_prefix}/libexec'
867 datarootdir
='${prefix}/share'
868 datadir
='${datarootdir}'
869 sysconfdir
='${prefix}/etc'
870 sharedstatedir
='${prefix}/com'
871 localstatedir
='${prefix}/var'
872 runstatedir
='${localstatedir}/run'
873 includedir
='${prefix}/include'
874 oldincludedir
='/usr/include'
875 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
876 infodir
='${datarootdir}/info'
881 libdir
='${exec_prefix}/lib'
882 localedir
='${datarootdir}/locale'
883 mandir
='${datarootdir}/man'
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\
$ac_option
897 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 case $ac_dashdash$ac_option in
906 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
908 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
911 -build |
--build |
--buil |
--bui |
--bu)
912 ac_prev
=build_alias
;;
913 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
914 build_alias
=$ac_optarg ;;
916 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
917 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
918 ac_prev
=cache_file
;;
919 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
920 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
921 cache_file
=$ac_optarg ;;
924 cache_file
=config.cache
;;
926 -datadir |
--datadir |
--datadi |
--datad)
928 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
929 datadir
=$ac_optarg ;;
931 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
932 |
--dataroo |
--dataro |
--datar)
933 ac_prev
=datarootdir
;;
934 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
935 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
936 datarootdir
=$ac_optarg ;;
938 -disable-* |
--disable-*)
939 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
942 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
943 ac_useropt_orig
=$ac_useropt
944 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
949 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
950 ac_unrecognized_sep
=', ';;
952 eval enable_
$ac_useropt=no
;;
954 -docdir |
--docdir |
--docdi |
--doc |
--do)
956 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
959 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
961 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
964 -enable-* |
--enable-*)
965 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
968 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
969 ac_useropt_orig
=$ac_useropt
970 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
975 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
976 ac_unrecognized_sep
=', ';;
978 eval enable_
$ac_useropt=\
$ac_optarg ;;
980 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
981 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
982 |
--exec |
--exe |
--ex)
983 ac_prev
=exec_prefix
;;
984 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
985 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
986 |
--exec=* |
--exe=* |
--ex=*)
987 exec_prefix
=$ac_optarg ;;
989 -gas |
--gas |
--ga |
--g)
990 # Obsolete; use --with-gas.
993 -help |
--help |
--hel |
--he |
-h)
995 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
996 ac_init_help
=recursive
;;
997 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
998 ac_init_help
=short
;;
1000 -host |
--host |
--hos |
--ho)
1001 ac_prev
=host_alias
;;
1002 -host=* |
--host=* |
--hos=* |
--ho=*)
1003 host_alias
=$ac_optarg ;;
1005 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1007 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1009 htmldir
=$ac_optarg ;;
1011 -includedir |
--includedir |
--includedi |
--included |
--include \
1012 |
--includ |
--inclu |
--incl |
--inc)
1013 ac_prev
=includedir
;;
1014 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1015 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1016 includedir
=$ac_optarg ;;
1018 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1020 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1021 infodir
=$ac_optarg ;;
1023 -libdir |
--libdir |
--libdi |
--libd)
1025 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1026 libdir
=$ac_optarg ;;
1028 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1029 |
--libexe |
--libex |
--libe)
1030 ac_prev
=libexecdir
;;
1031 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1032 |
--libexe=* |
--libex=* |
--libe=*)
1033 libexecdir
=$ac_optarg ;;
1035 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1036 ac_prev
=localedir
;;
1037 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1038 localedir
=$ac_optarg ;;
1040 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1041 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1042 ac_prev
=localstatedir
;;
1043 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1044 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1045 localstatedir
=$ac_optarg ;;
1047 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1049 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1050 mandir
=$ac_optarg ;;
1052 -nfp |
--nfp |
--nf)
1053 # Obsolete; use --without-fp.
1056 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1057 |
--no-cr |
--no-c |
-n)
1060 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1061 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1064 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1065 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1066 |
--oldin |
--oldi |
--old |
--ol |
--o)
1067 ac_prev
=oldincludedir
;;
1068 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1069 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1070 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1071 oldincludedir
=$ac_optarg ;;
1073 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1075 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1076 prefix
=$ac_optarg ;;
1078 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1079 |
--program-pre |
--program-pr |
--program-p)
1080 ac_prev
=program_prefix
;;
1081 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1082 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1083 program_prefix
=$ac_optarg ;;
1085 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1086 |
--program-suf |
--program-su |
--program-s)
1087 ac_prev
=program_suffix
;;
1088 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1089 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1090 program_suffix
=$ac_optarg ;;
1092 -program-transform-name |
--program-transform-name \
1093 |
--program-transform-nam |
--program-transform-na \
1094 |
--program-transform-n |
--program-transform- \
1095 |
--program-transform |
--program-transfor \
1096 |
--program-transfo |
--program-transf \
1097 |
--program-trans |
--program-tran \
1098 |
--progr-tra |
--program-tr |
--program-t)
1099 ac_prev
=program_transform_name
;;
1100 -program-transform-name=* |
--program-transform-name=* \
1101 |
--program-transform-nam=* |
--program-transform-na=* \
1102 |
--program-transform-n=* |
--program-transform-=* \
1103 |
--program-transform=* |
--program-transfor=* \
1104 |
--program-transfo=* |
--program-transf=* \
1105 |
--program-trans=* |
--program-tran=* \
1106 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1107 program_transform_name
=$ac_optarg ;;
1109 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1111 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1112 pdfdir
=$ac_optarg ;;
1114 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1116 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1119 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1120 |
-silent |
--silent |
--silen |
--sile |
--sil)
1123 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1124 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1125 |
--run |
--ru |
--r)
1126 ac_prev
=runstatedir
;;
1127 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1128 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1129 |
--run=* |
--ru=* |
--r=*)
1130 runstatedir
=$ac_optarg ;;
1132 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1134 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1136 sbindir
=$ac_optarg ;;
1138 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1139 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1140 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1142 ac_prev
=sharedstatedir
;;
1143 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1144 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1145 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1147 sharedstatedir
=$ac_optarg ;;
1149 -site |
--site |
--sit)
1151 -site=* |
--site=* |
--sit=*)
1154 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1156 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1157 srcdir
=$ac_optarg ;;
1159 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1160 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1161 ac_prev
=sysconfdir
;;
1162 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1163 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1164 sysconfdir
=$ac_optarg ;;
1166 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1167 ac_prev
=target_alias
;;
1168 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1169 target_alias
=$ac_optarg ;;
1171 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1174 -version |
--version |
--versio |
--versi |
--vers |
-V)
1175 ac_init_version
=: ;;
1178 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1181 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1182 ac_useropt_orig
=$ac_useropt
1183 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1188 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189 ac_unrecognized_sep
=', ';;
1191 eval with_
$ac_useropt=\
$ac_optarg ;;
1193 -without-* |
--without-*)
1194 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1197 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1198 ac_useropt_orig
=$ac_useropt
1199 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1204 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205 ac_unrecognized_sep
=', ';;
1207 eval with_
$ac_useropt=no
;;
1210 # Obsolete; use --with-x.
1213 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1214 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1215 ac_prev
=x_includes
;;
1216 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1217 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1218 x_includes
=$ac_optarg ;;
1220 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1221 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1222 ac_prev
=x_libraries
;;
1223 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1224 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1225 x_libraries
=$ac_optarg ;;
1227 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1228 Try \`$0 --help' for more information"
1232 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1233 # Reject names that are not valid shell variable names.
1234 case $ac_envvar in #(
1235 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1236 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1238 eval $ac_envvar=\
$ac_optarg
1239 export $ac_envvar ;;
1242 # FIXME: should be removed in autoconf 3.0.
1243 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1245 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1246 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1252 if test -n "$ac_prev"; then
1253 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1254 as_fn_error $?
"missing argument to $ac_option"
1257 if test -n "$ac_unrecognized_opts"; then
1258 case $enable_option_checking in
1260 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1261 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 # Check all directory arguments for consistency.
1266 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267 datadir sysconfdir sharedstatedir localstatedir includedir \
1268 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269 libdir localedir mandir runstatedir
1271 eval ac_val
=\$
$ac_var
1272 # Remove trailing slashes.
1275 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276 eval $ac_var=\
$ac_val;;
1278 # Be sure to have absolute directory names.
1280 [\\/$
]* | ?
:[\\/]* ) continue;;
1281 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1283 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1286 # There might be people who depend on the old broken behavior: `$host'
1287 # used to hold the argument of --host etc.
1288 # FIXME: To remove some day.
1291 target
=$target_alias
1293 # FIXME: To remove some day.
1294 if test "x$host_alias" != x
; then
1295 if test "x$build_alias" = x
; then
1296 cross_compiling
=maybe
1297 elif test "x$build_alias" != "x$host_alias"; then
1303 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1305 test "$silent" = yes && exec 6>/dev
/null
1308 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di
=`ls -di .` &&
1310 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1311 as_fn_error $?
"working directory cannot be determined"
1312 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313 as_fn_error $?
"pwd does not report name of working directory"
1316 # Find the source files, if location was not specified.
1317 if test -z "$srcdir"; then
1318 ac_srcdir_defaulted
=yes
1319 # Try the directory containing this script, then the parent directory.
1320 ac_confdir
=`$as_dirname -- "$as_myself" ||
1321 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322 X"$as_myself" : 'X\(//\)[^/]' \| \
1323 X"$as_myself" : 'X\(//\)$' \| \
1324 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325 printf "%s\n" X"$as_myself" |
1326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1348 ac_srcdir_defaulted
=no
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1352 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1354 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1358 # When building in place, set srcdir=.
1359 if test "$ac_abs_confdir" = "$ac_pwd"; then
1362 # Remove unnecessary trailing slashes from srcdir.
1363 # Double slashes in file names in object file debugging info
1364 # mess up M-x gdb in Emacs.
1366 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 for ac_var
in $ac_precious_vars; do
1369 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1370 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1371 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1372 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1376 # Report the --help message.
1378 if test "$ac_init_help" = "long"; then
1379 # Omit some internal or obsolete options to make the list less imposing.
1380 # This message is too long to be a string in the A/UX 3.1 sh.
1382 \`configure' configures sqlcipher 3.45.0 to adapt to many kinds of systems.
1384 Usage: $0 [OPTION]... [VAR=VALUE]...
1386 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387 VAR=VALUE. See below for descriptions of some of the useful variables.
1389 Defaults for the options are specified in brackets.
1392 -h, --help display this help and exit
1393 --help=short display options specific to this package
1394 --help=recursive display the short help of all the included packages
1395 -V, --version display version information and exit
1396 -q, --quiet, --silent do not print \`checking ...' messages
1397 --cache-file=FILE cache test results in FILE [disabled]
1398 -C, --config-cache alias for \`--cache-file=config.cache'
1399 -n, --no-create do not create output files
1400 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402 Installation directories:
1403 --prefix=PREFIX install architecture-independent files in PREFIX
1404 [$ac_default_prefix]
1405 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1408 By default, \`make install' will install all the files in
1409 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1410 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411 for instance \`--prefix=\$HOME'.
1413 For better control, use the options below.
1415 Fine tuning of the installation directories:
1416 --bindir=DIR user executables [EPREFIX/bin]
1417 --sbindir=DIR system admin executables [EPREFIX/sbin]
1418 --libexecdir=DIR program executables [EPREFIX/libexec]
1419 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1420 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1421 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1422 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlcipher]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1441 --build=BUILD configure
for building on BUILD
[guessed
]
1442 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1446 if test -n "$ac_init_help"; then
1447 case $ac_init_help in
1448 short | recursive
) echo "Configuration of sqlcipher 3.45.0:";;
1453 --disable-option-checking ignore unrecognized
--enable/--with options
1454 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1455 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1456 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1457 --enable-static[=PKGS
] build static libraries
[default
=yes]
1458 --enable-fast-install[=PKGS
]
1459 optimize
for fast installation
[default
=yes]
1460 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1461 --disable-largefile omit support
for large files
1462 --disable-threadsafe Disable mutexing
1463 --enable-cross-thread-connections
1464 Allow connection sharing across threads
1465 --enable-releasemode Support libtool link to release mode
1466 --enable-tempstore Use an in-ram database
for temporary tables
1467 (never
,no
,yes,always
)
1468 --disable-tcl do not build TCL extension
1469 --enable-editline enable BSD editline support
1470 --disable-readline disable readline support
1471 --enable-debug enable debugging
& verbose explain
1472 --disable-amalgamation Disable the amalgamation and instead build all files
1474 --disable-load-extension
1475 Disable loading of external extensions
1476 --disable-math Disable math functions
1477 --disable-json Disable JSON functions
1478 --enable-all Enable FTS4
, FTS5
, Geopoly
, RTree
, Sessions
1479 --enable-memsys5 Enable MEMSYS5
1480 --enable-memsys3 Enable MEMSYS3
1481 --enable-fts3 Enable the FTS3 extension
1482 --enable-fts4 Enable the FTS4 extension
1483 --enable-fts5 Enable the FTS5 extension
1484 --enable-update-limit Enable the UPDATE
/DELETE LIMIT clause
1485 --enable-geopoly Enable the GEOPOLY extension
1486 --enable-rtree Enable the RTREE extension
1487 --enable-session Enable the SESSION extension
1488 --enable-gcov Enable coverage testing using gcov
1491 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1492 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1493 --with-pic[=PKGS
] try to use only PIC
/non-PIC objects
[default
=use
1495 --with-aix-soname=aix|svr4|both
1496 shared library versioning
(aka
"SONAME") variant to
1497 provide on AIX
, [default
=aix
].
1498 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1499 --with-sysroot[=DIR
] Search
for dependent libraries within DIR
(or the
1500 compiler
's sysroot if not specified).
1501 --with-wasi-sdk=DIR directory containing the WASI SDK. Triggers
1502 cross-compile to WASM.
1503 --with-crypto-lib Specify which crypto library to use
1504 --with-tcl=DIR directory containing tcl configuration
1506 --with-readline-lib specify readline library
1507 --with-readline-inc specify readline include paths
1508 --with-linenoise=DIR source directory for linenoise library
1510 Some influential environment variables:
1511 CC C compiler command
1512 CFLAGS C compiler flags
1513 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1514 nonstandard directory <lib dir>
1515 LIBS libraries to pass to the linker, e.g. -l<library>
1516 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1517 you have headers in a nonstandard directory <include dir>
1519 User-defined run-time library search path.
1520 TCLLIBDIR Where to install tcl plugin
1521 amalgamation_line_macros
1524 Use these variables to override the choices made by `configure' or to
help
1525 it to
find libraries and programs with nonstandard names
/locations.
1527 Report bugs to the package provider.
1532 if test "$ac_init_help" = "recursive"; then
1533 # If there are subdirs, report their specific --help.
1534 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1535 test -d "$ac_dir" ||
1536 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1541 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1543 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1544 # A ".." for each directory in $ac_dir_suffix.
1545 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1546 case $ac_top_builddir_sub in
1547 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1548 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1551 ac_abs_top_builddir
=$ac_pwd
1552 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1553 # for backward compatibility:
1554 ac_top_builddir
=$ac_top_build_prefix
1557 .
) # We are building in place.
1559 ac_top_srcdir
=$ac_top_builddir_sub
1560 ac_abs_top_srcdir
=$ac_pwd ;;
1561 [\\/]* | ?
:[\\/]* ) # Absolute name.
1562 ac_srcdir
=$srcdir$ac_dir_suffix;
1563 ac_top_srcdir
=$srcdir
1564 ac_abs_top_srcdir
=$srcdir ;;
1566 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1568 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1570 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1572 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1573 # Check for configure.gnu first; this name is used for a wrapper for
1574 # Metaconfig's "Configure" on case-insensitive file systems.
1575 if test -f "$ac_srcdir/configure.gnu"; then
1577 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578 elif test -f "$ac_srcdir/configure"; then
1580 $SHELL "$ac_srcdir/configure" --help=recursive
1582 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1584 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1588 test -n "$ac_init_help" && exit $ac_status
1589 if $ac_init_version; then
1591 sqlcipher configure
3.45.0
1592 generated by GNU Autoconf
2.71
1594 Copyright
(C
) 2021 Free Software Foundation
, Inc.
1595 This configure
script is free software
; the Free Software Foundation
1596 gives unlimited permission to copy
, distribute and modify it.
1601 ## ------------------------ ##
1602 ## Autoconf initialization. ##
1603 ## ------------------------ ##
1605 # ac_fn_c_try_compile LINENO
1606 # --------------------------
1607 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1608 ac_fn_c_try_compile
()
1610 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1611 rm -f conftest.
$ac_objext conftest.beam
1612 if { { ac_try
="$ac_compile"
1614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1615 *) ac_try_echo=$ac_try;;
1617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618 printf "%s\n" "$ac_try_echo"; } >&5
1619 (eval "$ac_compile") 2>conftest.err
1621 if test -s conftest.err; then
1622 grep -v '^ *+' conftest.err >conftest.er1
1623 cat conftest.er1 >&5
1624 mv -f conftest.er1 conftest.err
1626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627 test $ac_status = 0; } && {
1628 test -z "$ac_c_werror_flag" ||
1629 test ! -s conftest.err
1630 } && test -s conftest.$ac_objext
1634 printf "%s\n" "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 as_fn_set_status $ac_retval
1642 } # ac_fn_c_try_compile
1644 # ac_fn_c_try_link LINENO
1645 # -----------------------
1646 # Try to link conftest.$ac_ext, and return whether this succeeded.
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1651 if { { ac_try="$ac_link"
1653 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1654 *) ac_try_echo
=$ac_try;;
1656 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 printf "%s\n" "$ac_try_echo"; } >&5
1658 (eval "$ac_link") 2>conftest.err
1660 if test -s conftest.err
; then
1661 grep -v '^ *+' conftest.err
>conftest.er1
1662 cat conftest.er1
>&5
1663 mv -f conftest.er1 conftest.err
1665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } && {
1667 test -z "$ac_c_werror_flag" ||
1668 test ! -s conftest.err
1669 } && test -s conftest
$ac_exeext && {
1670 test "$cross_compiling" = yes ||
1671 test -x conftest
$ac_exeext
1676 printf "%s\n" "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.
$ac_ext >&5
1681 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1682 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1683 # interfere with the next link command; also delete a directory that is
1684 # left behind by Apple's compiler. We do this before executing the actions.
1685 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 as_fn_set_status
$ac_retval
1689 } # ac_fn_c_try_link
1691 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1692 # -------------------------------------------------------
1693 # Tests whether HEADER exists and can be compiled using the include files in
1694 # INCLUDES, setting the cache variable VAR accordingly.
1695 ac_fn_c_check_header_compile
()
1697 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699 printf %s
"checking for $2... " >&6; }
1700 if eval test \
${$3+y}
1702 printf %s
"(cached) " >&6
1704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1705 /* end confdefs.h. */
1709 if ac_fn_c_try_compile
"$LINENO"
1715 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
1718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719 printf "%s\n" "$ac_res" >&6; }
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 } # ac_fn_c_check_header_compile
1724 # ac_fn_c_check_func LINENO FUNC VAR
1725 # ----------------------------------
1726 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1727 ac_fn_c_check_func
()
1729 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 printf %s
"checking for $2... " >&6; }
1732 if eval test \
${$3+y}
1734 printf %s
"(cached) " >&6
1736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1737 /* end confdefs.h. */
1738 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1740 #define $2 innocuous_$2
1742 /* System header to define __stub macros and hopefully few prototypes,
1743 which can conflict with char $2 (); below. */
1748 /* Override any GCC internal prototype to avoid an error.
1749 Use char because int might match the return type of a GCC
1750 builtin and then its argument prototype would still apply. */
1755 /* The GNU C library defines this for functions which it implements
1756 to always fail with ENOSYS. Some functions are actually named
1757 something starting with __ and the normal name is an alias. */
1758 #if defined __stub_$2 || defined __stub___$2
1770 if ac_fn_c_try_link
"$LINENO"
1776 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
1777 conftest
$ac_exeext conftest.
$ac_ext
1780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 printf "%s\n" "$ac_res" >&6; }
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 } # ac_fn_c_check_func
1786 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1787 # -------------------------------------------
1788 # Tests whether TYPE exists after having included INCLUDES, setting cache
1789 # variable VAR accordingly.
1790 ac_fn_c_check_type
()
1792 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 printf %s
"checking for $2... " >&6; }
1795 if eval test \
${$3+y}
1797 printf %s
"(cached) " >&6
1800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1812 if ac_fn_c_try_compile
"$LINENO"
1814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1826 if ac_fn_c_try_compile
"$LINENO"
1832 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
1834 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
1837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838 printf "%s\n" "$ac_res" >&6; }
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 } # ac_fn_c_check_type
1842 ac_configure_args_raw
=
1847 ac_arg
=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1849 as_fn_append ac_configure_args_raw
" '$ac_arg'"
1852 case $ac_configure_args_raw in
1856 ac_unsafe_z
='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1857 ac_unsafe_a
="$ac_unsafe_z#~"
1858 ac_safe_unquote
="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1859 ac_configure_args_raw
=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1862 cat >config.log
<<_ACEOF
1863 This file contains any messages produced by compilers while
1864 running configure, to aid debugging if configure makes a mistake.
1866 It was created by sqlcipher $as_me 3.45.0, which was
1867 generated by GNU Autoconf 2.71. Invocation command line was
1869 $ $0$ac_configure_args_raw
1879 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1880 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1881 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1882 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1883 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1885 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1886 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1888 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1889 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1890 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1891 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1892 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1893 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1894 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1898 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1902 case $as_dir in #(((
1905 *) as_dir
=$as_dir/ ;;
1907 printf "%s\n" "PATH: $as_dir"
1923 # Keep a trace of the command line.
1924 # Strip out --no-create and --no-recursion so they do not pile up.
1925 # Strip out --silent because we don't want to record it for future runs.
1926 # Also quote any args containing shell meta-characters.
1927 # Make two passes to allow for proper duplicate-argument suppression.
1931 ac_must_keep_next
=false
1937 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1938 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1939 |
-silent |
--silent |
--silen |
--sile |
--sil)
1942 ac_arg
=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1945 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
1947 as_fn_append ac_configure_args1
" '$ac_arg'"
1948 if test $ac_must_keep_next = true
; then
1949 ac_must_keep_next
=false
# Got value, back to normal.
1952 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1953 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1954 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1955 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1956 case "$ac_configure_args0 " in
1957 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1960 -* ) ac_must_keep_next
=true
;;
1963 as_fn_append ac_configure_args
" '$ac_arg'"
1968 { ac_configure_args0
=; unset ac_configure_args0
;}
1969 { ac_configure_args1
=; unset ac_configure_args1
;}
1971 # When interrupted or exit'd, cleanup temporary files, and complete
1972 # config.log. We remove comments because anyway the quotes in there
1973 # would cause problems or look ugly.
1974 # WARNING: Use '\'' to represent an apostrophe within the trap.
1975 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1976 trap 'exit_status=$?
1979 # Save into config.log some information that might help in debugging.
1983 printf "%s\n" "## ---------------- ##
1984 ## Cache variables. ##
1985 ## ---------------- ##"
1987 # The following way of writing the cache mishandles newlines in values,
1989 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1990 eval ac_val=\$$ac_var
1994 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1995 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1998 _ | IFS | as_nl) ;; #(
1999 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2000 *) { eval $ac_var=; unset $ac_var;} ;;
2005 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2006 *${as_nl}ac_space=\ *)
2008 "s/'\''/'\''\\\\'\'''\''/g;
2009 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2012 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2019 printf "%s\n" "## ----------------- ##
2020 ## Output variables. ##
2021 ## ----------------- ##"
2023 for ac_var in $ac_subst_vars
2025 eval ac_val=\$$ac_var
2027 *\'\''*) ac_val
=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2029 printf "%s\n" "$ac_var='\''$ac_val'\''"
2033 if test -n "$ac_subst_files"; then
2034 printf "%s\n" "## ------------------- ##
2035 ## File substitutions. ##
2036 ## ------------------- ##"
2038 for ac_var
in $ac_subst_files
2040 eval ac_val
=\$
$ac_var
2042 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2044 printf "%s\n" "$ac_var='\''$ac_val'\''"
2049 if test -s confdefs.h; then
2050 printf "%s\n" "## ----------- ##
2057 test "$ac_signal" != 0 &&
2058 printf "%s\n" "$as_me: caught signal $ac_signal"
2059 printf "%s\n" "$as_me: exit $exit_status"
2061 rm -f core *.core core.conftest.* &&
2062 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2065 for ac_signal
in 1 2 13 15; do
2066 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2070 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2071 rm -f -r conftest
* confdefs.h
2073 printf "%s\n" "/* confdefs.h */" > confdefs.h
2075 # Predefined preprocessor variables.
2077 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2079 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2081 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2083 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2085 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2087 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2090 # Let the site file select an alternate cache file if it wants to.
2091 # Prefer an explicitly selected file to automatically selected ones.
2092 if test -n "$CONFIG_SITE"; then
2093 ac_site_files
="$CONFIG_SITE"
2094 elif test "x$prefix" != xNONE
; then
2095 ac_site_files
="$prefix/share/config.site $prefix/etc/config.site"
2097 ac_site_files
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2100 for ac_site_file
in $ac_site_files
2102 case $ac_site_file in #(
2106 ac_site_file
=.
/$ac_site_file ;;
2108 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2110 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2111 sed 's/^/| /' "$ac_site_file" >&5
2113 ||
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2114 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2115 as_fn_error $?
"failed to load site script $ac_site_file
2116 See \`config.log' for more details" "$LINENO" 5; }
2120 if test -r "$cache_file"; then
2121 # Some versions of bash will fail to source /dev/null (special files
2122 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2123 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2125 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2127 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2128 *) .
"./$cache_file";;
2132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2133 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2137 # Test code for whether the C compiler supports C89 (global declarations)
2138 ac_c_conftest_c89_globals
='
2139 /* Does the compiler advertise C89 conformance?
2140 Do not test the value of __STDC__, because some compilers set it to 0
2141 while being otherwise adequately conformant. */
2142 #if !defined __STDC__
2143 # error "Compiler does not advertise C89 conformance"
2149 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2150 struct buf { int x; };
2151 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2152 static char *e (p, i)
2158 static char *f (char * (*g) (char **, int), char **p, ...)
2163 s = g (p, va_arg (v,int));
2168 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2169 function prototypes and stuff, but not \xHH hex character constants.
2170 These do not provoke an error unfortunately, instead are silently treated
2171 as an "x". The following induces an error, until -std is added to get
2172 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2173 array size at least. It is necessary to write \x00 == 0 to get something
2174 that is true only with -std. */
2175 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2177 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2178 inside strings and character constants. */
2179 #define FOO(x) '\''x'\''
2180 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2182 int test (int i, double x);
2183 struct s1 {int (*f) (int a);};
2184 struct s2 {int (*f) (double a);};
2185 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2188 # Test code for whether the C compiler supports C89 (body of main).
2189 ac_c_conftest_c89_main
='
2190 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2193 # Test code for whether the C compiler supports C99 (global declarations)
2194 ac_c_conftest_c99_globals
='
2195 // Does the compiler advertise C99 conformance?
2196 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2197 # error "Compiler does not advertise C99 conformance"
2200 #include <stdbool.h>
2201 extern int puts (const char *);
2202 extern int printf (const char *, ...);
2203 extern int dprintf (int, const char *, ...);
2204 extern void *malloc (size_t);
2206 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2207 // dprintf is used instead of fprintf to avoid needing to declare
2209 #define debug(...) dprintf (2, __VA_ARGS__)
2210 #define showlist(...) puts (#__VA_ARGS__)
2211 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2213 test_varargs_macros (void)
2218 debug ("X = %d\n", x);
2219 showlist (The first, second, and third items.);
2220 report (x>y, "x is %d but y is %d", x, y);
2223 // Check long long types.
2224 #define BIG64 18446744073709551615ull
2225 #define BIG32 4294967295ul
2226 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2228 #error "your preprocessor is broken"
2232 #error "your preprocessor is broken"
2234 static long long int bignum = -9223372036854775807LL;
2235 static unsigned long long int ubignum = BIG64;
2237 struct incomplete_array
2245 const wchar_t *name;
2249 typedef const char *ccp;
2252 test_restrict (ccp restrict text)
2254 // See if C++-style comments work.
2255 // Iterate through items via the restricted pointer.
2256 // Also check for declarations in for loops.
2257 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2262 // Check varargs and va_copy.
2264 test_varargs (const char *format, ...)
2267 va_start (args, format);
2269 va_copy (args_copy, args);
2271 const char *str = "";
2279 case '\''s'\'': // string
2280 str = va_arg (args_copy, const char *);
2282 case '\''d'\'': // int
2283 number = va_arg (args_copy, int);
2285 case '\''f'\'': // float
2286 fnumber = va_arg (args_copy, double);
2295 return *str && number && fnumber;
2299 # Test code for whether the C compiler supports C99 (body of main).
2300 ac_c_conftest_c99_main
='
2302 _Bool success = false;
2303 success |= (argc != 0);
2306 if (test_restrict ("String literal") == 0)
2308 char *restrict newvar = "Another string";
2311 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2312 test_varargs_macros ();
2314 // Check flexible array members.
2315 struct incomplete_array *ia =
2316 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2318 for (int i = 0; i < ia->datasize; ++i)
2319 ia->data[i] = i * 1.234;
2321 // Check named initializers.
2322 struct named_init ni = {
2324 .name = L"Test wide string",
2325 .average = 543.34343,
2330 int dynamic_array[ni.number];
2331 dynamic_array[0] = argv[0][0];
2332 dynamic_array[ni.number - 1] = 543;
2334 // work around unused variable warnings
2335 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2336 || dynamic_array[ni.number - 1] != 543);
2339 # Test code for whether the C compiler supports C11 (global declarations)
2340 ac_c_conftest_c11_globals
='
2341 // Does the compiler advertise C11 conformance?
2342 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2343 # error "Compiler does not advertise C11 conformance"
2347 char _Alignas (double) aligned_as_double;
2348 char _Alignas (0) no_special_alignment;
2349 extern char aligned_as_int;
2350 char _Alignas (0) _Alignas (int) aligned_as_int;
2355 int_alignment = _Alignof (int),
2356 int_array_alignment = _Alignof (int[100]),
2357 char_alignment = _Alignof (char)
2359 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2362 int _Noreturn does_not_return (void) { for (;;) continue; }
2364 // Check _Static_assert.
2365 struct test_static_assert
2368 _Static_assert (sizeof (int) <= sizeof (long int),
2369 "_Static_assert does not work in struct");
2373 // Check UTF-8 literals.
2374 #define u8 syntax error!
2375 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2377 // Check duplicate typedefs.
2378 typedef long *long_ptr;
2379 typedef long int *long_ptr;
2380 typedef long_ptr long_ptr;
2382 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2386 struct { int i; int j; };
2387 struct { int k; long int l; } w;
2393 # Test code for whether the C compiler supports C11 (body of main).
2394 ac_c_conftest_c11_main
='
2395 _Static_assert ((offsetof (struct anonymous, i)
2396 == offsetof (struct anonymous, w.k)),
2397 "Anonymous union alignment botch");
2403 # Test code for whether the C compiler supports C11 (complete).
2404 ac_c_conftest_c11_program
="${ac_c_conftest_c89_globals}
2405 ${ac_c_conftest_c99_globals}
2406 ${ac_c_conftest_c11_globals}
2409 main (int argc, char **argv)
2412 ${ac_c_conftest_c89_main}
2413 ${ac_c_conftest_c99_main}
2414 ${ac_c_conftest_c11_main}
2419 # Test code for whether the C compiler supports C99 (complete).
2420 ac_c_conftest_c99_program
="${ac_c_conftest_c89_globals}
2421 ${ac_c_conftest_c99_globals}
2424 main (int argc, char **argv)
2427 ${ac_c_conftest_c89_main}
2428 ${ac_c_conftest_c99_main}
2433 # Test code for whether the C compiler supports C89 (complete).
2434 ac_c_conftest_c89_program
="${ac_c_conftest_c89_globals}
2437 main (int argc, char **argv)
2440 ${ac_c_conftest_c89_main}
2445 as_fn_append ac_header_c_list
" stdio.h stdio_h HAVE_STDIO_H"
2446 as_fn_append ac_header_c_list
" stdlib.h stdlib_h HAVE_STDLIB_H"
2447 as_fn_append ac_header_c_list
" string.h string_h HAVE_STRING_H"
2448 as_fn_append ac_header_c_list
" inttypes.h inttypes_h HAVE_INTTYPES_H"
2449 as_fn_append ac_header_c_list
" stdint.h stdint_h HAVE_STDINT_H"
2450 as_fn_append ac_header_c_list
" strings.h strings_h HAVE_STRINGS_H"
2451 as_fn_append ac_header_c_list
" sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2452 as_fn_append ac_header_c_list
" sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2453 as_fn_append ac_header_c_list
" unistd.h unistd_h HAVE_UNISTD_H"
2455 # Auxiliary files required by this configure script.
2456 ac_aux_files
="install-sh config.guess config.sub ltmain.sh"
2458 # Locations in which to look for auxiliary files.
2459 ac_aux_dir_candidates
="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2461 # Search for a directory containing all of the required auxiliary files,
2462 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2463 # If we don't find one directory that contains all the files we need,
2464 # we report the set of missing files from the *first* directory in
2465 # $ac_aux_dir_candidates and give up.
2466 ac_missing_aux_files
=""
2467 ac_first_candidate
=:
2468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2471 for as_dir
in $ac_aux_dir_candidates
2474 case $as_dir in #(((
2477 *) as_dir
=$as_dir/ ;;
2481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2482 ac_aux_dir_found
=yes
2484 for ac_aux
in $ac_aux_files
2486 # As a special case, if "install-sh" is required, that requirement
2487 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2488 # and $ac_install_sh is set appropriately for whichever one is found.
2489 if test x
"$ac_aux" = x
"install-sh"
2491 if test -f "${as_dir}install-sh"; then
2492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2493 ac_install_sh
="${as_dir}install-sh -c"
2494 elif test -f "${as_dir}install.sh"; then
2495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2496 ac_install_sh
="${as_dir}install.sh -c"
2497 elif test -f "${as_dir}shtool"; then
2498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2499 ac_install_sh
="${as_dir}shtool install -c"
2502 if $ac_first_candidate; then
2503 ac_missing_aux_files
="${ac_missing_aux_files} install-sh"
2509 if test -f "${as_dir}${ac_aux}"; then
2510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2513 if $ac_first_candidate; then
2514 ac_missing_aux_files
="${ac_missing_aux_files} ${ac_aux}"
2521 if test "$ac_aux_dir_found" = yes; then
2522 ac_aux_dir
="$as_dir"
2525 ac_first_candidate
=false
2534 as_fn_error $?
"cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2538 # These three variables are undocumented and unsupported,
2539 # and are intended to be withdrawn in a future Autoconf release.
2540 # They can cause serious problems if a builder's source tree is in a directory
2541 # whose full name contains unusual characters.
2542 if test -f "${ac_aux_dir}config.guess"; then
2543 ac_config_guess
="$SHELL ${ac_aux_dir}config.guess"
2545 if test -f "${ac_aux_dir}config.sub"; then
2546 ac_config_sub
="$SHELL ${ac_aux_dir}config.sub"
2548 if test -f "$ac_aux_dir/configure"; then
2549 ac_configure
="$SHELL ${ac_aux_dir}configure"
2552 # Check that the precious variables saved in the cache have kept the same
2554 ac_cache_corrupted
=false
2555 for ac_var
in $ac_precious_vars; do
2556 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2557 eval ac_new_set
=\
$ac_env_${ac_var}_set
2558 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2559 eval ac_new_val
=\
$ac_env_${ac_var}_value
2560 case $ac_old_set,$ac_new_set in
2562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2563 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2564 ac_cache_corrupted
=: ;;
2566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2567 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2568 ac_cache_corrupted
=: ;;
2571 if test "x$ac_old_val" != "x$ac_new_val"; then
2572 # differences in whitespace do not lead to failure.
2573 ac_old_val_w
=`echo x $ac_old_val`
2574 ac_new_val_w
=`echo x $ac_new_val`
2575 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2577 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2578 ac_cache_corrupted
=:
2580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2581 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2582 eval $ac_var=\
$ac_old_val
2584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2585 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2587 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2590 # Pass precious variables to config.status.
2591 if test "$ac_new_set" = set; then
2593 *\'*) ac_arg
=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2594 *) ac_arg
=$ac_var=$ac_new_val ;;
2596 case " $ac_configure_args " in
2597 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2598 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2602 if $ac_cache_corrupted; then
2603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2604 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2606 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2607 as_fn_error $?
"run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2608 and start over" "$LINENO" 5
2610 ## -------------------- ##
2611 ## Main body of script. ##
2612 ## -------------------- ##
2615 ac_cpp
='$CPP $CPPFLAGS'
2616 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2622 sqlite_version_sanity_check
=`cat $srcdir/VERSION | tr -d '\n'`
2623 if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2624 as_fn_error $?
"configure script is out of date:
2625 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2626 top level VERSION file = $sqlite_version_sanity_check
2627 please regen with autoconf" "$LINENO" 5
2637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2638 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2643 macro_version
='2.4.6'
2644 macro_revision
='2.4.6'
2659 ltmain
=$ac_aux_dir/ltmain.sh
2663 # Make sure we can run config.sub.
2664 $SHELL "${ac_aux_dir}config.sub" sun4
>/dev
/null
2>&1 ||
2665 as_fn_error $?
"cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2668 printf %s
"checking build system type... " >&6; }
2669 if test ${ac_cv_build+y}
2671 printf %s
"(cached) " >&6
2673 ac_build_alias
=$build_alias
2674 test "x$ac_build_alias" = x
&&
2675 ac_build_alias
=`$SHELL "${ac_aux_dir}config.guess"`
2676 test "x$ac_build_alias" = x
&&
2677 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2678 ac_cv_build
=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2679 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2683 printf "%s\n" "$ac_cv_build" >&6; }
2684 case $ac_cv_build in
2686 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2689 ac_save_IFS
=$IFS; IFS
='-'
2695 # Remember, the first character of IFS is used to create $*,
2696 # except with old shells:
2699 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2703 printf %s
"checking host system type... " >&6; }
2704 if test ${ac_cv_host+y}
2706 printf %s
"(cached) " >&6
2708 if test "x$host_alias" = x
; then
2709 ac_cv_host
=$ac_cv_build
2711 ac_cv_host
=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2712 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2717 printf "%s\n" "$ac_cv_host" >&6; }
2720 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2723 ac_save_IFS
=$IFS; IFS
='-'
2729 # Remember, the first character of IFS is used to create $*,
2730 # except with old shells:
2733 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2736 # Backslashify metacharacters that are still active within
2737 # double-quoted strings.
2738 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
2740 # Same as above, but do not quote variable references.
2741 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
2743 # Sed substitution to delay expansion of an escaped shell variable in a
2744 # double_quote_subst'ed string.
2745 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
2747 # Sed substitution to delay expansion of an escaped single quote.
2748 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
2750 # Sed substitution to avoid accidental globbing in evaled expressions
2751 no_glob_subst
='s/\*/\\\*/g'
2753 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2754 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2755 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2758 printf %s "checking how to print strings... " >&6; }
2759 # Test print first, because it will be a builtin if present.
2760 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2761 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2763 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2766 # Use this function as a fallback that always works.
2767 func_fallback_echo ()
2769 eval 'cat <<_LTECHO_EOF
2773 ECHO='func_fallback_echo
'
2776 # func_echo_all arg...
2777 # Invoke $ECHO with all args, space-separated.
2784 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2785 printf "%s\n" "printf" >&6; } ;;
2786 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2787 printf "%s\n" "print -r" >&6; } ;;
2788 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2789 printf "%s\n" "cat" >&6; } ;;
2815 ac_cpp='$CPP $CPPFLAGS'
2816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
2817 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
2818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2819 if test -n "$ac_tool_prefix"; then
2820 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2821 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2823 printf %s "checking for $ac_word... " >&6; }
2824 if test ${ac_cv_prog_CC+y}
2826 printf %s "(cached) " >&6
2828 if test -n "$CC"; then
2829 ac_cv_prog_CC="$CC" # Let the user override the test.
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 case $as_dir in #(((
2838 *) as_dir=$as_dir/ ;;
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2842 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2853 if test -n "$CC"; then
2854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2855 printf "%s\n" "$CC" >&6; }
2857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858 printf "%s\n" "no" >&6; }
2863 if test -z "$ac_cv_prog_CC"; then
2865 # Extract the first word of "gcc", so it can be a program name with args.
2866 set dummy gcc; ac_word=$2
2867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868 printf %s "checking for $ac_word... " >&6; }
2869 if test ${ac_cv_prog_ac_ct_CC+y}
2871 printf %s "(cached) " >&6
2873 if test -n "$ac_ct_CC"; then
2874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 case $as_dir in #(((
2883 *) as_dir=$as_dir/ ;;
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_ac_ct_CC="gcc"
2888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2897 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2898 if test -n "$ac_ct_CC"; then
2899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2900 printf "%s\n" "$ac_ct_CC" >&6; }
2902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 printf "%s\n" "no" >&6; }
2906 if test "x$ac_ct_CC" = x; then
2909 case $cross_compiling:$ac_tool_warned in
2911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2912 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2913 ac_tool_warned=yes ;;
2921 if test -z "$CC"; then
2922 if test -n "$ac_tool_prefix"; then
2923 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2924 set dummy ${ac_tool_prefix}cc; ac_word=$2
2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 printf %s "checking for $ac_word... " >&6; }
2927 if test ${ac_cv_prog_CC+y}
2929 printf %s "(cached) " >&6
2931 if test -n "$CC"; then
2932 ac_cv_prog_CC="$CC" # Let the user override the test.
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 case $as_dir in #(((
2941 *) as_dir=$as_dir/ ;;
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2945 ac_cv_prog_CC="${ac_tool_prefix}cc"
2946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2956 if test -n "$CC"; then
2957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2958 printf "%s\n" "$CC" >&6; }
2960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 printf "%s\n" "no" >&6; }
2967 if test -z "$CC"; then
2968 # Extract the first word of "cc", so it can be a program name with args.
2969 set dummy cc; ac_word=$2
2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 printf %s "checking for $ac_word... " >&6; }
2972 if test ${ac_cv_prog_CC+y}
2974 printf %s "(cached) " >&6
2976 if test -n "$CC"; then
2977 ac_cv_prog_CC="$CC" # Let the user override the test.
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 case $as_dir in #(((
2987 *) as_dir=$as_dir/ ;;
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2991 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2992 ac_prog_rejected=yes
2996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3003 if test $ac_prog_rejected = yes; then
3004 # We found a bogon in the path, so make sure we never use it.
3005 set dummy $ac_cv_prog_CC
3007 if test $# != 0; then
3008 # We chose a different compiler from the bogus one.
3009 # However, it has the same basename, so the bogon will be chosen
3010 # first if we set CC to just the basename; use the full file name.
3012 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3018 if test -n "$CC"; then
3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3020 printf "%s\n" "$CC" >&6; }
3022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 printf "%s\n" "no" >&6; }
3028 if test -z "$CC"; then
3029 if test -n "$ac_tool_prefix"; then
3030 for ac_prog in cl.exe
3032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 printf %s "checking for $ac_word... " >&6; }
3036 if test ${ac_cv_prog_CC+y}
3038 printf %s "(cached) " >&6
3040 if test -n "$CC"; then
3041 ac_cv_prog_CC="$CC" # Let the user override the test.
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 case $as_dir in #(((
3050 *) as_dir=$as_dir/ ;;
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3054 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3065 if test -n "$CC"; then
3066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3067 printf "%s\n" "$CC" >&6; }
3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 printf "%s\n" "no" >&6; }
3074 test -n "$CC" && break
3077 if test -z "$CC"; then
3079 for ac_prog in cl.exe
3081 # Extract the first word of "$ac_prog", so it can be a program name with args.
3082 set dummy $ac_prog; ac_word=$2
3083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 printf %s "checking for $ac_word... " >&6; }
3085 if test ${ac_cv_prog_ac_ct_CC+y}
3087 printf %s "(cached) " >&6
3089 if test -n "$ac_ct_CC"; then
3090 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 case $as_dir in #(((
3099 *) as_dir=$as_dir/ ;;
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3103 ac_cv_prog_ac_ct_CC="$ac_prog"
3104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3113 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3114 if test -n "$ac_ct_CC"; then
3115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3116 printf "%s\n" "$ac_ct_CC" >&6; }
3118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 printf "%s\n" "no" >&6; }
3123 test -n "$ac_ct_CC" && break
3126 if test "x$ac_ct_CC" = x; then
3129 case $cross_compiling:$ac_tool_warned in
3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3132 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3133 ac_tool_warned=yes ;;
3140 if test -z "$CC"; then
3141 if test -n "$ac_tool_prefix"; then
3142 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3143 set dummy ${ac_tool_prefix}clang; ac_word=$2
3144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145 printf %s "checking for $ac_word... " >&6; }
3146 if test ${ac_cv_prog_CC+y}
3148 printf %s "(cached) " >&6
3150 if test -n "$CC"; then
3151 ac_cv_prog_CC="$CC" # Let the user override the test.
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 case $as_dir in #(((
3160 *) as_dir=$as_dir/ ;;
3162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3164 ac_cv_prog_CC="${ac_tool_prefix}clang"
3165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3175 if test -n "$CC"; then
3176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3177 printf "%s\n" "$CC" >&6; }
3179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 printf "%s\n" "no" >&6; }
3185 if test -z "$ac_cv_prog_CC"; then
3187 # Extract the first word of "clang", so it can be a program name with args.
3188 set dummy clang; ac_word=$2
3189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 printf %s "checking for $ac_word... " >&6; }
3191 if test ${ac_cv_prog_ac_ct_CC+y}
3193 printf %s "(cached) " >&6
3195 if test -n "$ac_ct_CC"; then
3196 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 case $as_dir in #(((
3205 *) as_dir=$as_dir/ ;;
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3209 ac_cv_prog_ac_ct_CC="clang"
3210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3220 if test -n "$ac_ct_CC"; then
3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3222 printf "%s\n" "$ac_ct_CC" >&6; }
3224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 printf "%s\n" "no" >&6; }
3228 if test "x$ac_ct_CC" = x; then
3231 case $cross_compiling:$ac_tool_warned in
3233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3234 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3235 ac_tool_warned=yes ;;
3246 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3247 printf "%s
\n" "$as_me: error
: in \
`$ac_pwd':" >&2;}
3248 as_fn_error $? "no acceptable C compiler found in \$PATH
3249 See \`config.log
' for more details" "$LINENO" 5; }
3251 # Provide some information about the compiler.
3252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3255 for ac_option in --version -v -V -qversion -version; do
3256 { { ac_try="$ac_compiler $ac_option >&5"
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262 printf "%s\n" "$ac_try_echo"; } >&5
3263 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3265 if test -s conftest.err; then
3267 ... rest of stderr output deleted ...
3268 10q
' conftest.err >conftest.er1
3269 cat conftest.er1 >&5
3271 rm -f conftest.er1 conftest.err
3272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273 test $ac_status = 0; }
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277 /* end confdefs.h. */
3287 ac_clean_files_save=$ac_clean_files
3288 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3289 # Try to create an executable without -o first, disregard a.out.
3290 # It will help us diagnose broken compilers, and finding out an intuition
3292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3293 printf %s "checking whether the C compiler works... " >&6; }
3294 ac_link_default=`printf "%s\n" "$ac_link" | sed 's
/ -o *conftest
[^
]*//'`
3296 # The possible output files:
3297 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3300 for ac_file in $ac_files
3303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3304 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3309 if { { ac_try="$ac_link_default"
3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312 *) ac_try_echo=$ac_try;;
3314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3315 printf "%s\n" "$ac_try_echo"; } >&5
3316 (eval "$ac_link_default") 2>&5
3318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3319 test $ac_status = 0; }
3321 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3322 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3323 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3324 # so that the user can short-circuit this test for compilers unknown to
3326 for ac_file
in $ac_files ''
3328 test -f "$ac_file" ||
continue
3330 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3333 # We found the default executable, but exeext='' is most
3337 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no
;
3339 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3341 # We set ac_cv_exeext here because the later test for it is not
3342 # safe: cross compilers may not add the suffix if given an `-o'
3343 # argument, so we may need to know it at that point already.
3344 # Even if this section looks crufty: it has the advantage of
3351 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3356 if test -z "$ac_file"
3358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 printf "%s\n" "no" >&6; }
3360 printf "%s\n" "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.
$ac_ext >&5
3363 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error
77 "C compiler cannot create executables
3366 See \`config.log' for more details" "$LINENO" 5; }
3368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3369 printf "%s\n" "yes" >&6; }
3371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3372 printf %s
"checking for C compiler default output file name... " >&6; }
3373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3374 printf "%s\n" "$ac_file" >&6; }
3375 ac_exeext
=$ac_cv_exeext
3377 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3378 ac_clean_files
=$ac_clean_files_save
3379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3380 printf %s
"checking for suffix of executables... " >&6; }
3381 if { { ac_try
="$ac_link"
3383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387 printf "%s\n" "$ac_try_echo"; } >&5
3388 (eval "$ac_link") 2>&5
3390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391 test $ac_status = 0; }
3393 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3394 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3395 # work properly (i.e., refer to `conftest.exe'), while it won't with
3397 for ac_file
in conftest.exe conftest conftest.
*; do
3398 test -f "$ac_file" ||
continue
3400 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3401 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3407 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3408 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3409 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3410 See \`config.log' for more details" "$LINENO" 5; }
3412 rm -f conftest conftest
$ac_cv_exeext
3413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3414 printf "%s\n" "$ac_cv_exeext" >&6; }
3416 rm -f conftest.
$ac_ext
3417 EXEEXT
=$ac_cv_exeext
3419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3425 FILE *f = fopen ("conftest.out", "w");
3426 return ferror (f) || fclose (f) != 0;
3432 ac_clean_files
="$ac_clean_files conftest.out"
3433 # Check that the compiler produces executables we can run. If not, either
3434 # the compiler is broken, or we cross compile.
3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3436 printf %s
"checking whether we are cross compiling... " >&6; }
3437 if test "$cross_compiling" != yes; then
3438 { { ac_try
="$ac_link"
3440 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444 printf "%s\n" "$ac_try_echo"; } >&5
3445 (eval "$ac_link") 2>&5
3447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448 test $ac_status = 0; }
3449 if { ac_try='./conftest$ac_cv_exeext'
3450 { { case "(($ac_try" in
3451 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3452 *) ac_try_echo
=$ac_try;;
3454 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455 printf "%s\n" "$ac_try_echo"; } >&5
3456 (eval "$ac_try") 2>&5
3458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459 test $ac_status = 0; }; }; then
3462 if test "$cross_compiling" = maybe
; then
3465 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3466 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3467 as_fn_error
77 "cannot run C compiled programs.
3468 If you meant to cross compile, use \`--host'.
3469 See \`config.log' for more details" "$LINENO" 5; }
3473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3474 printf "%s\n" "$cross_compiling" >&6; }
3476 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3477 ac_clean_files
=$ac_clean_files_save
3478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3479 printf %s
"checking for suffix of object files... " >&6; }
3480 if test ${ac_cv_objext+y}
3482 printf %s
"(cached) " >&6
3484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3485 /* end confdefs.h. */
3495 rm -f conftest.o conftest.obj
3496 if { { ac_try
="$ac_compile"
3498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 printf "%s\n" "$ac_try_echo"; } >&5
3503 (eval "$ac_compile") 2>&5
3505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506 test $ac_status = 0; }
3508 for ac_file in conftest.o conftest.obj conftest.*; do
3509 test -f "$ac_file" || continue;
3511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3512 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3517 printf "%s\n" "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3520 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3521 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3522 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3523 See \
`config.log' for more details" "$LINENO" 5; }
3525 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3528 printf "%s\n" "$ac_cv_objext" >&6; }
3529 OBJEXT=$ac_cv_objext
3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3532 printf %s "checking whether the compiler supports GNU C... " >&6; }
3533 if test ${ac_cv_c_compiler_gnu+y}
3535 printf %s "(cached) " >&6
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h. */
3551 if ac_fn_c_try_compile "$LINENO"
3557 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3558 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3562 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3565 if test $ac_compiler_gnu = yes; then
3570 ac_test_CFLAGS=${CFLAGS+y}
3571 ac_save_CFLAGS=$CFLAGS
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3573 printf %s "checking whether $CC accepts -g... " >&6; }
3574 if test ${ac_cv_prog_cc_g+y}
3576 printf %s "(cached) " >&6
3578 ac_save_c_werror_flag=$ac_c_werror_flag
3579 ac_c_werror_flag=yes
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3593 if ac_fn_c_try_compile "$LINENO"
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3609 if ac_fn_c_try_compile "$LINENO"
3613 ac_c_werror_flag=$ac_save_c_werror_flag
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h. */
3626 if ac_fn_c_try_compile "$LINENO"
3630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3635 ac_c_werror_flag=$ac_save_c_werror_flag
3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3638 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3639 if test $ac_test_CFLAGS; then
3640 CFLAGS=$ac_save_CFLAGS
3641 elif test $ac_cv_prog_cc_g = yes; then
3642 if test "$GCC" = yes; then
3648 if test "$GCC" = yes; then
3655 if test x$ac_prog_cc_stdc = xno
3657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3658 printf %s "checking for $CC option to enable C11 features... " >&6; }
3659 if test ${ac_cv_prog_cc_c11+y}
3661 printf %s "(cached) " >&6
3663 ac_cv_prog_cc_c11=no
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3667 $ac_c_conftest_c11_program
3669 for ac_arg in '' -std=gnu11
3671 CC="$ac_save_CC $ac_arg"
3672 if ac_fn_c_try_compile "$LINENO"
3674 ac_cv_prog_cc_c11=$ac_arg
3676 rm -f core conftest.err conftest.$ac_objext conftest.beam
3677 test "x$ac_cv_prog_cc_c11" != "xno" && break
3679 rm -f conftest.$ac_ext
3683 if test "x$ac_cv_prog_cc_c11" = xno
3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3686 printf "%s\n" "unsupported" >&6; }
3688 if test "x$ac_cv_prog_cc_c11" = x
3690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3691 printf "%s\n" "none needed" >&6; }
3693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3694 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3695 CC="$CC $ac_cv_prog_cc_c11"
3697 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3701 if test x$ac_prog_cc_stdc = xno
3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3704 printf %s "checking for $CC option to enable C99 features... " >&6; }
3705 if test ${ac_cv_prog_cc_c99+y}
3707 printf %s "(cached) " >&6
3709 ac_cv_prog_cc_c99=no
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3713 $ac_c_conftest_c99_program
3715 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3717 CC="$ac_save_CC $ac_arg"
3718 if ac_fn_c_try_compile "$LINENO"
3720 ac_cv_prog_cc_c99=$ac_arg
3722 rm -f core conftest.err conftest.$ac_objext conftest.beam
3723 test "x$ac_cv_prog_cc_c99" != "xno" && break
3725 rm -f conftest.$ac_ext
3729 if test "x$ac_cv_prog_cc_c99" = xno
3731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3732 printf "%s\n" "unsupported" >&6; }
3734 if test "x$ac_cv_prog_cc_c99" = x
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3737 printf "%s\n" "none needed" >&6; }
3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3740 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3741 CC="$CC $ac_cv_prog_cc_c99"
3743 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3747 if test x$ac_prog_cc_stdc = xno
3749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3750 printf %s "checking for $CC option to enable C89 features... " >&6; }
3751 if test ${ac_cv_prog_cc_c89+y}
3753 printf %s "(cached) " >&6
3755 ac_cv_prog_cc_c89=no
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3759 $ac_c_conftest_c89_program
3761 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3763 CC="$ac_save_CC $ac_arg"
3764 if ac_fn_c_try_compile "$LINENO"
3766 ac_cv_prog_cc_c89=$ac_arg
3768 rm -f core conftest.err conftest.$ac_objext conftest.beam
3769 test "x$ac_cv_prog_cc_c89" != "xno" && break
3771 rm -f conftest.$ac_ext
3775 if test "x$ac_cv_prog_cc_c89" = xno
3777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3778 printf "%s\n" "unsupported" >&6; }
3780 if test "x$ac_cv_prog_cc_c89" = x
3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3783 printf "%s\n" "none needed" >&6; }
3785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3786 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3787 CC="$CC $ac_cv_prog_cc_c89"
3789 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3795 ac_cpp='$CPP $CPPFLAGS'
3796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3801 printf %s "checking for a sed that does not truncate output... " >&6; }
3802 if test ${ac_cv_path_SED+y}
3804 printf %s "(cached) " >&6
3806 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3807 for ac_i in 1 2 3 4 5 6 7; do
3808 ac_script="$ac_script$as_nl$ac_script"
3810 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3811 { ac_script=; unset ac_script;}
3812 if test -z "$SED"; then
3813 ac_path_SED_found=false
3814 # Loop through the user's path and test for each of PROGNAME-LIST
3815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819 case $as_dir in #(((
3822 *) as_dir=$as_dir/ ;;
3824 for ac_prog in sed gsed
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
3828 as_fn_executable_p "$ac_path_SED" || continue
3829 # Check for GNU ac_path_SED and select it if it is found.
3830 # Check for GNU $ac_path_SED
3831 case `"$ac_path_SED" --version 2>&1` in
3833 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3836 printf %s 0123456789 >"conftest.in"
3839 cat "conftest.in" "conftest.in" >"conftest.tmp"
3840 mv "conftest.tmp" "conftest.in"
3841 cp "conftest.in" "conftest.nl"
3842 printf "%s\n" '' >> "conftest.nl"
3843 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3844 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3845 as_fn_arith $ac_count + 1 && ac_count=$as_val
3846 if test $ac_count -gt ${ac_path_SED_max-0}; then
3847 # Best one so far, save it but keep looking for a better one
3848 ac_cv_path_SED="$ac_path_SED"
3849 ac_path_SED_max=$ac_count
3851 # 10*(2^10) chars as input seems more than enough
3852 test $ac_count -gt 10 && break
3854 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3857 $ac_path_SED_found && break 3
3862 if test -z "$ac_cv_path_SED"; then
3863 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3871 printf "%s\n" "$ac_cv_path_SED" >&6; }
3872 SED="$ac_cv_path_SED"
3875 test -z "$SED" && SED=sed
3876 Xsed="$SED -e 1s/^X//"
3888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3889 printf %s "checking for grep that handles long lines and -e... " >&6; }
3890 if test ${ac_cv_path_GREP+y}
3892 printf %s "(cached) " >&6
3894 if test -z "$GREP"; then
3895 ac_path_GREP_found=false
3896 # Loop through the user's path and test for each of PROGNAME-LIST
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3901 case $as_dir in #(((
3904 *) as_dir=$as_dir/ ;;
3906 for ac_prog in grep ggrep
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
3910 as_fn_executable_p "$ac_path_GREP" || continue
3911 # Check for GNU ac_path_GREP and select it if it is found.
3912 # Check for GNU $ac_path_GREP
3913 case `"$ac_path_GREP" --version 2>&1` in
3915 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3918 printf %s 0123456789 >"conftest.in"
3921 cat "conftest.in" "conftest.in" >"conftest.tmp"
3922 mv "conftest.tmp" "conftest.in"
3923 cp "conftest.in" "conftest.nl"
3924 printf "%s\n" 'GREP' >> "conftest.nl"
3925 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3926 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3927 as_fn_arith $ac_count + 1 && ac_count=$as_val
3928 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3929 # Best one so far, save it but keep looking for a better one
3930 ac_cv_path_GREP="$ac_path_GREP"
3931 ac_path_GREP_max=$ac_count
3933 # 10*(2^10) chars as input seems more than enough
3934 test $ac_count -gt 10 && break
3936 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3939 $ac_path_GREP_found && break 3
3944 if test -z "$ac_cv_path_GREP"; then
3945 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3948 ac_cv_path_GREP=$GREP
3952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3953 printf "%s\n" "$ac_cv_path_GREP" >&6; }
3954 GREP="$ac_cv_path_GREP"
3957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3958 printf %s "checking for egrep... " >&6; }
3959 if test ${ac_cv_path_EGREP+y}
3961 printf %s "(cached) " >&6
3963 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3964 then ac_cv_path_EGREP="$GREP -E"
3966 if test -z "$EGREP"; then
3967 ac_path_EGREP_found=false
3968 # Loop through the user's path and test for each of PROGNAME-LIST
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3973 case $as_dir in #(((
3976 *) as_dir=$as_dir/ ;;
3978 for ac_prog in egrep
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
3982 as_fn_executable_p "$ac_path_EGREP" || continue
3983 # Check for GNU ac_path_EGREP and select it if it is found.
3984 # Check for GNU $ac_path_EGREP
3985 case `"$ac_path_EGREP" --version 2>&1` in
3987 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3990 printf %s 0123456789 >"conftest.in"
3993 cat "conftest.in" "conftest.in" >"conftest.tmp"
3994 mv "conftest.tmp" "conftest.in"
3995 cp "conftest.in" "conftest.nl"
3996 printf "%s\n" 'EGREP' >> "conftest.nl"
3997 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3998 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3999 as_fn_arith $ac_count + 1 && ac_count=$as_val
4000 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4001 # Best one so far, save it but keep looking for a better one
4002 ac_cv_path_EGREP="$ac_path_EGREP"
4003 ac_path_EGREP_max=$ac_count
4005 # 10*(2^10) chars as input seems more than enough
4006 test $ac_count -gt 10 && break
4008 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4011 $ac_path_EGREP_found && break 3
4016 if test -z "$ac_cv_path_EGREP"; then
4017 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4020 ac_cv_path_EGREP=$EGREP
4025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4026 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4027 EGREP="$ac_cv_path_EGREP"
4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4031 printf %s "checking for fgrep... " >&6; }
4032 if test ${ac_cv_path_FGREP+y}
4034 printf %s "(cached) " >&6
4036 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4037 then ac_cv_path_FGREP="$GREP -F"
4039 if test -z "$FGREP"; then
4040 ac_path_FGREP_found=false
4041 # Loop through the user's path and test for each of PROGNAME-LIST
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4046 case $as_dir in #(((
4049 *) as_dir=$as_dir/ ;;
4051 for ac_prog in fgrep
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4055 as_fn_executable_p "$ac_path_FGREP" || continue
4056 # Check for GNU ac_path_FGREP and select it if it is found.
4057 # Check for GNU $ac_path_FGREP
4058 case `"$ac_path_FGREP" --version 2>&1` in
4060 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4063 printf %s 0123456789 >"conftest.in"
4066 cat "conftest.in" "conftest.in" >"conftest.tmp"
4067 mv "conftest.tmp" "conftest.in"
4068 cp "conftest.in" "conftest.nl"
4069 printf "%s\n" 'FGREP' >> "conftest.nl"
4070 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4071 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4072 as_fn_arith $ac_count + 1 && ac_count=$as_val
4073 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4074 # Best one so far, save it but keep looking for a better one
4075 ac_cv_path_FGREP="$ac_path_FGREP"
4076 ac_path_FGREP_max=$ac_count
4078 # 10*(2^10) chars as input seems more than enough
4079 test $ac_count -gt 10 && break
4081 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4084 $ac_path_FGREP_found && break 3
4089 if test -z "$ac_cv_path_FGREP"; then
4090 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4093 ac_cv_path_FGREP=$FGREP
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4099 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4100 FGREP="$ac_cv_path_FGREP"
4103 test -z "$GREP" && GREP=grep
4123 # Check whether --with-gnu-ld was given.
4124 if test ${with_gnu_ld+y}
4126 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4132 if test yes = "$GCC"; then
4133 # Check if gcc -print-prog-name=ld gives a path.
4134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4135 printf %s "checking for ld used by $CC... " >&6; }
4138 # gcc leaves a trailing carriage return, which upsets mingw
4139 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
4141 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
4144 # Accept absolute paths.
4146 re_direlt='/[^/][^/]*/\.\./'
4147 # Canonicalize the pathname of ld
4148 ac_prog=`$ECHO "$ac_prog"|
$SED 's%\\\\%/%g'`
4149 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4150 ac_prog=`$ECHO $ac_prog|
$SED "s%$re_direlt%/%"`
4152 test -z "$LD" && LD=$ac_prog
4155 # If it fails, then pretend we aren't using GCC.
4159 # If it is relative, then search for the first ld in PATH.
4163 elif test yes = "$with_gnu_ld"; then
4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4165 printf %s "checking for GNU ld... " >&6; }
4167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4168 printf %s "checking for non-GNU ld... " >&6; }
4170 if test ${lt_cv_path_LD+y}
4172 printf %s "(cached) " >&6
4174 if test -z "$LD"; then
4175 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4176 for ac_dir in $PATH; do
4178 test -z "$ac_dir" && ac_dir=.
4179 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4180 lt_cv_path_LD=$ac_dir/$ac_prog
4181 # Check to see if the program is GNU ld. I'd rather use --version,
4182 # but apparently some variants of GNU ld only accept -v.
4183 # Break only if it was the GNU/non-GNU ld that we prefer.
4184 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
4185 *GNU* | *'with BFD'*)
4186 test no != "$with_gnu_ld" && break
4189 test yes != "$with_gnu_ld" && break
4196 lt_cv_path_LD=$LD # Let the user override the test with a path.
4201 if test -n "$LD"; then
4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4203 printf "%s\n" "$LD" >&6; }
4205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206 printf "%s\n" "no" >&6; }
4208 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4210 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
4211 if test ${lt_cv_prog_gnu_ld+y}
4213 printf %s "(cached) " >&6
4215 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4216 case `$LD -v 2>&1 </dev
/null
` in
4217 *GNU* | *'with BFD'*)
4218 lt_cv_prog_gnu_ld=yes
4221 lt_cv_prog_gnu_ld=no
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4226 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
4227 with_gnu_ld=$lt_cv_prog_gnu_ld
4237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4238 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4239 if test ${lt_cv_path_NM+y}
4241 printf %s "(cached) " >&6
4243 if test -n "$NM"; then
4244 # Let the user override the test.
4247 lt_nm_to_check=${ac_tool_prefix}nm
4248 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4249 lt_nm_to_check="$lt_nm_to_check nm"
4251 for lt_tmp_nm in $lt_nm_to_check; do
4252 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4253 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4255 test -z "$ac_dir" && ac_dir=.
4256 tmp_nm=$ac_dir/$lt_tmp_nm
4257 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4258 # Check to see if the nm accepts a BSD-compat flag.
4259 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4260 # nm: unknown option "B" ignored
4261 # Tru64's nm complains that /dev/null is an invalid object file
4262 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4264 mingw*) lt_bad_file=conftest.nm/nofile ;;
4265 *) lt_bad_file=/dev/null ;;
4267 case `"$tmp_nm" -B $lt_bad_file 2>&1 |
sed '1q'` in
4268 *$lt_bad_file* | *'Invalid file or object type'*)
4269 lt_cv_path_NM="$tmp_nm -B"
4273 case `"$tmp_nm" -p /dev
/null
2>&1 |
sed '1q'` in
4275 lt_cv_path_NM="$tmp_nm -p"
4279 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4280 continue # so that we can try to find one that supports BSD flags
4289 : ${lt_cv_path_NM=no}
4292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4293 printf "%s\n" "$lt_cv_path_NM" >&6; }
4294 if test no != "$lt_cv_path_NM"; then
4297 # Didn't find any BSD compatible name lister, look for dumpbin.
4298 if test -n "$DUMPBIN"; then :
4299 # Let the user override the test.
4301 if test -n "$ac_tool_prefix"; then
4302 for ac_prog in dumpbin "link -dump"
4304 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4305 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307 printf %s "checking for $ac_word... " >&6; }
4308 if test ${ac_cv_prog_DUMPBIN+y}
4310 printf %s "(cached) " >&6
4312 if test -n "$DUMPBIN"; then
4313 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 case $as_dir in #(((
4322 *) as_dir=$as_dir/ ;;
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4326 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4336 DUMPBIN=$ac_cv_prog_DUMPBIN
4337 if test -n "$DUMPBIN"; then
4338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4339 printf "%s\n" "$DUMPBIN" >&6; }
4341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 printf "%s\n" "no" >&6; }
4346 test -n "$DUMPBIN" && break
4349 if test -z "$DUMPBIN"; then
4350 ac_ct_DUMPBIN=$DUMPBIN
4351 for ac_prog in dumpbin "link -dump"
4353 # Extract the first word of "$ac_prog", so it can be a program name with args.
4354 set dummy $ac_prog; ac_word=$2
4355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356 printf %s "checking for $ac_word... " >&6; }
4357 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
4359 printf %s "(cached) " >&6
4361 if test -n "$ac_ct_DUMPBIN"; then
4362 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 case $as_dir in #(((
4371 *) as_dir=$as_dir/ ;;
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4375 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4385 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4386 if test -n "$ac_ct_DUMPBIN"; then
4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4388 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
4390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 printf "%s\n" "no" >&6; }
4395 test -n "$ac_ct_DUMPBIN" && break
4398 if test "x$ac_ct_DUMPBIN" = x; then
4401 case $cross_compiling:$ac_tool_warned in
4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4404 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4405 ac_tool_warned=yes ;;
4407 DUMPBIN=$ac_ct_DUMPBIN
4411 case `$DUMPBIN -symbols -headers /dev
/null
2>&1 |
sed '1q'` in
4413 DUMPBIN="$DUMPBIN -symbols -headers"
4421 if test : != "$DUMPBIN"; then
4425 test -z "$NM" && NM=nm
4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4433 printf %s "checking the name lister ($NM) interface... " >&6; }
4434 if test ${lt_cv_nm_interface+y}
4436 printf %s "(cached) " >&6
4438 lt_cv_nm_interface="BSD nm"
4439 echo "int some_variable = 0;" > conftest.$ac_ext
4440 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4441 (eval "$ac_compile" 2>conftest.err)
4442 cat conftest.err >&5
4443 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4444 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4445 cat conftest.err >&5
4446 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4447 cat conftest.out >&5
4448 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4449 lt_cv_nm_interface="MS dumpbin"
4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4454 printf "%s\n" "$lt_cv_nm_interface" >&6; }
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4457 printf %s "checking whether ln -s works... " >&6; }
4459 if test "$LN_S" = "ln -s"; then
4460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4461 printf "%s\n" "yes" >&6; }
4463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4464 printf "%s\n" "no, using $LN_S" >&6; }
4467 # find the maximum length of command line arguments
4468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4469 printf %s "checking the maximum length of command line arguments... " >&6; }
4470 if test ${lt_cv_sys_max_cmd_len+y}
4472 printf %s "(cached) " >&6
4479 # On DJGPP, this test can blow up pretty badly due to problems in libc
4480 # (any single argument exceeding 2000 bytes causes a buffer overrun
4481 # during glob expansion). Even if it were fixed, the result of this
4482 # check would be larger than it should be.
4483 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4487 # Under GNU Hurd, this test is not required because there is
4488 # no limit to the length of command line arguments.
4489 # Libtool will interpret -1 as no limit whatsoever
4490 lt_cv_sys_max_cmd_len=-1;
4493 cygwin* | mingw* | cegcc*)
4494 # On Win9x/ME, this test blows up -- it succeeds, but takes
4495 # about 5 minutes as the teststring grows exponentially.
4496 # Worse, since 9x/ME are not pre-emptively multitasking,
4497 # you end up with a "frozen" computer, even though with patience
4498 # the test eventually succeeds (with a max line length of 256k).
4499 # Instead, let's just punt: use the minimum linelength reported by
4500 # all of the supported platforms: 8192 (on NT/2K/XP).
4501 lt_cv_sys_max_cmd_len=8192;
4505 # On MiNT this can take a long time and run out of memory.
4506 lt_cv_sys_max_cmd_len=8192;
4510 # On AmigaOS with pdksh, this test takes hours, literally.
4511 # So we just punt and use a minimum line length of 8192.
4512 lt_cv_sys_max_cmd_len=8192;
4515 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4516 # This has been around since 386BSD, at least. Likely further.
4517 if test -x /sbin/sysctl; then
4518 lt_cv_sys_max_cmd_len=`/sbin
/sysctl
-n kern.argmax
`
4519 elif test -x /usr/sbin/sysctl; then
4520 lt_cv_sys_max_cmd_len=`/usr
/sbin
/sysctl
-n kern.argmax
`
4522 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4524 # And add a safety zone
4525 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 4`
4526 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
* 3`
4530 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4531 lt_cv_sys_max_cmd_len=196608
4535 # The test takes a long time on OS/2.
4536 lt_cv_sys_max_cmd_len=8192
4540 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4541 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4542 # nice to cause kernel panics so lets avoid the loop below.
4543 # First set a reasonable default.
4544 lt_cv_sys_max_cmd_len=16384
4546 if test -x /sbin/sysconfig; then
4547 case `/sbin
/sysconfig
-q proc exec_disable_arg_limit
` in
4548 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4553 lt_cv_sys_max_cmd_len=102400
4555 sysv5* | sco5v6* | sysv4.2uw2*)
4556 kargmax=`grep ARG_MAX
/etc
/conf
/cf.d
/stune
2>/dev
/null
`
4557 if test -n "$kargmax"; then
4558 lt_cv_sys_max_cmd_len=`echo $kargmax |
sed 's/.*[ ]//'`
4560 lt_cv_sys_max_cmd_len=32768
4564 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX
) 2> /dev
/null
`
4565 if test -n "$lt_cv_sys_max_cmd_len" && \
4566 test undefined != "$lt_cv_sys_max_cmd_len"; then
4567 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 4`
4568 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
* 3`
4570 # Make teststring a little bigger before we do anything with it.
4571 # a 1K string should be a reasonable start.
4572 for i in 1 2 3 4 5 6 7 8; do
4573 teststring=$teststring$teststring
4575 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4576 # If test is not a shell built-in, we'll probably end up computing a
4577 # maximum length that is only half of the actual maximum length, but
4579 while { test X`env
echo "$teststring$teststring" 2>/dev
/null
` \
4580 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4581 test 17 != "$i" # 1/2 MB should be enough
4584 teststring=$teststring$teststring
4586 # Only check the string length outside the loop.
4587 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4589 # Add a significant safety factor because C++ compilers can tack on
4590 # massive amounts of additional arguments before passing them to the
4591 # linker. It appears as though 1/2 is a usable value.
4592 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 2`
4599 if test -n "$lt_cv_sys_max_cmd_len"; then
4600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4601 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
4603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
4604 printf "%s\n" "none" >&6; }
4606 max_cmd_len=$lt_cv_sys_max_cmd_len
4617 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4627 # test EBCDIC or ASCII
4628 case `echo X|
tr X
'\101'` in
4629 A) # ASCII based system
4630 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4631 lt_SP2NL='tr \040 \012'
4632 lt_NL2SP='tr \015\012 \040\040'
4634 *) # EBCDIC based system
4635 lt_SP2NL='tr \100 \n'
4636 lt_NL2SP='tr \r\n \100\100'
4648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4649 printf %s "checking how to convert $build file names to $host format... " >&6; }
4650 if test ${lt_cv_to_host_file_cmd+y}
4652 printf %s "(cached) " >&6
4657 *-*-mingw* ) # actually msys
4658 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4661 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4663 * ) # otherwise, assume *nix
4664 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4670 *-*-mingw* ) # actually msys
4671 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4674 lt_cv_to_host_file_cmd=func_convert_file_noop
4676 * ) # otherwise, assume *nix
4677 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4681 * ) # unhandled hosts (and "normal" native builds)
4682 lt_cv_to_host_file_cmd=func_convert_file_noop
4688 to_host_file_cmd=$lt_cv_to_host_file_cmd
4689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4690 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
4696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4697 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
4698 if test ${lt_cv_to_tool_file_cmd+y}
4700 printf %s "(cached) " >&6
4702 #assume ordinary cross tools, or native build.
4703 lt_cv_to_tool_file_cmd=func_convert_file_noop
4707 *-*-mingw* ) # actually msys
4708 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4716 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4718 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
4724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4725 printf %s "checking for $LD option to reload object files... " >&6; }
4726 if test ${lt_cv_ld_reload_flag+y}
4728 printf %s "(cached) " >&6
4730 lt_cv_ld_reload_flag='-r'
4732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4733 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
4734 reload_flag=$lt_cv_ld_reload_flag
4735 case $reload_flag in
4737 *) reload_flag=" $reload_flag" ;;
4739 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4741 cygwin* | mingw* | pw32* | cegcc*)
4742 if test yes != "$GCC"; then
4747 if test yes = "$GCC"; then
4748 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4750 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4763 if test -n "$ac_tool_prefix"; then
4764 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4765 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 printf %s "checking for $ac_word... " >&6; }
4768 if test ${ac_cv_prog_OBJDUMP+y}
4770 printf %s "(cached) " >&6
4772 if test -n "$OBJDUMP"; then
4773 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 case $as_dir in #(((
4782 *) as_dir=$as_dir/ ;;
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4786 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4796 OBJDUMP=$ac_cv_prog_OBJDUMP
4797 if test -n "$OBJDUMP"; then
4798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4799 printf "%s\n" "$OBJDUMP" >&6; }
4801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 printf "%s\n" "no" >&6; }
4807 if test -z "$ac_cv_prog_OBJDUMP"; then
4808 ac_ct_OBJDUMP=$OBJDUMP
4809 # Extract the first word of "objdump", so it can be a program name with args.
4810 set dummy objdump; ac_word=$2
4811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812 printf %s "checking for $ac_word... " >&6; }
4813 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
4815 printf %s "(cached) " >&6
4817 if test -n "$ac_ct_OBJDUMP"; then
4818 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 case $as_dir in #(((
4827 *) as_dir=$as_dir/ ;;
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4831 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4841 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4842 if test -n "$ac_ct_OBJDUMP"; then
4843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4844 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
4846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 printf "%s\n" "no" >&6; }
4850 if test "x$ac_ct_OBJDUMP" = x; then
4853 case $cross_compiling:$ac_tool_warned in
4855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4856 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4857 ac_tool_warned=yes ;;
4859 OBJDUMP=$ac_ct_OBJDUMP
4862 OBJDUMP="$ac_cv_prog_OBJDUMP"
4865 test -z "$OBJDUMP" && OBJDUMP=objdump
4875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4876 printf %s "checking how to recognize dependent libraries... " >&6; }
4877 if test ${lt_cv_deplibs_check_method+y}
4879 printf %s "(cached) " >&6
4881 lt_cv_file_magic_cmd='$MAGIC_CMD'
4882 lt_cv_file_magic_test_file=
4883 lt_cv_deplibs_check_method='unknown'
4884 # Need to set the preceding variable on all platforms that support
4885 # interlibrary dependencies.
4886 # 'none' -- dependencies not supported.
4887 # 'unknown' -- same as none, but documents that we really don't know.
4888 # 'pass_all' -- all dependencies passed with no checks.
4889 # 'test_compile' -- check by making test program.
4890 # 'file_magic [[regex]]' -- check by looking for files in library path
4891 # that responds to the $file_magic_cmd with a given extended regex.
4892 # If you have 'file' or equivalent on your system and you're not sure
4893 # whether 'pass_all' will *always* work, you probably want this one.
4897 lt_cv_deplibs_check_method=pass_all
4901 lt_cv_deplibs_check_method=pass_all
4905 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4906 lt_cv_file_magic_cmd='/usr/bin/file -L'
4907 lt_cv_file_magic_test_file=/shlib/libc.so
4911 # func_win32_libid is a shell function defined in ltmain.sh
4912 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4913 lt_cv_file_magic_cmd='func_win32_libid'
4917 # Base MSYS/MinGW do not provide the 'file' command needed by
4918 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4919 # unless we find 'file', for example because we are cross-compiling.
4920 if ( file / ) >/dev/null 2>&1; then
4921 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4922 lt_cv_file_magic_cmd='func_win32_libid'
4924 # Keep this pattern in sync with the one in func_win32_libid.
4925 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4926 lt_cv_file_magic_cmd='$OBJDUMP -f'
4931 # use the weaker test based on 'objdump'. See mingw*.
4932 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4933 lt_cv_file_magic_cmd='$OBJDUMP -f'
4936 darwin* | rhapsody*)
4937 lt_cv_deplibs_check_method=pass_all
4940 freebsd* | dragonfly*)
4941 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4944 # Not sure whether the presence of OpenBSD here was a mistake.
4945 # Let's accept both of them until this is cleared up.
4946 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4947 lt_cv_file_magic_cmd=/usr/bin/file
4948 lt_cv_file_magic_test_file=`echo /usr
/lib
/libc.so.
*`
4952 lt_cv_deplibs_check_method=pass_all
4957 lt_cv_deplibs_check_method=pass_all
4960 hpux10.20* | hpux11*)
4961 lt_cv_file_magic_cmd=/usr/bin/file
4964 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4965 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4968 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]'
4969 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4972 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4973 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4979 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4980 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4983 irix5* | irix6* | nonstopux*)
4985 *-32|*"-32 ") libmagic=32-bit;;
4986 *-n32|*"-n32 ") libmagic=N32;;
4987 *-64|*"-64 ") libmagic=64-bit;;
4988 *) libmagic=never-match;;
4990 lt_cv_deplibs_check_method=pass_all
4993 # This must be glibc/ELF.
4994 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4995 lt_cv_deplibs_check_method=pass_all
4998 netbsd* | netbsdelf*-gnu)
4999 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5000 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5002 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5007 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5008 lt_cv_file_magic_cmd=/usr/bin/file
5009 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5013 lt_cv_deplibs_check_method=pass_all
5017 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`"; then
5018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5020 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5024 osf3* | osf4* | osf5*)
5025 lt_cv_deplibs_check_method=pass_all
5029 lt_cv_deplibs_check_method=pass_all
5033 lt_cv_deplibs_check_method=pass_all
5036 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5037 lt_cv_deplibs_check_method=pass_all
5041 case $host_vendor in
5043 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]'
5044 lt_cv_file_magic_test_file=`echo /usr
/lib
/libc.so
*`
5047 lt_cv_deplibs_check_method=pass_all
5050 lt_cv_file_magic_cmd='/bin/file'
5051 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5054 lt_cv_file_magic_cmd='/bin/file'
5055 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5056 lt_cv_file_magic_test_file=/lib/libc.so
5059 lt_cv_deplibs_check_method=pass_all
5062 lt_cv_deplibs_check_method=pass_all
5068 lt_cv_deplibs_check_method=pass_all
5071 lt_cv_deplibs_check_method=pass_all
5076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5077 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
5081 if test "$build" = "$host"; then
5084 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5087 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ |
$SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5093 file_magic_cmd=$lt_cv_file_magic_cmd
5094 deplibs_check_method=$lt_cv_deplibs_check_method
5095 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5118 if test -n "$ac_tool_prefix"; then
5119 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5120 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5122 printf %s "checking for $ac_word... " >&6; }
5123 if test ${ac_cv_prog_DLLTOOL+y}
5125 printf %s "(cached) " >&6
5127 if test -n "$DLLTOOL"; then
5128 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 case $as_dir in #(((
5137 *) as_dir=$as_dir/ ;;
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5141 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5151 DLLTOOL=$ac_cv_prog_DLLTOOL
5152 if test -n "$DLLTOOL"; then
5153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5154 printf "%s\n" "$DLLTOOL" >&6; }
5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 printf "%s\n" "no" >&6; }
5162 if test -z "$ac_cv_prog_DLLTOOL"; then
5163 ac_ct_DLLTOOL=$DLLTOOL
5164 # Extract the first word of "dlltool", so it can be a program name with args.
5165 set dummy dlltool; ac_word=$2
5166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 printf %s "checking for $ac_word... " >&6; }
5168 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
5170 printf %s "(cached) " >&6
5172 if test -n "$ac_ct_DLLTOOL"; then
5173 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 case $as_dir in #(((
5182 *) as_dir=$as_dir/ ;;
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5186 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5196 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5197 if test -n "$ac_ct_DLLTOOL"; then
5198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5199 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
5201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 printf "%s\n" "no" >&6; }
5205 if test "x$ac_ct_DLLTOOL" = x; then
5208 case $cross_compiling:$ac_tool_warned in
5210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5211 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5212 ac_tool_warned=yes ;;
5214 DLLTOOL=$ac_ct_DLLTOOL
5217 DLLTOOL="$ac_cv_prog_DLLTOOL"
5220 test -z "$DLLTOOL" && DLLTOOL=dlltool
5231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5232 printf %s "checking how to associate runtime and link libraries... " >&6; }
5233 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
5235 printf %s "(cached) " >&6
5237 lt_cv_sharedlib_from_linklib_cmd='unknown'
5240 cygwin* | mingw* | pw32* | cegcc*)
5241 # two different shell functions defined in ltmain.sh;
5242 # decide which one to use based on capabilities of $DLLTOOL
5243 case `$DLLTOOL --help 2>&1` in
5244 *--identify-strict*)
5245 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5248 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5253 # fallback: assume linklib IS sharedlib
5254 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5260 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5261 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5262 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5271 if test -n "$ac_tool_prefix"; then
5274 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5275 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277 printf %s "checking for $ac_word... " >&6; }
5278 if test ${ac_cv_prog_AR+y}
5280 printf %s "(cached) " >&6
5282 if test -n "$AR"; then
5283 ac_cv_prog_AR="$AR" # Let the user override the test.
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 case $as_dir in #(((
5292 *) as_dir=$as_dir/ ;;
5294 for ac_exec_ext in '' $ac_executable_extensions; do
5295 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5296 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5307 if test -n "$AR"; then
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5309 printf "%s\n" "$AR" >&6; }
5311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 printf "%s\n" "no" >&6; }
5316 test -n "$AR" && break
5319 if test -z "$AR"; then
5323 # Extract the first word of "$ac_prog", so it can be a program name with args.
5324 set dummy $ac_prog; ac_word=$2
5325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326 printf %s "checking for $ac_word... " >&6; }
5327 if test ${ac_cv_prog_ac_ct_AR+y}
5329 printf %s "(cached) " >&6
5331 if test -n "$ac_ct_AR"; then
5332 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 case $as_dir in #(((
5341 *) as_dir=$as_dir/ ;;
5343 for ac_exec_ext in '' $ac_executable_extensions; do
5344 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5345 ac_cv_prog_ac_ct_AR="$ac_prog"
5346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5355 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5356 if test -n "$ac_ct_AR"; then
5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5358 printf "%s\n" "$ac_ct_AR" >&6; }
5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 printf "%s\n" "no" >&6; }
5365 test -n "$ac_ct_AR" && break
5368 if test "x$ac_ct_AR" = x; then
5371 case $cross_compiling:$ac_tool_warned in
5373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5374 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5375 ac_tool_warned=yes ;;
5394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5395 printf %s "checking for archiver @FILE support... " >&6; }
5396 if test ${lt_cv_ar_at_file+y}
5398 printf %s "(cached) " >&6
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5412 if ac_fn_c_try_compile "$LINENO"
5414 echo conftest.$ac_objext > conftest.lst
5415 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5417 (eval $lt_ar_try) 2>&5
5419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5420 test $ac_status = 0; }
5421 if test 0 -eq "$ac_status"; then
5422 # Ensure the archiver fails upon bogus file names.
5423 rm -f conftest.$ac_objext libconftest.a
5424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5425 (eval $lt_ar_try) 2>&5
5427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5428 test $ac_status = 0; }
5429 if test 0 -ne "$ac_status"; then
5433 rm -f conftest.* libconftest.a
5436 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5440 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
5442 if test no = "$lt_cv_ar_at_file"; then
5445 archiver_list_spec=$lt_cv_ar_at_file
5454 if test -n "$ac_tool_prefix"; then
5455 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5456 set dummy ${ac_tool_prefix}strip; ac_word=$2
5457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5458 printf %s "checking for $ac_word... " >&6; }
5459 if test ${ac_cv_prog_STRIP+y}
5461 printf %s "(cached) " >&6
5463 if test -n "$STRIP"; then
5464 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 case $as_dir in #(((
5473 *) as_dir=$as_dir/ ;;
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5477 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5487 STRIP=$ac_cv_prog_STRIP
5488 if test -n "$STRIP"; then
5489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5490 printf "%s\n" "$STRIP" >&6; }
5492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 printf "%s\n" "no" >&6; }
5498 if test -z "$ac_cv_prog_STRIP"; then
5500 # Extract the first word of "strip", so it can be a program name with args.
5501 set dummy strip; ac_word=$2
5502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 printf %s "checking for $ac_word... " >&6; }
5504 if test ${ac_cv_prog_ac_ct_STRIP+y}
5506 printf %s "(cached) " >&6
5508 if test -n "$ac_ct_STRIP"; then
5509 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 case $as_dir in #(((
5518 *) as_dir=$as_dir/ ;;
5520 for ac_exec_ext in '' $ac_executable_extensions; do
5521 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5522 ac_cv_prog_ac_ct_STRIP="strip"
5523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5532 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5533 if test -n "$ac_ct_STRIP"; then
5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5535 printf "%s\n" "$ac_ct_STRIP" >&6; }
5537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538 printf "%s\n" "no" >&6; }
5541 if test "x$ac_ct_STRIP" = x; then
5544 case $cross_compiling:$ac_tool_warned in
5546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5547 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5548 ac_tool_warned=yes ;;
5553 STRIP="$ac_cv_prog_STRIP"
5556 test -z "$STRIP" && STRIP=:
5563 if test -n "$ac_tool_prefix"; then
5564 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5565 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567 printf %s "checking for $ac_word... " >&6; }
5568 if test ${ac_cv_prog_RANLIB+y}
5570 printf %s "(cached) " >&6
5572 if test -n "$RANLIB"; then
5573 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 case $as_dir in #(((
5582 *) as_dir=$as_dir/ ;;
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5586 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5596 RANLIB=$ac_cv_prog_RANLIB
5597 if test -n "$RANLIB"; then
5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5599 printf "%s\n" "$RANLIB" >&6; }
5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 printf "%s\n" "no" >&6; }
5607 if test -z "$ac_cv_prog_RANLIB"; then
5608 ac_ct_RANLIB=$RANLIB
5609 # Extract the first word of "ranlib", so it can be a program name with args.
5610 set dummy ranlib; ac_word=$2
5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 printf %s "checking for $ac_word... " >&6; }
5613 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5615 printf %s "(cached) " >&6
5617 if test -n "$ac_ct_RANLIB"; then
5618 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 case $as_dir in #(((
5627 *) as_dir=$as_dir/ ;;
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5631 ac_cv_prog_ac_ct_RANLIB="ranlib"
5632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5641 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5642 if test -n "$ac_ct_RANLIB"; then
5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5644 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 printf "%s\n" "no" >&6; }
5650 if test "x$ac_ct_RANLIB" = x; then
5653 case $cross_compiling:$ac_tool_warned in
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5656 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5657 ac_tool_warned=yes ;;
5659 RANLIB=$ac_ct_RANLIB
5662 RANLIB="$ac_cv_prog_RANLIB"
5665 test -z "$RANLIB" && RANLIB=:
5672 # Determine commands to create old-style static archives.
5673 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5674 old_postinstall_cmds='chmod 644 $oldlib'
5675 old_postuninstall_cmds=
5677 if test -n "$RANLIB"; then
5680 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5683 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5686 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5691 lock_old_archive_extraction=yes ;;
5693 lock_old_archive_extraction=no ;;
5716 for ac_prog in gawk mawk nawk awk
5718 # Extract the first word of "$ac_prog", so it can be a program name with args.
5719 set dummy $ac_prog; ac_word=$2
5720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5721 printf %s "checking for $ac_word... " >&6; }
5722 if test ${ac_cv_prog_AWK+y}
5724 printf %s "(cached) " >&6
5726 if test -n "$AWK"; then
5727 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733 case $as_dir in #(((
5736 *) as_dir=$as_dir/ ;;
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5740 ac_cv_prog_AWK="$ac_prog"
5741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5751 if test -n "$AWK"; then
5752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5753 printf "%s\n" "$AWK" >&6; }
5755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756 printf "%s\n" "no" >&6; }
5760 test -n "$AWK" && break
5781 # If no C compiler was specified, use CC.
5784 # If no C compiler flags were specified, use CFLAGS.
5785 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5787 # Allow CC to be a program name with arguments.
5791 # Check for command to grab the raw symbol name followed by C symbol from nm.
5792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5793 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
5794 if test ${lt_cv_sys_global_symbol_pipe+y}
5796 printf %s "(cached) " >&6
5799 # These are sane defaults that work on at least a few old systems.
5800 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5802 # Character class describing NM global symbol codes.
5803 symcode='[BCDEGRST]'
5805 # Regexp to match symbols that can be accessed directly from C.
5806 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5808 # Define system-specific variables.
5813 cygwin* | mingw* | pw32* | cegcc*)
5814 symcode='[ABCDGISTW]'
5817 if test ia64 = "$host_cpu"; then
5818 symcode='[ABCDEGRST]'
5822 symcode='[BCDEGRST]'
5825 symcode='[BCDEGQRST]'
5836 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5844 # If we're using GNU nm, then use its standard symbol codes.
5845 case `$NM -V 2>&1` in
5846 *GNU* | *'with BFD'*)
5847 symcode='[ABCDGIRSTW]' ;;
5850 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5851 # Gets list of data symbols to import.
5852 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5853 # Adjust the below global symbol transforms to fixup imported variables.
5854 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5855 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5856 lt_c_name_lib_hook="\
5857 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5858 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5860 # Disable hooks by default.
5861 lt_cv_sys_global_symbol_to_import=
5867 # Transform an extracted symbol line into a proper C declaration.
5868 # Some systems (esp. on ia64) link data and code symbols differently,
5869 # so use this general approach.
5870 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5872 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5873 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5875 # Transform an extracted symbol line into symbol name and symbol address
5876 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5878 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5879 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5881 # Transform an extracted symbol line into symbol name with lib prefix and
5883 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5884 $lt_c_name_lib_hook\
5885 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5886 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5887 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5889 # Handle CRLF in mingw tool chain
5893 opt_cr=`$ECHO 'x\{0,1\}' |
tr x
'\015'` # option cr in regexp
5897 # Try without a prefix underscore, then with it.
5898 for ac_symprfx in "" "_"; do
5900 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5901 symxfrm="\\1 $ac_symprfx\\2 \\2"
5903 # Write the raw and C identifiers.
5904 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5905 # Fake it for dumpbin and say T for any non-static function,
5906 # D for any global variable and I for any imported variable.
5907 # Also find C++ and __fastcall symbols from MSVC++,
5908 # which start with @ or ?.
5909 lt_cv_sys_global_symbol_pipe="$AWK '"\
5910 " {last_section=section; section=\$ 3};"\
5911 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5912 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5913 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5914 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5915 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5916 " \$ 0!~/External *\|/{next};"\
5917 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5918 " {if(hide[section]) next};"\
5919 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5920 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5921 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5922 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5923 " ' prfx=^$ac_symprfx"
5925 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5927 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5929 # Check to see that the pipe works correctly.
5933 cat > conftest.$ac_ext <<_LT_EOF
5938 void nm_test_func(void);
5939 void nm_test_func(void){}
5943 int main(){nm_test_var='a';nm_test_func();return(0);}
5946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5947 (eval $ac_compile) 2>&5
5949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5950 test $ac_status = 0; }; then
5951 # Now try to grab the symbols.
5953 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
5954 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
5955 # Try sorting and uniquifying the output.
5956 if sort "$nlist" | uniq > "$nlist"T; then
5957 mv -f "$nlist"T "$nlist"
5962 # Make sure that we snagged all the symbols we need.
5963 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5964 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5965 cat <<_LT_EOF > conftest.$ac_ext
5966 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5967 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5968 /* DATA imports from DLLs on WIN32 can't be const, because runtime
5969 relocations are performed -- see ld's documentation on pseudo-relocs. */
5970 # define LT_DLSYM_CONST
5971 #elif defined __osf__
5972 /* This system does not cope well with relocations in const data. */
5973 # define LT_DLSYM_CONST
5975 # define LT_DLSYM_CONST const
5983 # Now generate the symbol file.
5984 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5986 cat <<_LT_EOF >> conftest.$ac_ext
5988 /* The mapping between symbol names and symbols. */
5989 LT_DLSYM_CONST struct {
5993 lt__PROGRAM__LTX_preloaded_symbols[] =
5995 { "@PROGRAM@", (void *) 0 },
5997 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5998 cat <<\_LT_EOF >> conftest.$ac_ext
6002 /* This works around a problem in FreeBSD linker */
6003 #ifdef FREEBSD_WORKAROUND
6004 static const void *lt_preloaded_setup() {
6005 return lt__PROGRAM__LTX_preloaded_symbols;
6013 # Now try linking the two files.
6014 mv conftest.$ac_objext conftstm.$ac_objext
6015 lt_globsym_save_LIBS=$LIBS
6016 lt_globsym_save_CFLAGS=$CFLAGS
6017 LIBS=conftstm.$ac_objext
6018 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6019 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6020 (eval $ac_link) 2>&5
6022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6023 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6026 LIBS=$lt_globsym_save_LIBS
6027 CFLAGS=$lt_globsym_save_CFLAGS
6029 echo "cannot find nm_test_func in $nlist" >&5
6032 echo "cannot find nm_test_var in $nlist" >&5
6035 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6038 echo "$progname: failed program was:" >&5
6039 cat conftest.$ac_ext >&5
6041 rm -rf conftest* conftst*
6043 # Do not use the global_symbol_pipe unless it works.
6044 if test yes = "$pipe_works"; then
6047 lt_cv_sys_global_symbol_pipe=
6053 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6054 lt_cv_sys_global_symbol_to_cdecl=
6056 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6058 printf "%s\n" "failed" >&6; }
6060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6061 printf "%s\n" "ok" >&6; }
6064 # Response file support.
6065 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6066 nm_file_list_spec='@'
6067 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6068 nm_file_list_spec='@'
6107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6108 printf %s "checking for sysroot... " >&6; }
6110 # Check whether --with-sysroot was given.
6111 if test ${with_sysroot+y}
6113 withval=$with_sysroot;
6120 case $with_sysroot in #(
6122 if test yes = "$GCC"; then
6123 lt_sysroot=`$CC --print-sysroot 2>/dev
/null
`
6127 lt_sysroot=`echo "$with_sysroot" |
sed -e "$sed_quote_subst"`
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6133 printf "%s\n" "$with_sysroot" >&6; }
6134 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6139 printf "%s\n" "${lt_sysroot:-no}" >&6; }
6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6146 printf %s "checking for a working dd... " >&6; }
6147 if test ${ac_cv_path_lt_DD+y}
6149 printf %s "(cached) " >&6
6151 printf 0123456789abcdef0123456789abcdef >conftest.i
6152 cat conftest.i conftest.i >conftest2.i
6154 if test -z "$lt_DD"; then
6155 ac_path_lt_DD_found=false
6156 # Loop through the user's path and test for each of PROGNAME-LIST
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 case $as_dir in #(((
6164 *) as_dir=$as_dir/ ;;
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
6170 as_fn_executable_p "$ac_path_lt_DD" || continue
6171 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6172 cmp -s conftest.i conftest.out \
6173 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6175 $ac_path_lt_DD_found && break 3
6180 if test -z "$ac_cv_path_lt_DD"; then
6184 ac_cv_path_lt_DD=$lt_DD
6187 rm -f conftest.i conftest2.i conftest.out
6189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6190 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
6193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6194 printf %s "checking how to truncate binary pipes... " >&6; }
6195 if test ${lt_cv_truncate_bin+y}
6197 printf %s "(cached) " >&6
6199 printf 0123456789abcdef0123456789abcdef >conftest.i
6200 cat conftest.i conftest.i >conftest2.i
6202 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6203 cmp -s conftest.i conftest.out \
6204 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6206 rm -f conftest.i conftest2.i conftest.out
6207 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6210 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
6218 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6221 for cc_temp in $*""; do
6223 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6224 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6229 func_cc_basename_result=`$ECHO "$cc_temp" |
$SED "s%.*/%%; s%^$host_alias-%%"`
6232 # Check whether --enable-libtool-lock was given.
6233 if test ${enable_libtool_lock+y}
6235 enableval=$enable_libtool_lock;
6238 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6240 # Some flags need to be propagated to the compiler or linker for good
6244 # Find out what ABI is being produced by ac_compile, and set mode
6245 # options accordingly.
6246 echo 'int i;' > conftest.$ac_ext
6247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6248 (eval $ac_compile) 2>&5
6250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6251 test $ac_status = 0; }; then
6252 case `/usr
/bin
/file conftest.
$ac_objext` in
6264 # Find out what ABI is being produced by ac_compile, and set linker
6265 # options accordingly.
6266 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6268 (eval $ac_compile) 2>&5
6270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6271 test $ac_status = 0; }; then
6272 if test yes = "$lt_cv_prog_gnu_ld"; then
6273 case `/usr
/bin
/file conftest.
$ac_objext` in
6275 LD="${LD-ld} -melf32bsmip"
6278 LD="${LD-ld} -melf32bmipn32"
6281 LD="${LD-ld} -melf64bmip"
6285 case `/usr
/bin
/file conftest.
$ac_objext` in
6302 # Find out what ABI is being produced by ac_compile, and set linker
6303 # options accordingly.
6304 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6306 (eval $ac_compile) 2>&5
6308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6309 test $ac_status = 0; }; then
6311 case `/usr
/bin
/file conftest.
$ac_objext` in
6319 case `/usr
/bin
/file conftest.
$ac_objext` in
6321 emul="${emul}btsmip"
6324 emul="${emul}ltsmip"
6327 case `/usr
/bin
/file conftest.
$ac_objext` in
6332 LD="${LD-ld} -m $emul"
6337 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6338 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6339 # Find out what ABI is being produced by ac_compile, and set linker
6340 # options accordingly. Note that the listed cases only cover the
6341 # situations where additional linker options are needed (such as when
6342 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6343 # vice versa); the common cases where no linker options are needed do
6344 # not appear in the list.
6345 echo 'int i;' > conftest.$ac_ext
6346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6347 (eval $ac_compile) 2>&5
6349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6350 test $ac_status = 0; }; then
6351 case `/usr
/bin
/file conftest.o
` in
6354 x86_64-*kfreebsd*-gnu)
6355 LD="${LD-ld} -m elf_i386_fbsd"
6358 case `/usr
/bin
/file conftest.o
` in
6360 LD="${LD-ld} -m elf32_x86_64"
6363 LD="${LD-ld} -m elf_i386"
6367 powerpc64le-*linux*)
6368 LD="${LD-ld} -m elf32lppclinux"
6371 LD="${LD-ld} -m elf32ppclinux"
6374 LD="${LD-ld} -m elf_s390"
6377 LD="${LD-ld} -m elf32_sparc"
6383 x86_64-*kfreebsd*-gnu)
6384 LD="${LD-ld} -m elf_x86_64_fbsd"
6387 LD="${LD-ld} -m elf_x86_64"
6390 LD="${LD-ld} -m elf64lppc"
6393 LD="${LD-ld} -m elf64ppc"
6395 s390*-*linux*|s390*-*tpf*)
6396 LD="${LD-ld} -m elf64_s390"
6399 LD="${LD-ld} -m elf64_sparc"
6409 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6411 CFLAGS="$CFLAGS -belf"
6412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6413 printf %s "checking whether the C compiler needs -belf... " >&6; }
6414 if test ${lt_cv_cc_needs_belf+y}
6416 printf %s "(cached) " >&6
6419 ac_cpp='$CPP $CPPFLAGS'
6420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6425 /* end confdefs.h. */
6435 if ac_fn_c_try_link "$LINENO"
6437 lt_cv_cc_needs_belf=yes
6439 lt_cv_cc_needs_belf=no
6441 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6442 conftest$ac_exeext conftest.$ac_ext
6444 ac_cpp='$CPP $CPPFLAGS'
6445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6451 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
6452 if test yes != "$lt_cv_cc_needs_belf"; then
6453 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6458 # Find out what ABI is being produced by ac_compile, and set linker
6459 # options accordingly.
6460 echo 'int i;' > conftest.$ac_ext
6461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6462 (eval $ac_compile) 2>&5
6464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6465 test $ac_status = 0; }; then
6466 case `/usr
/bin
/file conftest.o
` in
6468 case $lt_cv_prog_gnu_ld in
6471 i?86-*-solaris*|x86_64-*-solaris*)
6472 LD="${LD-ld} -m elf_x86_64"
6475 LD="${LD-ld} -m elf64_sparc"
6478 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6479 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6484 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6496 need_locks=$enable_libtool_lock
6498 if test -n "$ac_tool_prefix"; then
6499 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6500 set dummy ${ac_tool_prefix}mt; ac_word=$2
6501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 printf %s "checking for $ac_word... " >&6; }
6503 if test ${ac_cv_prog_MANIFEST_TOOL+y}
6505 printf %s "(cached) " >&6
6507 if test -n "$MANIFEST_TOOL"; then
6508 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 case $as_dir in #(((
6517 *) as_dir=$as_dir/ ;;
6519 for ac_exec_ext in '' $ac_executable_extensions; do
6520 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6521 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6531 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6532 if test -n "$MANIFEST_TOOL"; then
6533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6534 printf "%s\n" "$MANIFEST_TOOL" >&6; }
6536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 printf "%s\n" "no" >&6; }
6542 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6543 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6544 # Extract the first word of "mt", so it can be a program name with args.
6545 set dummy mt; ac_word=$2
6546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547 printf %s "checking for $ac_word... " >&6; }
6548 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
6550 printf %s "(cached) " >&6
6552 if test -n "$ac_ct_MANIFEST_TOOL"; then
6553 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 case $as_dir in #(((
6562 *) as_dir=$as_dir/ ;;
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6566 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6576 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6577 if test -n "$ac_ct_MANIFEST_TOOL"; then
6578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6579 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
6581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582 printf "%s\n" "no" >&6; }
6585 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6588 case $cross_compiling:$ac_tool_warned in
6590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6591 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6592 ac_tool_warned=yes ;;
6594 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6597 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6600 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6602 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6603 if test ${lt_cv_path_mainfest_tool+y}
6605 printf %s "(cached) " >&6
6607 lt_cv_path_mainfest_tool=no
6608 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6609 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6610 cat conftest.err >&5
6611 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6612 lt_cv_path_mainfest_tool=yes
6616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6617 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
6618 if test yes != "$lt_cv_path_mainfest_tool"; then
6628 rhapsody* | darwin*)
6629 if test -n "$ac_tool_prefix"; then
6630 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6631 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633 printf %s "checking for $ac_word... " >&6; }
6634 if test ${ac_cv_prog_DSYMUTIL+y}
6636 printf %s "(cached) " >&6
6638 if test -n "$DSYMUTIL"; then
6639 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 case $as_dir in #(((
6648 *) as_dir=$as_dir/ ;;
6650 for ac_exec_ext in '' $ac_executable_extensions; do
6651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6652 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6662 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6663 if test -n "$DSYMUTIL"; then
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6665 printf "%s\n" "$DSYMUTIL" >&6; }
6667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6668 printf "%s\n" "no" >&6; }
6673 if test -z "$ac_cv_prog_DSYMUTIL"; then
6674 ac_ct_DSYMUTIL=$DSYMUTIL
6675 # Extract the first word of "dsymutil", so it can be a program name with args.
6676 set dummy dsymutil; ac_word=$2
6677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6678 printf %s "checking for $ac_word... " >&6; }
6679 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
6681 printf %s "(cached) " >&6
6683 if test -n "$ac_ct_DSYMUTIL"; then
6684 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 case $as_dir in #(((
6693 *) as_dir=$as_dir/ ;;
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6697 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6707 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6708 if test -n "$ac_ct_DSYMUTIL"; then
6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6710 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
6712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713 printf "%s\n" "no" >&6; }
6716 if test "x$ac_ct_DSYMUTIL" = x; then
6719 case $cross_compiling:$ac_tool_warned in
6721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6722 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6723 ac_tool_warned=yes ;;
6725 DSYMUTIL=$ac_ct_DSYMUTIL
6728 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6731 if test -n "$ac_tool_prefix"; then
6732 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6733 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735 printf %s "checking for $ac_word... " >&6; }
6736 if test ${ac_cv_prog_NMEDIT+y}
6738 printf %s "(cached) " >&6
6740 if test -n "$NMEDIT"; then
6741 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 case $as_dir in #(((
6750 *) as_dir=$as_dir/ ;;
6752 for ac_exec_ext in '' $ac_executable_extensions; do
6753 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6754 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6764 NMEDIT=$ac_cv_prog_NMEDIT
6765 if test -n "$NMEDIT"; then
6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6767 printf "%s\n" "$NMEDIT" >&6; }
6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6770 printf "%s\n" "no" >&6; }
6775 if test -z "$ac_cv_prog_NMEDIT"; then
6776 ac_ct_NMEDIT=$NMEDIT
6777 # Extract the first word of "nmedit", so it can be a program name with args.
6778 set dummy nmedit; ac_word=$2
6779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780 printf %s "checking for $ac_word... " >&6; }
6781 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
6783 printf %s "(cached) " >&6
6785 if test -n "$ac_ct_NMEDIT"; then
6786 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 case $as_dir in #(((
6795 *) as_dir=$as_dir/ ;;
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6799 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6809 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6810 if test -n "$ac_ct_NMEDIT"; then
6811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6812 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6815 printf "%s\n" "no" >&6; }
6818 if test "x$ac_ct_NMEDIT" = x; then
6821 case $cross_compiling:$ac_tool_warned in
6823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6824 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6825 ac_tool_warned=yes ;;
6827 NMEDIT=$ac_ct_NMEDIT
6830 NMEDIT="$ac_cv_prog_NMEDIT"
6833 if test -n "$ac_tool_prefix"; then
6834 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6835 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 printf %s "checking for $ac_word... " >&6; }
6838 if test ${ac_cv_prog_LIPO+y}
6840 printf %s "(cached) " >&6
6842 if test -n "$LIPO"; then
6843 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 case $as_dir in #(((
6852 *) as_dir=$as_dir/ ;;
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6856 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6866 LIPO=$ac_cv_prog_LIPO
6867 if test -n "$LIPO"; then
6868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6869 printf "%s\n" "$LIPO" >&6; }
6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872 printf "%s\n" "no" >&6; }
6877 if test -z "$ac_cv_prog_LIPO"; then
6879 # Extract the first word of "lipo", so it can be a program name with args.
6880 set dummy lipo; ac_word=$2
6881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882 printf %s "checking for $ac_word... " >&6; }
6883 if test ${ac_cv_prog_ac_ct_LIPO+y}
6885 printf %s "(cached) " >&6
6887 if test -n "$ac_ct_LIPO"; then
6888 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 case $as_dir in #(((
6897 *) as_dir=$as_dir/ ;;
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6901 ac_cv_prog_ac_ct_LIPO="lipo"
6902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6911 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6912 if test -n "$ac_ct_LIPO"; then
6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6914 printf "%s\n" "$ac_ct_LIPO" >&6; }
6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917 printf "%s\n" "no" >&6; }
6920 if test "x$ac_ct_LIPO" = x; then
6923 case $cross_compiling:$ac_tool_warned in
6925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6926 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6927 ac_tool_warned=yes ;;
6932 LIPO="$ac_cv_prog_LIPO"
6935 if test -n "$ac_tool_prefix"; then
6936 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6937 set dummy ${ac_tool_prefix}otool; ac_word=$2
6938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939 printf %s "checking for $ac_word... " >&6; }
6940 if test ${ac_cv_prog_OTOOL+y}
6942 printf %s "(cached) " >&6
6944 if test -n "$OTOOL"; then
6945 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 case $as_dir in #(((
6954 *) as_dir=$as_dir/ ;;
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6958 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6968 OTOOL=$ac_cv_prog_OTOOL
6969 if test -n "$OTOOL"; then
6970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6971 printf "%s\n" "$OTOOL" >&6; }
6973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974 printf "%s\n" "no" >&6; }
6979 if test -z "$ac_cv_prog_OTOOL"; then
6981 # Extract the first word of "otool", so it can be a program name with args.
6982 set dummy otool; ac_word=$2
6983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984 printf %s "checking for $ac_word... " >&6; }
6985 if test ${ac_cv_prog_ac_ct_OTOOL+y}
6987 printf %s "(cached) " >&6
6989 if test -n "$ac_ct_OTOOL"; then
6990 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 case $as_dir in #(((
6999 *) as_dir=$as_dir/ ;;
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7003 ac_cv_prog_ac_ct_OTOOL="otool"
7004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7013 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7014 if test -n "$ac_ct_OTOOL"; then
7015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7016 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019 printf "%s\n" "no" >&6; }
7022 if test "x$ac_ct_OTOOL" = x; then
7025 case $cross_compiling:$ac_tool_warned in
7027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7028 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7029 ac_tool_warned=yes ;;
7034 OTOOL="$ac_cv_prog_OTOOL"
7037 if test -n "$ac_tool_prefix"; then
7038 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7039 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7041 printf %s "checking for $ac_word... " >&6; }
7042 if test ${ac_cv_prog_OTOOL64+y}
7044 printf %s "(cached) " >&6
7046 if test -n "$OTOOL64"; then
7047 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 case $as_dir in #(((
7056 *) as_dir=$as_dir/ ;;
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7060 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7070 OTOOL64=$ac_cv_prog_OTOOL64
7071 if test -n "$OTOOL64"; then
7072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7073 printf "%s\n" "$OTOOL64" >&6; }
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 printf "%s\n" "no" >&6; }
7081 if test -z "$ac_cv_prog_OTOOL64"; then
7082 ac_ct_OTOOL64=$OTOOL64
7083 # Extract the first word of "otool64", so it can be a program name with args.
7084 set dummy otool64; ac_word=$2
7085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086 printf %s "checking for $ac_word... " >&6; }
7087 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
7089 printf %s "(cached) " >&6
7091 if test -n "$ac_ct_OTOOL64"; then
7092 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 case $as_dir in #(((
7101 *) as_dir=$as_dir/ ;;
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7105 ac_cv_prog_ac_ct_OTOOL64="otool64"
7106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7115 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7116 if test -n "$ac_ct_OTOOL64"; then
7117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7118 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
7120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121 printf "%s\n" "no" >&6; }
7124 if test "x$ac_ct_OTOOL64" = x; then
7127 case $cross_compiling:$ac_tool_warned in
7129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7130 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7131 ac_tool_warned=yes ;;
7133 OTOOL64=$ac_ct_OTOOL64
7136 OTOOL64="$ac_cv_prog_OTOOL64"
7165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7166 printf %s "checking for -single_module linker flag... " >&6; }
7167 if test ${lt_cv_apple_cc_single_mod+y}
7169 printf %s "(cached) " >&6
7171 lt_cv_apple_cc_single_mod=no
7172 if test -z "$LT_MULTI_MODULE"; then
7173 # By default we will add the -single_module flag. You can override
7174 # by either setting the environment variable LT_MULTI_MODULE
7175 # non-empty at configure time, or by adding -multi_module to the
7177 rm -rf libconftest.dylib*
7178 echo "int foo(void){return 1;}" > conftest.c
7179 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7180 -dynamiclib -Wl,-single_module conftest.c" >&5
7181 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7182 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7184 # If there is a non-empty error log, and "single_module"
7185 # appears in it, assume the flag caused a linker warning
7186 if test -s conftest.err && $GREP single_module conftest.err; then
7187 cat conftest.err >&5
7188 # Otherwise, if the output was created with a 0 exit code from
7189 # the compiler, it worked.
7190 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7191 lt_cv_apple_cc_single_mod=yes
7193 cat conftest.err >&5
7195 rm -rf libconftest.dylib*
7199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7200 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
7202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7203 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
7204 if test ${lt_cv_ld_exported_symbols_list+y}
7206 printf %s "(cached) " >&6
7208 lt_cv_ld_exported_symbols_list=no
7209 save_LDFLAGS=$LDFLAGS
7210 echo "_main" > conftest.sym
7211 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213 /* end confdefs.h. */
7223 if ac_fn_c_try_link "$LINENO"
7225 lt_cv_ld_exported_symbols_list=yes
7227 lt_cv_ld_exported_symbols_list=no
7229 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7230 conftest$ac_exeext conftest.$ac_ext
7231 LDFLAGS=$save_LDFLAGS
7234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7235 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
7237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7238 printf %s "checking for -force_load linker flag... " >&6; }
7239 if test ${lt_cv_ld_force_load+y}
7241 printf %s "(cached) " >&6
7243 lt_cv_ld_force_load=no
7244 cat > conftest.c << _LT_EOF
7245 int forced_loaded() { return 2;}
7247 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7248 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7249 echo "$AR cr libconftest.a conftest.o" >&5
7250 $AR cr libconftest.a conftest.o 2>&5
7251 echo "$RANLIB libconftest.a" >&5
7252 $RANLIB libconftest.a 2>&5
7253 cat > conftest.c << _LT_EOF
7254 int main() { return 0;}
7256 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7257 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7259 if test -s conftest.err && $GREP force_load conftest.err; then
7260 cat conftest.err >&5
7261 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7262 lt_cv_ld_force_load=yes
7264 cat conftest.err >&5
7266 rm -f conftest.err libconftest.a conftest conftest.c
7267 rm -rf conftest.dSYM
7270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7271 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
7273 rhapsody* | darwin1.[012])
7274 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7276 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7277 darwin*) # darwin 5.x on
7278 # if running on 10.5 or later, the deployment target defaults
7279 # to the OS version, if on x86, and 10.4, the deployment
7280 # target defaults to 10.4. Don't you love it?
7281 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7282 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
7283 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7285 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7287 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7291 if test yes = "$lt_cv_apple_cc_single_mod"; then
7292 _lt_dar_single_mod='$single_module'
7294 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7295 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7297 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7299 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7300 _lt_dsymutil='~$DSYMUTIL $lib || :'
7307 # func_munge_path_list VARIABLE PATH
7308 # -----------------------------------
7309 # VARIABLE is name of variable containing _space_ separated list of
7310 # directories to be munged by the contents of PATH, which is string
7313 # string "DIR[ DIR]" will be prepended to VARIABLE
7315 # string "DIR[ DIR]" will be appended to VARIABLE
7316 # "DIRP[:DIRP]::[DIRA:]DIRA"
7317 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7318 # "DIRA[ DIRA]" will be appended to VARIABLE
7320 # VARIABLE will be replaced by "DIR[ DIR]"
7321 func_munge_path_list ()
7327 eval $1=\"`$ECHO $2 |
$SED 's/:/ /g'` \$$1\"
7330 eval $1=\"\$$1 `$ECHO $2 |
$SED 's/:/ /g'`\"
7333 eval $1=\"\$$1\ `$ECHO $2 |
$SED -e 's/.*:://' -e 's/:/ /g'`\"
7334 eval $1=\"`$ECHO $2 |
$SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7337 eval $1=\"`$ECHO $2 |
$SED 's/:/ /g'`\"
7342 ac_header= ac_cache=
7343 for ac_item in $ac_header_c_list
7345 if test $ac_cache; then
7346 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
7347 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
7348 printf "%s\n" "#define $ac_item 1" >> confdefs.h
7350 ac_header= ac_cache=
7351 elif test $ac_header; then
7365 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
7368 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
7371 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7373 if test "x$ac_cv_header_dlfcn_h" = xyes
7375 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
7393 # Check whether --enable-shared was given.
7394 if test ${enable_shared+y}
7396 enableval=$enable_shared; p=${PACKAGE-default}
7398 yes) enable_shared=yes ;;
7399 no) enable_shared=no ;;
7402 # Look at the argument we got. We use all the common list separators.
7403 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7404 for pkg in $enableval; do
7406 if test "X$pkg" = "X$p"; then
7425 # Check whether --enable-static was given.
7426 if test ${enable_static+y}
7428 enableval=$enable_static; p=${PACKAGE-default}
7430 yes) enable_static=yes ;;
7431 no) enable_static=no ;;
7434 # Look at the argument we got. We use all the common list separators.
7435 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7436 for pkg in $enableval; do
7438 if test "X$pkg" = "X$p"; then
7458 # Check whether --with-pic was given.
7459 if test ${with_pic+y}
7461 withval=$with_pic; lt_p=${PACKAGE-default}
7463 yes|no) pic_mode=$withval ;;
7466 # Look at the argument we got. We use all the common list separators.
7467 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7468 for lt_pkg in $withval; do
7470 if test "X$lt_pkg" = "X$lt_p"; then
7488 # Check whether --enable-fast-install was given.
7489 if test ${enable_fast_install+y}
7491 enableval=$enable_fast_install; p=${PACKAGE-default}
7493 yes) enable_fast_install=yes ;;
7494 no) enable_fast_install=no ;;
7496 enable_fast_install=no
7497 # Look at the argument we got. We use all the common list separators.
7498 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7499 for pkg in $enableval; do
7501 if test "X$pkg" = "X$p"; then
7502 enable_fast_install=yes
7509 enable_fast_install=yes
7519 shared_archive_member_spec=
7520 case $host,$enable_shared in
7521 power*-*-aix[5-9]*,yes)
7522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7523 printf %s "checking which variant of shared library versioning to provide... " >&6; }
7525 # Check whether --with-aix-soname was given.
7526 if test ${with_aix_soname+y}
7528 withval=$with_aix_soname; case $withval in
7532 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7535 lt_cv_with_aix_soname=$with_aix_soname
7537 if test ${lt_cv_with_aix_soname+y}
7539 printf %s "(cached) " >&6
7541 lt_cv_with_aix_soname=aix
7544 with_aix_soname=$lt_cv_with_aix_soname
7547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7548 printf "%s\n" "$with_aix_soname" >&6; }
7549 if test aix != "$with_aix_soname"; then
7550 # For the AIX way of multilib, we name the shared archive member
7551 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7552 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7553 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7554 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7555 if test 64 = "${OBJECT_MODE-32}"; then
7556 shared_archive_member_spec=shr_64
7558 shared_archive_member_spec=shr
7576 # This can be used to rebuild libtool when needed
7577 LIBTOOL_DEPS=$ltmain
7579 # Always use our own libtool.
7580 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7611 test -z "$LN_S" && LN_S="ln -s"
7626 if test -n "${ZSH_VERSION+set}"; then
7627 setopt NO_GLOB_SUBST
7630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7631 printf %s "checking for objdir... " >&6; }
7632 if test ${lt_cv_objdir+y}
7634 printf %s "(cached) " >&6
7636 rm -f .libs 2>/dev/null
7637 mkdir .libs 2>/dev/null
7638 if test -d .libs; then
7641 # MS-DOS does not allow filenames that begin with a dot.
7644 rmdir .libs 2>/dev/null
7646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7647 printf "%s\n" "$lt_cv_objdir" >&6; }
7648 objdir=$lt_cv_objdir
7654 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
7661 # AIX sometimes has problems with the GCC collect2 program. For some
7662 # reason, if we set the COLLECT_NAMES environment variable, the problems
7663 # vanish in a puff of smoke.
7664 if test set != "${COLLECT_NAMES+set}"; then
7666 export COLLECT_NAMES
7673 can_build_shared=yes
7675 # All known linkers require a '.a' archive for static linking (except MSVC,
7676 # which needs '.lib').
7679 with_gnu_ld=$lt_cv_prog_gnu_ld
7684 # Set sane defaults for various variables
7685 test -z "$CC" && CC=cc
7686 test -z "$LTCC" && LTCC=$CC
7687 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7688 test -z "$LD" && LD=ld
7689 test -z "$ac_objext" && ac_objext=o
7691 func_cc_basename $compiler
7692 cc_basename=$func_cc_basename_result
7695 # Only perform the check for file, if the check method requires it
7696 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7697 case $deplibs_check_method in
7699 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7701 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
7702 if test ${lt_cv_path_MAGIC_CMD+y}
7704 printf %s "(cached) " >&6
7708 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7711 lt_save_MAGIC_CMD=$MAGIC_CMD
7712 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7713 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7714 for ac_dir in $ac_dummy; do
7716 test -z "$ac_dir" && ac_dir=.
7717 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7718 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7719 if test -n "$file_magic_test_file"; then
7720 case $deplibs_check_method in
7722 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7723 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7724 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7725 $EGREP "$file_magic_regex" > /dev/null; then
7730 *** Warning: the command libtool uses to detect shared libraries,
7731 *** $file_magic_cmd, produces output that libtool cannot recognize.
7732 *** The result is that libtool may fail to recognize shared libraries
7733 *** as such. This will affect the creation of libtool libraries that
7734 *** depend on shared libraries, but programs linked with such libtool
7735 *** libraries will work regardless of this problem. Nevertheless, you
7736 *** may want to report the problem to your system manager and/or to
7737 *** bug-libtool@gnu.org
7747 MAGIC_CMD=$lt_save_MAGIC_CMD
7752 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7753 if test -n "$MAGIC_CMD"; then
7754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7755 printf "%s\n" "$MAGIC_CMD" >&6; }
7757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758 printf "%s\n" "no" >&6; }
7765 if test -z "$lt_cv_path_MAGIC_CMD"; then
7766 if test -n "$ac_tool_prefix"; then
7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7768 printf %s "checking for file... " >&6; }
7769 if test ${lt_cv_path_MAGIC_CMD+y}
7771 printf %s "(cached) " >&6
7775 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7778 lt_save_MAGIC_CMD=$MAGIC_CMD
7779 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7780 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7781 for ac_dir in $ac_dummy; do
7783 test -z "$ac_dir" && ac_dir=.
7784 if test -f "$ac_dir/file"; then
7785 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7786 if test -n "$file_magic_test_file"; then
7787 case $deplibs_check_method in
7789 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7790 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7791 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7792 $EGREP "$file_magic_regex" > /dev/null; then
7797 *** Warning: the command libtool uses to detect shared libraries,
7798 *** $file_magic_cmd, produces output that libtool cannot recognize.
7799 *** The result is that libtool may fail to recognize shared libraries
7800 *** as such. This will affect the creation of libtool libraries that
7801 *** depend on shared libraries, but programs linked with such libtool
7802 *** libraries will work regardless of this problem. Nevertheless, you
7803 *** may want to report the problem to your system manager and/or to
7804 *** bug-libtool@gnu.org
7814 MAGIC_CMD=$lt_save_MAGIC_CMD
7819 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7820 if test -n "$MAGIC_CMD"; then
7821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7822 printf "%s\n" "$MAGIC_CMD" >&6; }
7824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 printf "%s\n" "no" >&6; }
7838 # Use C for the default configuration in the libtool script
7842 ac_cpp='$CPP $CPPFLAGS'
7843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7848 # Source file extension for C test sources.
7851 # Object file extension for compiled C test sources.
7855 # Code to be used in simple compile tests
7856 lt_simple_compile_test_code="int some_variable = 0;"
7858 # Code to be used in simple link tests
7859 lt_simple_link_test_code='int main(){return(0);}'
7867 # If no C compiler was specified, use CC.
7870 # If no C compiler flags were specified, use CFLAGS.
7871 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7873 # Allow CC to be a program name with arguments.
7876 # Save the default compiler, since it gets overwritten when the other
7877 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7878 compiler_DEFAULT=$CC
7880 # save warnings/boilerplate of simple test code
7881 ac_outfile=conftest.$ac_objext
7882 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7883 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7884 _lt_compiler_boilerplate=`cat conftest.err
`
7887 ac_outfile=conftest.$ac_objext
7888 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7889 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7890 _lt_linker_boilerplate=`cat conftest.err
`
7894 if test -n "$compiler"; then
7896 lt_prog_compiler_no_builtin_flag=
7898 if test yes = "$GCC"; then
7899 case $cc_basename in
7901 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7903 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7907 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7908 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
7910 printf %s "(cached) " >&6
7912 lt_cv_prog_compiler_rtti_exceptions=no
7913 ac_outfile=conftest.$ac_objext
7914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7915 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
7916 # Insert the option either (1) after the last *FLAGS variable, or
7917 # (2) before a word containing "conftest.", or (3) at the end.
7918 # Note that $ac_compile itself does not contain backslashes and begins
7919 # with a dollar sign (not a hyphen), so the echo should work correctly.
7920 # The option is referenced via a variable to avoid confusing sed.
7921 lt_compile=`echo "$ac_compile" |
$SED \
7922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7924 -e 's:$: $lt_compiler_flag:'`
7925 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7926 (eval "$lt_compile" 2>conftest.err)
7928 cat conftest.err >&5
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 if (exit $ac_status) && test -s "$ac_outfile"; then
7931 # The compiler can only warn and ignore the option if not recognized
7932 # So say no if there are warnings other than the usual output.
7933 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7934 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7935 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7936 lt_cv_prog_compiler_rtti_exceptions=yes
7942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7943 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7945 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7946 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7958 lt_prog_compiler_wl=
7959 lt_prog_compiler_pic=
7960 lt_prog_compiler_static=
7963 if test yes = "$GCC"; then
7964 lt_prog_compiler_wl='-Wl,'
7965 lt_prog_compiler_static='-static'
7969 # All AIX code is PIC.
7970 if test ia64 = "$host_cpu"; then
7971 # AIX 5 now supports IA64 processor
7972 lt_prog_compiler_static='-Bstatic'
7974 lt_prog_compiler_pic='-fPIC'
7980 # see comment about AmigaOS4 .so support
7981 lt_prog_compiler_pic='-fPIC'
7984 # FIXME: we need at least 68020 code to build shared libraries, but
7985 # adding the '-m68020' flag to GCC prevents building anything better,
7987 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7992 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7993 # PIC is the default for these OSes.
7996 mingw* | cygwin* | pw32* | os2* | cegcc*)
7997 # This hack is so that the source file can tell whether it is being
7998 # built for inclusion in a dll (and should export symbols for example).
7999 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8000 # (--disable-auto-import) libraries
8001 lt_prog_compiler_pic='-DDLL_EXPORT'
8004 lt_prog_compiler_static='$wl-static'
8009 darwin* | rhapsody*)
8010 # PIC is the default on this platform
8011 # Common symbols not allowed in MH_DYLIB files
8012 lt_prog_compiler_pic='-fno-common'
8016 # PIC is the default for Haiku.
8017 # The "-static" flag exists, but is broken.
8018 lt_prog_compiler_static=
8022 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8023 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8024 # sets the default TLS model and affects inlining.
8030 lt_prog_compiler_pic='-fPIC'
8036 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8037 # Instead, we relocate shared libraries at runtime.
8041 # Just because we use GCC doesn't mean we suddenly get shared libraries
8042 # on systems that don't support them.
8043 lt_prog_compiler_can_build_shared=no
8048 # QNX uses GNU C++, but need to define -shared option too, otherwise
8050 lt_prog_compiler_pic='-fPIC -shared'
8054 if test -d /usr/nec; then
8055 lt_prog_compiler_pic=-Kconform_pic
8060 lt_prog_compiler_pic='-fPIC'
8064 case $cc_basename in
8065 nvcc*) # Cuda Compiler Driver 2.2
8066 lt_prog_compiler_wl='-Xlinker '
8067 if test -n "$lt_prog_compiler_pic"; then
8068 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8073 # PORTME Check for flag to pass linker flags through the system compiler.
8076 lt_prog_compiler_wl='-Wl,'
8077 if test ia64 = "$host_cpu"; then
8078 # AIX 5 now supports IA64 processor
8079 lt_prog_compiler_static='-Bstatic'
8081 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8085 darwin* | rhapsody*)
8086 # PIC is the default on this platform
8087 # Common symbols not allowed in MH_DYLIB files
8088 lt_prog_compiler_pic='-fno-common'
8089 case $cc_basename in
8091 # NAG Fortran compiler
8092 lt_prog_compiler_wl='-Wl,-Wl,,'
8093 lt_prog_compiler_pic='-PIC'
8094 lt_prog_compiler_static='-Bstatic'
8099 mingw* | cygwin* | pw32* | os2* | cegcc*)
8100 # This hack is so that the source file can tell whether it is being
8101 # built for inclusion in a dll (and should export symbols for example).
8102 lt_prog_compiler_pic='-DDLL_EXPORT'
8105 lt_prog_compiler_static='$wl-static'
8110 hpux9* | hpux10* | hpux11*)
8111 lt_prog_compiler_wl='-Wl,'
8112 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8119 lt_prog_compiler_pic='+Z'
8122 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8123 lt_prog_compiler_static='$wl-a ${wl}archive'
8126 irix5* | irix6* | nonstopux*)
8127 lt_prog_compiler_wl='-Wl,'
8128 # PIC (with -KPIC) is the default.
8129 lt_prog_compiler_static='-non_shared'
8132 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8133 case $cc_basename in
8134 # old Intel for x86_64, which still supported -KPIC.
8136 lt_prog_compiler_wl='-Wl,'
8137 lt_prog_compiler_pic='-KPIC'
8138 lt_prog_compiler_static='-static'
8140 # flang / f18. f95 an alias for gfortran or flang on Debian
8141 flang* | f18* | f95*)
8142 lt_prog_compiler_wl='-Wl,'
8143 lt_prog_compiler_pic='-fPIC'
8144 lt_prog_compiler_static='-static'
8146 # icc used to be incompatible with GCC.
8147 # ICC 10 doesn't accept -KPIC any more.
8149 lt_prog_compiler_wl='-Wl,'
8150 lt_prog_compiler_pic='-fPIC'
8151 lt_prog_compiler_static='-static'
8153 # Lahey Fortran 8.1.
8155 lt_prog_compiler_wl='-Wl,'
8156 lt_prog_compiler_pic='--shared'
8157 lt_prog_compiler_static='--static'
8160 # NAG Fortran compiler
8161 lt_prog_compiler_wl='-Wl,-Wl,,'
8162 lt_prog_compiler_pic='-PIC'
8163 lt_prog_compiler_static='-Bstatic'
8166 # Fabrice Bellard et al's Tiny C Compiler
8167 lt_prog_compiler_wl='-Wl,'
8168 lt_prog_compiler_pic='-fPIC'
8169 lt_prog_compiler_static='-static'
8171 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8172 # Portland Group compilers (*not* the Pentium gcc compiler,
8173 # which looks to be a dead project)
8174 lt_prog_compiler_wl='-Wl,'
8175 lt_prog_compiler_pic='-fpic'
8176 lt_prog_compiler_static='-Bstatic'
8179 lt_prog_compiler_wl='-Wl,'
8180 # All Alpha code is PIC.
8181 lt_prog_compiler_static='-non_shared'
8183 xl* | bgxl* | bgf* | mpixl*)
8184 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8185 lt_prog_compiler_wl='-Wl,'
8186 lt_prog_compiler_pic='-qpic'
8187 lt_prog_compiler_static='-qstaticlink'
8190 case `$CC -V 2>&1 |
sed 5q
` in
8191 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8192 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8193 lt_prog_compiler_pic='-KPIC'
8194 lt_prog_compiler_static='-Bstatic'
8195 lt_prog_compiler_wl=''
8197 *Sun\ F* | *Sun*Fortran*)
8198 lt_prog_compiler_pic='-KPIC'
8199 lt_prog_compiler_static='-Bstatic'
8200 lt_prog_compiler_wl='-Qoption ld '
8204 lt_prog_compiler_pic='-KPIC'
8205 lt_prog_compiler_static='-Bstatic'
8206 lt_prog_compiler_wl='-Wl,'
8208 *Intel*\ [CF]*Compiler*)
8209 lt_prog_compiler_wl='-Wl,'
8210 lt_prog_compiler_pic='-fPIC'
8211 lt_prog_compiler_static='-static'
8214 lt_prog_compiler_wl='-Wl,'
8215 lt_prog_compiler_pic='-fpic'
8216 lt_prog_compiler_static='-Bstatic'
8224 lt_prog_compiler_pic='-KPIC'
8225 lt_prog_compiler_static='-Bstatic'
8229 # QNX uses GNU C++, but need to define -shared option too, otherwise
8231 lt_prog_compiler_pic='-fPIC -shared'
8234 osf3* | osf4* | osf5*)
8235 lt_prog_compiler_wl='-Wl,'
8236 # All OSF/1 code is PIC.
8237 lt_prog_compiler_static='-non_shared'
8241 lt_prog_compiler_static='-non_shared'
8245 lt_prog_compiler_pic='-KPIC'
8246 lt_prog_compiler_static='-Bstatic'
8247 case $cc_basename in
8248 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8249 lt_prog_compiler_wl='-Qoption ld ';;
8251 lt_prog_compiler_wl='-Wl,';;
8256 lt_prog_compiler_wl='-Qoption ld '
8257 lt_prog_compiler_pic='-PIC'
8258 lt_prog_compiler_static='-Bstatic'
8261 sysv4 | sysv4.2uw2* | sysv4.3*)
8262 lt_prog_compiler_wl='-Wl,'
8263 lt_prog_compiler_pic='-KPIC'
8264 lt_prog_compiler_static='-Bstatic'
8268 if test -d /usr/nec; then
8269 lt_prog_compiler_pic='-Kconform_pic'
8270 lt_prog_compiler_static='-Bstatic'
8274 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8275 lt_prog_compiler_wl='-Wl,'
8276 lt_prog_compiler_pic='-KPIC'
8277 lt_prog_compiler_static='-Bstatic'
8281 lt_prog_compiler_wl='-Wl,'
8282 lt_prog_compiler_can_build_shared=no
8286 lt_prog_compiler_pic='-pic'
8287 lt_prog_compiler_static='-Bstatic'
8291 lt_prog_compiler_can_build_shared=no
8297 # For platforms that do not support PIC, -DPIC is meaningless:
8299 lt_prog_compiler_pic=
8302 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8307 printf %s "checking for $compiler option to produce PIC... " >&6; }
8308 if test ${lt_cv_prog_compiler_pic+y}
8310 printf %s "(cached) " >&6
8312 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8315 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
8316 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8319 # Check to make sure the PIC flag actually works.
8321 if test -n "$lt_prog_compiler_pic"; then
8322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8323 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8324 if test ${lt_cv_prog_compiler_pic_works+y}
8326 printf %s "(cached) " >&6
8328 lt_cv_prog_compiler_pic_works=no
8329 ac_outfile=conftest.$ac_objext
8330 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8331 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8332 # Insert the option either (1) after the last *FLAGS variable, or
8333 # (2) before a word containing "conftest.", or (3) at the end.
8334 # Note that $ac_compile itself does not contain backslashes and begins
8335 # with a dollar sign (not a hyphen), so the echo should work correctly.
8336 # The option is referenced via a variable to avoid confusing sed.
8337 lt_compile=`echo "$ac_compile" |
$SED \
8338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8340 -e 's:$: $lt_compiler_flag:'`
8341 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8342 (eval "$lt_compile" 2>conftest.err)
8344 cat conftest.err >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 if (exit $ac_status) && test -s "$ac_outfile"; then
8347 # The compiler can only warn and ignore the option if not recognized
8348 # So say no if there are warnings other than the usual output.
8349 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8350 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8351 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8352 lt_cv_prog_compiler_pic_works=yes
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8359 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
8361 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8362 case $lt_prog_compiler_pic in
8364 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8367 lt_prog_compiler_pic=
8368 lt_prog_compiler_can_build_shared=no
8384 # Check to make sure the static flag actually works.
8386 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8388 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8389 if test ${lt_cv_prog_compiler_static_works+y}
8391 printf %s "(cached) " >&6
8393 lt_cv_prog_compiler_static_works=no
8394 save_LDFLAGS=$LDFLAGS
8395 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8396 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8397 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8398 # The linker can only warn and ignore the option if not recognized
8399 # So say no if there are warnings
8400 if test -s conftest.err; then
8401 # Append any errors to the config.log.
8402 cat conftest.err 1>&5
8403 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8404 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8405 if diff conftest.exp conftest.er2 >/dev/null; then
8406 lt_cv_prog_compiler_static_works=yes
8409 lt_cv_prog_compiler_static_works=yes
8413 LDFLAGS=$save_LDFLAGS
8416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8417 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
8419 if test yes = "$lt_cv_prog_compiler_static_works"; then
8422 lt_prog_compiler_static=
8431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8432 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8433 if test ${lt_cv_prog_compiler_c_o+y}
8435 printf %s "(cached) " >&6
8437 lt_cv_prog_compiler_c_o=no
8438 $RM -r conftest 2>/dev/null
8442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8444 lt_compiler_flag="-o out/conftest2.$ac_objext"
8445 # Insert the option either (1) after the last *FLAGS variable, or
8446 # (2) before a word containing "conftest.", or (3) at the end.
8447 # Note that $ac_compile itself does not contain backslashes and begins
8448 # with a dollar sign (not a hyphen), so the echo should work correctly.
8449 lt_compile=`echo "$ac_compile" |
$SED \
8450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8452 -e 's:$: $lt_compiler_flag:'`
8453 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8454 (eval "$lt_compile" 2>out/conftest.err)
8456 cat out/conftest.err >&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8460 # The compiler can only warn and ignore the option if not recognized
8461 # So say no if there are warnings
8462 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8463 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8464 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8465 lt_cv_prog_compiler_c_o=yes
8470 # SGI C++ compiler will create directory out/ii_files/ for
8471 # template instantiation
8472 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8473 $RM out/* && rmdir out
8479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8480 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
8487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8488 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8489 if test ${lt_cv_prog_compiler_c_o+y}
8491 printf %s "(cached) " >&6
8493 lt_cv_prog_compiler_c_o=no
8494 $RM -r conftest 2>/dev/null
8498 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8500 lt_compiler_flag="-o out/conftest2.$ac_objext"
8501 # Insert the option either (1) after the last *FLAGS variable, or
8502 # (2) before a word containing "conftest.", or (3) at the end.
8503 # Note that $ac_compile itself does not contain backslashes and begins
8504 # with a dollar sign (not a hyphen), so the echo should work correctly.
8505 lt_compile=`echo "$ac_compile" |
$SED \
8506 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8507 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8508 -e 's:$: $lt_compiler_flag:'`
8509 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8510 (eval "$lt_compile" 2>out/conftest.err)
8512 cat out/conftest.err >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8516 # The compiler can only warn and ignore the option if not recognized
8517 # So say no if there are warnings
8518 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8519 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8520 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8521 lt_cv_prog_compiler_c_o=yes
8526 # SGI C++ compiler will create directory out/ii_files/ for
8527 # template instantiation
8528 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8529 $RM out/* && rmdir out
8535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8536 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
8541 hard_links=nottested
8542 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8543 # do not overwrite the value of need_locks provided by the user
8544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8545 printf %s "checking if we can lock with hard links... " >&6; }
8548 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8550 ln conftest.a conftest.b 2>&5 || hard_links=no
8551 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8553 printf "%s\n" "$hard_links" >&6; }
8554 if test no = "$hard_links"; then
8555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8556 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8569 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8572 allow_undefined_flag=
8573 always_export_symbols=no
8575 archive_expsym_cmds=
8576 compiler_needs_object=no
8577 enable_shared_with_static_runtimes=no
8578 export_dynamic_flag_spec=
8579 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8580 hardcode_automatic=no
8582 hardcode_direct_absolute=no
8583 hardcode_libdir_flag_spec=
8584 hardcode_libdir_separator=
8586 hardcode_shlibpath_var=unsupported
8588 link_all_deplibs=unknown
8591 old_archive_from_new_cmds=
8592 old_archive_from_expsyms_cmds=
8593 thread_safe_flag_spec=
8594 whole_archive_flag_spec=
8595 # include_expsyms should be a list of space-separated symbols to be *always*
8596 # included in the symbol list
8598 # exclude_expsyms can be an extended regexp of symbols to exclude
8599 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8600 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8601 # as well as any symbol that contains 'd'.
8602 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8603 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8604 # platforms (ab)use it in PIC code, but their linkers get confused if
8605 # the symbol is explicitly referenced. Since portable code cannot
8606 # rely on this symbol name, it's probably fine to never include it in
8607 # preloaded symbol tables.
8608 # Exclude shared library initialization/finalization symbols.
8609 extract_expsyms_cmds=
8612 cygwin* | mingw* | pw32* | cegcc*)
8613 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8614 # When not using gcc, we currently assume that we are using
8615 # Microsoft Visual C++.
8616 if test yes != "$GCC"; then
8621 # we just hope/assume this is gcc and not c89 (= MSVC++)
8627 linux* | k*bsd*-gnu | gnu*)
8634 # On some targets, GNU ld is compatible enough with the native linker
8635 # that we're better off using the native interface for both.
8636 lt_use_gnu_ld_interface=no
8637 if test yes = "$with_gnu_ld"; then
8640 # The AIX port of GNU ld has always aspired to compatibility
8641 # with the native linker. However, as the warning in the GNU ld
8642 # block says, versions before 2.19.5* couldn't really create working
8643 # shared libraries, regardless of the interface used.
8644 case `$LD -v 2>&1` in
8645 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8646 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8647 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8649 lt_use_gnu_ld_interface=yes
8654 lt_use_gnu_ld_interface=yes
8659 if test yes = "$lt_use_gnu_ld_interface"; then
8660 # If archive_cmds runs LD, not CC, wlarc should be empty
8663 # Set some defaults for GNU ld with shared library support. These
8664 # are reset later if shared libraries are not supported. Putting them
8665 # here allows them to be overridden if necessary.
8666 runpath_var=LD_RUN_PATH
8667 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8668 export_dynamic_flag_spec='$wl--export-dynamic'
8669 # ancient GNU ld didn't support --whole-archive et. al.
8670 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8671 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8673 whole_archive_flag_spec=
8675 supports_anon_versioning=no
8676 case `$LD -v |
$SED -e 's/(^)\+)\s\+//' 2>&1` in
8677 *GNU\ gold*) supports_anon_versioning=yes ;;
8678 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8679 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8680 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8681 *\ 2.11.*) ;; # other 2.11 versions
8682 *) supports_anon_versioning=yes ;;
8685 # See if GNU ld supports shared libraries.
8688 # On AIX/PPC, the GNU linker is very broken
8689 if test ia64 != "$host_cpu"; then
8693 *** Warning: the GNU linker, at least up to release 2.19, is reported
8694 *** to be unable to reliably create shared libraries on AIX.
8695 *** Therefore, libtool is disabling shared libraries support. If you
8696 *** really care for shared libraries, you may want to install binutils
8697 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8698 *** You will then need to restart the configuration process.
8707 # see comment about AmigaOS4 .so support
8708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8709 archive_expsym_cmds=''
8712 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)'
8713 hardcode_libdir_flag_spec='-L$libdir'
8714 hardcode_minus_L=yes
8720 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8721 allow_undefined_flag=unsupported
8722 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8723 # support --undefined. This deserves some investigation. FIXME
8724 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8730 cygwin* | mingw* | pw32* | cegcc*)
8731 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8732 # as there is no search path for DLLs.
8733 hardcode_libdir_flag_spec='-L$libdir'
8734 export_dynamic_flag_spec='$wl--export-all-symbols'
8735 allow_undefined_flag=unsupported
8736 always_export_symbols=no
8737 enable_shared_with_static_runtimes=yes
8738 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'
8739 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8741 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8742 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8743 # If the export-symbols file already is a .def file, use it as
8744 # is; otherwise, prepend EXPORTS...
8745 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s
/^
[ ]*//'\'' -e '\''/^\
(;.
*\
)*$
/d
'\'' -e '\''s
/^\
(EXPORTS\|LIBRARY\
)\
([ ].
*\
)*$
/DEF
/p
'\'' -e q
$export_symbols`" ; then
8746 cp $export_symbols $output_objdir/$soname.def;
8748 echo EXPORTS > $output_objdir/$soname.def;
8749 cat $export_symbols >> $output_objdir/$soname.def;
8751 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8759 link_all_deplibs=yes
8763 hardcode_libdir_flag_spec='-L$libdir'
8764 hardcode_minus_L=yes
8765 allow_undefined_flag=unsupported
8767 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8768 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8769 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8770 $ECHO EXPORTS >> $output_objdir/$libname.def~
8771 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8772 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8773 emximp -o $lib $output_objdir/$libname.def'
8774 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8775 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8776 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8777 $ECHO EXPORTS >> $output_objdir/$libname.def~
8779 if test EXPORTS = "`$SED 1q
$export_symbols`"; then
8780 prefix_cmds="$prefix_cmds -e 1d";
8782 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8783 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8784 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8785 emximp -o $lib $output_objdir/$libname.def'
8786 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8787 enable_shared_with_static_runtimes=yes
8792 hardcode_shlibpath_var=no
8793 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8794 export_dynamic_flag_spec='$wl-E'
8795 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8796 # Instead, shared libraries are loaded at an image base (0x10000000 by
8797 # default) and relocated if they conflict, which is a slow very memory
8798 # consuming and fragmenting process. To avoid this, we pick a random,
8799 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8800 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8801 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \
* 262144 + 1342177280` -o $lib'
8802 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'
8805 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8807 if test linux-dietlibc = "$host_os"; then
8808 case $cc_basename in
8809 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8812 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8813 && test no = "$tmp_diet"
8815 tmp_addflag=' $pic_flag'
8816 tmp_sharedflag='-shared'
8817 case $cc_basename,$host_cpu in
8818 pgcc*) # Portland Group C compiler
8819 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'
8820 tmp_addflag=' $pic_flag'
8822 pgf77* | pgf90* | pgf95* | pgfortran*)
8823 # Portland Group f77 and f90 compilers
8824 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'
8825 tmp_addflag=' $pic_flag -Mnomain' ;;
8826 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8827 tmp_addflag=' -i_dynamic' ;;
8828 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8829 tmp_addflag=' -i_dynamic -nofor_main' ;;
8830 ifc* | ifort*) # Intel Fortran compiler
8831 tmp_addflag=' -nofor_main' ;;
8832 lf95*) # Lahey Fortran 8.1
8833 whole_archive_flag_spec=
8834 tmp_sharedflag='--shared' ;;
8835 nagfor*) # NAGFOR 5.3
8836 tmp_sharedflag='-Wl,-shared' ;;
8837 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8838 tmp_sharedflag='-qmkshrobj'
8840 nvcc*) # Cuda Compiler Driver 2.2
8841 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'
8842 compiler_needs_object=yes
8845 case `$CC -V 2>&1 |
sed 5q
` in
8846 *Sun\ C*) # Sun C 5.9
8847 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'
8848 compiler_needs_object=yes
8849 tmp_sharedflag='-G' ;;
8850 *Sun\ F*) # Sun Fortran 8.3
8851 tmp_sharedflag='-G' ;;
8853 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8855 if test yes = "$supports_anon_versioning"; then
8856 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8857 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8858 echo "local: *; };" >> $output_objdir/$libname.ver~
8859 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8862 case $cc_basename in
8864 export_dynamic_flag_spec='-rdynamic'
8866 xlf* | bgf* | bgxlf* | mpixlf*)
8867 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8868 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8869 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8870 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8871 if test yes = "$supports_anon_versioning"; then
8872 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8873 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8874 echo "local: *; };" >> $output_objdir/$libname.ver~
8875 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8884 netbsd* | netbsdelf*-gnu)
8885 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8886 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8889 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8890 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8895 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8899 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8900 *** create shared libraries on Solaris systems. Therefore, libtool
8901 *** is disabling shared libraries support. We urge you to upgrade GNU
8902 *** binutils to release 2.9.1 or newer. Another option is to modify
8903 *** your PATH or compiler configuration so that the native linker is
8904 *** used, and then restart.
8907 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8908 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8909 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8915 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8916 case `$LD -v 2>&1` in
8917 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8921 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8922 *** reliably create shared libraries on SCO systems. Therefore, libtool
8923 *** is disabling shared libraries support. We urge you to upgrade GNU
8924 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8925 *** your PATH or compiler configuration so that the native linker is
8926 *** used, and then restart.
8931 # For security reasons, it is highly recommended that you always
8932 # use absolute paths for naming shared libraries, and exclude the
8933 # DT_RUNPATH tag from executables and libraries. But doing so
8934 # requires that you compile everything twice, which is a pain.
8935 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8936 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8937 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8938 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8947 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8950 hardcode_shlibpath_var=no
8954 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8955 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8956 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8963 if test no = "$ld_shlibs"; then
8965 hardcode_libdir_flag_spec=
8966 export_dynamic_flag_spec=
8967 whole_archive_flag_spec=
8970 # PORTME fill in a description of your system's linker (not GNU ld)
8973 allow_undefined_flag=unsupported
8974 always_export_symbols=yes
8975 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'
8976 # Note: this linker hardcodes the directories in LIBPATH if there
8977 # are no directories specified by -L.
8978 hardcode_minus_L=yes
8979 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8980 # Neither direct hardcoding nor static linking is supported with a
8982 hardcode_direct=unsupported
8987 if test ia64 = "$host_cpu"; then
8988 # On IA64, the linker does run time linking by default, so we don't
8989 # have to do anything special.
8990 aix_use_runtimelinking=no
8991 exp_sym_flag='-Bexport'
8994 # If we're using GNU nm, then we don't want the "-C" option.
8995 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
8996 # Without the "-l" option, or with the "-B" option, AIX nm treats
8997 # weak defined symbols like other global defined symbols, whereas
8998 # GNU nm marks them as "W".
8999 # While the 'weak' keyword is ignored in the Export File, we need
9000 # it in the Import File for the 'aix-soname' feature, so we have
9001 # to replace the "-B" option with "-P" for AIX nm.
9002 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9003 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'
9005 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'
9007 aix_use_runtimelinking=no
9009 # Test if we are trying to use run time linking or normal
9010 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9011 # have runtime linking enabled, and use it for executables.
9012 # For shared libraries, we enable/disable runtime linking
9013 # depending on the kind of the shared library created -
9014 # when "with_aix_soname,aix_use_runtimelinking" is:
9015 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9016 # "aix,yes" lib.so shared, rtl:yes, for executables
9017 # lib.a static archive
9018 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9019 # lib.a(lib.so.V) shared, rtl:no, for executables
9020 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9021 # lib.a(lib.so.V) shared, rtl:no
9022 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9023 # lib.a static archive
9024 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9025 for ld_flag in $LDFLAGS; do
9026 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9027 aix_use_runtimelinking=yes
9031 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9032 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9033 # so we don't have lib.a shared libs to link our executables.
9034 # We have to force runtime linking in this case.
9035 aix_use_runtimelinking=yes
9036 LDFLAGS="$LDFLAGS -Wl,-brtl"
9041 exp_sym_flag='-bexport'
9042 no_entry_flag='-bnoentry'
9045 # When large executables or shared objects are built, AIX ld can
9046 # have problems creating the table of contents. If linking a library
9047 # or program results in "error TOC overflow" add -mminimal-toc to
9048 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9049 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9053 hardcode_direct_absolute=yes
9054 hardcode_libdir_separator=':'
9055 link_all_deplibs=yes
9056 file_list_spec='$wl-f,'
9057 case $with_aix_soname,$aix_use_runtimelinking in
9058 aix,*) ;; # traditional, no import file
9059 svr4,* | *,yes) # use import file
9060 # The Import File defines what to hardcode.
9062 hardcode_direct_absolute=no
9066 if test yes = "$GCC"; then
9067 case $host_os in aix4.[012]|aix4.[012].*)
9068 # We only want to do this on AIX 4.2 and lower, the check
9069 # below for broken collect2 doesn't work under 4.3+
9070 collect2name=`$CC -print-prog-name=collect2
`
9071 if test -f "$collect2name" &&
9072 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9074 # We have reworked collect2
9077 # We have old collect2
9078 hardcode_direct=unsupported
9079 # It fails to find uninstalled libraries when the uninstalled
9080 # path is not listed in the libpath. Setting hardcode_minus_L
9081 # to unsupported forces relinking
9082 hardcode_minus_L=yes
9083 hardcode_libdir_flag_spec='-L$libdir'
9084 hardcode_libdir_separator=
9088 shared_flag='-shared'
9089 if test yes = "$aix_use_runtimelinking"; then
9090 shared_flag="$shared_flag "'$wl-G'
9092 # Need to ensure runtime linking is disabled for the traditional
9093 # shared library, or the linker may eventually find shared libraries
9094 # /with/ Import File - we do not want to mix them.
9095 shared_flag_aix='-shared'
9096 shared_flag_svr4='-shared $wl-G'
9099 if test ia64 = "$host_cpu"; then
9100 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9101 # chokes on -Wl,-G. The following line is correct:
9104 if test yes = "$aix_use_runtimelinking"; then
9107 shared_flag='$wl-bM:SRE'
9109 shared_flag_aix='$wl-bM:SRE'
9110 shared_flag_svr4='$wl-G'
9114 export_dynamic_flag_spec='$wl-bexpall'
9115 # It seems that -bexpall does not export symbols beginning with
9116 # underscore (_), so it is better to generate a list of symbols to export.
9117 always_export_symbols=yes
9118 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9119 # Warning - without using the other runtime loading flags (-brtl),
9120 # -berok will link without error, but may produce a broken library.
9121 allow_undefined_flag='-berok'
9122 # Determine the default libpath from the value encoded in an
9124 if test set = "${lt_cv_aix_libpath+set}"; then
9125 aix_libpath=$lt_cv_aix_libpath
9127 if test ${lt_cv_aix_libpath_+y}
9129 printf %s "(cached) " >&6
9131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9132 /* end confdefs.h. */
9142 if ac_fn_c_try_link "$LINENO"
9145 lt_aix_libpath_sed='
9146 /Import File Strings/,/^$/ {
9148 s/^0 *\([^ ]*\) *$/\1/
9152 lt_cv_aix_libpath_=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
9153 # Check for a 64-bit object if we didn't find anything.
9154 if test -z "$lt_cv_aix_libpath_"; then
9155 lt_cv_aix_libpath_=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
9158 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9159 conftest$ac_exeext conftest.$ac_ext
9160 if test -z "$lt_cv_aix_libpath_"; then
9161 lt_cv_aix_libpath_=/usr/lib:/lib
9166 aix_libpath=$lt_cv_aix_libpath_
9169 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9170 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
9172 if test ia64 = "$host_cpu"; then
9173 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9174 allow_undefined_flag="-z nodefs"
9175 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"
9177 # Determine the default libpath from the value encoded in an
9179 if test set = "${lt_cv_aix_libpath+set}"; then
9180 aix_libpath=$lt_cv_aix_libpath
9182 if test ${lt_cv_aix_libpath_+y}
9184 printf %s "(cached) " >&6
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9197 if ac_fn_c_try_link "$LINENO"
9200 lt_aix_libpath_sed='
9201 /Import File Strings/,/^$/ {
9203 s/^0 *\([^ ]*\) *$/\1/
9207 lt_cv_aix_libpath_=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
9208 # Check for a 64-bit object if we didn't find anything.
9209 if test -z "$lt_cv_aix_libpath_"; then
9210 lt_cv_aix_libpath_=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
9213 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9214 conftest$ac_exeext conftest.$ac_ext
9215 if test -z "$lt_cv_aix_libpath_"; then
9216 lt_cv_aix_libpath_=/usr/lib:/lib
9221 aix_libpath=$lt_cv_aix_libpath_
9224 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9225 # Warning - without using the other run time loading flags,
9226 # -berok will link without error, but may produce a broken library.
9227 no_undefined_flag=' $wl-bernotok'
9228 allow_undefined_flag=' $wl-berok'
9229 if test yes = "$with_gnu_ld"; then
9230 # We only use this code for GNU lds that support --whole-archive.
9231 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9233 # Exported symbols can be pulled into shared objects from archives
9234 whole_archive_flag_spec='$convenience'
9236 archive_cmds_need_lc=yes
9237 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9238 # -brtl affects multiple linker settings, -berok does not and is overridden later
9239 compiler_flags_filtered='`func_echo_all
"$compiler_flags " |
$SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9240 if test svr4 != "$with_aix_soname"; then
9241 # This is similar to how AIX traditionally builds its shared libraries.
9242 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'
9244 if test aix != "$with_aix_soname"; then
9245 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'
9247 # used by -dlpreopen to get the symbols
9248 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9250 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9258 # see comment about AmigaOS4 .so support
9259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9260 archive_expsym_cmds=''
9263 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)'
9264 hardcode_libdir_flag_spec='-L$libdir'
9265 hardcode_minus_L=yes
9271 export_dynamic_flag_spec=-rdynamic
9274 cygwin* | mingw* | pw32* | cegcc*)
9275 # When not using gcc, we currently assume that we are using
9276 # Microsoft Visual C++.
9277 # hardcode_libdir_flag_spec is actually meaningless, as there is
9278 # no search path for DLLs.
9279 case $cc_basename in
9282 hardcode_libdir_flag_spec=' '
9283 allow_undefined_flag=unsupported
9284 always_export_symbols=yes
9286 # Tell ltmain to make .lib files, not .a files.
9288 # Tell ltmain to make .dll files, not .so files.
9290 # FIXME: Setting linknames here is a bad hack.
9291 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9292 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s
/^
[ ]*//'\'' -e '\''/^\
(;.
*\
)*$
/d
'\'' -e '\''s
/^\
(EXPORTS\|LIBRARY\
)\
([ ].
*\
)*$
/DEF
/p
'\'' -e q
$export_symbols`" ; then
9293 cp "$export_symbols" "$output_objdir/$soname.def";
9294 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9296 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9298 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9300 # The linker will not automatically build a static lib if we build a DLL.
9301 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9302 enable_shared_with_static_runtimes=yes
9303 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9304 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9306 old_postinstall_cmds='chmod 644 $oldlib'
9307 postlink_cmds='lt_outputfile="@OUTPUT@"~
9308 lt_tool_outputfile="@TOOL_OUTPUT@"~
9309 case $lt_outputfile in
9312 lt_outputfile=$lt_outputfile.exe
9313 lt_tool_outputfile=$lt_tool_outputfile.exe
9316 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9317 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9318 $RM "$lt_outputfile.manifest";
9322 # Assume MSVC wrapper
9323 hardcode_libdir_flag_spec=' '
9324 allow_undefined_flag=unsupported
9325 # Tell ltmain to make .lib files, not .a files.
9327 # Tell ltmain to make .dll files, not .so files.
9329 # FIXME: Setting linknames here is a bad hack.
9330 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all
"$deplibs" |
$SED '\''s
/ -lc$
//'\''` -link -dll~linknames='
9331 # The linker will automatically build a .lib file if we build a DLL.
9332 old_archive_from_new_cmds='true'
9333 # FIXME: Should let the user specify the lib program.
9334 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9335 enable_shared_with_static_runtimes=yes
9340 darwin* | rhapsody*)
9343 archive_cmds_need_lc=no
9345 hardcode_automatic=yes
9346 hardcode_shlibpath_var=unsupported
9347 if test yes = "$lt_cv_ld_force_load"; then
9348 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\"`'
9351 whole_archive_flag_spec=''
9353 link_all_deplibs=yes
9354 allow_undefined_flag=$_lt_dar_allow_undefined
9355 case $cc_basename in
9356 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9357 *) _lt_dar_can_shared=$GCC ;;
9359 if test yes = "$_lt_dar_can_shared"; then
9360 output_verbose_link_cmd=func_echo_all
9361 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9362 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9363 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"
9364 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"
9373 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9374 hardcode_libdir_flag_spec='-L$libdir'
9375 hardcode_shlibpath_var=no
9378 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9379 # support. Future versions do this automatically, but an explicit c++rt0.o
9380 # does not break anything, and helps significantly (at the cost of a little
9383 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9384 hardcode_libdir_flag_spec='-R$libdir'
9386 hardcode_shlibpath_var=no
9389 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9391 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9393 hardcode_minus_L=yes
9394 hardcode_shlibpath_var=no
9397 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9398 freebsd* | dragonfly*)
9399 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9400 hardcode_libdir_flag_spec='-R$libdir'
9402 hardcode_shlibpath_var=no
9406 if test yes = "$GCC"; then
9407 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'
9409 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'
9411 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9412 hardcode_libdir_separator=:
9415 # hardcode_minus_L: Not really in the search PATH,
9416 # but as the default location of the library.
9417 hardcode_minus_L=yes
9418 export_dynamic_flag_spec='$wl-E'
9422 if test yes,no = "$GCC,$with_gnu_ld"; then
9423 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9425 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9427 if test no = "$with_gnu_ld"; then
9428 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9429 hardcode_libdir_separator=:
9431 hardcode_direct_absolute=yes
9432 export_dynamic_flag_spec='$wl-E'
9433 # hardcode_minus_L: Not really in the search PATH,
9434 # but as the default location of the library.
9435 hardcode_minus_L=yes
9440 if test yes,no = "$GCC,$with_gnu_ld"; then
9443 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9446 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9449 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9455 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9458 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9462 # Older versions of the 11.00 compiler do not understand -b yet
9463 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9465 printf %s "checking if $CC understands -b... " >&6; }
9466 if test ${lt_cv_prog_compiler__b+y}
9468 printf %s "(cached) " >&6
9470 lt_cv_prog_compiler__b=no
9471 save_LDFLAGS=$LDFLAGS
9472 LDFLAGS="$LDFLAGS -b"
9473 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9474 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9475 # The linker can only warn and ignore the option if not recognized
9476 # So say no if there are warnings
9477 if test -s conftest.err; then
9478 # Append any errors to the config.log.
9479 cat conftest.err 1>&5
9480 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9481 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9482 if diff conftest.exp conftest.er2 >/dev/null; then
9483 lt_cv_prog_compiler__b=yes
9486 lt_cv_prog_compiler__b=yes
9490 LDFLAGS=$save_LDFLAGS
9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9494 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
9496 if test yes = "$lt_cv_prog_compiler__b"; then
9497 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9499 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9505 if test no = "$with_gnu_ld"; then
9506 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9507 hardcode_libdir_separator=:
9512 hardcode_shlibpath_var=no
9516 hardcode_direct_absolute=yes
9517 export_dynamic_flag_spec='$wl-E'
9519 # hardcode_minus_L: Not really in the search PATH,
9520 # but as the default location of the library.
9521 hardcode_minus_L=yes
9527 irix5* | irix6* | nonstopux*)
9528 if test yes = "$GCC"; then
9529 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'
9530 # Try to use the -exported_symbol ld option, if it does not
9531 # work, assume that -exports_file does not work either and
9532 # implicitly export all symbols.
9533 # This should be the same for all languages, so no per-tag cache variable.
9534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9535 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9536 if test ${lt_cv_irix_exported_symbol+y}
9538 printf %s "(cached) " >&6
9540 save_LDFLAGS=$LDFLAGS
9541 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9543 /* end confdefs.h. */
9544 int foo (void) { return 0; }
9546 if ac_fn_c_try_link "$LINENO"
9548 lt_cv_irix_exported_symbol=yes
9550 lt_cv_irix_exported_symbol=no
9552 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9553 conftest$ac_exeext conftest.$ac_ext
9554 LDFLAGS=$save_LDFLAGS
9556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9557 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
9558 if test yes = "$lt_cv_irix_exported_symbol"; then
9559 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'
9563 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'
9564 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'
9566 archive_cmds_need_lc='no'
9567 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9568 hardcode_libdir_separator=:
9570 link_all_deplibs=yes
9574 case $cc_basename in
9576 # Fabrice Bellard et al's Tiny C Compiler
9578 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9583 netbsd* | netbsdelf*-gnu)
9584 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9585 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9587 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9589 hardcode_libdir_flag_spec='-R$libdir'
9591 hardcode_shlibpath_var=no
9595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9597 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9598 hardcode_libdir_separator=:
9599 hardcode_shlibpath_var=no
9606 if test -f /usr/libexec/ld.so; then
9608 hardcode_shlibpath_var=no
9609 hardcode_direct_absolute=yes
9610 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`"; then
9611 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9612 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9613 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9614 export_dynamic_flag_spec='$wl-E'
9616 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9617 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9625 hardcode_libdir_flag_spec='-L$libdir'
9626 hardcode_minus_L=yes
9627 allow_undefined_flag=unsupported
9629 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9630 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9631 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9632 $ECHO EXPORTS >> $output_objdir/$libname.def~
9633 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9634 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9635 emximp -o $lib $output_objdir/$libname.def'
9636 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9637 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9638 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9639 $ECHO EXPORTS >> $output_objdir/$libname.def~
9641 if test EXPORTS = "`$SED 1q
$export_symbols`"; then
9642 prefix_cmds="$prefix_cmds -e 1d";
9644 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9645 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9646 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9647 emximp -o $lib $output_objdir/$libname.def'
9648 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9649 enable_shared_with_static_runtimes=yes
9653 if test yes = "$GCC"; then
9654 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9655 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'
9657 allow_undefined_flag=' -expect_unresolved \*'
9658 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'
9660 archive_cmds_need_lc='no'
9661 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9662 hardcode_libdir_separator=:
9665 osf4* | osf5*) # as osf3* with the addition of -msym flag
9666 if test yes = "$GCC"; then
9667 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9668 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'
9669 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9671 allow_undefined_flag=' -expect_unresolved \*'
9672 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'
9673 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~
9674 $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'
9676 # Both c and cxx compiler support -rpath directly
9677 hardcode_libdir_flag_spec='-rpath $libdir'
9679 archive_cmds_need_lc='no'
9680 hardcode_libdir_separator=:
9684 no_undefined_flag=' -z defs'
9685 if test yes = "$GCC"; then
9687 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9688 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9689 $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'
9691 case `$CC -V 2>&1` in
9694 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9695 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9696 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9700 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9701 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9702 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9706 hardcode_libdir_flag_spec='-R$libdir'
9707 hardcode_shlibpath_var=no
9709 solaris2.[0-5] | solaris2.[0-5].*) ;;
9711 # The compiler driver will combine and reorder linker options,
9712 # but understands '-z linker_flag'. GCC discards it without '$wl',
9713 # but is careful enough not to reorder.
9714 # Supported since Solaris 2.6 (maybe 2.5.1?)
9715 if test yes = "$GCC"; then
9716 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9718 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9722 link_all_deplibs=yes
9726 if test sequent = "$host_vendor"; then
9727 # Use $CC to link under sequent, because it throws in some extra .o
9728 # files that make .init and .fini sections work.
9729 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9731 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9733 hardcode_libdir_flag_spec='-L$libdir'
9735 hardcode_minus_L=yes
9736 hardcode_shlibpath_var=no
9740 case $host_vendor in
9742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9743 hardcode_direct=yes # is this really true???
9746 ## LD is ld it makes a PLAMLIB
9747 ## CC just makes a GrossModule.
9748 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9749 reload_cmds='$CC -r -o $output$reload_objs'
9753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9754 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9757 runpath_var='LD_RUN_PATH'
9758 hardcode_shlibpath_var=no
9762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9763 hardcode_shlibpath_var=no
9764 export_dynamic_flag_spec='-Bexport'
9768 if test -d /usr/nec; then
9769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9770 hardcode_shlibpath_var=no
9771 runpath_var=LD_RUN_PATH
9772 hardcode_runpath_var=yes
9777 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9778 no_undefined_flag='$wl-z,text'
9779 archive_cmds_need_lc=no
9780 hardcode_shlibpath_var=no
9781 runpath_var='LD_RUN_PATH'
9783 if test yes = "$GCC"; then
9784 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9785 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9787 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9788 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9792 sysv5* | sco3.2v5* | sco5v6*)
9793 # Note: We CANNOT use -z defs as we might desire, because we do not
9794 # link with -lc, and that would cause any symbols used from libc to
9795 # always be unresolved, which means just about no library would
9796 # ever link correctly. If we're not using GNU ld we use -z text
9797 # though, which does catch some bad symbols but isn't as heavy-handed
9799 no_undefined_flag='$wl-z,text'
9800 allow_undefined_flag='$wl-z,nodefs'
9801 archive_cmds_need_lc=no
9802 hardcode_shlibpath_var=no
9803 hardcode_libdir_flag_spec='$wl-R,$libdir'
9804 hardcode_libdir_separator=':'
9805 link_all_deplibs=yes
9806 export_dynamic_flag_spec='$wl-Bexport'
9807 runpath_var='LD_RUN_PATH'
9809 if test yes = "$GCC"; then
9810 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9811 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9813 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9814 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9819 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9820 hardcode_libdir_flag_spec='-L$libdir'
9821 hardcode_shlibpath_var=no
9829 if test sni = "$host_vendor"; then
9831 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9832 export_dynamic_flag_spec='$wl-Blargedynsym'
9838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9839 printf "%s\n" "$ld_shlibs" >&6; }
9840 test no = "$ld_shlibs" && can_build_shared=no
9842 with_gnu_ld=$with_gnu_ld
9859 # Do we need to explicitly link libc?
9861 case "x$archive_cmds_need_lc" in
9863 # Assume -lc should be added
9864 archive_cmds_need_lc=yes
9866 if test yes,yes = "$GCC,$enable_shared"; then
9867 case $archive_cmds in
9869 # FIXME: we may have to deal with multi-command sequences.
9872 # Test whether the compiler implicitly links with -lc since on some
9873 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9874 # to ld, don't add -lc before -lgcc.
9875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9876 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
9877 if test ${lt_cv_archive_cmds_need_lc+y}
9879 printf %s "(cached) " >&6
9882 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9885 (eval $ac_compile) 2>&5
9887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9888 test $ac_status = 0; } 2>conftest.err; then
9891 libobjs=conftest.$ac_objext
9893 wl=$lt_prog_compiler_wl
9894 pic_flag=$lt_prog_compiler_pic
9900 lt_save_allow_undefined_flag=$allow_undefined_flag
9901 allow_undefined_flag=
9902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9903 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9906 test $ac_status = 0; }
9908 lt_cv_archive_cmds_need_lc=no
9910 lt_cv_archive_cmds_need_lc=yes
9912 allow_undefined_flag=$lt_save_allow_undefined_flag
9914 cat conftest.err 1>&5
9919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9920 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
9921 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10080 printf %s "checking dynamic linker characteristics... " >&6; }
10082 if test yes = "$GCC"; then
10084 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10085 *) lt_awk_arg='/^libraries:/' ;;
10088 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10089 *) lt_sed_strip_eq='s|=/|/|g' ;;
10091 lt_search_path_spec=`$CC -print-search-dirs |
awk $lt_awk_arg |
$SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10092 case $lt_search_path_spec in
10094 # if the path contains ";" then we assume it to be the separator
10095 # otherwise default to the standard path separator (i.e. ":") - it is
10096 # assumed that no part of a normal pathname contains ";" but that should
10097 # okay in the real world where ";" in dirpaths is itself problematic.
10098 lt_search_path_spec=`$ECHO "$lt_search_path_spec" |
$SED 's/;/ /g'`
10101 lt_search_path_spec=`$ECHO "$lt_search_path_spec" |
$SED "s/$PATH_SEPARATOR/ /g"`
10104 # Ok, now we have the path, separated by spaces, we can step through it
10105 # and add multilib dir if necessary...
10106 lt_tmp_lt_search_path_spec=
10107 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev
/null
`
10108 # ...but if some path component already ends with the multilib dir we assume
10109 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10110 case "$lt_multi_os_dir; $lt_search_path_spec " in
10111 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10115 for lt_sys_path in $lt_search_path_spec; do
10116 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10117 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10118 elif test -n "$lt_multi_os_dir"; then
10119 test -d "$lt_sys_path" && \
10120 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10123 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" |
awk '
10124 BEGIN {RS = " "; FS = "/|\n";} {
10127 for (lt_i = NF; lt_i > 0; lt_i--) {
10128 if ($lt_i != "" && $lt_i != ".") {
10129 if ($lt_i == "..") {
10132 if (lt_count == 0) {
10133 lt_foo = "/" $lt_i lt_foo;
10140 if (lt_foo != "") { lt_freq[lt_foo]++; }
10141 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10143 # AWK program above erroneously prepends '/' to C:/dos/paths
10146 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10147 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10149 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" |
$lt_NL2SP`
10151 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10153 library_names_spec=
10154 libname_spec='lib$name'
10158 postuninstall_cmds=
10162 shlibpath_overrides_runpath=unknown
10164 dynamic_linker="$host_os ld.so"
10165 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10166 need_lib_prefix=unknown
10167 hardcode_into_libs=no
10169 # when you set need_version to no, make sure it does not cause -set_version
10170 # flags to be left without arguments
10171 need_version=unknown
10177 version_type=linux # correct to gnu/linux during the next big refactor
10178 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10179 shlibpath_var=LIBPATH
10181 # AIX 3 has no versioning support, so we append a major version to the name.
10182 soname_spec='$libname$release$shared_ext$major'
10186 version_type=linux # correct to gnu/linux during the next big refactor
10189 hardcode_into_libs=yes
10190 if test ia64 = "$host_cpu"; then
10191 # AIX 5 supports IA64
10192 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10193 shlibpath_var=LD_LIBRARY_PATH
10195 # With GCC up to 2.95.x, collect2 would create an import file
10196 # for dependence libraries. The import file would start with
10197 # the line '#! .'. This would cause the generated library to
10198 # depend on '.', always an invalid library. This was fixed in
10199 # development snapshots of GCC prior to 3.0.
10201 aix4 | aix4.[01] | aix4.[01].*)
10202 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10204 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10207 can_build_shared=no
10211 # Using Import Files as archive members, it is possible to support
10212 # filename-based versioning of shared library archives on AIX. While
10213 # this would work for both with and without runtime linking, it will
10214 # prevent static linking of such archives. So we do filename-based
10215 # shared library versioning with .so extension only, which is used
10216 # when both runtime linking and shared linking is enabled.
10217 # Unfortunately, runtime linking may impact performance, so we do
10218 # not want this to be the default eventually. Also, we use the
10219 # versioned .so libs for executables only if there is the -brtl
10220 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10221 # To allow for filename-based versioning support, we need to create
10222 # libNAME.so.V as an archive file, containing:
10223 # *) an Import File, referring to the versioned filename of the
10224 # archive as well as the shared archive member, telling the
10225 # bitwidth (32 or 64) of that shared object, and providing the
10226 # list of exported symbols of that shared object, eventually
10227 # decorated with the 'weak' keyword
10228 # *) the shared object with the F_LOADONLY flag set, to really avoid
10229 # it being seen by the linker.
10230 # At run time we better use the real file rather than another symlink,
10231 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10233 case $with_aix_soname,$aix_use_runtimelinking in
10234 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10235 # soname into executable. Probably we can add versioning support to
10236 # collect2, so additional links can be useful in future.
10237 aix,yes) # traditional libtool
10238 dynamic_linker='AIX unversionable lib.so'
10239 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10240 # instead of lib<name>.a to let people know that these are not
10241 # typical AIX shared libraries.
10242 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10244 aix,no) # traditional AIX only
10245 dynamic_linker='AIX lib.a(lib.so.V)'
10246 # We preserve .a as extension for shared libraries through AIX4.2
10247 # and later when we are not doing run time linking.
10248 library_names_spec='$libname$release.a $libname.a'
10249 soname_spec='$libname$release$shared_ext$major'
10251 svr4,*) # full svr4 only
10252 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10253 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10254 # We do not specify a path in Import Files, so LIBPATH fires.
10255 shlibpath_overrides_runpath=yes
10257 *,yes) # both, prefer svr4
10258 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10259 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10260 # unpreferred sharedlib libNAME.a needs extra handling
10261 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"'
10262 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"'
10263 # We do not specify a path in Import Files, so LIBPATH fires.
10264 shlibpath_overrides_runpath=yes
10266 *,no) # both, prefer aix
10267 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10268 library_names_spec='$libname$release.a $libname.a'
10269 soname_spec='$libname$release$shared_ext$major'
10270 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10271 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)'
10272 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"'
10275 shlibpath_var=LIBPATH
10282 # Since July 2007 AmigaOS4 officially supports .so libraries.
10283 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10284 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10287 library_names_spec='$libname.ixlibrary $libname.a'
10288 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10289 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'
10295 library_names_spec='$libname$shared_ext'
10296 dynamic_linker="$host_os ld.so"
10297 shlibpath_var=LIBRARY_PATH
10301 version_type=linux # correct to gnu/linux during the next big refactor
10303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10304 soname_spec='$libname$release$shared_ext$major'
10305 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10306 shlibpath_var=LD_LIBRARY_PATH
10307 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10308 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10309 # the default ld.so.conf also contains /usr/contrib/lib and
10310 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10311 # libtool to hard-code these into programs
10314 cygwin* | mingw* | pw32* | cegcc*)
10315 version_type=windows
10320 case $GCC,$cc_basename in
10323 library_names_spec='$libname.dll.a'
10324 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10325 postinstall_cmds='base_file=`basename \
$file`~
10326 dlpath=`$SHELL 2>&1 -c '\''.
$dir/'\''\
$base_file'\''i
; echo \
$dlname'\''`~
10327 dldir=$destdir/`dirname \
$dlpath`~
10328 test -d \$dldir || mkdir -p \$dldir~
10329 $install_prog $dir/$dlname \$dldir/$dlname~
10330 chmod a+x \$dldir/$dlname~
10331 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10332 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10334 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''.
$file; echo \
$dlname'\''`~
10335 dlpath=$dir/\$dldll~
10337 shlibpath_overrides_runpath=yes
10341 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10342 soname_spec='`echo $libname |
sed -e 's/^lib/cyg/'``echo $release |
$SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10344 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10347 # MinGW DLLs use traditional 'lib' prefix
10348 soname_spec='$libname`echo $release |
$SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10351 # pw32 DLLs use 'pw' prefix rather than 'lib'
10352 library_names_spec='`echo $libname |
sed -e 's/^lib/pw/'``echo $release |
$SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10355 dynamic_linker='Win32 ld.exe'
10360 libname_spec='$name'
10361 soname_spec='$libname`echo $release |
$SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10362 library_names_spec='$libname.dll.lib'
10366 sys_lib_search_path_spec=
10369 for lt_path in $LIB
10372 # Let DOS variable expansion print the short 8.3 style file name.
10373 lt_path=`cd "$lt_path" 2>/dev
/null
&& cmd
//C
"for %i in (".
") do @echo %~si"`
10374 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10377 # Convert to MSYS style.
10378 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" |
sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10381 # Convert to unix form, then to dos form, then back to unix form
10382 # but this time dos style (no spaces!) so that the unix form looks
10383 # like /cygdrive/c/PROGRA~1:/cygdr...
10384 sys_lib_search_path_spec=`cygpath
--path --unix "$LIB"`
10385 sys_lib_search_path_spec=`cygpath
--path --dos "$sys_lib_search_path_spec" 2>/dev
/null
`
10386 sys_lib_search_path_spec=`cygpath
--path --unix "$sys_lib_search_path_spec" |
$SED -e "s/$PATH_SEPARATOR/ /g"`
10389 sys_lib_search_path_spec=$LIB
10390 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10391 # It is most probably a Windows format PATH.
10392 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" |
$SED -e 's/;/ /g'`
10394 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" |
$SED -e "s/$PATH_SEPARATOR/ /g"`
10396 # FIXME: find the short name or the path components, as spaces are
10397 # common. (e.g. "Program Files" -> "PROGRA~1")
10401 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10402 postinstall_cmds='base_file=`basename \
$file`~
10403 dlpath=`$SHELL 2>&1 -c '\''.
$dir/'\''\
$base_file'\''i
; echo \
$dlname'\''`~
10404 dldir=$destdir/`dirname \
$dlpath`~
10405 test -d \$dldir || mkdir -p \$dldir~
10406 $install_prog $dir/$dlname \$dldir/$dlname'
10407 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''.
$file; echo \
$dlname'\''`~
10408 dlpath=$dir/\$dldll~
10410 shlibpath_overrides_runpath=yes
10411 dynamic_linker='Win32 link.exe'
10415 # Assume MSVC wrapper
10416 library_names_spec='$libname`echo $release |
$SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10417 dynamic_linker='Win32 ld.exe'
10420 # FIXME: first we should search . and the directory the executable is in
10424 darwin* | rhapsody*)
10425 dynamic_linker="$host_os dyld"
10426 version_type=darwin
10429 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10430 soname_spec='$libname$release$major$shared_ext'
10431 shlibpath_overrides_runpath=yes
10432 shlibpath_var=DYLD_LIBRARY_PATH
10433 shrext_cmds='`test .
$module = .
yes && echo .so ||
echo .dylib
`'
10435 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10436 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10440 version_type=linux # correct to gnu/linux during the next big refactor
10443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10444 soname_spec='$libname$release$shared_ext$major'
10445 shlibpath_var=LD_LIBRARY_PATH
10448 freebsd* | dragonfly*)
10449 # DragonFly does not have aout. When/if they implement a new
10450 # versioning mechanism, adjust this.
10451 if test -x /usr/bin/objformat; then
10452 objformat=`/usr
/bin
/objformat
`
10455 freebsd[23].*) objformat=aout ;;
10456 *) objformat=elf ;;
10459 version_type=freebsd-$objformat
10460 case $version_type in
10462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10463 soname_spec='$libname$release$shared_ext$major'
10468 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10472 shlibpath_var=LD_LIBRARY_PATH
10475 shlibpath_overrides_runpath=yes
10477 freebsd3.[01]* | freebsdelf3.[01]*)
10478 shlibpath_overrides_runpath=yes
10479 hardcode_into_libs=yes
10481 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10482 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10483 shlibpath_overrides_runpath=no
10484 hardcode_into_libs=yes
10486 *) # from 4.6 on, and DragonFly
10487 shlibpath_overrides_runpath=yes
10488 hardcode_into_libs=yes
10494 version_type=linux # correct to gnu/linux during the next big refactor
10497 dynamic_linker="$host_os runtime_loader"
10498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10499 soname_spec='$libname$release$shared_ext$major'
10500 shlibpath_var=LIBRARY_PATH
10501 shlibpath_overrides_runpath=no
10502 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10503 hardcode_into_libs=yes
10506 hpux9* | hpux10* | hpux11*)
10507 # Give a soname corresponding to the major version so that dld.sl refuses to
10508 # link against other versions.
10515 hardcode_into_libs=yes
10516 dynamic_linker="$host_os dld.so"
10517 shlibpath_var=LD_LIBRARY_PATH
10518 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10519 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10520 soname_spec='$libname$release$shared_ext$major'
10521 if test 32 = "$HPUX_IA64_MODE"; then
10522 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10523 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10525 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10526 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10531 hardcode_into_libs=yes
10532 dynamic_linker="$host_os dld.sl"
10533 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10534 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10535 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10536 soname_spec='$libname$release$shared_ext$major'
10537 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10538 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10542 dynamic_linker="$host_os dld.sl"
10543 shlibpath_var=SHLIB_PATH
10544 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10545 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10546 soname_spec='$libname$release$shared_ext$major'
10549 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10550 postinstall_cmds='chmod 555 $lib'
10551 # or fails outright, so override atomically:
10552 install_override_mode=555
10556 version_type=linux # correct to gnu/linux during the next big refactor
10559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10560 soname_spec='$libname$release$shared_ext$major'
10561 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10562 shlibpath_var=LD_LIBRARY_PATH
10563 shlibpath_overrides_runpath=no
10564 hardcode_into_libs=yes
10567 irix5* | irix6* | nonstopux*)
10569 nonstopux*) version_type=nonstopux ;;
10571 if test yes = "$lt_cv_prog_gnu_ld"; then
10572 version_type=linux # correct to gnu/linux during the next big refactor
10579 soname_spec='$libname$release$shared_ext$major'
10580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10582 irix5* | nonstopux*)
10583 libsuff= shlibsuff=
10586 case $LD in # libtool.m4 will add one of these switches to LD
10587 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10588 libsuff= shlibsuff= libmagic=32-bit;;
10589 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10590 libsuff=32 shlibsuff=N32 libmagic=N32;;
10591 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10592 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10593 *) libsuff= shlibsuff= libmagic=never-match;;
10597 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10598 shlibpath_overrides_runpath=no
10599 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10600 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10601 hardcode_into_libs=yes
10604 # No shared lib support for Linux oldld, aout, or coff.
10605 linux*oldld* | linux*aout* | linux*coff*)
10610 version_type=none # Android doesn't support versioned libraries.
10613 library_names_spec='$libname$release$shared_ext'
10614 soname_spec='$libname$release$shared_ext'
10616 shlibpath_var=LD_LIBRARY_PATH
10617 shlibpath_overrides_runpath=yes
10619 # This implies no fast_install, which is unacceptable.
10620 # Some rework will be needed to allow for fast_install
10621 # before this can be enabled.
10622 hardcode_into_libs=yes
10624 dynamic_linker='Android linker'
10625 # Don't embed -rpath directories since the linker doesn't support them.
10626 hardcode_libdir_flag_spec='-L$libdir'
10629 # This must be glibc/ELF.
10630 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10631 version_type=linux # correct to gnu/linux during the next big refactor
10634 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10635 soname_spec='$libname$release$shared_ext$major'
10636 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10637 shlibpath_var=LD_LIBRARY_PATH
10638 shlibpath_overrides_runpath=no
10640 # Some binutils ld are patched to set DT_RUNPATH
10641 if test ${lt_cv_shlibpath_overrides_runpath+y}
10643 printf %s "(cached) " >&6
10645 lt_cv_shlibpath_overrides_runpath=no
10646 save_LDFLAGS=$LDFLAGS
10647 save_libdir=$libdir
10648 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10649 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10661 if ac_fn_c_try_link "$LINENO"
10663 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
10665 lt_cv_shlibpath_overrides_runpath=yes
10668 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10669 conftest$ac_exeext conftest.$ac_ext
10670 LDFLAGS=$save_LDFLAGS
10671 libdir=$save_libdir
10675 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10677 # This implies no fast_install, which is unacceptable.
10678 # Some rework will be needed to allow for fast_install
10679 # before this can be enabled.
10680 hardcode_into_libs=yes
10682 # Ideally, we could use ldconfig to report *all* directores which are
10683 # searched for libraries, however this is still not possible. Aside from not
10684 # being certain /sbin/ldconfig is available, command
10685 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10686 # even though it is searched at run-time. Try to do the best guess by
10687 # appending ld.so.conf contents (and includes) to the search path.
10688 if test -f /etc/ld.so.conf; then
10689 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' ' '`
10690 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10693 # We used to test for /lib/ld.so.1 and disable shared libraries on
10694 # powerpc, because MkLinux only supported shared libraries with the
10695 # GNU dynamic linker. Since this was broken with cross compilers,
10696 # most powerpc-linux boxes support dynamic linking these days and
10697 # people can always --disable-shared, the test was removed, and we
10698 # assume the GNU/Linux dynamic linker is in use.
10699 dynamic_linker='GNU/Linux ld.so'
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10707 soname_spec='${libname}${release}${shared_ext}$major'
10708 shlibpath_var=LD_LIBRARY_PATH
10709 shlibpath_overrides_runpath=no
10710 hardcode_into_libs=yes
10711 dynamic_linker='NetBSD ld.elf_so'
10718 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10719 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10720 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10721 dynamic_linker='NetBSD (a.out) ld.so'
10723 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10724 soname_spec='$libname$release$shared_ext$major'
10725 dynamic_linker='NetBSD ld.elf_so'
10727 shlibpath_var=LD_LIBRARY_PATH
10728 shlibpath_overrides_runpath=yes
10729 hardcode_into_libs=yes
10733 version_type=linux # correct to gnu/linux during the next big refactor
10734 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10735 shlibpath_var=LD_LIBRARY_PATH
10736 shlibpath_overrides_runpath=yes
10743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10744 soname_spec='$libname$release$shared_ext$major'
10745 shlibpath_var=LD_LIBRARY_PATH
10746 shlibpath_overrides_runpath=no
10747 hardcode_into_libs=yes
10748 dynamic_linker='ldqnx.so'
10751 openbsd* | bitrig*)
10753 sys_lib_dlsearch_path_spec=/usr/lib
10755 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`"; then
10760 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10762 shlibpath_var=LD_LIBRARY_PATH
10763 shlibpath_overrides_runpath=yes
10767 libname_spec='$name'
10768 version_type=windows
10772 # OS/2 can only load a DLL with a base name of 8 characters or less.
10773 soname_spec='`test -n "$os2dllname" && libname
="$os2dllname";
10774 v
=$
($ECHO $release$versuffix |
tr -d .
-);
10775 n
=$
($ECHO $libname | cut
-b -$
((8 - ${#v})) |
tr . _
);
10776 $ECHO $n$v`$shared_ext'
10777 library_names_spec='${libname}_dll.$libext'
10778 dynamic_linker='OS/2 ld.exe'
10779 shlibpath_var=BEGINLIBPATH
10780 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10782 postinstall_cmds='base_file=`basename \
$file`~
10783 dlpath=`$SHELL 2>&1 -c '\''.
$dir/'\''\
$base_file'\''i
; $ECHO \
$dlname'\''`~
10784 dldir=$destdir/`dirname \
$dlpath`~
10785 test -d \$dldir || mkdir -p \$dldir~
10786 $install_prog $dir/$dlname \$dldir/$dlname~
10787 chmod a+x \$dldir/$dlname~
10788 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10789 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10791 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''.
$file; $ECHO \
$dlname'\''`~
10792 dlpath=$dir/\$dldll~
10796 osf3* | osf4* | osf5*)
10800 soname_spec='$libname$release$shared_ext$major'
10801 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10802 shlibpath_var=LD_LIBRARY_PATH
10803 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10804 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10812 version_type=linux # correct to gnu/linux during the next big refactor
10815 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10816 soname_spec='$libname$release$shared_ext$major'
10817 shlibpath_var=LD_LIBRARY_PATH
10818 shlibpath_overrides_runpath=yes
10819 hardcode_into_libs=yes
10820 # ldd complains unless libraries are executable
10821 postinstall_cmds='chmod +x $lib'
10826 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10827 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10828 shlibpath_var=LD_LIBRARY_PATH
10829 shlibpath_overrides_runpath=yes
10830 if test yes = "$with_gnu_ld"; then
10837 version_type=linux # correct to gnu/linux during the next big refactor
10838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10839 soname_spec='$libname$release$shared_ext$major'
10840 shlibpath_var=LD_LIBRARY_PATH
10841 case $host_vendor in
10843 shlibpath_overrides_runpath=no
10845 runpath_var=LD_RUN_PATH
10853 shlibpath_overrides_runpath=no
10854 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10860 if test -d /usr/nec; then
10861 version_type=linux # correct to gnu/linux during the next big refactor
10862 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10863 soname_spec='$libname$shared_ext.$major'
10864 shlibpath_var=LD_LIBRARY_PATH
10868 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10873 soname_spec='$libname$release$shared_ext$major'
10874 shlibpath_var=LD_LIBRARY_PATH
10875 shlibpath_overrides_runpath=yes
10876 hardcode_into_libs=yes
10877 if test yes = "$with_gnu_ld"; then
10878 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10880 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10883 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10887 sys_lib_dlsearch_path_spec='/usr/lib'
10891 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10892 version_type=linux # correct to gnu/linux during the next big refactor
10895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10896 shlibpath_var=LD_LIBRARY_PATH
10897 shlibpath_overrides_runpath=no
10898 hardcode_into_libs=yes
10902 version_type=linux # correct to gnu/linux during the next big refactor
10903 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10904 soname_spec='$libname$release$shared_ext$major'
10905 shlibpath_var=LD_LIBRARY_PATH
10912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10913 printf "%s\n" "$dynamic_linker" >&6; }
10914 test no = "$dynamic_linker" && can_build_shared=no
10916 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10917 if test yes = "$GCC"; then
10918 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10921 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10922 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
10925 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10926 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
10929 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
10930 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
10932 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
10933 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
10935 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
10936 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11035 printf %s "checking how to hardcode library paths into programs... " >&6; }
11037 if test -n "$hardcode_libdir_flag_spec" ||
11038 test -n "$runpath_var" ||
11039 test yes = "$hardcode_automatic"; then
11041 # We can hardcode non-existent directories.
11042 if test no != "$hardcode_direct" &&
11043 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11044 # have to relink, otherwise we might link with an installed library
11045 # when we should be linking with a yet-to-be-installed one
11046 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11047 test no != "$hardcode_minus_L"; then
11048 # Linking always hardcodes the temporary library directory.
11049 hardcode_action=relink
11051 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11052 hardcode_action=immediate
11055 # We cannot hardcode anything, or else we can only hardcode existing
11057 hardcode_action=unsupported
11059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11060 printf "%s\n" "$hardcode_action" >&6; }
11062 if test relink = "$hardcode_action" ||
11063 test yes = "$inherit_rpath"; then
11064 # Fast installation is not supported
11065 enable_fast_install=no
11066 elif test yes = "$shlibpath_overrides_runpath" ||
11067 test no = "$enable_shared"; then
11068 # Fast installation is not necessary
11069 enable_fast_install=needless
11077 if test yes != "$enable_dlopen"; then
11078 enable_dlopen=unknown
11079 enable_dlopen_self=unknown
11080 enable_dlopen_self_static=unknown
11087 lt_cv_dlopen=load_add_on
11089 lt_cv_dlopen_self=yes
11092 mingw* | pw32* | cegcc*)
11093 lt_cv_dlopen=LoadLibrary
11098 lt_cv_dlopen=dlopen
11103 # if libdl is installed we need to link against it
11104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11105 printf %s "checking for dlopen in -ldl... " >&6; }
11106 if test ${ac_cv_lib_dl_dlopen+y}
11108 printf %s "(cached) " >&6
11110 ac_check_lib_save_LIBS=$LIBS
11112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11113 /* end confdefs.h. */
11115 /* Override any GCC internal prototype to avoid an error.
11116 Use char because int might match the return type of a GCC
11117 builtin and then its argument prototype would still apply. */
11127 if ac_fn_c_try_link "$LINENO"
11129 ac_cv_lib_dl_dlopen=yes
11131 ac_cv_lib_dl_dlopen=no
11133 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11134 conftest$ac_exeext conftest.$ac_ext
11135 LIBS=$ac_check_lib_save_LIBS
11137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11138 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
11139 if test "x$ac_cv_lib_dl_dlopen" = xyes
11141 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11146 lt_cv_dlopen_self=yes
11153 # Don't try to run any link tests for TPF. We know it's impossible
11154 # because TPF is a cross-compiler, and we know how we open DSOs.
11155 lt_cv_dlopen=dlopen
11157 lt_cv_dlopen_self=no
11161 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11162 if test "x$ac_cv_func_shl_load" = xyes
11164 lt_cv_dlopen=shl_load
11166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11167 printf %s "checking for shl_load in -ldld... " >&6; }
11168 if test ${ac_cv_lib_dld_shl_load+y}
11170 printf %s "(cached) " >&6
11172 ac_check_lib_save_LIBS=$LIBS
11174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11175 /* end confdefs.h. */
11177 /* Override any GCC internal prototype to avoid an error.
11178 Use char because int might match the return type of a GCC
11179 builtin and then its argument prototype would still apply. */
11184 return shl_load ();
11189 if ac_fn_c_try_link "$LINENO"
11191 ac_cv_lib_dld_shl_load=yes
11193 ac_cv_lib_dld_shl_load=no
11195 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11196 conftest$ac_exeext conftest.$ac_ext
11197 LIBS=$ac_check_lib_save_LIBS
11199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11200 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
11201 if test "x$ac_cv_lib_dld_shl_load" = xyes
11203 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11205 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11206 if test "x$ac_cv_func_dlopen" = xyes
11208 lt_cv_dlopen=dlopen
11210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11211 printf %s "checking for dlopen in -ldl... " >&6; }
11212 if test ${ac_cv_lib_dl_dlopen+y}
11214 printf %s "(cached) " >&6
11216 ac_check_lib_save_LIBS=$LIBS
11218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11219 /* end confdefs.h. */
11221 /* Override any GCC internal prototype to avoid an error.
11222 Use char because int might match the return type of a GCC
11223 builtin and then its argument prototype would still apply. */
11233 if ac_fn_c_try_link "$LINENO"
11235 ac_cv_lib_dl_dlopen=yes
11237 ac_cv_lib_dl_dlopen=no
11239 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11240 conftest$ac_exeext conftest.$ac_ext
11241 LIBS=$ac_check_lib_save_LIBS
11243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11244 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
11245 if test "x$ac_cv_lib_dl_dlopen" = xyes
11247 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11250 printf %s "checking for dlopen in -lsvld... " >&6; }
11251 if test ${ac_cv_lib_svld_dlopen+y}
11253 printf %s "(cached) " >&6
11255 ac_check_lib_save_LIBS=$LIBS
11256 LIBS="-lsvld $LIBS"
11257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11258 /* end confdefs.h. */
11260 /* Override any GCC internal prototype to avoid an error.
11261 Use char because int might match the return type of a GCC
11262 builtin and then its argument prototype would still apply. */
11272 if ac_fn_c_try_link "$LINENO"
11274 ac_cv_lib_svld_dlopen=yes
11276 ac_cv_lib_svld_dlopen=no
11278 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11279 conftest$ac_exeext conftest.$ac_ext
11280 LIBS=$ac_check_lib_save_LIBS
11282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11283 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
11284 if test "x$ac_cv_lib_svld_dlopen" = xyes
11286 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11289 printf %s "checking for dld_link in -ldld... " >&6; }
11290 if test ${ac_cv_lib_dld_dld_link+y}
11292 printf %s "(cached) " >&6
11294 ac_check_lib_save_LIBS=$LIBS
11296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11297 /* end confdefs.h. */
11299 /* Override any GCC internal prototype to avoid an error.
11300 Use char because int might match the return type of a GCC
11301 builtin and then its argument prototype would still apply. */
11306 return dld_link ();
11311 if ac_fn_c_try_link "$LINENO"
11313 ac_cv_lib_dld_dld_link=yes
11315 ac_cv_lib_dld_dld_link=no
11317 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11318 conftest$ac_exeext conftest.$ac_ext
11319 LIBS=$ac_check_lib_save_LIBS
11321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11322 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
11323 if test "x$ac_cv_lib_dld_dld_link" = xyes
11325 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11346 if test no = "$lt_cv_dlopen"; then
11352 case $lt_cv_dlopen in
11354 save_CPPFLAGS=$CPPFLAGS
11355 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11357 save_LDFLAGS=$LDFLAGS
11358 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11361 LIBS="$lt_cv_dlopen_libs $LIBS"
11363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11364 printf %s "checking whether a program can dlopen itself... " >&6; }
11365 if test ${lt_cv_dlopen_self+y}
11367 printf %s "(cached) " >&6
11369 if test yes = "$cross_compiling"; then :
11370 lt_cv_dlopen_self=cross
11372 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11373 lt_status=$lt_dlunknown
11374 cat > conftest.$ac_ext <<_LT_EOF
11375 #line $LINENO "configure"
11376 #include "confdefs.h"
11385 # define LT_DLGLOBAL RTLD_GLOBAL
11388 # define LT_DLGLOBAL DL_GLOBAL
11390 # define LT_DLGLOBAL 0
11394 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11395 find out it does not work in some platform. */
11396 #ifndef LT_DLLAZY_OR_NOW
11398 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11401 # define LT_DLLAZY_OR_NOW DL_LAZY
11404 # define LT_DLLAZY_OR_NOW RTLD_NOW
11407 # define LT_DLLAZY_OR_NOW DL_NOW
11409 # define LT_DLLAZY_OR_NOW 0
11416 /* When -fvisibility=hidden is used, assume the code has been annotated
11417 correspondingly for the symbols needed. */
11418 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11419 int fnord () __attribute__((visibility("default")));
11422 int fnord () { return 42; }
11425 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11426 int status = $lt_dlunknown;
11430 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11433 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11434 else puts (dlerror ());
11436 /* dlclose (self); */
11444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11445 (eval $ac_link) 2>&5
11447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11448 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11449 (./conftest; exit; ) >&5 2>/dev/null
11451 case x$lt_status in
11452 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11453 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11454 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11457 # compilation failed
11458 lt_cv_dlopen_self=no
11465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11466 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
11468 if test yes = "$lt_cv_dlopen_self"; then
11469 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11471 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
11472 if test ${lt_cv_dlopen_self_static+y}
11474 printf %s "(cached) " >&6
11476 if test yes = "$cross_compiling"; then :
11477 lt_cv_dlopen_self_static=cross
11479 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11480 lt_status=$lt_dlunknown
11481 cat > conftest.$ac_ext <<_LT_EOF
11482 #line $LINENO "configure"
11483 #include "confdefs.h"
11492 # define LT_DLGLOBAL RTLD_GLOBAL
11495 # define LT_DLGLOBAL DL_GLOBAL
11497 # define LT_DLGLOBAL 0
11501 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11502 find out it does not work in some platform. */
11503 #ifndef LT_DLLAZY_OR_NOW
11505 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11508 # define LT_DLLAZY_OR_NOW DL_LAZY
11511 # define LT_DLLAZY_OR_NOW RTLD_NOW
11514 # define LT_DLLAZY_OR_NOW DL_NOW
11516 # define LT_DLLAZY_OR_NOW 0
11523 /* When -fvisibility=hidden is used, assume the code has been annotated
11524 correspondingly for the symbols needed. */
11525 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11526 int fnord () __attribute__((visibility("default")));
11529 int fnord () { return 42; }
11532 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11533 int status = $lt_dlunknown;
11537 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11540 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11541 else puts (dlerror ());
11543 /* dlclose (self); */
11551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11552 (eval $ac_link) 2>&5
11554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11555 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11556 (./conftest; exit; ) >&5 2>/dev/null
11558 case x$lt_status in
11559 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11560 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11561 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11564 # compilation failed
11565 lt_cv_dlopen_self_static=no
11572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11573 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
11576 CPPFLAGS=$save_CPPFLAGS
11577 LDFLAGS=$save_LDFLAGS
11582 case $lt_cv_dlopen_self in
11583 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11584 *) enable_dlopen_self=unknown ;;
11587 case $lt_cv_dlopen_self_static in
11588 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11589 *) enable_dlopen_self_static=unknown ;;
11611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11612 printf %s "checking whether stripping libraries is possible... " >&6; }
11613 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11614 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11615 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11617 printf "%s\n" "yes" >&6; }
11619 # FIXME - insert some real tests, host_os isn't really good enough
11622 if test -n "$STRIP"; then
11623 striplib="$STRIP -x"
11624 old_striplib="$STRIP -S"
11625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11626 printf "%s\n" "yes" >&6; }
11628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629 printf "%s\n" "no" >&6; }
11633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11634 printf "%s\n" "no" >&6; }
11650 # Report what library types will actually be built
11651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11652 printf %s "checking if libtool supports shared libraries... " >&6; }
11653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11654 printf "%s\n" "$can_build_shared" >&6; }
11656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11657 printf %s "checking whether to build shared libraries... " >&6; }
11658 test no = "$can_build_shared" && enable_shared=no
11660 # On AIX, shared libraries and static libraries use the same namespace, and
11661 # are all built from PIC.
11664 test yes = "$enable_shared" && enable_static=no
11665 if test -n "$RANLIB"; then
11666 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11667 postinstall_cmds='$RANLIB $lib'
11672 if test ia64 != "$host_cpu"; then
11673 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11674 yes,aix,yes) ;; # shared object as lib.so file only
11675 yes,svr4,*) ;; # shared object as lib.so archive member only
11676 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11682 printf "%s\n" "$enable_shared" >&6; }
11684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11685 printf %s "checking whether to build static libraries... " >&6; }
11686 # Make sure either enable_shared or enable_static is yes.
11687 test yes = "$enable_shared" || enable_static=yes
11688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11689 printf "%s\n" "$enable_static" >&6; }
11696 ac_cpp='$CPP $CPPFLAGS'
11697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11717 ac_config_commands="$ac_config_commands libtool"
11722 # Only expand once:
11726 # Find a good install program. We prefer a C program (faster),
11727 # so one script is as good as another. But avoid the broken or
11728 # incompatible versions:
11729 # SysV /etc/install, /usr/sbin/install
11730 # SunOS /usr/etc/install
11731 # IRIX /sbin/install
11733 # AmigaOS /C/install, which installs bootblocks on floppy discs
11734 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11735 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11736 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11737 # OS/2's system install, which has a completely different semantic
11738 # ./install, which can be erroneously created by make from ./install.sh.
11739 # Reject install programs that cannot install multiple files.
11740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11741 printf %s "checking for a BSD-compatible install... " >&6; }
11742 if test -z "$INSTALL"; then
11743 if test ${ac_cv_path_install+y}
11745 printf %s "(cached) " >&6
11747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748 for as_dir in $PATH
11751 case $as_dir in #(((
11754 *) as_dir=$as_dir/ ;;
11756 # Account for fact that we put trailing slashes in our PATH walk.
11757 case $as_dir in #((
11759 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11760 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11763 # OSF1 and SCO ODT 3.0 have their own names for install.
11764 # Don't use installbsd from OSF since it installs stuff as root
11766 for ac_prog in ginstall scoinst install; do
11767 for ac_exec_ext in '' $ac_executable_extensions; do
11768 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
11769 if test $ac_prog = install &&
11770 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11771 # AIX install. It has an incompatible calling convention.
11773 elif test $ac_prog = install &&
11774 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11775 # program-specific install script used by HP pwplus--don't use.
11778 rm -rf conftest.one conftest.two conftest.dir
11779 echo one > conftest.one
11780 echo two > conftest.two
11782 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
11783 test -s conftest.one && test -s conftest.two &&
11784 test -s conftest.dir/conftest.one &&
11785 test -s conftest.dir/conftest.two
11787 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
11800 rm -rf conftest.one conftest.two conftest.dir
11803 if test ${ac_cv_path_install+y}; then
11804 INSTALL=$ac_cv_path_install
11806 # As a last resort, use the slow shell script. Don't cache a
11807 # value for INSTALL within a source directory, because that will
11808 # break other packages using the cache if that directory is
11809 # removed, or if the value is a relative name.
11810 INSTALL=$ac_install_sh
11813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11814 printf "%s\n" "$INSTALL" >&6; }
11816 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11817 # It thinks the first close brace ends the variable substitution.
11818 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11820 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11822 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11826 # Enable large file support (if special flags are necessary)
11828 # Check whether --enable-largefile was given.
11829 if test ${enable_largefile+y}
11831 enableval=$enable_largefile;
11834 if test "$enable_largefile" != no; then
11836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11837 printf %s "checking for special C compiler options needed for large files... " >&6; }
11838 if test ${ac_cv_sys_largefile_CC+y}
11840 printf %s "(cached) " >&6
11842 ac_cv_sys_largefile_CC=no
11843 if test "$GCC" != yes; then
11846 # IRIX 6.2 and later do not support large files by default,
11847 # so use the C compiler's -n32 option if that helps.
11848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11849 /* end confdefs.h. */
11850 #include <sys/types.h>
11851 /* Check that off_t can represent 2**63 - 1 correctly.
11852 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11853 since some C++ compilers masquerading as C compilers
11854 incorrectly reject 9223372036854775807. */
11855 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
11856 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11857 && LARGE_OFF_T % 2147483647 == 1)
11867 if ac_fn_c_try_compile "$LINENO"
11871 rm -f core conftest.err conftest.$ac_objext conftest.beam
11873 if ac_fn_c_try_compile "$LINENO"
11875 ac_cv_sys_largefile_CC=' -n32'; break
11877 rm -f core conftest.err conftest.$ac_objext conftest.beam
11881 rm -f conftest.$ac_ext
11884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11885 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
11886 if test "$ac_cv_sys_largefile_CC" != no; then
11887 CC=$CC$ac_cv_sys_largefile_CC
11890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11891 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11892 if test ${ac_cv_sys_file_offset_bits+y}
11894 printf %s "(cached) " >&6
11897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11898 /* end confdefs.h. */
11899 #include <sys/types.h>
11900 /* Check that off_t can represent 2**63 - 1 correctly.
11901 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11902 since some C++ compilers masquerading as C compilers
11903 incorrectly reject 9223372036854775807. */
11904 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
11905 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11906 && LARGE_OFF_T % 2147483647 == 1)
11916 if ac_fn_c_try_compile "$LINENO"
11918 ac_cv_sys_file_offset_bits=no; break
11920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11922 /* end confdefs.h. */
11923 #define _FILE_OFFSET_BITS 64
11924 #include <sys/types.h>
11925 /* Check that off_t can represent 2**63 - 1 correctly.
11926 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11927 since some C++ compilers masquerading as C compilers
11928 incorrectly reject 9223372036854775807. */
11929 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
11930 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11931 && LARGE_OFF_T % 2147483647 == 1)
11941 if ac_fn_c_try_compile "$LINENO"
11943 ac_cv_sys_file_offset_bits=64; break
11945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11946 ac_cv_sys_file_offset_bits=unknown
11950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11951 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
11952 case $ac_cv_sys_file_offset_bits in #(
11955 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
11959 if test $ac_cv_sys_file_offset_bits = unknown; then
11960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11961 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
11962 if test ${ac_cv_sys_large_files+y}
11964 printf %s "(cached) " >&6
11967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h. */
11969 #include <sys/types.h>
11970 /* Check that off_t can represent 2**63 - 1 correctly.
11971 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11972 since some C++ compilers masquerading as C compilers
11973 incorrectly reject 9223372036854775807. */
11974 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
11975 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11976 && LARGE_OFF_T % 2147483647 == 1)
11986 if ac_fn_c_try_compile "$LINENO"
11988 ac_cv_sys_large_files=no; break
11990 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992 /* end confdefs.h. */
11993 #define _LARGE_FILES 1
11994 #include <sys/types.h>
11995 /* Check that off_t can represent 2**63 - 1 correctly.
11996 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11997 since some C++ compilers masquerading as C compilers
11998 incorrectly reject 9223372036854775807. */
11999 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12000 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12001 && LARGE_OFF_T % 2147483647 == 1)
12011 if ac_fn_c_try_compile "$LINENO"
12013 ac_cv_sys_large_files=1; break
12015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12016 ac_cv_sys_large_files=unknown
12020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12021 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
12022 case $ac_cv_sys_large_files in #(
12025 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
12034 # Check for needed/wanted data types
12035 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
12036 if test "x$ac_cv_type_int8_t" = xyes
12039 printf "%s\n" "#define HAVE_INT8_T 1" >>confdefs.h
12043 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
12044 if test "x$ac_cv_type_int16_t" = xyes
12047 printf "%s\n" "#define HAVE_INT16_T 1" >>confdefs.h
12051 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
12052 if test "x$ac_cv_type_int32_t" = xyes
12055 printf "%s\n" "#define HAVE_INT32_T 1" >>confdefs.h
12059 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
12060 if test "x$ac_cv_type_int64_t" = xyes
12063 printf "%s\n" "#define HAVE_INT64_T 1" >>confdefs.h
12067 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12068 if test "x$ac_cv_type_intptr_t" = xyes
12071 printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
12075 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
12076 if test "x$ac_cv_type_uint8_t" = xyes
12079 printf "%s\n" "#define HAVE_UINT8_T 1" >>confdefs.h
12083 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
12084 if test "x$ac_cv_type_uint16_t" = xyes
12087 printf "%s\n" "#define HAVE_UINT16_T 1" >>confdefs.h
12091 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
12092 if test "x$ac_cv_type_uint32_t" = xyes
12095 printf "%s\n" "#define HAVE_UINT32_T 1" >>confdefs.h
12099 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
12100 if test "x$ac_cv_type_uint64_t" = xyes
12103 printf "%s\n" "#define HAVE_UINT64_T 1" >>confdefs.h
12107 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
12108 if test "x$ac_cv_type_uintptr_t" = xyes
12111 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
12118 # Check for needed/wanted headers
12119 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12120 if test "x$ac_cv_header_sys_types_h" = xyes
12122 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12125 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12126 if test "x$ac_cv_header_stdlib_h" = xyes
12128 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
12131 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
12132 if test "x$ac_cv_header_stdint_h" = xyes
12134 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
12137 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12138 if test "x$ac_cv_header_inttypes_h" = xyes
12140 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
12143 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
12144 if test "x$ac_cv_header_malloc_h" = xyes
12146 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
12152 # Figure out whether or not we have these functions
12154 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
12155 if test "x$ac_cv_func_fdatasync" = xyes
12157 printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
12160 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
12161 if test "x$ac_cv_func_gmtime_r" = xyes
12163 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
12166 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
12167 if test "x$ac_cv_func_isnan" = xyes
12169 printf "%s\n" "#define HAVE_ISNAN 1" >>confdefs.h
12172 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
12173 if test "x$ac_cv_func_localtime_r" = xyes
12175 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
12178 ac_fn_c_check_func "$LINENO" "localtime_s" "ac_cv_func_localtime_s"
12179 if test "x$ac_cv_func_localtime_s" = xyes
12181 printf "%s\n" "#define HAVE_LOCALTIME_S 1" >>confdefs.h
12184 ac_fn_c_check_func "$LINENO" "malloc_usable_size" "ac_cv_func_malloc_usable_size"
12185 if test "x$ac_cv_func_malloc_usable_size" = xyes
12187 printf "%s\n" "#define HAVE_MALLOC_USABLE_SIZE 1" >>confdefs.h
12190 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
12191 if test "x$ac_cv_func_strchrnul" = xyes
12193 printf "%s\n" "#define HAVE_STRCHRNUL 1" >>confdefs.h
12196 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
12197 if test "x$ac_cv_func_usleep" = xyes
12199 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
12202 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
12203 if test "x$ac_cv_func_utime" = xyes
12205 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
12208 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
12209 if test "x$ac_cv_func_pread" = xyes
12211 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
12214 ac_fn_c_check_func "$LINENO" "pread64" "ac_cv_func_pread64"
12215 if test "x$ac_cv_func_pread64" = xyes
12217 printf "%s\n" "#define HAVE_PREAD64 1" >>confdefs.h
12220 ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
12221 if test "x$ac_cv_func_pwrite" = xyes
12223 printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
12226 ac_fn_c_check_func "$LINENO" "pwrite64" "ac_cv_func_pwrite64"
12227 if test "x$ac_cv_func_pwrite64" = xyes
12229 printf "%s\n" "#define HAVE_PWRITE64 1" >>confdefs.h
12235 # By default, we use the amalgamation (this may be changed below...)
12240 # See whether we can run specific tclsh versions known to work well;
12241 # if not, then we fall back to plain tclsh.
12242 # TODO: try other versions before falling back?
12244 for ac_prog in tclsh8.7 tclsh8.6 tclsh8.5 tclsh
12246 # Extract the first word of "$ac_prog", so it can be a program name with args.
12247 set dummy $ac_prog; ac_word=$2
12248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12249 printf %s "checking for $ac_word... " >&6; }
12250 if test ${ac_cv_prog_TCLSH_CMD+y}
12252 printf %s "(cached) " >&6
12254 if test -n "$TCLSH_CMD"; then
12255 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
12257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12258 for as_dir in $PATH
12261 case $as_dir in #(((
12264 *) as_dir=$as_dir/ ;;
12266 for ac_exec_ext in '' $ac_executable_extensions; do
12267 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12268 ac_cv_prog_TCLSH_CMD="$ac_prog"
12269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12278 TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
12279 if test -n "$TCLSH_CMD"; then
12280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
12281 printf "%s\n" "$TCLSH_CMD" >&6; }
12283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12284 printf "%s\n" "no" >&6; }
12288 test -n "$TCLSH_CMD" && break
12290 test -n "$TCLSH_CMD" || TCLSH_CMD="none"
12292 if test "$TCLSH_CMD" = "none"; then
12293 # If we can't find a local tclsh, then building the amalgamation will fail.
12294 # We act as though --disable-amalgamation has been used.
12295 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
12302 if test "x${TCLLIBDIR+set}" != "xset" ; then
12303 TCLLIBDIR='$(libdir)'
12304 for i in `echo 'puts stdout $auto_path' |
${TCLSH_CMD}` ; do
12305 if test -d $i ; then
12310 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
12314 # Set up an appropriate program prefix
12316 if test "$program_prefix" = "NONE"; then
12321 VERSION=`cat $srcdir/VERSION |
sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
12322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
12323 printf "%s\n" "$as_me: Version set to $VERSION" >&6;}
12325 RELEASE=`cat $srcdir/VERSION
`
12326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
12327 printf "%s\n" "$as_me: Release set to $RELEASE" >&6;}
12331 # Handle --with-wasi-sdk=DIR
12333 # This must be early because it changes the toolchain.
12336 # Check whether --with-wasi-sdk was given.
12337 if test ${with_wasi_sdk+y}
12339 withval=$with_wasi_sdk; with_wasisdk=${withval}
12342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for WASI SDK directory" >&5
12343 printf %s "checking for WASI SDK directory... " >&6; }
12344 if test ${ac_cv_c_wasi_sdk+y}
12346 printf %s "(cached) " >&6
12349 # First check to see if --with-tcl was specified.
12350 if test x"${with_wasi_sdk}" != x ; then
12351 if ! test -d "${with_wasi_sdk}" ; then
12352 as_fn_error $? "${with_wasi_sdk} directory doesn't exist" "$LINENO" 5
12354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${with_wasi_sdk}: using wasi-sdk clang, disabling: tcl, CLI shell, DLL" >&5
12355 printf "%s\n" "${with_wasi_sdk}: using wasi-sdk clang, disabling: tcl, CLI shell, DLL" >&6; }
12363 if test "${use_wasi_sdk}" = "no" ; then
12365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12366 printf "%s\n" "no" >&6; }
12369 # Changing --host and --target have no effect here except to possibly
12370 # cause confusion. autoconf has finished processing them by this
12373 # host_alias=wasm32-wasi
12374 # target=wasm32-wasi
12376 # Merely changing CC and LD to the wasi-sdk's is enough to get
12377 # sqlite3.o building in WASM format.
12378 CC="${with_wasi_sdk}/bin/clang"
12379 LD="${with_wasi_sdk}/bin/wasm-ld"
12380 RANLIB="${with_wasi_sdk}/bin/llvm-ranlib"
12381 cross_compiling=yes
12382 enable_threadsafe=no
12385 # libtool is apparently hard-coded to use gcc for linking DLLs, so
12386 # we disable the DLL build...
12388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12389 printf "%s\n" "yes" >&6; }
12395 # Locate a compiler for the build machine. This compiler should
12396 # generate command-line programs that run on the build machine.
12398 if test x"$cross_compiling" = xno; then
12400 BUILD_CFLAGS=$CFLAGS
12402 if test "${BUILD_CC+set}" != set; then
12403 for ac_prog in gcc cc cl
12405 # Extract the first word of "$ac_prog", so it can be a program name with args.
12406 set dummy $ac_prog; ac_word=$2
12407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12408 printf %s "checking for $ac_word... " >&6; }
12409 if test ${ac_cv_prog_BUILD_CC+y}
12411 printf %s "(cached) " >&6
12413 if test -n "$BUILD_CC"; then
12414 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12417 for as_dir in $PATH
12420 case $as_dir in #(((
12423 *) as_dir=$as_dir/ ;;
12425 for ac_exec_ext in '' $ac_executable_extensions; do
12426 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12427 ac_cv_prog_BUILD_CC="$ac_prog"
12428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12437 BUILD_CC=$ac_cv_prog_BUILD_CC
12438 if test -n "$BUILD_CC"; then
12439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12440 printf "%s\n" "$BUILD_CC" >&6; }
12442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443 printf "%s\n" "no" >&6; }
12447 test -n "$BUILD_CC" && break
12451 if test "${BUILD_CFLAGS+set}" != set; then
12458 # Do we want to support multithreaded use of sqlite
12460 # Check whether --enable-threadsafe was given.
12461 if test ${enable_threadsafe+y}
12463 enableval=$enable_threadsafe;
12466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
12467 printf %s "checking whether to support threadsafe operation... " >&6; }
12468 if test "$enable_threadsafe" = "no"; then
12469 SQLITE_THREADSAFE=0
12470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12471 printf "%s\n" "no" >&6; }
12473 SQLITE_THREADSAFE=1
12474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12475 printf "%s\n" "yes" >&6; }
12479 if test "$SQLITE_THREADSAFE" = "1"; then
12480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
12481 printf %s "checking for library containing pthread_create... " >&6; }
12482 if test ${ac_cv_search_pthread_create+y}
12484 printf %s "(cached) " >&6
12486 ac_func_search_save_LIBS=$LIBS
12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h. */
12490 /* Override any GCC internal prototype to avoid an error.
12491 Use char because int might match the return type of a GCC
12492 builtin and then its argument prototype would still apply. */
12493 char pthread_create ();
12497 return pthread_create ();
12502 for ac_lib in '' pthread
12504 if test -z "$ac_lib"; then
12505 ac_res="none required"
12508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12510 if ac_fn_c_try_link "$LINENO"
12512 ac_cv_search_pthread_create=$ac_res
12514 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12516 if test ${ac_cv_search_pthread_create+y}
12521 if test ${ac_cv_search_pthread_create+y}
12525 ac_cv_search_pthread_create=no
12527 rm conftest.$ac_ext
12528 LIBS=$ac_func_search_save_LIBS
12530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
12531 printf "%s\n" "$ac_cv_search_pthread_create" >&6; }
12532 ac_res=$ac_cv_search_pthread_create
12533 if test "$ac_res" != no
12535 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
12540 printf %s "checking for library containing pthread_mutexattr_init... " >&6; }
12541 if test ${ac_cv_search_pthread_mutexattr_init+y}
12543 printf %s "(cached) " >&6
12545 ac_func_search_save_LIBS=$LIBS
12546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12547 /* end confdefs.h. */
12549 /* Override any GCC internal prototype to avoid an error.
12550 Use char because int might match the return type of a GCC
12551 builtin and then its argument prototype would still apply. */
12552 char pthread_mutexattr_init ();
12556 return pthread_mutexattr_init ();
12561 for ac_lib in '' pthread
12563 if test -z "$ac_lib"; then
12564 ac_res="none required"
12567 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12569 if ac_fn_c_try_link "$LINENO"
12571 ac_cv_search_pthread_mutexattr_init=$ac_res
12573 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12575 if test ${ac_cv_search_pthread_mutexattr_init+y}
12580 if test ${ac_cv_search_pthread_mutexattr_init+y}
12584 ac_cv_search_pthread_mutexattr_init=no
12586 rm conftest.$ac_ext
12587 LIBS=$ac_func_search_save_LIBS
12589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
12590 printf "%s\n" "$ac_cv_search_pthread_mutexattr_init" >&6; }
12591 ac_res=$ac_cv_search_pthread_mutexattr_init
12592 if test "$ac_res" != no
12594 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12601 # Which crypto library do we use
12604 # Check whether --with-crypto-lib was given.
12605 if test ${with_crypto_lib+y}
12607 withval=$with_crypto_lib; crypto_lib=$withval
12610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypto library to use" >&5
12611 printf %s "checking for crypto library to use... " >&6; }
12612 if test "$crypto_lib" = "none"; then
12613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12614 printf "%s\n" "none" >&6; }
12616 if test "$crypto_lib" = "commoncrypto"; then
12617 CFLAGS="$CFLAGS -DSQLCIPHER_CRYPTO_CC"
12618 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_CC"
12619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: commoncrypto" >&5
12620 printf "%s\n" "commoncrypto" >&6; }
12622 if test "$crypto_lib" = "libtomcrypt"; then
12623 CFLAGS="$CFLAGS -DSQLCIPHER_CRYPTO_LIBTOMCRYPT"
12624 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_LIBTOMCRYPT"
12625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libtomcrypt" >&5
12626 printf "%s\n" "libtomcrypt" >&6; }
12627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for register_cipher in -ltomcrypt" >&5
12628 printf %s "checking for register_cipher in -ltomcrypt... " >&6; }
12629 if test ${ac_cv_lib_tomcrypt_register_cipher+y}
12631 printf %s "(cached) " >&6
12633 ac_check_lib_save_LIBS=$LIBS
12634 LIBS="-ltomcrypt $LIBS"
12635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12636 /* end confdefs.h. */
12638 /* Override any GCC internal prototype to avoid an error.
12639 Use char because int might match the return type of a GCC
12640 builtin and then its argument prototype would still apply. */
12641 char register_cipher ();
12645 return register_cipher ();
12650 if ac_fn_c_try_link "$LINENO"
12652 ac_cv_lib_tomcrypt_register_cipher=yes
12654 ac_cv_lib_tomcrypt_register_cipher=no
12656 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12657 conftest$ac_exeext conftest.$ac_ext
12658 LIBS=$ac_check_lib_save_LIBS
12660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tomcrypt_register_cipher" >&5
12661 printf "%s\n" "$ac_cv_lib_tomcrypt_register_cipher" >&6; }
12662 if test "x$ac_cv_lib_tomcrypt_register_cipher" = xyes
12664 printf "%s\n" "#define HAVE_LIBTOMCRYPT 1" >>confdefs.h
12666 LIBS="-ltomcrypt $LIBS"
12669 as_fn_error $? "Library crypto not found. Install libtomcrypt!\"" "$LINENO" 5
12673 if test "$crypto_lib" = "nss"; then
12674 CFLAGS="$CFLAGS -DSQLCIPHER_CRYPTO_NSS"
12675 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_NSS"
12676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: nss3" >&5
12677 printf "%s\n" "nss3" >&6; }
12678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PK11_Decrypt in -lnss3" >&5
12679 printf %s "checking for PK11_Decrypt in -lnss3... " >&6; }
12680 if test ${ac_cv_lib_nss3_PK11_Decrypt+y}
12682 printf %s "(cached) " >&6
12684 ac_check_lib_save_LIBS=$LIBS
12685 LIBS="-lnss3 $LIBS"
12686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12687 /* end confdefs.h. */
12689 /* Override any GCC internal prototype to avoid an error.
12690 Use char because int might match the return type of a GCC
12691 builtin and then its argument prototype would still apply. */
12692 char PK11_Decrypt ();
12696 return PK11_Decrypt ();
12701 if ac_fn_c_try_link "$LINENO"
12703 ac_cv_lib_nss3_PK11_Decrypt=yes
12705 ac_cv_lib_nss3_PK11_Decrypt=no
12707 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12708 conftest$ac_exeext conftest.$ac_ext
12709 LIBS=$ac_check_lib_save_LIBS
12711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_Decrypt" >&5
12712 printf "%s\n" "$ac_cv_lib_nss3_PK11_Decrypt" >&6; }
12713 if test "x$ac_cv_lib_nss3_PK11_Decrypt" = xyes
12715 printf "%s\n" "#define HAVE_LIBNSS3 1" >>confdefs.h
12717 LIBS="-lnss3 $LIBS"
12720 as_fn_error $? "Library crypto not found. Install nss!\"" "$LINENO" 5
12724 CFLAGS="$CFLAGS -DSQLCIPHER_CRYPTO_OPENSSL"
12725 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_OPENSSL"
12726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: openssl" >&5
12727 printf "%s\n" "openssl" >&6; }
12728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
12729 printf %s "checking for HMAC_Init_ex in -lcrypto... " >&6; }
12730 if test ${ac_cv_lib_crypto_HMAC_Init_ex+y}
12732 printf %s "(cached) " >&6
12734 ac_check_lib_save_LIBS=$LIBS
12735 LIBS="-lcrypto $LIBS"
12736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12737 /* end confdefs.h. */
12739 /* Override any GCC internal prototype to avoid an error.
12740 Use char because int might match the return type of a GCC
12741 builtin and then its argument prototype would still apply. */
12742 char HMAC_Init_ex ();
12746 return HMAC_Init_ex ();
12751 if ac_fn_c_try_link "$LINENO"
12753 ac_cv_lib_crypto_HMAC_Init_ex=yes
12755 ac_cv_lib_crypto_HMAC_Init_ex=no
12757 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12758 conftest$ac_exeext conftest.$ac_ext
12759 LIBS=$ac_check_lib_save_LIBS
12761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
12762 printf "%s\n" "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
12763 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes
12765 printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12767 LIBS="-lcrypto $LIBS"
12770 as_fn_error $? "Library crypto not found. Install openssl!\"" "$LINENO" 5
12779 # Do we want to allow a connection created in one thread to be used
12780 # in another thread. This does not work on many Linux systems (ex: RedHat 9)
12781 # due to bugs in the threading implementations. This is thus off by default.
12783 # Check whether --enable-cross-thread-connections was given.
12784 if test ${enable_cross_thread_connections+y}
12786 enableval=$enable_cross_thread_connections;
12788 enable_xthreadconnect=no
12791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to allow connections to be shared across threads" >&5
12792 printf %s "checking whether to allow connections to be shared across threads... " >&6; }
12793 if test "$enable_xthreadconnect" = "no"; then
12795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796 printf "%s\n" "no" >&6; }
12798 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
12799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12800 printf "%s\n" "yes" >&6; }
12805 # Do we want to support release
12807 # Check whether --enable-releasemode was given.
12808 if test ${enable_releasemode+y}
12810 enableval=$enable_releasemode;
12812 enable_releasemode=no
12815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
12816 printf %s "checking whether to support shared library linked as release mode or not... " >&6; }
12817 if test "$enable_releasemode" = "no"; then
12819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12820 printf "%s\n" "no" >&6; }
12822 ALLOWRELEASE="-release `cat $srcdir/VERSION
`"
12823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12824 printf "%s\n" "yes" >&6; }
12829 # Do we want temporary databases in memory
12831 # Check whether --enable-tempstore was given.
12832 if test ${enable_tempstore+y}
12834 enableval=$enable_tempstore;
12836 enable_tempstore=no
12839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
12840 printf %s "checking whether to use an in-ram database for temporary tables... " >&6; }
12841 case "$enable_tempstore" in
12844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: never" >&5
12845 printf "%s\n" "never" >&6; }
12849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850 printf "%s\n" "no" >&6; }
12854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12855 printf "%s\n" "yes" >&6; }
12859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: always" >&5
12860 printf "%s\n" "always" >&6; }
12864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12865 printf "%s\n" "no" >&6; }
12872 # Lots of things are different if we are compiling for Windows using
12873 # the CYGWIN environment. So check for that special case and handle
12874 # things accordingly.
12876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
12877 printf %s "checking if executables have the .exe suffix... " >&6; }
12878 if test "$config_BUILD_EXEEXT" = ".exe"; then
12880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12881 printf "%s\n" "yes" >&6; }
12883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12884 printf "%s\n" "unknown" >&6; }
12886 if test "$CYGWIN" != "yes"; then
12889 *cygwin* ) CYGWIN=yes;;
12894 if test "$CYGWIN" = "yes"; then
12897 BUILD_EXEEXT=$EXEEXT
12899 if test x"$cross_compiling" = xno; then
12900 TARGET_EXEEXT=$BUILD_EXEEXT
12902 TARGET_EXEEXT=$config_TARGET_EXEEXT
12904 if test "$TARGET_EXEEXT" = ".exe"; then
12907 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
12911 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
12920 # Figure out all the parameters needed to compile against Tcl.
12922 # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
12923 # macros in the in the tcl.m4 file of the standard TCL distribution.
12924 # Those macros could not be used directly since we have to make some
12925 # minor changes to accomodate systems that do not have TCL installed.
12927 # Check whether --enable-tcl was given.
12928 if test ${enable_tcl+y}
12930 enableval=$enable_tcl; use_tcl=$enableval
12935 if test "${use_tcl}" = "yes" ; then
12937 # Check whether --with-tcl was given.
12938 if test ${with_tcl+y}
12940 withval=$with_tcl; with_tclconfig=${withval}
12943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
12944 printf %s "checking for Tcl configuration... " >&6; }
12945 if test ${ac_cv_c_tclconfig+y}
12947 printf %s "(cached) " >&6
12950 # First check to see if --with-tcl was specified.
12951 if test x"${with_tclconfig}" != x ; then
12952 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12953 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
12955 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
12959 # Start autosearch by asking tclsh
12960 if test x"${ac_cv_c_tclconfig}" = x ; then
12961 if test x"$cross_compiling" = xno; then
12962 for i in `echo 'puts stdout $auto_path' |
${TCLSH_CMD}`
12964 if test -f "$i/tclConfig.sh" ; then
12965 ac_cv_c_tclconfig="$i"
12972 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
12973 # So try again after applying corrections.
12974 if test x"${ac_cv_c_tclconfig}" = x ; then
12975 if test x"$cross_compiling" = xno; then
12976 for i in `echo 'puts stdout $auto_path' |
${TCLSH_CMD} |
sed 's,/tcltk/tcl,/tcl,g'`
12978 if test -f "$i/tclConfig.sh" ; then
12979 ac_cv_c_tclconfig="$i"
12986 # Recent versions of Xcode on Macs hid the tclConfig.sh file
12987 # in a strange place.
12988 if test x"${ac_cv_c_tclconfig}" = x ; then
12989 if test x"$cross_compiling" = xno; then
12990 for i in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.sdk/usr/lib
12992 if test -f "$i/tclConfig.sh" ; then
12993 ac_cv_c_tclconfig="$i"
13000 # then check for a private Tcl installation
13001 if test x"${ac_cv_c_tclconfig}" = x ; then
13004 `ls -dr ..
/tcl
[8-9].
[0-9].
[0-9]* 2>/dev
/null
` \
13005 `ls -dr ..
/tcl
[8-9].
[0-9] 2>/dev
/null
` \
13006 `ls -dr ..
/tcl
[8-9].
[0-9]* 2>/dev
/null
` \
13008 `ls -dr ..
/..
/tcl
[8-9].
[0-9].
[0-9]* 2>/dev
/null
` \
13009 `ls -dr ..
/..
/tcl
[8-9].
[0-9] 2>/dev
/null
` \
13010 `ls -dr ..
/..
/tcl
[8-9].
[0-9]* 2>/dev
/null
` \
13012 `ls -dr ..
/..
/..
/tcl
[8-9].
[0-9].
[0-9]* 2>/dev
/null
` \
13013 `ls -dr ..
/..
/..
/tcl
[8-9].
[0-9] 2>/dev
/null
` \
13014 `ls -dr ..
/..
/..
/tcl
[8-9].
[0-9]* 2>/dev
/null
`
13016 if test -f "$i/unix/tclConfig.sh" ; then
13017 ac_cv_c_tclconfig=`(cd $i/unix
; pwd)`
13023 # check in a few common install locations
13024 if test x"${ac_cv_c_tclconfig}" = x ; then
13026 `ls -d ${libdir} 2>/dev
/null
` \
13027 `ls -d /usr
/local
/lib
2>/dev
/null
` \
13028 `ls -d /usr
/contrib
/lib
2>/dev
/null
` \
13029 `ls -d /usr
/lib
2>/dev
/null
`
13031 if test -f "$i/tclConfig.sh" ; then
13032 ac_cv_c_tclconfig=`(cd $i; pwd)`
13038 # check in a few other private locations
13039 if test x"${ac_cv_c_tclconfig}" = x ; then
13042 `ls -dr ${srcdir}/..
/tcl
[8-9].
[0-9].
[0-9]* 2>/dev
/null
` \
13043 `ls -dr ${srcdir}/..
/tcl
[8-9].
[0-9] 2>/dev
/null
` \
13044 `ls -dr ${srcdir}/..
/tcl
[8-9].
[0-9]* 2>/dev
/null
`
13046 if test -f "$i/unix/tclConfig.sh" ; then
13047 ac_cv_c_tclconfig=`(cd $i/unix
; pwd)`
13056 if test x"${ac_cv_c_tclconfig}" = x ; then
13058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
13059 printf "%s\n" "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
13060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
13061 printf "%s\n" "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
13062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
13063 printf "%s\n" "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
13065 TCL_BIN_DIR=${ac_cv_c_tclconfig}
13066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
13067 printf "%s\n" "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
13069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
13070 printf %s "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
13071 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
13072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: loading" >&5
13073 printf "%s\n" "loading" >&6; }
13074 . $TCL_BIN_DIR/tclConfig.sh
13076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
13077 printf "%s\n" "file not found" >&6; }
13081 # If the TCL_BIN_DIR is the build directory (not the install directory),
13082 # then set the common variable name to the value of the build variables.
13083 # For example, the variable TCL_LIB_SPEC will be set to the value
13084 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
13085 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
13086 # installed and uninstalled version of Tcl.
13089 if test -f $TCL_BIN_DIR/Makefile ; then
13090 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
13091 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
13092 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
13096 # eval is required to do the TCL_DBGX substitution
13099 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
13100 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
13101 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
13103 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
13104 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
13105 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
13122 if test "${use_tcl}" = "no" ; then
13130 # Figure out what C libraries are required to compile programs
13131 # that use "readline()" library.
13133 TARGET_READLINE_LIBS=""
13134 TARGET_READLINE_INC=""
13135 TARGET_HAVE_READLINE=0
13136 TARGET_HAVE_EDITLINE=0
13137 # Check whether --enable-editline was given.
13138 if test ${enable_editline+y}
13140 enableval=$enable_editline; with_editline=$enableval
13145 # Check whether --enable-readline was given.
13146 if test ${enable_readline+y}
13148 enableval=$enable_readline; with_readline=$enableval
13154 if test x"$with_editline" != xno; then
13157 TARGET_HAVE_EDITLINE=1
13158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
13159 printf %s "checking for library containing readline... " >&6; }
13160 if test ${ac_cv_search_readline+y}
13162 printf %s "(cached) " >&6
13164 ac_func_search_save_LIBS=$LIBS
13165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166 /* end confdefs.h. */
13168 /* Override any GCC internal prototype to avoid an error.
13169 Use char because int might match the return type of a GCC
13170 builtin and then its argument prototype would still apply. */
13175 return readline ();
13180 for ac_lib in '' edit
13182 if test -z "$ac_lib"; then
13183 ac_res="none required"
13186 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13188 if ac_fn_c_try_link "$LINENO"
13190 ac_cv_search_readline=$ac_res
13192 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13194 if test ${ac_cv_search_readline+y}
13199 if test ${ac_cv_search_readline+y}
13203 ac_cv_search_readline=no
13205 rm conftest.$ac_ext
13206 LIBS=$ac_func_search_save_LIBS
13208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
13209 printf "%s\n" "$ac_cv_search_readline" >&6; }
13210 ac_res=$ac_cv_search_readline
13211 if test "$ac_res" != no
13213 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13216 TARGET_HAVE_EDITLINE=0
13219 TARGET_READLINE_LIBS=$LIBS
13222 if test x"$with_readline" != xno; then
13226 # Check whether --with-readline-lib was given.
13227 if test ${with_readline_lib+y}
13229 withval=$with_readline_lib; with_readline_lib=$withval
13231 with_readline_lib="auto"
13234 if test "x$with_readline_lib" = xauto; then
13237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13238 printf %s "checking for library containing tgetent... " >&6; }
13239 if test ${ac_cv_search_tgetent+y}
13241 printf %s "(cached) " >&6
13243 ac_func_search_save_LIBS=$LIBS
13244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13245 /* end confdefs.h. */
13247 /* Override any GCC internal prototype to avoid an error.
13248 Use char because int might match the return type of a GCC
13249 builtin and then its argument prototype would still apply. */
13259 for ac_lib in '' readline ncurses curses termcap
13261 if test -z "$ac_lib"; then
13262 ac_res="none required"
13265 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13267 if ac_fn_c_try_link "$LINENO"
13269 ac_cv_search_tgetent=$ac_res
13271 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13273 if test ${ac_cv_search_tgetent+y}
13278 if test ${ac_cv_search_tgetent+y}
13282 ac_cv_search_tgetent=no
13284 rm conftest.$ac_ext
13285 LIBS=$ac_func_search_save_LIBS
13287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13288 printf "%s\n" "$ac_cv_search_tgetent" >&6; }
13289 ac_res=$ac_cv_search_tgetent
13290 if test "$ac_res" != no
13292 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13299 printf %s "checking for readline in -lreadline... " >&6; }
13300 if test ${ac_cv_lib_readline_readline+y}
13302 printf %s "(cached) " >&6
13304 ac_check_lib_save_LIBS=$LIBS
13305 LIBS="-lreadline $LIBS"
13306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13307 /* end confdefs.h. */
13309 /* Override any GCC internal prototype to avoid an error.
13310 Use char because int might match the return type of a GCC
13311 builtin and then its argument prototype would still apply. */
13316 return readline ();
13321 if ac_fn_c_try_link "$LINENO"
13323 ac_cv_lib_readline_readline=yes
13325 ac_cv_lib_readline_readline=no
13327 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13328 conftest$ac_exeext conftest.$ac_ext
13329 LIBS=$ac_check_lib_save_LIBS
13331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
13332 printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
13333 if test "x$ac_cv_lib_readline_readline" = xyes
13335 TARGET_READLINE_LIBS="-lreadline"
13340 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
13343 TARGET_READLINE_LIBS="$with_readline_lib"
13347 # Check whether --with-readline-inc was given.
13348 if test ${with_readline_inc+y}
13350 withval=$with_readline_inc; with_readline_inc=$withval
13352 with_readline_inc="auto"
13355 if test "x$with_readline_inc" = xauto; then
13356 ac_fn_c_check_header_compile "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
13357 if test "x$ac_cv_header_readline_h" = xyes
13363 if test "$cross_compiling" != yes; then
13364 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
13365 for subdir in include include/readline; do
13366 as_ac_File=`printf "%s\n" "ac_cv_file_$dir/$subdir/readline.h" |
$as_tr_sh`
13367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
13368 printf %s "checking for $dir/$subdir/readline.h... " >&6; }
13369 if eval test \${$as_ac_File+y}
13371 printf %s "(cached) " >&6
13373 test "$cross_compiling" = yes &&
13374 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
13375 if test -r "$dir/$subdir/readline.h"; then
13376 eval "$as_ac_File=yes"
13378 eval "$as_ac_File=no"
13381 eval ac_res=\$$as_ac_File
13382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13383 printf "%s\n" "$ac_res" >&6; }
13384 if eval test \"x\$"$as_ac_File"\" = x"yes"
13389 if test "$found" = "yes"; then
13390 TARGET_READLINE_INC="-I$dir/$subdir"
13394 test "$found" = "yes" && break
13401 TARGET_READLINE_INC="$with_readline_inc"
13404 if test x"$found" = xno; then
13405 TARGET_READLINE_LIBS=""
13406 TARGET_READLINE_INC=""
13407 TARGET_HAVE_READLINE=0
13409 TARGET_HAVE_READLINE=1
13413 # Check whether --with-linenoise was given.
13414 if test ${with_linenoise+y}
13416 withval=$with_linenoise; with_linenoise=$withval
13418 with_linenoise="no"
13421 if test "x$with_linenoise" != "xno"; then
13422 TARGET_HAVE_READLINE=0
13423 TARGET_HAVE_EDITLINE=0
13424 TARGET_HAVE_LINENOISE=1
13425 TARGET_READLINE_INC="-I${with_linenoise}"
13426 TARGET_READLINE_LIBS="${with_linenoise}/linenoise.c"
13427 echo "using linenoise source code at ${with_linenoise}"
13429 TARGET_HAVE_LINENOISE=0
13430 echo "not using linenoise"
13441 # Figure out what C libraries are required to compile programs
13442 # that use "fdatasync()" function.
13444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
13445 printf %s "checking for library containing fdatasync... " >&6; }
13446 if test ${ac_cv_search_fdatasync+y}
13448 printf %s "(cached) " >&6
13450 ac_func_search_save_LIBS=$LIBS
13451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13452 /* end confdefs.h. */
13454 /* Override any GCC internal prototype to avoid an error.
13455 Use char because int might match the return type of a GCC
13456 builtin and then its argument prototype would still apply. */
13461 return fdatasync ();
13466 for ac_lib in '' rt
13468 if test -z "$ac_lib"; then
13469 ac_res="none required"
13472 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13474 if ac_fn_c_try_link "$LINENO"
13476 ac_cv_search_fdatasync=$ac_res
13478 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13480 if test ${ac_cv_search_fdatasync+y}
13485 if test ${ac_cv_search_fdatasync+y}
13489 ac_cv_search_fdatasync=no
13491 rm conftest.$ac_ext
13492 LIBS=$ac_func_search_save_LIBS
13494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
13495 printf "%s\n" "$ac_cv_search_fdatasync" >&6; }
13496 ac_res=$ac_cv_search_fdatasync
13497 if test "$ac_res" != no
13499 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13505 # check for debug enabled
13506 # Check whether --enable-debug was given.
13507 if test ${enable_debug+y}
13509 enableval=$enable_debug;
13512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build type" >&5
13513 printf %s "checking build type... " >&6; }
13514 if test "${enable_debug}" = "yes" ; then
13515 TARGET_DEBUG="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0 -Wall"
13516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: debug" >&5
13517 printf "%s\n" "debug" >&6; }
13519 TARGET_DEBUG="-DNDEBUG"
13520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: release" >&5
13521 printf "%s\n" "release" >&6; }
13526 # See whether we should use the amalgamation to build
13528 # Check whether --enable-amalgamation was given.
13529 if test ${enable_amalgamation+y}
13531 enableval=$enable_amalgamation;
13534 if test "${enable_amalgamation}" = "no" ; then
13540 # By default, amalgamation sqlite3.c will have #line directives.
13541 # This is a build option not shown by ./configure --help
13542 # To control it, use configure option: amalgamation_line_macros=?
13543 # where ? is no to suppress #line directives or yes to create them.
13544 AMALGAMATION_LINE_MACROS=--linemacros=1
13547 if test "${amalgamation_line_macros+set}" = set; then :
13548 enableval=$amalgamation_line_macros;
13550 if test "${amalgamation_line_macros}" = "yes" ; then
13551 AMALGAMATION_LINE_MACROS=--linemacros=1
13553 if test "${amalgamation_line_macros}" = "no" ; then
13554 AMALGAMATION_LINE_MACROS=--linemacros=0
13558 # Look for zlib. Only needed by extensions and by the sqlite3.exe shell
13559 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13560 if test "x$ac_cv_header_zlib_h" = xyes
13562 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
13566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
13567 printf %s "checking for library containing deflate... " >&6; }
13568 if test ${ac_cv_search_deflate+y}
13570 printf %s "(cached) " >&6
13572 ac_func_search_save_LIBS=$LIBS
13573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13574 /* end confdefs.h. */
13576 /* Override any GCC internal prototype to avoid an error.
13577 Use char because int might match the return type of a GCC
13578 builtin and then its argument prototype would still apply. */
13590 if test -z "$ac_lib"; then
13591 ac_res="none required"
13594 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13596 if ac_fn_c_try_link "$LINENO"
13598 ac_cv_search_deflate=$ac_res
13600 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13602 if test ${ac_cv_search_deflate+y}
13607 if test ${ac_cv_search_deflate+y}
13611 ac_cv_search_deflate=no
13613 rm conftest.$ac_ext
13614 LIBS=$ac_func_search_save_LIBS
13616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
13617 printf "%s\n" "$ac_cv_search_deflate" >&6; }
13618 ac_res=$ac_cv_search_deflate
13619 if test "$ac_res" != no
13621 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13622 HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1"
13630 # See whether we should allow loadable extensions
13631 # Check whether --enable-load-extension was given.
13632 if test ${enable_load_extension+y}
13634 enableval=$enable_load_extension;
13636 enable_load_extension=yes
13639 if test "${enable_load_extension}" = "yes" ; then
13640 OPT_FEATURE_FLAGS=""
13641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13642 printf %s "checking for library containing dlopen... " >&6; }
13643 if test ${ac_cv_search_dlopen+y}
13645 printf %s "(cached) " >&6
13647 ac_func_search_save_LIBS=$LIBS
13648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13649 /* end confdefs.h. */
13651 /* Override any GCC internal prototype to avoid an error.
13652 Use char because int might match the return type of a GCC
13653 builtin and then its argument prototype would still apply. */
13663 for ac_lib in '' dl
13665 if test -z "$ac_lib"; then
13666 ac_res="none required"
13669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13671 if ac_fn_c_try_link "$LINENO"
13673 ac_cv_search_dlopen=$ac_res
13675 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13677 if test ${ac_cv_search_dlopen+y}
13682 if test ${ac_cv_search_dlopen+y}
13686 ac_cv_search_dlopen=no
13688 rm conftest.$ac_ext
13689 LIBS=$ac_func_search_save_LIBS
13691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13692 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
13693 ac_res=$ac_cv_search_dlopen
13694 if test "$ac_res" != no
13696 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13701 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
13705 # Do we want to support math functions
13707 # Check whether --enable-math was given.
13708 if test ${enable_math+y}
13710 enableval=$enable_math;
13713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support math functions" >&5
13714 printf %s "checking whether to support math functions... " >&6; }
13715 if test "$enable_math" = "no"; then
13716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13717 printf "%s\n" "no" >&6; }
13719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13720 printf "%s\n" "yes" >&6; }
13721 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MATH_FUNCTIONS"
13722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5
13723 printf %s "checking for library containing ceil... " >&6; }
13724 if test ${ac_cv_search_ceil+y}
13726 printf %s "(cached) " >&6
13728 ac_func_search_save_LIBS=$LIBS
13729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13730 /* end confdefs.h. */
13732 /* Override any GCC internal prototype to avoid an error.
13733 Use char because int might match the return type of a GCC
13734 builtin and then its argument prototype would still apply. */
13746 if test -z "$ac_lib"; then
13747 ac_res="none required"
13750 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13752 if ac_fn_c_try_link "$LINENO"
13754 ac_cv_search_ceil=$ac_res
13756 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13758 if test ${ac_cv_search_ceil+y}
13763 if test ${ac_cv_search_ceil+y}
13767 ac_cv_search_ceil=no
13769 rm conftest.$ac_ext
13770 LIBS=$ac_func_search_save_LIBS
13772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5
13773 printf "%s\n" "$ac_cv_search_ceil" >&6; }
13774 ac_res=$ac_cv_search_ceil
13775 if test "$ac_res" != no
13777 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13784 # Do we want to support JSON functions
13786 # Check whether --enable-json was given.
13787 if test ${enable_json+y}
13789 enableval=$enable_json;
13792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support JSON functions" >&5
13793 printf %s "checking whether to support JSON functions... " >&6; }
13794 if test "$enable_json" = "no"; then
13795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13796 printf "%s\n" "no" >&6; }
13797 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_OMIT_JSON"
13799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13800 printf "%s\n" "yes" >&6; }
13804 # The --enable-all argument is short-hand to enable
13805 # multiple extensions.
13806 # Check whether --enable-all was given.
13807 if test ${enable_all+y}
13809 enableval=$enable_all;
13814 # Do we want to support memsys3 and/or memsys5
13816 # Check whether --enable-memsys5 was given.
13817 if test ${enable_memsys5+y}
13819 enableval=$enable_memsys5;
13822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5
13823 printf %s "checking whether to support MEMSYS5... " >&6; }
13824 if test "${enable_memsys5}" = "yes"; then
13825 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5"
13826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13827 printf "%s\n" "yes" >&6; }
13829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13830 printf "%s\n" "no" >&6; }
13832 # Check whether --enable-memsys3 was given.
13833 if test ${enable_memsys3+y}
13835 enableval=$enable_memsys3;
13838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5
13839 printf %s "checking whether to support MEMSYS3... " >&6; }
13840 if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then
13841 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3"
13842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13843 printf "%s\n" "yes" >&6; }
13845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13846 printf "%s\n" "no" >&6; }
13850 # See whether we should enable Full Text Search extensions
13851 # Check whether --enable-fts3 was given.
13852 if test ${enable_fts3+y}
13854 enableval=$enable_fts3;
13857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support FTS3" >&5
13858 printf %s "checking whether to support FTS3... " >&6; }
13859 if test "${enable_fts3}" = "yes" ; then
13860 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3"
13861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13862 printf "%s\n" "yes" >&6; }
13864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13865 printf "%s\n" "no" >&6; }
13867 # Check whether --enable-fts4 was given.
13868 if test ${enable_fts4+y}
13870 enableval=$enable_fts4;
13873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support FTS4" >&5
13874 printf %s "checking whether to support FTS4... " >&6; }
13875 if test "${enable_fts4}" = "yes" -o "${enable_all}" = "yes" ; then
13876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13877 printf "%s\n" "yes" >&6; }
13878 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4"
13879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
13880 printf %s "checking for library containing log... " >&6; }
13881 if test ${ac_cv_search_log+y}
13883 printf %s "(cached) " >&6
13885 ac_func_search_save_LIBS=$LIBS
13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887 /* end confdefs.h. */
13889 /* Override any GCC internal prototype to avoid an error.
13890 Use char because int might match the return type of a GCC
13891 builtin and then its argument prototype would still apply. */
13903 if test -z "$ac_lib"; then
13904 ac_res="none required"
13907 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13909 if ac_fn_c_try_link "$LINENO"
13911 ac_cv_search_log=$ac_res
13913 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13915 if test ${ac_cv_search_log+y}
13920 if test ${ac_cv_search_log+y}
13924 ac_cv_search_log=no
13926 rm conftest.$ac_ext
13927 LIBS=$ac_func_search_save_LIBS
13929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
13930 printf "%s\n" "$ac_cv_search_log" >&6; }
13931 ac_res=$ac_cv_search_log
13932 if test "$ac_res" != no
13934 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13940 printf "%s\n" "no" >&6; }
13942 # Check whether --enable-fts5 was given.
13943 if test ${enable_fts5+y}
13945 enableval=$enable_fts5;
13948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support FTS5" >&5
13949 printf %s "checking whether to support FTS5... " >&6; }
13950 if test "${enable_fts5}" = "yes" -o "${enable_all}" = "yes" ; then
13951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13952 printf "%s\n" "yes" >&6; }
13953 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5"
13954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
13955 printf %s "checking for library containing log... " >&6; }
13956 if test ${ac_cv_search_log+y}
13958 printf %s "(cached) " >&6
13960 ac_func_search_save_LIBS=$LIBS
13961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13962 /* end confdefs.h. */
13964 /* Override any GCC internal prototype to avoid an error.
13965 Use char because int might match the return type of a GCC
13966 builtin and then its argument prototype would still apply. */
13978 if test -z "$ac_lib"; then
13979 ac_res="none required"
13982 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13984 if ac_fn_c_try_link "$LINENO"
13986 ac_cv_search_log=$ac_res
13988 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13990 if test ${ac_cv_search_log+y}
13995 if test ${ac_cv_search_log+y}
13999 ac_cv_search_log=no
14001 rm conftest.$ac_ext
14002 LIBS=$ac_func_search_save_LIBS
14004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
14005 printf "%s\n" "$ac_cv_search_log" >&6; }
14006 ac_res=$ac_cv_search_log
14007 if test "$ac_res" != no
14009 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14015 printf "%s\n" "no" >&6; }
14019 # See whether we should enable the LIMIT clause on UPDATE and DELETE
14021 # Check whether --enable-update-limit was given.
14022 if test ${enable_update_limit+y}
14024 enableval=$enable_update_limit;
14027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support LIMIT on UPDATE and DELETE statements" >&5
14028 printf %s "checking whether to support LIMIT on UPDATE and DELETE statements... " >&6; }
14029 if test "${enable_update_limit}" = "yes" ; then
14030 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT"
14031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14032 printf "%s\n" "yes" >&6; }
14034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14035 printf "%s\n" "no" >&6; }
14039 # See whether we should enable GEOPOLY
14040 # Check whether --enable-geopoly was given.
14041 if test ${enable_geopoly+y}
14043 enableval=$enable_geopoly; enable_geopoly=yes
14048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support GEOPOLY" >&5
14049 printf %s "checking whether to support GEOPOLY... " >&6; }
14050 if test "${enable_geopoly}" = "yes" -o "${enable_all}" = "yes" ; then
14051 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_GEOPOLY"
14053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14054 printf "%s\n" "yes" >&6; }
14056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14057 printf "%s\n" "no" >&6; }
14061 # See whether we should enable RTREE
14062 # Check whether --enable-rtree was given.
14063 if test ${enable_rtree+y}
14065 enableval=$enable_rtree;
14068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support RTREE" >&5
14069 printf %s "checking whether to support RTREE... " >&6; }
14070 if test "${enable_rtree}" = "yes" ; then
14071 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE"
14072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14073 printf "%s\n" "yes" >&6; }
14075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14076 printf "%s\n" "no" >&6; }
14080 # See whether we should enable the SESSION extension
14081 # Check whether --enable-session was given.
14082 if test ${enable_session+y}
14084 enableval=$enable_session;
14087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support SESSION" >&5
14088 printf %s "checking whether to support SESSION... " >&6; }
14089 if test "${enable_session}" = "yes" -o "${enable_all}" = "yes" ; then
14090 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION"
14091 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK"
14092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14093 printf "%s\n" "yes" >&6; }
14095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14096 printf "%s\n" "no" >&6; }
14100 # attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter
14101 for option in $CFLAGS $CPPFLAGS
14104 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
14105 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
14111 # attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
14113 for option in $CFLAGS
14117 -DSQLITE_ENABLE*) ;;
14118 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
14121 CFLAGS=$ac_temp_CFLAGS
14124 # attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
14125 ac_temp_CPPFLAGS=""
14126 for option in $CPPFLAGS
14130 -DSQLITE_ENABLE*) ;;
14131 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
14134 CPPFLAGS=$ac_temp_CPPFLAGS
14137 # attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
14138 ac_temp_BUILD_CFLAGS=""
14139 for option in $BUILD_CFLAGS
14143 -DSQLITE_ENABLE*) ;;
14144 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
14147 BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
14151 # See whether we should use GCOV
14152 # Check whether --enable-gcov was given.
14153 if test ${enable_gcov+y}
14155 enableval=$enable_gcov;
14158 if test "${use_gcov}" = "yes" ; then
14166 # Enable/disabled amalagamation line macros
14168 AMALGAMATION_LINE_MACROS=--linemacros=0
14169 if test "${amalgamation_line_macros}" = "yes" ; then
14170 AMALGAMATION_LINE_MACROS=--linemacros=1
14172 if test "${amalgamation_line_macros}" = "no" ; then
14173 AMALGAMATION_LINE_MACROS=--linemacros=0
14178 # Output the config header
14179 ac_config_headers="$ac_config_headers sqlite_cfg.h"
14183 # Generate the output files.
14186 ac_config_files="$ac_config_files Makefile sqlcipher.pc"
14188 cat >confcache <<\_ACEOF
14189 # This file is a shell script that caches the results of configure
14190 # tests run on this system so they can be shared between configure
14191 # scripts and configure runs, see configure's option --config-cache.
14192 # It is not useful on other systems. If it contains results you don't
14193 # want to keep, you may remove or edit it.
14195 # config.status only pays attention to the cache file if you give it
14196 # the --recheck option to rerun configure.
14198 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
14199 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14200 # following values.
14204 # The following way of writing the cache mishandles newlines in values,
14205 # but we know of no workaround that is simple, portable, and efficient.
14206 # So, we kill variables containing newlines.
14207 # Ultrix sh set writes to stderr and can't be redirected directly,
14208 # and sets the high bit in the cache file unless we assign to the vars.
14210 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14211 eval ac_val
=\$
$ac_var
14215 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14216 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14219 _ | IFS | as_nl
) ;; #(
14220 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
14221 *) { eval $ac_var=; unset $ac_var;} ;;
14227 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14228 *${as_nl}ac_space
=\
*)
14229 # `set' does not quote correctly, so add quotes: double-quote
14230 # substitution turns \\\\ into \\, and sed turns \\ into \.
14233 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14236 # `set' quotes correctly as required by POSIX, so do not add quotes.
14237 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14246 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14248 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14250 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14251 if test -w "$cache_file"; then
14252 if test "x$cache_file" != "x/dev/null"; then
14253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14254 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14255 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
14256 cat confcache
>"$cache_file"
14258 case $cache_file in #(
14260 mv -f confcache
"$cache_file"$$
&&
14261 mv -f "$cache_file"$$
"$cache_file" ;; #(
14263 mv -f confcache
"$cache_file" ;;
14268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14269 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14274 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14275 # Let make expand exec_prefix.
14276 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14278 DEFS
=-DHAVE_CONFIG_H
14283 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14284 # 1. Remove the extension, and $U if already installed.
14285 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14286 ac_i
=`printf "%s\n" "$ac_i" | sed "$ac_script"`
14287 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14288 # will be set to the directory where LIBOBJS objects are built.
14289 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14290 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
14292 LIBOBJS
=$ac_libobjs
14294 LTLIBOBJS
=$ac_ltlibobjs
14298 : "${CONFIG_STATUS=./config.status}"
14300 ac_clean_files_save
=$ac_clean_files
14301 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14303 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
14305 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14307 # Generated by $as_me.
14308 # Run this file to recreate the current configuration.
14309 # Compiler output produced by configure, useful for debugging
14310 # configure, is in config.log if it exists.
14313 ac_cs_recheck=false
14316 SHELL=\${CONFIG_SHELL-$SHELL}
14319 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
14320 ## -------------------- ##
14321 ## M4sh Initialization. ##
14322 ## -------------------- ##
14324 # Be more Bourne compatible
14325 DUALCASE
=1; export DUALCASE
# for MKS sh
14327 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
14331 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14332 # is contrary to our usage. Disable this feature.
14333 alias -g '${1+"$@"}'='"$@"'
14334 setopt NO_GLOB_SUBST
14336 case `(set -o) 2>/dev/null` in #(
14346 # Reset variables that may have inherited troublesome values from
14349 # IFS needs to be set, to space, tab, and newline, in precisely that order.
14350 # (If _AS_PATH_WALK were called with IFS unset, it would have the
14351 # side effect of setting IFS to empty, thus disabling word splitting.)
14352 # Quoting is to prevent editors from complaining about space-tab.
14362 # Ensure predictable behavior from utilities with locale-dependent output.
14368 # We cannot yet rely on "unset" to work, but we need these variables
14369 # to be unset--not just set to an empty or harmless value--now, to
14370 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
14371 # also avoids known problems related to "unset" and subshell syntax
14372 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
14373 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
14374 do eval test \
${$as_var+y} \
14375 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
14378 # Ensure that fds 0, 1, and 2 are open.
14379 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
14380 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
14381 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
14383 # The user is always right.
14384 if ${PATH_SEPARATOR+false} :; then
14386 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
14387 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
14393 # Find who we are. Look in the path if we contain no directory separator.
14396 *[\\/]* ) as_myself
=$0 ;;
14397 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14398 for as_dir
in $PATH
14401 case $as_dir in #(((
14404 *) as_dir
=$as_dir/ ;;
14406 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
14412 # We did not find ourselves, most probably we were run as `sh COMMAND'
14413 # in which case we are not to be found in the path.
14414 if test "x$as_myself" = x
; then
14417 if test ! -f "$as_myself"; then
14418 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14425 # ----------------------------------------
14426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14428 # script with STATUS, using 1 if that was 0.
14431 as_status
=$1; test $as_status -eq 0 && as_status
=1
14433 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
14434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14436 printf "%s\n" "$as_me: error: $2" >&2
14437 as_fn_exit
$as_status
14442 # as_fn_set_status STATUS
14443 # -----------------------
14444 # Set $? to STATUS, without forking.
14445 as_fn_set_status
()
14448 } # as_fn_set_status
14450 # as_fn_exit STATUS
14451 # -----------------
14452 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14456 as_fn_set_status
$1
14462 # Portably unset VAR.
14465 { eval $1=; unset $1;}
14467 as_unset
=as_fn_unset
14469 # as_fn_append VAR VALUE
14470 # ----------------------
14471 # Append the text in VALUE to the end of the definition contained in VAR. Take
14472 # advantage of any shell optimizations that allow amortized linear growth over
14473 # repeated appends, instead of the typical quadratic growth present in naive
14475 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
14477 eval 'as_fn_append ()
14488 # as_fn_arith ARG...
14489 # ------------------
14490 # Perform arithmetic evaluation on the ARGs, and store the result in the
14491 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14492 # must be portable across $(()) and expr.
14493 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
14495 eval 'as_fn_arith ()
14502 as_val
=`expr "$@" || test $? -eq 1`
14507 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14508 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14514 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14515 as_basename
=basename
14520 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
14526 as_me
=`$as_basename -- "$0" ||
14527 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14528 X"$0" : 'X\(//\)$' \| \
14529 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14530 printf "%s\n" X/"$0" |
14531 sed '/^.*\/\([^/][^/]*\)\/*$/{
14545 # Avoid depending upon Character Ranges.
14546 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
14547 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14548 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14549 as_cr_digits
='0123456789'
14550 as_cr_alnum
=$as_cr_Letters$as_cr_digits
14553 # Determine whether it's possible to make 'echo' print without a newline.
14554 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
14555 # for compatibility with existing Makefiles.
14556 ECHO_C
= ECHO_N
= ECHO_T
=
14557 case `echo -n x` in #(((((
14559 case `echo 'xy\c'` in
14560 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14562 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
14569 # For backward compatibility with old third-party macros, we provide
14570 # the shell variables $as_echo and $as_echo_n. New code should use
14571 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
14572 as_echo
='printf %s\n'
14573 as_echo_n
='printf %s'
14575 rm -f conf$$ conf$$.exe conf$$.
file
14576 if test -d conf$$.dir
; then
14577 rm -f conf$$.dir
/conf$$.
file
14580 mkdir conf$$.dir
2>/dev
/null
14582 if (echo >conf$$.
file) 2>/dev
/null
; then
14583 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14585 # ... but there are two gotchas:
14586 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14587 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14588 # In both cases, we have to default to `cp -pR'.
14589 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
14591 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14599 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14600 rmdir conf$$.dir
2>/dev
/null
14605 # Create "$as_dir" as a directory, including parents if necessary.
14610 -*) as_dir
=.
/$as_dir;;
14612 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
14616 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14617 *) as_qdir
=$as_dir;;
14619 as_dirs
="'$as_qdir' $as_dirs"
14620 as_dir
=`$as_dirname -- "$as_dir" ||
14621 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14622 X"$as_dir" : 'X\(//\)[^/]' \| \
14623 X"$as_dir" : 'X\(//\)$' \| \
14624 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14625 printf "%s\n" X"$as_dir" |
14626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14630 /^X\(\/\/\)[^/].*/{
14643 test -d "$as_dir" && break
14645 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
14646 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
14650 if mkdir
-p .
2>/dev
/null
; then
14651 as_mkdir_p
='mkdir -p "$as_dir"'
14653 test -d .
/-p && rmdir .
/-p
14658 # as_fn_executable_p FILE
14659 # -----------------------
14660 # Test if FILE is an executable regular file.
14661 as_fn_executable_p
()
14663 test -f "$1" && test -x "$1"
14664 } # as_fn_executable_p
14665 as_test_x
='test -x'
14666 as_executable_p
=as_fn_executable_p
14668 # Sed expression to map a string onto a valid CPP name.
14669 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14671 # Sed expression to map a string onto a valid variable name.
14672 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14676 ## ----------------------------------- ##
14677 ## Main body of $CONFIG_STATUS script. ##
14678 ## ----------------------------------- ##
14680 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
14682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14683 # Save the log message, to keep $0 and so on meaningful, and to
14684 # report actual input values of CONFIG_FILES etc. instead of their
14685 # values after options handling.
14687 This file was extended by sqlcipher $as_me 3.45.0, which was
14688 generated by GNU Autoconf 2.71. Invocation command line was
14690 CONFIG_FILES = $CONFIG_FILES
14691 CONFIG_HEADERS = $CONFIG_HEADERS
14692 CONFIG_LINKS = $CONFIG_LINKS
14693 CONFIG_COMMANDS = $CONFIG_COMMANDS
14696 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14701 case $ac_config_files in *"
14702 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
14705 case $ac_config_headers in *"
14706 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
14710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14711 # Files that config.status was made for.
14712 config_files="$ac_config_files"
14713 config_headers="$ac_config_headers"
14714 config_commands="$ac_config_commands"
14718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14720 \`$as_me' instantiates files and other configuration actions
14721 from templates according to the current configuration. Unless the files
14722 and actions are specified as TAGs, all are instantiated by default.
14724 Usage: $0 [OPTION]... [TAG]...
14726 -h, --help print this help, then exit
14727 -V, --version print version number and configuration settings, then exit
14728 --config print configuration, then exit
14729 -q, --quiet, --silent
14730 do not print progress messages
14731 -d, --debug don't remove temporary files
14732 --recheck update $as_me by reconfiguring in the same conditions
14733 --file=FILE[:TEMPLATE]
14734 instantiate the configuration file FILE
14735 --header=FILE[:TEMPLATE]
14736 instantiate the configuration header FILE
14738 Configuration files:
14741 Configuration headers:
14744 Configuration commands:
14747 Report bugs to the package provider."
14750 ac_cs_config
=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
14751 ac_cs_config_escaped
=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
14752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14753 ac_cs_config='$ac_cs_config_escaped'
14755 sqlcipher config.status 3.45.0
14756 configured by $0, generated by GNU Autoconf 2.71,
14757 with options \\"\$ac_cs_config\\"
14759 Copyright (C) 2021 Free Software Foundation, Inc.
14760 This config.status script is free software; the Free Software Foundation
14761 gives unlimited permission to copy, distribute and modify it."
14767 test -n "\$AWK" || AWK=awk
14770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14771 # The default lists apply if the user does not specify any file.
14777 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14778 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14782 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14794 # Handling of the options.
14795 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14797 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
14798 printf "%s\n" "$ac_cs_version"; exit ;;
14799 --config |
--confi |
--conf |
--con |
--co |
--c )
14800 printf "%s\n" "$ac_cs_config"; exit ;;
14801 --debug |
--debu |
--deb |
--de |
--d |
-d )
14803 --file |
--fil |
--fi |
--f )
14806 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14807 '') as_fn_error $?
"missing file argument" ;;
14809 as_fn_append CONFIG_FILES
" '$ac_optarg'"
14810 ac_need_defaults
=false
;;
14811 --header |
--heade |
--head |
--hea )
14814 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14816 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
14817 ac_need_defaults
=false
;;
14819 # Conflict between --help and --header
14820 as_fn_error $?
"ambiguous option: \`$1'
14821 Try \`$0 --help' for more information.";;
14822 --help |
--hel |
-h )
14823 printf "%s\n" "$ac_cs_usage"; exit ;;
14824 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14825 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14828 # This is an error.
14829 -*) as_fn_error $?
"unrecognized option: \`$1'
14830 Try \`$0 --help' for more information." ;;
14832 *) as_fn_append ac_config_targets
" $1"
14833 ac_need_defaults
=false
;;
14839 ac_configure_extra_args
=
14841 if $ac_cs_silent; then
14843 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14848 if \$ac_cs_recheck; then
14849 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14851 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
14852 CONFIG_SHELL='$SHELL'
14853 export CONFIG_SHELL
14858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14862 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14863 ## Running $as_me. ##
14865 printf "%s\n" "$ac_log"
14869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14875 # The HP-UX ksh and POSIX shell print the target directory to stdout
14876 # if CDPATH is set.
14877 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14879 sed_quote_subst='$sed_quote_subst'
14880 double_quote_subst='$double_quote_subst'
14881 delay_variable_subst='$delay_variable_subst'
14882 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14883 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14884 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14885 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14886 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14887 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14888 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14889 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14890 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14891 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14892 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14893 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14894 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14895 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14896 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14897 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14898 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14899 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14900 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14901 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14902 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14903 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14904 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14905 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14906 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14907 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14908 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14909 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14910 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14911 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14912 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14913 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14914 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14915 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14916 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14917 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14918 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14919 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14920 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14921 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14922 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14923 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14924 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14925 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14926 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14927 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14928 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14929 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14930 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14931 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14932 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14933 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14934 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14935 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14936 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14937 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14938 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14939 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14940 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"`'
14941 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14942 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14943 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14944 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14945 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14946 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14947 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14948 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14949 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14950 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14951 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14952 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14953 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14954 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14955 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14956 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14957 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14958 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14959 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14960 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14961 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14962 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14963 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14964 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14965 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14966 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14967 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14968 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14969 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14970 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14971 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14972 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14973 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14974 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14975 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14976 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14977 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14978 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14979 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14980 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14981 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14982 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14983 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14984 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14985 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14986 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14987 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14988 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14989 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14990 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14991 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14992 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14993 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14994 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14995 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14996 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14997 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14998 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14999 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15000 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15001 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15002 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15003 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15004 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15005 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15006 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15007 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15008 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15009 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15010 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15011 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15012 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15013 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15014 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15015 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15016 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15019 LTCFLAGS='$LTCFLAGS'
15020 compiler='$compiler_DEFAULT'
15022 # A function that is used when there is no print builtin or printf.
15023 func_fallback_echo ()
15025 eval 'cat <<_LTECHO_EOF
15030 # Quote evaled strings.
15045 deplibs_check_method \
15050 sharedlib_from_linklib_cmd \
15053 archiver_list_spec \
15059 lt_cv_sys_global_symbol_pipe \
15060 lt_cv_sys_global_symbol_to_cdecl \
15061 lt_cv_sys_global_symbol_to_import \
15062 lt_cv_sys_global_symbol_to_c_name_address \
15063 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15064 lt_cv_nm_interface \
15065 nm_file_list_spec \
15066 lt_cv_truncate_bin \
15067 lt_prog_compiler_no_builtin_flag \
15068 lt_prog_compiler_pic \
15069 lt_prog_compiler_wl \
15070 lt_prog_compiler_static \
15071 lt_cv_prog_compiler_c_o \
15080 export_dynamic_flag_spec \
15081 whole_archive_flag_spec \
15082 compiler_needs_object \
15084 allow_undefined_flag \
15085 no_undefined_flag \
15086 hardcode_libdir_flag_spec \
15087 hardcode_libdir_separator \
15091 variables_saved_for_relink \
15093 library_names_spec \
15095 install_override_mode \
15099 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15100 *[\\\\\\\`\\"\\\$]*)
15101 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15104 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15109 # Double-quote double-evaled strings.
15110 for var in reload_cmds \
15111 old_postinstall_cmds \
15112 old_postuninstall_cmds \
15114 extract_expsyms_cmds \
15115 old_archive_from_new_cmds \
15116 old_archive_from_expsyms_cmds \
15118 archive_expsym_cmds \
15120 module_expsym_cmds \
15121 export_symbols_cmds \
15125 postuninstall_cmds \
15127 sys_lib_search_path_spec \
15128 configure_time_dlsearch_path \
15129 configure_time_lt_sys_library_path; do
15130 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15131 *[\\\\\\\`\\"\\\$]*)
15132 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15135 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15140 ac_aux_dir='$ac_aux_dir'
15142 # See if we are running on zsh, and set the options that allow our
15143 # commands through without removal of \ escapes INIT.
15144 if test -n "\${ZSH_VERSION+set}"; then
15145 setopt NO_GLOB_SUBST
15159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15161 # Handling of arguments.
15162 for ac_config_target
in $ac_config_targets
15164 case $ac_config_target in
15165 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
15166 "sqlite_cfg.h") CONFIG_HEADERS
="$CONFIG_HEADERS sqlite_cfg.h" ;;
15167 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15168 "sqlcipher.pc") CONFIG_FILES
="$CONFIG_FILES sqlcipher.pc" ;;
15170 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15175 # If the user did not use the arguments to specify the items to instantiate,
15176 # then the envvar interface is used. Set only those that are not.
15177 # We use the long form for the default assignment because of an extremely
15178 # bizarre bug on SunOS 4.1.3.
15179 if $ac_need_defaults; then
15180 test ${CONFIG_FILES+y} || CONFIG_FILES
=$config_files
15181 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS
=$config_headers
15182 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS
=$config_commands
15185 # Have a temporary directory for convenience. Make it in the build tree
15186 # simply because there is no reason against having it here, and in addition,
15187 # creating and moving files from /tmp can sometimes cause problems.
15188 # Hook for its removal unless debugging.
15189 # Note that there is a small window in which the directory will not be cleaned:
15190 # after its creation but before its name has been assigned to `$tmp'.
15194 trap 'exit_status=$?
15195 : "${ac_tmp:=$tmp}"
15196 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15198 trap 'as_fn_exit 1' 1 2 13 15
15200 # Create a (secure) tmp directory for tmp files.
15203 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15207 tmp
=.
/conf$$
-$RANDOM
15208 (umask 077 && mkdir
"$tmp")
15209 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
15212 # Set up the scripts for CONFIG_FILES section.
15213 # No need to generate them if there are no CONFIG_FILES.
15214 # This happens for instance with `./config.status config.h'.
15215 if test -n "$CONFIG_FILES"; then
15218 ac_cr
=`echo X | tr X '\015'`
15219 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15220 # But we know of no other shell where ac_cr would be empty at this
15221 # point, so we can use a bashism as a fallback.
15222 if test "x$ac_cr" = x
; then
15223 eval ac_cr
=\$
\'\\r
\'
15225 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15226 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15229 ac_cs_awk_cr
=$ac_cr
15232 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15237 echo "cat >conf$$subs.awk <<_ACEOF" &&
15238 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15240 } >conf$$subs.sh ||
15241 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15242 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15244 for ac_last_try in false false false false false :; do
15245 . ./conf$$subs.sh ||
15246 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15248 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15249 if test $ac_delim_n = $ac_delim_num; then
15251 elif $ac_last_try; then
15252 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15254 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15257 rm -f conf$$subs.sh
15259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15260 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
15264 s/^/S["/; s
/!.
*/"]=/
15274 s/\(.\{148\}\)..*/\1/
15276 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15281 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15288 s/\(.\{148\}\)..*/\1/
15290 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15294 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15299 ' <conf$$subs.awk | sed '
15304 ' >>$CONFIG_STATUS || ac_write_fail=1
15305 rm -f conf$$subs.awk
15306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15308 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
15309 for (key in S) S_is_set[key] = 1
15315 nfields = split(line, field, "@
")
15317 len = length(field[1])
15318 for (i = 2; i < nfields; i++) {
15320 keylen = length(key)
15321 if (S_is_set[key]) {
15323 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15324 len += length(value) + length(field[++i])
15335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15336 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15337 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15340 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
15341 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
15344 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15345 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
15346 # trailing colons and then remove the whole line if VPATH becomes empty
15347 # (actually we leave an empty line to preserve line numbers).
15348 if test "x
$srcdir" = x.; then
15349 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15368 fi # test -n "$CONFIG_FILES"
15370 # Set up the scripts for CONFIG_HEADERS section.
15371 # No need to generate them if there are no CONFIG_HEADERS.
15372 # This happens for instance with `./config.status Makefile'.
15373 if test -n "$CONFIG_HEADERS"; then
15374 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
15378 # Transform confdefs.h into an awk script `defines.awk', embedded as
15379 # here-document in config.status, that substitutes the proper values into
15380 # config.h.in to produce config.h.
15382 # Create a delimiter string that does not exist in confdefs.h, to ease
15383 # handling of long lines.
15385 for ac_last_try in false false :; do
15386 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
15387 if test -z "$ac_tt"; then
15389 elif $ac_last_try; then
15390 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
15392 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15396 # For the awk script, D is an array of macro values keyed by name,
15397 # likewise P contains macro parameters if any. Preserve backslash
15398 # newline sequences.
15400 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15402 s/.\{148\}/&'"$ac_delim"'/g
15405 s/^[ ]*#[ ]*define[ ][ ]*/ /
15412 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
15414 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
15418 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
15419 D["\
1"]=" \
3\\\\\\n
"\\/p
15421 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
15426 s/.\{148\}/&'"$ac_delim"'/g
15431 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
15434 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
15436 ' <confdefs.h | sed '
15437 s/'"$ac_delim"'/"\\\
15438 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15441 for (key in D) D_is_set[key] = 1
15444 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15446 split(line, arg, " ")
15447 if (arg[1] == "#") {
15451 defundef
= substr
(arg
[1], 2)
15454 split(mac1
, mac2
, "(") #)
15456 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
15457 if (D_is_set
[macro
]) {
15458 # Preserve the white space surrounding the "#".
15459 print prefix
"define", macro P
[macro
] D
[macro
]
15462 # Replace #undef with comments. This is necessary, for example,
15463 # in the case of _POSIX_SOURCE, which is predefined and required
15464 # on some systems where configure will not decide to define it.
15465 if (defundef
== "undef") {
15466 print
"/*", prefix defundef
, macro
, "*/"
15474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15475 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
15476 fi # test -n "$CONFIG_HEADERS"
15479 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15484 :[FHLC
]) ac_mode
=$ac_tag; continue;;
15486 case $ac_mode$ac_tag in
15488 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
15489 :[FH
]-) ac_tag
=-:-;;
15490 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
15507 -) ac_f
="$ac_tmp/stdin";;
15508 *) # Look for the file first in the build tree, then in the source tree
15509 # (if the path is not absolute). The absolute path cannot be DOS-style,
15510 # because $ac_f cannot contain `:'.
15514 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
15516 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15518 case $ac_f in *\'*) ac_f
=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15519 as_fn_append ac_file_inputs
" '$ac_f'"
15522 # Let's still pretend it is `configure' which instantiates (i.e., don't
15523 # use $as_me), people would be surprised to read:
15524 # /* config.h. Generated by config.status. */
15525 configure_input
='Generated from '`
15526 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15528 if test x
"$ac_file" != x-
; then
15529 configure_input
="$ac_file. $configure_input"
15530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15531 printf "%s\n" "$as_me: creating $ac_file" >&6;}
15533 # Neutralize special characters interpreted by sed in replacement strings.
15534 case $configure_input in #(
15535 *\
&* |
*\|
* |
*\\* )
15536 ac_sed_conf_input
=`printf "%s\n" "$configure_input" |
15537 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15538 *) ac_sed_conf_input
=$configure_input;;
15542 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
15543 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
15548 ac_dir
=`$as_dirname -- "$ac_file" ||
15549 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15550 X"$ac_file" : 'X\(//\)[^/]' \| \
15551 X"$ac_file" : 'X\(//\)$' \| \
15552 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15553 printf "%s\n" X"$ac_file" |
15554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15558 /^X\(\/\/\)[^/].*/{
15571 as_dir
="$ac_dir"; as_fn_mkdir_p
15575 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15577 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15578 # A ".." for each directory in $ac_dir_suffix.
15579 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15580 case $ac_top_builddir_sub in
15581 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15582 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15585 ac_abs_top_builddir
=$ac_pwd
15586 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15587 # for backward compatibility:
15588 ac_top_builddir
=$ac_top_build_prefix
15591 .
) # We are building in place.
15593 ac_top_srcdir
=$ac_top_builddir_sub
15594 ac_abs_top_srcdir
=$ac_pwd ;;
15595 [\\/]* | ?
:[\\/]* ) # Absolute name.
15596 ac_srcdir
=$srcdir$ac_dir_suffix;
15597 ac_top_srcdir
=$srcdir
15598 ac_abs_top_srcdir
=$srcdir ;;
15599 *) # Relative name.
15600 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15601 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15602 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15604 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15614 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15615 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15620 # If the template does not know about datarootdir, expand it.
15621 # FIXME: This hack should be removed a few years after 2.60.
15622 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15633 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15634 *datarootdir
*) ac_datarootdir_seen
=yes;;
15635 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
15636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15637 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15640 ac_datarootdir_hack='
15641 s&@datadir@&$datadir&g
15642 s&@docdir@&$docdir&g
15643 s&@infodir@&$infodir&g
15644 s&@localedir@&$localedir&g
15645 s&@mandir@&$mandir&g
15646 s&\\\${datarootdir}&$datarootdir&g' ;;
15650 # Neutralize VPATH when `$srcdir' = `.'.
15651 # Shell code in configure.ac might set extrasub.
15652 # FIXME: do we really want to maintain this feature?
15653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15654 ac_sed_extra="$ac_vpsub
15657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15659 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15660 s|@configure_input@|
$ac_sed_conf_input|
;t t
15661 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15662 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
15663 s
&@srcdir@
&$ac_srcdir&;t t
15664 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15665 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15666 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15667 s
&@builddir@
&$ac_builddir&;t t
15668 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15669 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15670 s
&@INSTALL@
&$ac_INSTALL&;t t
15671 $ac_datarootdir_hack
15673 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
15674 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
15676 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15677 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
15678 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15679 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
15680 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15681 which seems to be undefined. Please make sure it is defined" >&5
15682 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15683 which seems to be undefined. Please make sure it is defined" >&2;}
15685 rm -f "$ac_tmp/stdin"
15687 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15688 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15690 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15696 if test x"$ac_file" != x-; then
15698 printf "%s\n" "/* $configure_input */" >&1 \
15699 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15700 } >"$ac_tmp/config.h" \
15701 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15702 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15704 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
15707 mv "$ac_tmp/config.h" "$ac_file" \
15708 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15711 printf "%s\n" "/* $configure_input */" >&1 \
15712 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15713 || as_fn_error $? "could not create -" "$LINENO" 5
15717 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15718 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
15723 case $ac_file$ac_mode in
15726 # See if we are running on zsh, and set the options that allow our
15727 # commands through without removal of \ escapes.
15728 if test -n "${ZSH_VERSION+set}"; then
15729 setopt NO_GLOB_SUBST
15733 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15736 cat <<_LT_EOF >> "$cfgfile"
15738 # Generated automatically by $as_me ($PACKAGE) $VERSION
15739 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15741 # Provide generalized library-building support services.
15742 # Written by Gordon Matzigkeit, 1996
15744 # Copyright (C) 2014 Free Software Foundation, Inc.
15745 # This is free software; see the source for copying conditions. There is NO
15746 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15748 # GNU Libtool is free software; you can redistribute it and/or modify
15749 # it under the terms of the GNU General Public License as published by
15750 # the Free Software Foundation; either version 2 of of the License, or
15751 # (at your option) any later version.
15753 # As a special exception to the GNU General Public License, if you
15754 # distribute this file as part of a program or library that is built
15755 # using GNU Libtool, you may include this file under the same
15756 # distribution terms that you use for the rest of that program.
15758 # GNU Libtool is distributed in the hope that it will be useful, but
15759 # WITHOUT ANY WARRANTY; without even the implied warranty of
15760 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15761 # GNU General Public License for more details.
15763 # You should have received a copy of the GNU General Public License
15764 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15767 # The names of the tagged configurations supported by this script.
15770 # Configured defaults for sys_lib_dlsearch_path munging.
15771 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15773 # ### BEGIN LIBTOOL CONFIG
15775 # Which release of libtool.m4 was used?
15776 macro_version=$macro_version
15777 macro_revision=$macro_revision
15779 # Whether or not to build shared libraries.
15780 build_libtool_libs=$enable_shared
15782 # Whether or not to build static libraries.
15783 build_old_libs=$enable_static
15785 # What type of objects to build.
15788 # Whether or not to optimize for fast installation.
15789 fast_install=$enable_fast_install
15791 # Shared archive member basename,for filename based shared library versioning on AIX.
15792 shared_archive_member_spec=$shared_archive_member_spec
15794 # Shell to use when invoking shell scripts.
15797 # An echo program that protects backslashes.
15800 # The PATH separator for the build system.
15801 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15804 host_alias=$host_alias
15808 # The build system.
15809 build_alias=$build_alias
15813 # A sed program that does not truncate output.
15816 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15817 Xsed="\$SED -e 1s/^X//"
15819 # A grep program that handles long lines.
15825 # A literal string matcher.
15828 # A BSD- or MS-compatible name lister.
15831 # Whether we need soft or hard links.
15834 # What is the maximum length of a command?
15835 max_cmd_len=$max_cmd_len
15837 # Object file suffix (normally "o").
15840 # Executable file suffix (normally "").
15843 # whether the shell understands "unset".
15846 # turn spaces into newlines.
15849 # turn newlines into spaces.
15852 # convert \$build file names to \$host format.
15853 to_host_file_cmd=$lt_cv_to_host_file_cmd
15855 # convert \$build files to toolchain format.
15856 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15858 # An object symbol dumper.
15859 OBJDUMP=$lt_OBJDUMP
15861 # Method to check whether dependent libraries are shared objects.
15862 deplibs_check_method=$lt_deplibs_check_method
15864 # Command to use when deplibs_check_method = "file_magic".
15865 file_magic_cmd=$lt_file_magic_cmd
15867 # How to find potential files when deplibs_check_method = "file_magic".
15868 file_magic_glob=$lt_file_magic_glob
15870 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15871 want_nocaseglob=$lt_want_nocaseglob
15873 # DLL creation program.
15874 DLLTOOL=$lt_DLLTOOL
15876 # Command to associate shared and link libraries.
15877 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15882 # Flags to create an archive.
15883 AR_FLAGS=$lt_AR_FLAGS
15885 # How to feed a file listing to the archiver.
15886 archiver_list_spec=$lt_archiver_list_spec
15888 # A symbol stripping program.
15891 # Commands used to install an old-style archive.
15893 old_postinstall_cmds=$lt_old_postinstall_cmds
15894 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15896 # Whether to use a lock for old archive extraction.
15897 lock_old_archive_extraction=$lock_old_archive_extraction
15902 # LTCC compiler flags.
15903 LTCFLAGS=$lt_CFLAGS
15905 # Take the output of nm and produce a listing of raw symbols and C names.
15906 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15908 # Transform the output of nm in a proper C declaration.
15909 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15911 # Transform the output of nm into a list of symbols to manually relocate.
15912 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15914 # Transform the output of nm in a C name address pair.
15915 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15917 # Transform the output of nm in a C name address pair when lib prefix is needed.
15918 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15920 # The name lister interface.
15921 nm_interface=$lt_lt_cv_nm_interface
15923 # Specify filename containing input files for \$NM.
15924 nm_file_list_spec=$lt_nm_file_list_spec
15926 # The root where to search for dependent libraries,and where our libraries should be installed.
15927 lt_sysroot=$lt_sysroot
15929 # Command to truncate a binary pipe.
15930 lt_truncate_bin=$lt_lt_cv_truncate_bin
15932 # The name of the directory that contains temporary libtool files.
15935 # Used to examine libraries when file_magic_cmd begins with "file".
15936 MAGIC_CMD=$MAGIC_CMD
15938 # Must we lock files when doing compilation?
15939 need_locks=$lt_need_locks
15942 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15944 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15945 DSYMUTIL=$lt_DSYMUTIL
15947 # Tool to change global to local symbols on Mac OS X.
15950 # Tool to manipulate fat objects and archives on Mac OS X.
15953 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15956 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15957 OTOOL64=$lt_OTOOL64
15959 # Old archive suffix (normally "a").
15962 # Shared library suffix (normally ".so").
15963 shrext_cmds=$lt_shrext_cmds
15965 # The commands to extract the exported symbol list from a shared archive.
15966 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15968 # Variables whose values should be saved in libtool wrapper scripts and
15969 # restored at link time.
15970 variables_saved_for_relink=$lt_variables_saved_for_relink
15972 # Do we need the "lib" prefix for modules?
15973 need_lib_prefix=$need_lib_prefix
15975 # Do we need a version for libraries?
15976 need_version=$need_version
15978 # Library versioning type.
15979 version_type=$version_type
15981 # Shared library runtime path variable.
15982 runpath_var=$runpath_var
15984 # Shared library path variable.
15985 shlibpath_var=$shlibpath_var
15987 # Is shlibpath searched before the hard-coded library search path?
15988 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15990 # Format of library name prefix.
15991 libname_spec=$lt_libname_spec
15993 # List of archive names. First name is the real one, the rest are links.
15994 # The last name is the one that the linker finds with -lNAME
15995 library_names_spec=$lt_library_names_spec
15997 # The coded name of the library, if different from the real name.
15998 soname_spec=$lt_soname_spec
16000 # Permission mode override for installation of shared libraries.
16001 install_override_mode=$lt_install_override_mode
16003 # Command to use after installation of a shared archive.
16004 postinstall_cmds=$lt_postinstall_cmds
16006 # Command to use after uninstallation of a shared archive.
16007 postuninstall_cmds=$lt_postuninstall_cmds
16009 # Commands used to finish a libtool library installation in a directory.
16010 finish_cmds=$lt_finish_cmds
16012 # As "finish_cmds", except a single script fragment to be evaled but
16014 finish_eval=$lt_finish_eval
16016 # Whether we should hardcode library paths into libraries.
16017 hardcode_into_libs=$hardcode_into_libs
16019 # Compile-time system search path for libraries.
16020 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16022 # Detected run-time system search path for libraries.
16023 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16025 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16026 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16028 # Whether dlopen is supported.
16029 dlopen_support=$enable_dlopen
16031 # Whether dlopen of programs is supported.
16032 dlopen_self=$enable_dlopen_self
16034 # Whether dlopen of statically linked programs is supported.
16035 dlopen_self_static=$enable_dlopen_self_static
16037 # Commands to strip libraries.
16038 old_striplib=$lt_old_striplib
16039 striplib=$lt_striplib
16042 # The linker used to build libraries.
16045 # How to create reloadable object files.
16046 reload_flag=$lt_reload_flag
16047 reload_cmds=$lt_reload_cmds
16049 # Commands used to build an old-style archive.
16050 old_archive_cmds=$lt_old_archive_cmds
16052 # A language specific compiler.
16055 # Is the compiler the GNU compiler?
16058 # Compiler flag to turn off builtin functions.
16059 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16061 # Additional compiler flags for building library objects.
16062 pic_flag=$lt_lt_prog_compiler_pic
16064 # How to pass a linker flag through the compiler.
16065 wl=$lt_lt_prog_compiler_wl
16067 # Compiler flag to prevent dynamic linking.
16068 link_static_flag=$lt_lt_prog_compiler_static
16070 # Does compiler simultaneously support -c and -o options?
16071 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16073 # Whether or not to add -lc for building shared libraries.
16074 build_libtool_need_lc=$archive_cmds_need_lc
16076 # Whether or not to disallow shared libs when runtime libs are static.
16077 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16079 # Compiler flag to allow reflexive dlopens.
16080 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16082 # Compiler flag to generate shared objects directly from archives.
16083 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16085 # Whether the compiler copes with passing no objects directly.
16086 compiler_needs_object=$lt_compiler_needs_object
16088 # Create an old-style archive from a shared archive.
16089 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16091 # Create a temporary old-style archive to link instead of a shared archive.
16092 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16094 # Commands used to build a shared archive.
16095 archive_cmds=$lt_archive_cmds
16096 archive_expsym_cmds=$lt_archive_expsym_cmds
16098 # Commands used to build a loadable module if different from building
16099 # a shared archive.
16100 module_cmds=$lt_module_cmds
16101 module_expsym_cmds=$lt_module_expsym_cmds
16103 # Whether we are building with GNU ld or not.
16104 with_gnu_ld=$lt_with_gnu_ld
16106 # Flag that allows shared libraries with undefined symbols to be built.
16107 allow_undefined_flag=$lt_allow_undefined_flag
16109 # Flag that enforces no undefined symbols.
16110 no_undefined_flag=$lt_no_undefined_flag
16112 # Flag to hardcode \$libdir into a binary during linking.
16113 # This must work even if \$libdir does not exist
16114 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16116 # Whether we need a single "-rpath" flag with a separated argument.
16117 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16119 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16120 # DIR into the resulting binary.
16121 hardcode_direct=$hardcode_direct
16123 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16124 # DIR into the resulting binary and the resulting library dependency is
16125 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16126 # library is relocated.
16127 hardcode_direct_absolute=$hardcode_direct_absolute
16129 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16130 # into the resulting binary.
16131 hardcode_minus_L=$hardcode_minus_L
16133 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16134 # into the resulting binary.
16135 hardcode_shlibpath_var=$hardcode_shlibpath_var
16137 # Set to "yes" if building a shared library automatically hardcodes DIR
16138 # into the library and all subsequent libraries and executables linked
16140 hardcode_automatic=$hardcode_automatic
16142 # Set to yes if linker adds runtime paths of dependent libraries
16143 # to runtime path list.
16144 inherit_rpath=$inherit_rpath
16146 # Whether libtool must link a program against all its dependency libraries.
16147 link_all_deplibs=$link_all_deplibs
16149 # Set to "yes" if exported symbols are required.
16150 always_export_symbols=$always_export_symbols
16152 # The commands to list exported symbols.
16153 export_symbols_cmds=$lt_export_symbols_cmds
16155 # Symbols that should not be listed in the preloaded symbols.
16156 exclude_expsyms=$lt_exclude_expsyms
16158 # Symbols that must always be exported.
16159 include_expsyms=$lt_include_expsyms
16161 # Commands necessary for linking programs (against libraries) with templates.
16162 prelink_cmds=$lt_prelink_cmds
16164 # Commands necessary for finishing linking programs.
16165 postlink_cmds=$lt_postlink_cmds
16167 # Specify filename containing input files.
16168 file_list_spec=$lt_file_list_spec
16170 # How to hardcode a shared library path into an executable.
16171 hardcode_action=$hardcode_action
16173 # ### END LIBTOOL CONFIG
16177 cat <<'_LT_EOF' >> "$cfgfile"
16179 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16181 # func_munge_path_list VARIABLE PATH
16182 # -----------------------------------
16183 # VARIABLE is name of variable containing _space_ separated list of
16184 # directories to be munged by the contents of PATH, which is string
16187 # string "DIR[ DIR]" will be prepended to VARIABLE
16189 # string "DIR[ DIR]" will be appended to VARIABLE
16190 # "DIRP[:DIRP]::[DIRA:]DIRA"
16191 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16192 # "DIRA[ DIRA]" will be appended to VARIABLE
16194 # VARIABLE will be replaced by "DIR[ DIR]"
16195 func_munge_path_list ()
16201 eval $1=\"`$ECHO $2 | $SED 's
/:/ /g
'` \$$1\"
16204 eval $1=\"\$$1 `$ECHO $2 | $SED 's
/:/ /g
'`\"
16207 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's
/.
*:://' -e 's
/:/ /g
'`\"
16208 eval $1=\"`$ECHO $2 | $SED -e 's
/::.
*//' -e 's
/:/ /g
'`\ \$$1\"
16211 eval $1=\"`$ECHO $2 | $SED 's
/:/ /g
'`\"
16217 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16218 func_cc_basename ()
16220 for cc_temp in $*""; do
16222 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16223 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16228 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16232 # ### END FUNCTIONS SHARED WITH CONFIGURE
16238 cat <<\_LT_EOF >> "$cfgfile"
16239 # AIX sometimes has problems with the GCC collect2 program. For some
16240 # reason, if we set the COLLECT_NAMES environment variable, the problems
16241 # vanish in a puff of smoke.
16242 if test set != "${COLLECT_NAMES+set}"; then
16244 export COLLECT_NAMES
16252 ltmain=$ac_aux_dir/ltmain.sh
16255 # We use sed instead of cat because bash on DJGPP gets confused if
16256 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16257 # text mode, it properly converts lines to CR/LF. This bash problem
16258 # is reportedly fixed, but why not run on old versions too?
16259 sed '$q' "$ltmain" >> "$cfgfile" \
16260 || (rm -f "$cfgfile"; exit 1)
16262 mv -f "$cfgfile" "$ofile" ||
16263 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16274 ac_clean_files=$ac_clean_files_save
16276 test $ac_write_fail = 0 ||
16277 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16280 # configure is writing to config.log, and then calls config.status.
16281 # config.status does its own redirection, appending to config.log.
16282 # Unfortunately, on DOS this fails, as config.log is still kept open
16283 # by configure, so config.status won't be able to
write to it
; its
16284 # output is simply discarded. So we exec the FD to /dev/null,
16285 # effectively closing config.log, so it can be properly (re)opened and
16286 # appended to by config.status. When coming back to configure, we
16287 # need to make the FD available again.
16288 if test "$no_create" != yes; then
16290 ac_config_status_args
=
16291 test "$silent" = yes &&
16292 ac_config_status_args
="$ac_config_status_args --quiet"
16294 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16296 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16297 # would make configure fail if this is the last instruction.
16298 $ac_cs_success || as_fn_exit
1
16300 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16302 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}