2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for sqlcipher 3.43.1.
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.43.1'
622 PACKAGE_STRING
='sqlcipher 3.43.1'
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
769 program_transform_name
782 enable_option_checking
795 enable_cross_thread_connections
806 enable_load_extension
821 ac_precious_vars
='build_alias
831 amalgamation_line_macros'
834 # Initialize some variables set by options.
836 ac_init_version
=false
837 ac_unrecognized_opts
=
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
848 program_transform_name
=s
,x
,x
,
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir
='${exec_prefix}/bin'
863 sbindir
='${exec_prefix}/sbin'
864 libexecdir
='${exec_prefix}/libexec'
865 datarootdir
='${prefix}/share'
866 datadir
='${datarootdir}'
867 sysconfdir
='${prefix}/etc'
868 sharedstatedir
='${prefix}/com'
869 localstatedir
='${prefix}/var'
870 runstatedir
='${localstatedir}/run'
871 includedir
='${prefix}/include'
872 oldincludedir
='/usr/include'
873 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
874 infodir
='${datarootdir}/info'
879 libdir
='${exec_prefix}/lib'
880 localedir
='${datarootdir}/locale'
881 mandir
='${datarootdir}/man'
887 # If the previous option needs an argument, assign it.
888 if test -n "$ac_prev"; then
889 eval $ac_prev=\
$ac_option
895 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900 case $ac_dashdash$ac_option in
904 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
906 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
909 -build |
--build |
--buil |
--bui |
--bu)
910 ac_prev
=build_alias
;;
911 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
912 build_alias
=$ac_optarg ;;
914 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
915 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
916 ac_prev
=cache_file
;;
917 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
918 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
919 cache_file
=$ac_optarg ;;
922 cache_file
=config.cache
;;
924 -datadir |
--datadir |
--datadi |
--datad)
926 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
927 datadir
=$ac_optarg ;;
929 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
930 |
--dataroo |
--dataro |
--datar)
931 ac_prev
=datarootdir
;;
932 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
933 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
934 datarootdir
=$ac_optarg ;;
936 -disable-* |
--disable-*)
937 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
940 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
941 ac_useropt_orig
=$ac_useropt
942 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
947 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948 ac_unrecognized_sep
=', ';;
950 eval enable_
$ac_useropt=no
;;
952 -docdir |
--docdir |
--docdi |
--doc |
--do)
954 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
957 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
959 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
962 -enable-* |
--enable-*)
963 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
966 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
967 ac_useropt_orig
=$ac_useropt
968 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
973 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
974 ac_unrecognized_sep
=', ';;
976 eval enable_
$ac_useropt=\
$ac_optarg ;;
978 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
979 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
980 |
--exec |
--exe |
--ex)
981 ac_prev
=exec_prefix
;;
982 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
983 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
984 |
--exec=* |
--exe=* |
--ex=*)
985 exec_prefix
=$ac_optarg ;;
987 -gas |
--gas |
--ga |
--g)
988 # Obsolete; use --with-gas.
991 -help |
--help |
--hel |
--he |
-h)
993 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
994 ac_init_help
=recursive
;;
995 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
996 ac_init_help
=short
;;
998 -host |
--host |
--hos |
--ho)
999 ac_prev
=host_alias
;;
1000 -host=* |
--host=* |
--hos=* |
--ho=*)
1001 host_alias
=$ac_optarg ;;
1003 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1005 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1007 htmldir
=$ac_optarg ;;
1009 -includedir |
--includedir |
--includedi |
--included |
--include \
1010 |
--includ |
--inclu |
--incl |
--inc)
1011 ac_prev
=includedir
;;
1012 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1013 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1014 includedir
=$ac_optarg ;;
1016 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1018 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1019 infodir
=$ac_optarg ;;
1021 -libdir |
--libdir |
--libdi |
--libd)
1023 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1024 libdir
=$ac_optarg ;;
1026 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1027 |
--libexe |
--libex |
--libe)
1028 ac_prev
=libexecdir
;;
1029 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1030 |
--libexe=* |
--libex=* |
--libe=*)
1031 libexecdir
=$ac_optarg ;;
1033 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1034 ac_prev
=localedir
;;
1035 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1036 localedir
=$ac_optarg ;;
1038 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1039 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1040 ac_prev
=localstatedir
;;
1041 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1042 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1043 localstatedir
=$ac_optarg ;;
1045 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1047 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1048 mandir
=$ac_optarg ;;
1050 -nfp |
--nfp |
--nf)
1051 # Obsolete; use --without-fp.
1054 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1055 |
--no-cr |
--no-c |
-n)
1058 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1059 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1062 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1063 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1064 |
--oldin |
--oldi |
--old |
--ol |
--o)
1065 ac_prev
=oldincludedir
;;
1066 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1067 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1068 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1069 oldincludedir
=$ac_optarg ;;
1071 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1073 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1074 prefix
=$ac_optarg ;;
1076 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1077 |
--program-pre |
--program-pr |
--program-p)
1078 ac_prev
=program_prefix
;;
1079 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1080 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1081 program_prefix
=$ac_optarg ;;
1083 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1084 |
--program-suf |
--program-su |
--program-s)
1085 ac_prev
=program_suffix
;;
1086 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1087 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1088 program_suffix
=$ac_optarg ;;
1090 -program-transform-name |
--program-transform-name \
1091 |
--program-transform-nam |
--program-transform-na \
1092 |
--program-transform-n |
--program-transform- \
1093 |
--program-transform |
--program-transfor \
1094 |
--program-transfo |
--program-transf \
1095 |
--program-trans |
--program-tran \
1096 |
--progr-tra |
--program-tr |
--program-t)
1097 ac_prev
=program_transform_name
;;
1098 -program-transform-name=* |
--program-transform-name=* \
1099 |
--program-transform-nam=* |
--program-transform-na=* \
1100 |
--program-transform-n=* |
--program-transform-=* \
1101 |
--program-transform=* |
--program-transfor=* \
1102 |
--program-transfo=* |
--program-transf=* \
1103 |
--program-trans=* |
--program-tran=* \
1104 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1105 program_transform_name
=$ac_optarg ;;
1107 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1109 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1110 pdfdir
=$ac_optarg ;;
1112 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1114 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1117 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1118 |
-silent |
--silent |
--silen |
--sile |
--sil)
1121 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1122 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1123 |
--run |
--ru |
--r)
1124 ac_prev
=runstatedir
;;
1125 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1126 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1127 |
--run=* |
--ru=* |
--r=*)
1128 runstatedir
=$ac_optarg ;;
1130 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1132 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1134 sbindir
=$ac_optarg ;;
1136 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1137 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1138 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1140 ac_prev
=sharedstatedir
;;
1141 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1142 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1143 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1145 sharedstatedir
=$ac_optarg ;;
1147 -site |
--site |
--sit)
1149 -site=* |
--site=* |
--sit=*)
1152 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1154 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1155 srcdir
=$ac_optarg ;;
1157 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1158 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1159 ac_prev
=sysconfdir
;;
1160 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1161 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1162 sysconfdir
=$ac_optarg ;;
1164 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1165 ac_prev
=target_alias
;;
1166 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1167 target_alias
=$ac_optarg ;;
1169 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1172 -version |
--version |
--versio |
--versi |
--vers |
-V)
1173 ac_init_version
=: ;;
1176 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1179 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1180 ac_useropt_orig
=$ac_useropt
1181 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1186 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187 ac_unrecognized_sep
=', ';;
1189 eval with_
$ac_useropt=\
$ac_optarg ;;
1191 -without-* |
--without-*)
1192 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1195 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1196 ac_useropt_orig
=$ac_useropt
1197 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1202 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203 ac_unrecognized_sep
=', ';;
1205 eval with_
$ac_useropt=no
;;
1208 # Obsolete; use --with-x.
1211 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1212 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1213 ac_prev
=x_includes
;;
1214 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1215 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1216 x_includes
=$ac_optarg ;;
1218 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1219 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1220 ac_prev
=x_libraries
;;
1221 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1222 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1223 x_libraries
=$ac_optarg ;;
1225 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1226 Try \`$0 --help' for more information"
1230 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
1232 case $ac_envvar in #(
1233 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1234 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1236 eval $ac_envvar=\
$ac_optarg
1237 export $ac_envvar ;;
1240 # FIXME: should be removed in autoconf 3.0.
1241 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1243 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1244 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1250 if test -n "$ac_prev"; then
1251 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1252 as_fn_error $?
"missing argument to $ac_option"
1255 if test -n "$ac_unrecognized_opts"; then
1256 case $enable_option_checking in
1258 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1259 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263 # Check all directory arguments for consistency.
1264 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265 datadir sysconfdir sharedstatedir localstatedir includedir \
1266 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267 libdir localedir mandir runstatedir
1269 eval ac_val
=\$
$ac_var
1270 # Remove trailing slashes.
1273 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274 eval $ac_var=\
$ac_val;;
1276 # Be sure to have absolute directory names.
1278 [\\/$
]* | ?
:[\\/]* ) continue;;
1279 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1281 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1284 # There might be people who depend on the old broken behavior: `$host'
1285 # used to hold the argument of --host etc.
1286 # FIXME: To remove some day.
1289 target
=$target_alias
1291 # FIXME: To remove some day.
1292 if test "x$host_alias" != x
; then
1293 if test "x$build_alias" = x
; then
1294 cross_compiling
=maybe
1295 elif test "x$build_alias" != "x$host_alias"; then
1301 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1303 test "$silent" = yes && exec 6>/dev
/null
1306 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1307 ac_ls_di
=`ls -di .` &&
1308 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1309 as_fn_error $?
"working directory cannot be determined"
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311 as_fn_error $?
"pwd does not report name of working directory"
1314 # Find the source files, if location was not specified.
1315 if test -z "$srcdir"; then
1316 ac_srcdir_defaulted
=yes
1317 # Try the directory containing this script, then the parent directory.
1318 ac_confdir
=`$as_dirname -- "$as_myself" ||
1319 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320 X"$as_myself" : 'X\(//\)[^/]' \| \
1321 X"$as_myself" : 'X\(//\)$' \| \
1322 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323 printf "%s\n" X"$as_myself" |
1324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1346 ac_srcdir_defaulted
=no
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1350 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1352 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1354 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1356 # When building in place, set srcdir=.
1357 if test "$ac_abs_confdir" = "$ac_pwd"; then
1360 # Remove unnecessary trailing slashes from srcdir.
1361 # Double slashes in file names in object file debugging info
1362 # mess up M-x gdb in Emacs.
1364 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366 for ac_var
in $ac_precious_vars; do
1367 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1368 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1369 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1370 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1374 # Report the --help message.
1376 if test "$ac_init_help" = "long"; then
1377 # Omit some internal or obsolete options to make the list less imposing.
1378 # This message is too long to be a string in the A/UX 3.1 sh.
1380 \`configure' configures sqlcipher 3.43.1 to adapt to many kinds of systems.
1382 Usage: $0 [OPTION]... [VAR=VALUE]...
1384 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1385 VAR=VALUE. See below for descriptions of some of the useful variables.
1387 Defaults for the options are specified in brackets.
1390 -h, --help display this help and exit
1391 --help=short display options specific to this package
1392 --help=recursive display the short help of all the included packages
1393 -V, --version display version information and exit
1394 -q, --quiet, --silent do not print \`checking ...' messages
1395 --cache-file=FILE cache test results in FILE [disabled]
1396 -C, --config-cache alias for \`--cache-file=config.cache'
1397 -n, --no-create do not create output files
1398 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1400 Installation directories:
1401 --prefix=PREFIX install architecture-independent files in PREFIX
1402 [$ac_default_prefix]
1403 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1406 By default, \`make install' will install all the files in
1407 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1408 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1409 for instance \`--prefix=\$HOME'.
1411 For better control, use the options below.
1413 Fine tuning of the installation directories:
1414 --bindir=DIR user executables [EPREFIX/bin]
1415 --sbindir=DIR system admin executables [EPREFIX/sbin]
1416 --libexecdir=DIR program executables [EPREFIX/libexec]
1417 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1418 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1419 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1420 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1421 --libdir=DIR object code libraries [EPREFIX/lib]
1422 --includedir=DIR C header files [PREFIX/include]
1423 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1426 --infodir=DIR info documentation [DATAROOTDIR/info]
1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1428 --mandir=DIR man documentation [DATAROOTDIR/man]
1429 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlcipher]
1430 --htmldir=DIR html documentation [DOCDIR]
1431 --dvidir=DIR dvi documentation [DOCDIR]
1432 --pdfdir=DIR pdf documentation [DOCDIR]
1433 --psdir=DIR ps documentation [DOCDIR]
1439 --build=BUILD configure
for building on BUILD
[guessed
]
1440 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1444 if test -n "$ac_init_help"; then
1445 case $ac_init_help in
1446 short | recursive
) echo "Configuration of sqlcipher 3.43.1:";;
1451 --disable-option-checking ignore unrecognized
--enable/--with options
1452 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1453 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1454 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1455 --enable-static[=PKGS
] build static libraries
[default
=yes]
1456 --enable-fast-install[=PKGS
]
1457 optimize
for fast installation
[default
=yes]
1458 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1459 --disable-largefile omit support
for large files
1460 --disable-threadsafe Disable mutexing
1461 --enable-cross-thread-connections
1462 Allow connection sharing across threads
1463 --enable-releasemode Support libtool link to release mode
1464 --enable-tempstore Use an in-ram database
for temporary tables
1465 (never
,no
,yes,always
)
1466 --disable-tcl do not build TCL extension
1467 --enable-editline enable BSD editline support
1468 --disable-readline disable readline support
1469 --enable-debug enable debugging
& verbose explain
1470 --disable-amalgamation Disable the amalgamation and instead build all files
1472 --disable-load-extension
1473 Disable loading of external extensions
1474 --disable-math Disable math functions
1475 --disable-json Disable JSON functions
1476 --enable-all Enable FTS4
, FTS5
, Geopoly
, RTree
, Sessions
1477 --enable-memsys5 Enable MEMSYS5
1478 --enable-memsys3 Enable MEMSYS3
1479 --enable-fts3 Enable the FTS3 extension
1480 --enable-fts4 Enable the FTS4 extension
1481 --enable-fts5 Enable the FTS5 extension
1482 --enable-update-limit Enable the UPDATE
/DELETE LIMIT clause
1483 --enable-geopoly Enable the GEOPOLY extension
1484 --enable-rtree Enable the RTREE extension
1485 --enable-session Enable the SESSION extension
1486 --enable-gcov Enable coverage testing using gcov
1489 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1490 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1491 --with-pic[=PKGS
] try to use only PIC
/non-PIC objects
[default
=use
1493 --with-aix-soname=aix|svr4|both
1494 shared library versioning
(aka
"SONAME") variant to
1495 provide on AIX
, [default
=aix
].
1496 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1497 --with-sysroot[=DIR
] Search
for dependent libraries within DIR
(or the
1498 compiler
's sysroot if not specified).
1499 --with-wasi-sdk=DIR directory containing the WASI SDK. Triggers
1500 cross-compile to WASM.
1501 --with-crypto-lib Specify which crypto library to use
1502 --with-tcl=DIR directory containing tcl configuration
1504 --with-readline-lib specify readline library
1505 --with-readline-inc specify readline include paths
1507 Some influential environment variables:
1508 CC C compiler command
1509 CFLAGS C compiler flags
1510 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1511 nonstandard directory <lib dir>
1512 LIBS libraries to pass to the linker, e.g. -l<library>
1513 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1514 you have headers in a nonstandard directory <include dir>
1516 User-defined run-time library search path.
1517 TCLLIBDIR Where to install tcl plugin
1518 amalgamation_line_macros
1521 Use these variables to override the choices made by `configure' or to
help
1522 it to
find libraries and programs with nonstandard names
/locations.
1524 Report bugs to the package provider.
1529 if test "$ac_init_help" = "recursive"; then
1530 # If there are subdirs, report their specific --help.
1531 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1532 test -d "$ac_dir" ||
1533 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1538 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1540 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1541 # A ".." for each directory in $ac_dir_suffix.
1542 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1543 case $ac_top_builddir_sub in
1544 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1545 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1548 ac_abs_top_builddir
=$ac_pwd
1549 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1550 # for backward compatibility:
1551 ac_top_builddir
=$ac_top_build_prefix
1554 .
) # We are building in place.
1556 ac_top_srcdir
=$ac_top_builddir_sub
1557 ac_abs_top_srcdir
=$ac_pwd ;;
1558 [\\/]* | ?
:[\\/]* ) # Absolute name.
1559 ac_srcdir
=$srcdir$ac_dir_suffix;
1560 ac_top_srcdir
=$srcdir
1561 ac_abs_top_srcdir
=$srcdir ;;
1563 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1564 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1565 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1567 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1569 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1570 # Check for configure.gnu first; this name is used for a wrapper for
1571 # Metaconfig's "Configure" on case-insensitive file systems.
1572 if test -f "$ac_srcdir/configure.gnu"; then
1574 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1575 elif test -f "$ac_srcdir/configure"; then
1577 $SHELL "$ac_srcdir/configure" --help=recursive
1579 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1581 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1585 test -n "$ac_init_help" && exit $ac_status
1586 if $ac_init_version; then
1588 sqlcipher configure
3.43.1
1589 generated by GNU Autoconf
2.71
1591 Copyright
(C
) 2021 Free Software Foundation
, Inc.
1592 This configure
script is free software
; the Free Software Foundation
1593 gives unlimited permission to copy
, distribute and modify it.
1598 ## ------------------------ ##
1599 ## Autoconf initialization. ##
1600 ## ------------------------ ##
1602 # ac_fn_c_try_compile LINENO
1603 # --------------------------
1604 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_c_try_compile
()
1607 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1608 rm -f conftest.
$ac_objext conftest.beam
1609 if { { ac_try
="$ac_compile"
1611 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1612 *) ac_try_echo=$ac_try;;
1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615 printf "%s\n" "$ac_try_echo"; } >&5
1616 (eval "$ac_compile") 2>conftest.err
1618 if test -s conftest.err; then
1619 grep -v '^ *+' conftest.err >conftest.er1
1620 cat conftest.er1 >&5
1621 mv -f conftest.er1 conftest.err
1623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; } && {
1625 test -z "$ac_c_werror_flag" ||
1626 test ! -s conftest.err
1627 } && test -s conftest.$ac_objext
1631 printf "%s\n" "$as_me: failed program was:" >&5
1632 sed 's/^/| /' conftest.$ac_ext >&5
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637 as_fn_set_status $ac_retval
1639 } # ac_fn_c_try_compile
1641 # ac_fn_c_try_link LINENO
1642 # -----------------------
1643 # Try to link conftest.$ac_ext, and return whether this succeeded.
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1648 if { { ac_try="$ac_link"
1650 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1651 *) ac_try_echo
=$ac_try;;
1653 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 printf "%s\n" "$ac_try_echo"; } >&5
1655 (eval "$ac_link") 2>conftest.err
1657 if test -s conftest.err
; then
1658 grep -v '^ *+' conftest.err
>conftest.er1
1659 cat conftest.er1
>&5
1660 mv -f conftest.er1 conftest.err
1662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } && {
1664 test -z "$ac_c_werror_flag" ||
1665 test ! -s conftest.err
1666 } && test -s conftest
$ac_exeext && {
1667 test "$cross_compiling" = yes ||
1668 test -x conftest
$ac_exeext
1673 printf "%s\n" "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.
$ac_ext >&5
1678 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1679 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1680 # interfere with the next link command; also delete a directory that is
1681 # left behind by Apple's compiler. We do this before executing the actions.
1682 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status
$ac_retval
1686 } # ac_fn_c_try_link
1688 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1689 # -------------------------------------------------------
1690 # Tests whether HEADER exists and can be compiled using the include files in
1691 # INCLUDES, setting the cache variable VAR accordingly.
1692 ac_fn_c_check_header_compile
()
1694 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 printf %s
"checking for $2... " >&6; }
1697 if eval test \
${$3+y}
1699 printf %s
"(cached) " >&6
1701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1702 /* end confdefs.h. */
1706 if ac_fn_c_try_compile
"$LINENO"
1712 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
1715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716 printf "%s\n" "$ac_res" >&6; }
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 } # ac_fn_c_check_header_compile
1721 # ac_fn_c_check_func LINENO FUNC VAR
1722 # ----------------------------------
1723 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1724 ac_fn_c_check_func
()
1726 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728 printf %s
"checking for $2... " >&6; }
1729 if eval test \
${$3+y}
1731 printf %s
"(cached) " >&6
1733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1735 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1737 #define $2 innocuous_$2
1739 /* System header to define __stub macros and hopefully few prototypes,
1740 which can conflict with char $2 (); below. */
1745 /* Override any GCC internal prototype to avoid an error.
1746 Use char because int might match the return type of a GCC
1747 builtin and then its argument prototype would still apply. */
1752 /* The GNU C library defines this for functions which it implements
1753 to always fail with ENOSYS. Some functions are actually named
1754 something starting with __ and the normal name is an alias. */
1755 #if defined __stub_$2 || defined __stub___$2
1767 if ac_fn_c_try_link
"$LINENO"
1773 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
1774 conftest
$ac_exeext conftest.
$ac_ext
1777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 printf "%s\n" "$ac_res" >&6; }
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 } # ac_fn_c_check_func
1783 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1784 # -------------------------------------------
1785 # Tests whether TYPE exists after having included INCLUDES, setting cache
1786 # variable VAR accordingly.
1787 ac_fn_c_check_type
()
1789 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 printf %s
"checking for $2... " >&6; }
1792 if eval test \
${$3+y}
1794 printf %s
"(cached) " >&6
1797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h. */
1809 if ac_fn_c_try_compile
"$LINENO"
1811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1823 if ac_fn_c_try_compile
"$LINENO"
1829 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
1831 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
1834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 printf "%s\n" "$ac_res" >&6; }
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 } # ac_fn_c_check_type
1839 ac_configure_args_raw
=
1844 ac_arg
=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1846 as_fn_append ac_configure_args_raw
" '$ac_arg'"
1849 case $ac_configure_args_raw in
1853 ac_unsafe_z
='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1854 ac_unsafe_a
="$ac_unsafe_z#~"
1855 ac_safe_unquote
="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1856 ac_configure_args_raw
=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1859 cat >config.log
<<_ACEOF
1860 This file contains any messages produced by compilers while
1861 running configure, to aid debugging if configure makes a mistake.
1863 It was created by sqlcipher $as_me 3.43.1, which was
1864 generated by GNU Autoconf 2.71. Invocation command line was
1866 $ $0$ac_configure_args_raw
1876 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1877 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1878 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1879 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1880 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1882 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1883 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1885 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1886 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1887 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1888 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1889 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1890 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1891 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1899 case $as_dir in #(((
1902 *) as_dir
=$as_dir/ ;;
1904 printf "%s\n" "PATH: $as_dir"
1920 # Keep a trace of the command line.
1921 # Strip out --no-create and --no-recursion so they do not pile up.
1922 # Strip out --silent because we don't want to record it for future runs.
1923 # Also quote any args containing shell meta-characters.
1924 # Make two passes to allow for proper duplicate-argument suppression.
1928 ac_must_keep_next
=false
1934 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1935 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1936 |
-silent |
--silent |
--silen |
--sile |
--sil)
1939 ac_arg
=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1942 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
1944 as_fn_append ac_configure_args1
" '$ac_arg'"
1945 if test $ac_must_keep_next = true
; then
1946 ac_must_keep_next
=false
# Got value, back to normal.
1949 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1950 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1951 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1952 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1953 case "$ac_configure_args0 " in
1954 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1957 -* ) ac_must_keep_next
=true
;;
1960 as_fn_append ac_configure_args
" '$ac_arg'"
1965 { ac_configure_args0
=; unset ac_configure_args0
;}
1966 { ac_configure_args1
=; unset ac_configure_args1
;}
1968 # When interrupted or exit'd, cleanup temporary files, and complete
1969 # config.log. We remove comments because anyway the quotes in there
1970 # would cause problems or look ugly.
1971 # WARNING: Use '\'' to represent an apostrophe within the trap.
1972 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1973 trap 'exit_status=$?
1976 # Save into config.log some information that might help in debugging.
1980 printf "%s\n" "## ---------------- ##
1981 ## Cache variables. ##
1982 ## ---------------- ##"
1984 # The following way of writing the cache mishandles newlines in values,
1986 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1987 eval ac_val=\$$ac_var
1991 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1992 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1995 _ | IFS | as_nl) ;; #(
1996 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1997 *) { eval $ac_var=; unset $ac_var;} ;;
2002 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2003 *${as_nl}ac_space=\ *)
2005 "s/'\''/'\''\\\\'\'''\''/g;
2006 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2009 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2016 printf "%s\n" "## ----------------- ##
2017 ## Output variables. ##
2018 ## ----------------- ##"
2020 for ac_var in $ac_subst_vars
2022 eval ac_val=\$$ac_var
2024 *\'\''*) ac_val
=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2026 printf "%s\n" "$ac_var='\''$ac_val'\''"
2030 if test -n "$ac_subst_files"; then
2031 printf "%s\n" "## ------------------- ##
2032 ## File substitutions. ##
2033 ## ------------------- ##"
2035 for ac_var
in $ac_subst_files
2037 eval ac_val
=\$
$ac_var
2039 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2041 printf "%s\n" "$ac_var='\''$ac_val'\''"
2046 if test -s confdefs.h; then
2047 printf "%s\n" "## ----------- ##
2054 test "$ac_signal" != 0 &&
2055 printf "%s\n" "$as_me: caught signal $ac_signal"
2056 printf "%s\n" "$as_me: exit $exit_status"
2058 rm -f core *.core core.conftest.* &&
2059 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2062 for ac_signal
in 1 2 13 15; do
2063 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2067 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2068 rm -f -r conftest
* confdefs.h
2070 printf "%s\n" "/* confdefs.h */" > confdefs.h
2072 # Predefined preprocessor variables.
2074 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2076 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2078 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2080 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2082 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2084 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2087 # Let the site file select an alternate cache file if it wants to.
2088 # Prefer an explicitly selected file to automatically selected ones.
2089 if test -n "$CONFIG_SITE"; then
2090 ac_site_files
="$CONFIG_SITE"
2091 elif test "x$prefix" != xNONE
; then
2092 ac_site_files
="$prefix/share/config.site $prefix/etc/config.site"
2094 ac_site_files
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2097 for ac_site_file
in $ac_site_files
2099 case $ac_site_file in #(
2103 ac_site_file
=.
/$ac_site_file ;;
2105 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2107 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2108 sed 's/^/| /' "$ac_site_file" >&5
2110 ||
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2111 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2112 as_fn_error $?
"failed to load site script $ac_site_file
2113 See \`config.log' for more details" "$LINENO" 5; }
2117 if test -r "$cache_file"; then
2118 # Some versions of bash will fail to source /dev/null (special files
2119 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2120 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2122 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2124 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2125 *) .
"./$cache_file";;
2129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2130 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2134 # Test code for whether the C compiler supports C89 (global declarations)
2135 ac_c_conftest_c89_globals
='
2136 /* Does the compiler advertise C89 conformance?
2137 Do not test the value of __STDC__, because some compilers set it to 0
2138 while being otherwise adequately conformant. */
2139 #if !defined __STDC__
2140 # error "Compiler does not advertise C89 conformance"
2146 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2147 struct buf { int x; };
2148 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2149 static char *e (p, i)
2155 static char *f (char * (*g) (char **, int), char **p, ...)
2160 s = g (p, va_arg (v,int));
2165 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2166 function prototypes and stuff, but not \xHH hex character constants.
2167 These do not provoke an error unfortunately, instead are silently treated
2168 as an "x". The following induces an error, until -std is added to get
2169 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2170 array size at least. It is necessary to write \x00 == 0 to get something
2171 that is true only with -std. */
2172 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2174 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2175 inside strings and character constants. */
2176 #define FOO(x) '\''x'\''
2177 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2179 int test (int i, double x);
2180 struct s1 {int (*f) (int a);};
2181 struct s2 {int (*f) (double a);};
2182 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2185 # Test code for whether the C compiler supports C89 (body of main).
2186 ac_c_conftest_c89_main
='
2187 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2190 # Test code for whether the C compiler supports C99 (global declarations)
2191 ac_c_conftest_c99_globals
='
2192 // Does the compiler advertise C99 conformance?
2193 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2194 # error "Compiler does not advertise C99 conformance"
2197 #include <stdbool.h>
2198 extern int puts (const char *);
2199 extern int printf (const char *, ...);
2200 extern int dprintf (int, const char *, ...);
2201 extern void *malloc (size_t);
2203 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2204 // dprintf is used instead of fprintf to avoid needing to declare
2206 #define debug(...) dprintf (2, __VA_ARGS__)
2207 #define showlist(...) puts (#__VA_ARGS__)
2208 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2210 test_varargs_macros (void)
2215 debug ("X = %d\n", x);
2216 showlist (The first, second, and third items.);
2217 report (x>y, "x is %d but y is %d", x, y);
2220 // Check long long types.
2221 #define BIG64 18446744073709551615ull
2222 #define BIG32 4294967295ul
2223 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2225 #error "your preprocessor is broken"
2229 #error "your preprocessor is broken"
2231 static long long int bignum = -9223372036854775807LL;
2232 static unsigned long long int ubignum = BIG64;
2234 struct incomplete_array
2242 const wchar_t *name;
2246 typedef const char *ccp;
2249 test_restrict (ccp restrict text)
2251 // See if C++-style comments work.
2252 // Iterate through items via the restricted pointer.
2253 // Also check for declarations in for loops.
2254 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2259 // Check varargs and va_copy.
2261 test_varargs (const char *format, ...)
2264 va_start (args, format);
2266 va_copy (args_copy, args);
2268 const char *str = "";
2276 case '\''s'\'': // string
2277 str = va_arg (args_copy, const char *);
2279 case '\''d'\'': // int
2280 number = va_arg (args_copy, int);
2282 case '\''f'\'': // float
2283 fnumber = va_arg (args_copy, double);
2292 return *str && number && fnumber;
2296 # Test code for whether the C compiler supports C99 (body of main).
2297 ac_c_conftest_c99_main
='
2299 _Bool success = false;
2300 success |= (argc != 0);
2303 if (test_restrict ("String literal") == 0)
2305 char *restrict newvar = "Another string";
2308 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2309 test_varargs_macros ();
2311 // Check flexible array members.
2312 struct incomplete_array *ia =
2313 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2315 for (int i = 0; i < ia->datasize; ++i)
2316 ia->data[i] = i * 1.234;
2318 // Check named initializers.
2319 struct named_init ni = {
2321 .name = L"Test wide string",
2322 .average = 543.34343,
2327 int dynamic_array[ni.number];
2328 dynamic_array[0] = argv[0][0];
2329 dynamic_array[ni.number - 1] = 543;
2331 // work around unused variable warnings
2332 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2333 || dynamic_array[ni.number - 1] != 543);
2336 # Test code for whether the C compiler supports C11 (global declarations)
2337 ac_c_conftest_c11_globals
='
2338 // Does the compiler advertise C11 conformance?
2339 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2340 # error "Compiler does not advertise C11 conformance"
2344 char _Alignas (double) aligned_as_double;
2345 char _Alignas (0) no_special_alignment;
2346 extern char aligned_as_int;
2347 char _Alignas (0) _Alignas (int) aligned_as_int;
2352 int_alignment = _Alignof (int),
2353 int_array_alignment = _Alignof (int[100]),
2354 char_alignment = _Alignof (char)
2356 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2359 int _Noreturn does_not_return (void) { for (;;) continue; }
2361 // Check _Static_assert.
2362 struct test_static_assert
2365 _Static_assert (sizeof (int) <= sizeof (long int),
2366 "_Static_assert does not work in struct");
2370 // Check UTF-8 literals.
2371 #define u8 syntax error!
2372 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2374 // Check duplicate typedefs.
2375 typedef long *long_ptr;
2376 typedef long int *long_ptr;
2377 typedef long_ptr long_ptr;
2379 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2383 struct { int i; int j; };
2384 struct { int k; long int l; } w;
2390 # Test code for whether the C compiler supports C11 (body of main).
2391 ac_c_conftest_c11_main
='
2392 _Static_assert ((offsetof (struct anonymous, i)
2393 == offsetof (struct anonymous, w.k)),
2394 "Anonymous union alignment botch");
2400 # Test code for whether the C compiler supports C11 (complete).
2401 ac_c_conftest_c11_program
="${ac_c_conftest_c89_globals}
2402 ${ac_c_conftest_c99_globals}
2403 ${ac_c_conftest_c11_globals}
2406 main (int argc, char **argv)
2409 ${ac_c_conftest_c89_main}
2410 ${ac_c_conftest_c99_main}
2411 ${ac_c_conftest_c11_main}
2416 # Test code for whether the C compiler supports C99 (complete).
2417 ac_c_conftest_c99_program
="${ac_c_conftest_c89_globals}
2418 ${ac_c_conftest_c99_globals}
2421 main (int argc, char **argv)
2424 ${ac_c_conftest_c89_main}
2425 ${ac_c_conftest_c99_main}
2430 # Test code for whether the C compiler supports C89 (complete).
2431 ac_c_conftest_c89_program
="${ac_c_conftest_c89_globals}
2434 main (int argc, char **argv)
2437 ${ac_c_conftest_c89_main}
2442 as_fn_append ac_header_c_list
" stdio.h stdio_h HAVE_STDIO_H"
2443 as_fn_append ac_header_c_list
" stdlib.h stdlib_h HAVE_STDLIB_H"
2444 as_fn_append ac_header_c_list
" string.h string_h HAVE_STRING_H"
2445 as_fn_append ac_header_c_list
" inttypes.h inttypes_h HAVE_INTTYPES_H"
2446 as_fn_append ac_header_c_list
" stdint.h stdint_h HAVE_STDINT_H"
2447 as_fn_append ac_header_c_list
" strings.h strings_h HAVE_STRINGS_H"
2448 as_fn_append ac_header_c_list
" sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2449 as_fn_append ac_header_c_list
" sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2450 as_fn_append ac_header_c_list
" unistd.h unistd_h HAVE_UNISTD_H"
2452 # Auxiliary files required by this configure script.
2453 ac_aux_files
="install-sh config.guess config.sub ltmain.sh"
2455 # Locations in which to look for auxiliary files.
2456 ac_aux_dir_candidates
="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2458 # Search for a directory containing all of the required auxiliary files,
2459 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2460 # If we don't find one directory that contains all the files we need,
2461 # we report the set of missing files from the *first* directory in
2462 # $ac_aux_dir_candidates and give up.
2463 ac_missing_aux_files
=""
2464 ac_first_candidate
=:
2465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2468 for as_dir
in $ac_aux_dir_candidates
2471 case $as_dir in #(((
2474 *) as_dir
=$as_dir/ ;;
2478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2479 ac_aux_dir_found
=yes
2481 for ac_aux
in $ac_aux_files
2483 # As a special case, if "install-sh" is required, that requirement
2484 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2485 # and $ac_install_sh is set appropriately for whichever one is found.
2486 if test x
"$ac_aux" = x
"install-sh"
2488 if test -f "${as_dir}install-sh"; then
2489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2490 ac_install_sh
="${as_dir}install-sh -c"
2491 elif 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}shtool"; then
2495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2496 ac_install_sh
="${as_dir}shtool install -c"
2499 if $ac_first_candidate; then
2500 ac_missing_aux_files
="${ac_missing_aux_files} install-sh"
2506 if test -f "${as_dir}${ac_aux}"; then
2507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2510 if $ac_first_candidate; then
2511 ac_missing_aux_files
="${ac_missing_aux_files} ${ac_aux}"
2518 if test "$ac_aux_dir_found" = yes; then
2519 ac_aux_dir
="$as_dir"
2522 ac_first_candidate
=false
2531 as_fn_error $?
"cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2535 # These three variables are undocumented and unsupported,
2536 # and are intended to be withdrawn in a future Autoconf release.
2537 # They can cause serious problems if a builder's source tree is in a directory
2538 # whose full name contains unusual characters.
2539 if test -f "${ac_aux_dir}config.guess"; then
2540 ac_config_guess
="$SHELL ${ac_aux_dir}config.guess"
2542 if test -f "${ac_aux_dir}config.sub"; then
2543 ac_config_sub
="$SHELL ${ac_aux_dir}config.sub"
2545 if test -f "$ac_aux_dir/configure"; then
2546 ac_configure
="$SHELL ${ac_aux_dir}configure"
2549 # Check that the precious variables saved in the cache have kept the same
2551 ac_cache_corrupted
=false
2552 for ac_var
in $ac_precious_vars; do
2553 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2554 eval ac_new_set
=\
$ac_env_${ac_var}_set
2555 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2556 eval ac_new_val
=\
$ac_env_${ac_var}_value
2557 case $ac_old_set,$ac_new_set in
2559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2560 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2561 ac_cache_corrupted
=: ;;
2563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2564 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2565 ac_cache_corrupted
=: ;;
2568 if test "x$ac_old_val" != "x$ac_new_val"; then
2569 # differences in whitespace do not lead to failure.
2570 ac_old_val_w
=`echo x $ac_old_val`
2571 ac_new_val_w
=`echo x $ac_new_val`
2572 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2574 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2575 ac_cache_corrupted
=:
2577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2578 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2579 eval $ac_var=\
$ac_old_val
2581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2582 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2584 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2587 # Pass precious variables to config.status.
2588 if test "$ac_new_set" = set; then
2590 *\'*) ac_arg
=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2591 *) ac_arg
=$ac_var=$ac_new_val ;;
2593 case " $ac_configure_args " in
2594 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2595 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2599 if $ac_cache_corrupted; then
2600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2601 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2603 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2604 as_fn_error $?
"run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2605 and start over" "$LINENO" 5
2607 ## -------------------- ##
2608 ## Main body of script. ##
2609 ## -------------------- ##
2612 ac_cpp
='$CPP $CPPFLAGS'
2613 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2614 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2615 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2619 sqlite_version_sanity_check
=`cat $srcdir/VERSION | tr -d '\n'`
2620 if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2621 as_fn_error $?
"configure script is out of date:
2622 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2623 top level VERSION file = $sqlite_version_sanity_check
2624 please regen with autoconf" "$LINENO" 5
2634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2635 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2640 macro_version
='2.4.6'
2641 macro_revision
='2.4.6'
2656 ltmain
=$ac_aux_dir/ltmain.sh
2660 # Make sure we can run config.sub.
2661 $SHELL "${ac_aux_dir}config.sub" sun4
>/dev
/null
2>&1 ||
2662 as_fn_error $?
"cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2665 printf %s
"checking build system type... " >&6; }
2666 if test ${ac_cv_build+y}
2668 printf %s
"(cached) " >&6
2670 ac_build_alias
=$build_alias
2671 test "x$ac_build_alias" = x
&&
2672 ac_build_alias
=`$SHELL "${ac_aux_dir}config.guess"`
2673 test "x$ac_build_alias" = x
&&
2674 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2675 ac_cv_build
=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2676 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2680 printf "%s\n" "$ac_cv_build" >&6; }
2681 case $ac_cv_build in
2683 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2686 ac_save_IFS
=$IFS; IFS
='-'
2692 # Remember, the first character of IFS is used to create $*,
2693 # except with old shells:
2696 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2700 printf %s
"checking host system type... " >&6; }
2701 if test ${ac_cv_host+y}
2703 printf %s
"(cached) " >&6
2705 if test "x$host_alias" = x
; then
2706 ac_cv_host
=$ac_cv_build
2708 ac_cv_host
=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2709 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2714 printf "%s\n" "$ac_cv_host" >&6; }
2717 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2720 ac_save_IFS
=$IFS; IFS
='-'
2726 # Remember, the first character of IFS is used to create $*,
2727 # except with old shells:
2730 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2733 # Backslashify metacharacters that are still active within
2734 # double-quoted strings.
2735 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
2737 # Same as above, but do not quote variable references.
2738 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
2740 # Sed substitution to delay expansion of an escaped shell variable in a
2741 # double_quote_subst'ed string.
2742 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
2744 # Sed substitution to delay expansion of an escaped single quote.
2745 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
2747 # Sed substitution to avoid accidental globbing in evaled expressions
2748 no_glob_subst
='s/\*/\\\*/g'
2750 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2751 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2752 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2755 printf %s "checking how to print strings... " >&6; }
2756 # Test print first, because it will be a builtin if present.
2757 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2758 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2760 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2763 # Use this function as a fallback that always works.
2764 func_fallback_echo ()
2766 eval 'cat <<_LTECHO_EOF
2770 ECHO='func_fallback_echo
'
2773 # func_echo_all arg...
2774 # Invoke $ECHO with all args, space-separated.
2781 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2782 printf "%s\n" "printf" >&6; } ;;
2783 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2784 printf "%s\n" "print -r" >&6; } ;;
2785 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2786 printf "%s\n" "cat" >&6; } ;;
2812 ac_cpp='$CPP $CPPFLAGS'
2813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
2814 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
2815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2816 if test -n "$ac_tool_prefix"; then
2817 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2818 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820 printf %s "checking for $ac_word... " >&6; }
2821 if test ${ac_cv_prog_CC+y}
2823 printf %s "(cached) " >&6
2825 if test -n "$CC"; then
2826 ac_cv_prog_CC="$CC" # Let the user override the test.
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 case $as_dir in #(((
2835 *) as_dir=$as_dir/ ;;
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2839 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2850 if test -n "$CC"; then
2851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2852 printf "%s\n" "$CC" >&6; }
2854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 printf "%s\n" "no" >&6; }
2860 if test -z "$ac_cv_prog_CC"; then
2862 # Extract the first word of "gcc", so it can be a program name with args.
2863 set dummy gcc; ac_word=$2
2864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 printf %s "checking for $ac_word... " >&6; }
2866 if test ${ac_cv_prog_ac_ct_CC+y}
2868 printf %s "(cached) " >&6
2870 if test -n "$ac_ct_CC"; then
2871 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 case $as_dir in #(((
2880 *) as_dir=$as_dir/ ;;
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2884 ac_cv_prog_ac_ct_CC="gcc"
2885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2895 if test -n "$ac_ct_CC"; then
2896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2897 printf "%s\n" "$ac_ct_CC" >&6; }
2899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900 printf "%s\n" "no" >&6; }
2903 if test "x$ac_ct_CC" = x; then
2906 case $cross_compiling:$ac_tool_warned in
2908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2909 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2910 ac_tool_warned=yes ;;
2918 if test -z "$CC"; then
2919 if test -n "$ac_tool_prefix"; then
2920 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2921 set dummy ${ac_tool_prefix}cc; ac_word=$2
2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 printf %s "checking for $ac_word... " >&6; }
2924 if test ${ac_cv_prog_CC+y}
2926 printf %s "(cached) " >&6
2928 if test -n "$CC"; then
2929 ac_cv_prog_CC="$CC" # Let the user override the test.
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 case $as_dir in #(((
2938 *) as_dir=$as_dir/ ;;
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2942 ac_cv_prog_CC="${ac_tool_prefix}cc"
2943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2953 if test -n "$CC"; then
2954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2955 printf "%s\n" "$CC" >&6; }
2957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958 printf "%s\n" "no" >&6; }
2964 if test -z "$CC"; then
2965 # Extract the first word of "cc", so it can be a program name with args.
2966 set dummy cc; ac_word=$2
2967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968 printf %s "checking for $ac_word... " >&6; }
2969 if test ${ac_cv_prog_CC+y}
2971 printf %s "(cached) " >&6
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC="$CC" # Let the user override the test.
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 case $as_dir in #(((
2984 *) as_dir=$as_dir/ ;;
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2988 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2989 ac_prog_rejected=yes
2993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3000 if test $ac_prog_rejected = yes; then
3001 # We found a bogon in the path, so make sure we never use it.
3002 set dummy $ac_cv_prog_CC
3004 if test $# != 0; then
3005 # We chose a different compiler from the bogus one.
3006 # However, it has the same basename, so the bogon will be chosen
3007 # first if we set CC to just the basename; use the full file name.
3009 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3015 if test -n "$CC"; then
3016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3017 printf "%s\n" "$CC" >&6; }
3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 printf "%s\n" "no" >&6; }
3025 if test -z "$CC"; then
3026 if test -n "$ac_tool_prefix"; then
3027 for ac_prog in cl.exe
3029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032 printf %s "checking for $ac_word... " >&6; }
3033 if test ${ac_cv_prog_CC+y}
3035 printf %s "(cached) " >&6
3037 if test -n "$CC"; then
3038 ac_cv_prog_CC="$CC" # Let the user override the test.
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 case $as_dir in #(((
3047 *) as_dir=$as_dir/ ;;
3049 for ac_exec_ext in '' $ac_executable_extensions; do
3050 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3051 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3062 if test -n "$CC"; then
3063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3064 printf "%s\n" "$CC" >&6; }
3066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 printf "%s\n" "no" >&6; }
3071 test -n "$CC" && break
3074 if test -z "$CC"; then
3076 for ac_prog in cl.exe
3078 # Extract the first word of "$ac_prog", so it can be a program name with args.
3079 set dummy $ac_prog; ac_word=$2
3080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 printf %s "checking for $ac_word... " >&6; }
3082 if test ${ac_cv_prog_ac_ct_CC+y}
3084 printf %s "(cached) " >&6
3086 if test -n "$ac_ct_CC"; then
3087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 case $as_dir in #(((
3096 *) as_dir=$as_dir/ ;;
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3100 ac_cv_prog_ac_ct_CC="$ac_prog"
3101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3110 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3111 if test -n "$ac_ct_CC"; then
3112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3113 printf "%s\n" "$ac_ct_CC" >&6; }
3115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 printf "%s\n" "no" >&6; }
3120 test -n "$ac_ct_CC" && break
3123 if test "x$ac_ct_CC" = x; then
3126 case $cross_compiling:$ac_tool_warned in
3128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3129 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3130 ac_tool_warned=yes ;;
3137 if test -z "$CC"; then
3138 if test -n "$ac_tool_prefix"; then
3139 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3140 set dummy ${ac_tool_prefix}clang; ac_word=$2
3141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142 printf %s "checking for $ac_word... " >&6; }
3143 if test ${ac_cv_prog_CC+y}
3145 printf %s "(cached) " >&6
3147 if test -n "$CC"; then
3148 ac_cv_prog_CC="$CC" # Let the user override the test.
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 case $as_dir in #(((
3157 *) as_dir=$as_dir/ ;;
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3161 ac_cv_prog_CC="${ac_tool_prefix}clang"
3162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3172 if test -n "$CC"; then
3173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3174 printf "%s\n" "$CC" >&6; }
3176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 printf "%s\n" "no" >&6; }
3182 if test -z "$ac_cv_prog_CC"; then
3184 # Extract the first word of "clang", so it can be a program name with args.
3185 set dummy clang; ac_word=$2
3186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 printf %s "checking for $ac_word... " >&6; }
3188 if test ${ac_cv_prog_ac_ct_CC+y}
3190 printf %s "(cached) " >&6
3192 if test -n "$ac_ct_CC"; then
3193 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 case $as_dir in #(((
3202 *) as_dir=$as_dir/ ;;
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3206 ac_cv_prog_ac_ct_CC="clang"
3207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3217 if test -n "$ac_ct_CC"; then
3218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3219 printf "%s\n" "$ac_ct_CC" >&6; }
3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 printf "%s\n" "no" >&6; }
3225 if test "x$ac_ct_CC" = x; then
3228 case $cross_compiling:$ac_tool_warned in
3230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3231 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3232 ac_tool_warned=yes ;;
3243 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244 printf "%s
\n" "$as_me: error
: in \
`$ac_pwd':" >&2;}
3245 as_fn_error $? "no acceptable C compiler found in \$PATH
3246 See \`config.log
' for more details" "$LINENO" 5; }
3248 # Provide some information about the compiler.
3249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3252 for ac_option in --version -v -V -qversion -version; do
3253 { { ac_try="$ac_compiler $ac_option >&5"
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3259 printf "%s\n" "$ac_try_echo"; } >&5
3260 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3262 if test -s conftest.err; then
3264 ... rest of stderr output deleted ...
3265 10q
' conftest.err >conftest.er1
3266 cat conftest.er1 >&5
3268 rm -f conftest.er1 conftest.err
3269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270 test $ac_status = 0; }
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h. */
3284 ac_clean_files_save=$ac_clean_files
3285 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3286 # Try to create an executable without -o first, disregard a.out.
3287 # It will help us diagnose broken compilers, and finding out an intuition
3289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3290 printf %s "checking whether the C compiler works... " >&6; }
3291 ac_link_default=`printf "%s\n" "$ac_link" | sed 's
/ -o *conftest
[^
]*//'`
3293 # The possible output files:
3294 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3297 for ac_file in $ac_files
3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3301 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3306 if { { ac_try="$ac_link_default"
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312 printf "%s\n" "$ac_try_echo"; } >&5
3313 (eval "$ac_link_default") 2>&5
3315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3316 test $ac_status = 0; }
3318 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3319 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3320 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3321 # so that the user can short-circuit this test for compilers unknown to
3323 for ac_file
in $ac_files ''
3325 test -f "$ac_file" ||
continue
3327 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3330 # We found the default executable, but exeext='' is most
3334 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no
;
3336 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3338 # We set ac_cv_exeext here because the later test for it is not
3339 # safe: cross compilers may not add the suffix if given an `-o'
3340 # argument, so we may need to know it at that point already.
3341 # Even if this section looks crufty: it has the advantage of
3348 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3353 if test -z "$ac_file"
3355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356 printf "%s\n" "no" >&6; }
3357 printf "%s\n" "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.
$ac_ext >&5
3360 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3362 as_fn_error
77 "C compiler cannot create executables
3363 See \`config.log' for more details" "$LINENO" 5; }
3365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3366 printf "%s\n" "yes" >&6; }
3368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3369 printf %s
"checking for C compiler default output file name... " >&6; }
3370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3371 printf "%s\n" "$ac_file" >&6; }
3372 ac_exeext
=$ac_cv_exeext
3374 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3375 ac_clean_files
=$ac_clean_files_save
3376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3377 printf %s
"checking for suffix of executables... " >&6; }
3378 if { { ac_try
="$ac_link"
3380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384 printf "%s\n" "$ac_try_echo"; } >&5
3385 (eval "$ac_link") 2>&5
3387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3388 test $ac_status = 0; }
3390 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3391 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3392 # work properly (i.e., refer to `conftest.exe'), while it won't with
3394 for ac_file
in conftest.exe conftest conftest.
*; do
3395 test -f "$ac_file" ||
continue
3397 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3398 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3404 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3405 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3406 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3407 See \`config.log' for more details" "$LINENO" 5; }
3409 rm -f conftest conftest
$ac_cv_exeext
3410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3411 printf "%s\n" "$ac_cv_exeext" >&6; }
3413 rm -f conftest.
$ac_ext
3414 EXEEXT
=$ac_cv_exeext
3416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3422 FILE *f = fopen ("conftest.out", "w");
3423 return ferror (f) || fclose (f) != 0;
3429 ac_clean_files
="$ac_clean_files conftest.out"
3430 # Check that the compiler produces executables we can run. If not, either
3431 # the compiler is broken, or we cross compile.
3432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3433 printf %s
"checking whether we are cross compiling... " >&6; }
3434 if test "$cross_compiling" != yes; then
3435 { { ac_try
="$ac_link"
3437 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441 printf "%s\n" "$ac_try_echo"; } >&5
3442 (eval "$ac_link") 2>&5
3444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445 test $ac_status = 0; }
3446 if { ac_try='./conftest$ac_cv_exeext'
3447 { { case "(($ac_try" in
3448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3449 *) ac_try_echo
=$ac_try;;
3451 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452 printf "%s\n" "$ac_try_echo"; } >&5
3453 (eval "$ac_try") 2>&5
3455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456 test $ac_status = 0; }; }; then
3459 if test "$cross_compiling" = maybe
; then
3462 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3464 as_fn_error
77 "cannot run C compiled programs.
3465 If you meant to cross compile, use \`--host'.
3466 See \`config.log' for more details" "$LINENO" 5; }
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3471 printf "%s\n" "$cross_compiling" >&6; }
3473 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3474 ac_clean_files
=$ac_clean_files_save
3475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3476 printf %s
"checking for suffix of object files... " >&6; }
3477 if test ${ac_cv_objext+y}
3479 printf %s
"(cached) " >&6
3481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3492 rm -f conftest.o conftest.obj
3493 if { { ac_try
="$ac_compile"
3495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499 printf "%s\n" "$ac_try_echo"; } >&5
3500 (eval "$ac_compile") 2>&5
3502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503 test $ac_status = 0; }
3505 for ac_file in conftest.o conftest.obj conftest.*; do
3506 test -f "$ac_file" || continue;
3508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3509 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3514 printf "%s\n" "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3518 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3519 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3520 See \
`config.log' for more details" "$LINENO" 5; }
3522 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3525 printf "%s\n" "$ac_cv_objext" >&6; }
3526 OBJEXT=$ac_cv_objext
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3529 printf %s "checking whether the compiler supports GNU C... " >&6; }
3530 if test ${ac_cv_c_compiler_gnu+y}
3532 printf %s "(cached) " >&6
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3548 if ac_fn_c_try_compile "$LINENO"
3554 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3555 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3559 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3562 if test $ac_compiler_gnu = yes; then
3567 ac_test_CFLAGS=${CFLAGS+y}
3568 ac_save_CFLAGS=$CFLAGS
3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3570 printf %s "checking whether $CC accepts -g... " >&6; }
3571 if test ${ac_cv_prog_cc_g+y}
3573 printf %s "(cached) " >&6
3575 ac_save_c_werror_flag=$ac_c_werror_flag
3576 ac_c_werror_flag=yes
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h. */
3590 if ac_fn_c_try_compile "$LINENO"
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h. */
3606 if ac_fn_c_try_compile "$LINENO"
3610 ac_c_werror_flag=$ac_save_c_werror_flag
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3623 if ac_fn_c_try_compile "$LINENO"
3627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3632 ac_c_werror_flag=$ac_save_c_werror_flag
3634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3635 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3636 if test $ac_test_CFLAGS; then
3637 CFLAGS=$ac_save_CFLAGS
3638 elif test $ac_cv_prog_cc_g = yes; then
3639 if test "$GCC" = yes; then
3645 if test "$GCC" = yes; then
3652 if test x$ac_prog_cc_stdc = xno
3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3655 printf %s "checking for $CC option to enable C11 features... " >&6; }
3656 if test ${ac_cv_prog_cc_c11+y}
3658 printf %s "(cached) " >&6
3660 ac_cv_prog_cc_c11=no
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663 /* end confdefs.h. */
3664 $ac_c_conftest_c11_program
3666 for ac_arg in '' -std=gnu11
3668 CC="$ac_save_CC $ac_arg"
3669 if ac_fn_c_try_compile "$LINENO"
3671 ac_cv_prog_cc_c11=$ac_arg
3673 rm -f core conftest.err conftest.$ac_objext conftest.beam
3674 test "x$ac_cv_prog_cc_c11" != "xno" && break
3676 rm -f conftest.$ac_ext
3680 if test "x$ac_cv_prog_cc_c11" = xno
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3683 printf "%s\n" "unsupported" >&6; }
3685 if test "x$ac_cv_prog_cc_c11" = x
3687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3688 printf "%s\n" "none needed" >&6; }
3690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3691 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3692 CC="$CC $ac_cv_prog_cc_c11"
3694 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3698 if test x$ac_prog_cc_stdc = xno
3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3701 printf %s "checking for $CC option to enable C99 features... " >&6; }
3702 if test ${ac_cv_prog_cc_c99+y}
3704 printf %s "(cached) " >&6
3706 ac_cv_prog_cc_c99=no
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3710 $ac_c_conftest_c99_program
3712 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3714 CC="$ac_save_CC $ac_arg"
3715 if ac_fn_c_try_compile "$LINENO"
3717 ac_cv_prog_cc_c99=$ac_arg
3719 rm -f core conftest.err conftest.$ac_objext conftest.beam
3720 test "x$ac_cv_prog_cc_c99" != "xno" && break
3722 rm -f conftest.$ac_ext
3726 if test "x$ac_cv_prog_cc_c99" = xno
3728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3729 printf "%s\n" "unsupported" >&6; }
3731 if test "x$ac_cv_prog_cc_c99" = x
3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3734 printf "%s\n" "none needed" >&6; }
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3737 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3738 CC="$CC $ac_cv_prog_cc_c99"
3740 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3744 if test x$ac_prog_cc_stdc = xno
3746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3747 printf %s "checking for $CC option to enable C89 features... " >&6; }
3748 if test ${ac_cv_prog_cc_c89+y}
3750 printf %s "(cached) " >&6
3752 ac_cv_prog_cc_c89=no
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3756 $ac_c_conftest_c89_program
3758 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3760 CC="$ac_save_CC $ac_arg"
3761 if ac_fn_c_try_compile "$LINENO"
3763 ac_cv_prog_cc_c89=$ac_arg
3765 rm -f core conftest.err conftest.$ac_objext conftest.beam
3766 test "x$ac_cv_prog_cc_c89" != "xno" && break
3768 rm -f conftest.$ac_ext
3772 if test "x$ac_cv_prog_cc_c89" = xno
3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3775 printf "%s\n" "unsupported" >&6; }
3777 if test "x$ac_cv_prog_cc_c89" = x
3779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3780 printf "%s\n" "none needed" >&6; }
3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3783 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3784 CC="$CC $ac_cv_prog_cc_c89"
3786 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3792 ac_cpp='$CPP $CPPFLAGS'
3793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3798 printf %s "checking for a sed that does not truncate output... " >&6; }
3799 if test ${ac_cv_path_SED+y}
3801 printf %s "(cached) " >&6
3803 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3804 for ac_i in 1 2 3 4 5 6 7; do
3805 ac_script="$ac_script$as_nl$ac_script"
3807 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3808 { ac_script=; unset ac_script;}
3809 if test -z "$SED"; then
3810 ac_path_SED_found=false
3811 # Loop through the user's path and test for each of PROGNAME-LIST
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 case $as_dir in #(((
3819 *) as_dir=$as_dir/ ;;
3821 for ac_prog in sed gsed
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
3825 as_fn_executable_p "$ac_path_SED" || continue
3826 # Check for GNU ac_path_SED and select it if it is found.
3827 # Check for GNU $ac_path_SED
3828 case `"$ac_path_SED" --version 2>&1` in
3830 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3833 printf %s 0123456789 >"conftest.in"
3836 cat "conftest.in" "conftest.in" >"conftest.tmp"
3837 mv "conftest.tmp" "conftest.in"
3838 cp "conftest.in" "conftest.nl"
3839 printf "%s\n" '' >> "conftest.nl"
3840 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3841 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3842 as_fn_arith $ac_count + 1 && ac_count=$as_val
3843 if test $ac_count -gt ${ac_path_SED_max-0}; then
3844 # Best one so far, save it but keep looking for a better one
3845 ac_cv_path_SED="$ac_path_SED"
3846 ac_path_SED_max=$ac_count
3848 # 10*(2^10) chars as input seems more than enough
3849 test $ac_count -gt 10 && break
3851 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3854 $ac_path_SED_found && break 3
3859 if test -z "$ac_cv_path_SED"; then
3860 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3868 printf "%s\n" "$ac_cv_path_SED" >&6; }
3869 SED="$ac_cv_path_SED"
3872 test -z "$SED" && SED=sed
3873 Xsed="$SED -e 1s/^X//"
3885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3886 printf %s "checking for grep that handles long lines and -e... " >&6; }
3887 if test ${ac_cv_path_GREP+y}
3889 printf %s "(cached) " >&6
3891 if test -z "$GREP"; then
3892 ac_path_GREP_found=false
3893 # Loop through the user's path and test for each of PROGNAME-LIST
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3898 case $as_dir in #(((
3901 *) as_dir=$as_dir/ ;;
3903 for ac_prog in grep ggrep
3905 for ac_exec_ext in '' $ac_executable_extensions; do
3906 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
3907 as_fn_executable_p "$ac_path_GREP" || continue
3908 # Check for GNU ac_path_GREP and select it if it is found.
3909 # Check for GNU $ac_path_GREP
3910 case `"$ac_path_GREP" --version 2>&1` in
3912 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3915 printf %s 0123456789 >"conftest.in"
3918 cat "conftest.in" "conftest.in" >"conftest.tmp"
3919 mv "conftest.tmp" "conftest.in"
3920 cp "conftest.in" "conftest.nl"
3921 printf "%s\n" 'GREP' >> "conftest.nl"
3922 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3923 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3924 as_fn_arith $ac_count + 1 && ac_count=$as_val
3925 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3926 # Best one so far, save it but keep looking for a better one
3927 ac_cv_path_GREP="$ac_path_GREP"
3928 ac_path_GREP_max=$ac_count
3930 # 10*(2^10) chars as input seems more than enough
3931 test $ac_count -gt 10 && break
3933 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3936 $ac_path_GREP_found && break 3
3941 if test -z "$ac_cv_path_GREP"; then
3942 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3945 ac_cv_path_GREP=$GREP
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3950 printf "%s\n" "$ac_cv_path_GREP" >&6; }
3951 GREP="$ac_cv_path_GREP"
3954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3955 printf %s "checking for egrep... " >&6; }
3956 if test ${ac_cv_path_EGREP+y}
3958 printf %s "(cached) " >&6
3960 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3961 then ac_cv_path_EGREP="$GREP -E"
3963 if test -z "$EGREP"; then
3964 ac_path_EGREP_found=false
3965 # Loop through the user's path and test for each of PROGNAME-LIST
3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3970 case $as_dir in #(((
3973 *) as_dir=$as_dir/ ;;
3975 for ac_prog in egrep
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
3979 as_fn_executable_p "$ac_path_EGREP" || continue
3980 # Check for GNU ac_path_EGREP and select it if it is found.
3981 # Check for GNU $ac_path_EGREP
3982 case `"$ac_path_EGREP" --version 2>&1` in
3984 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3987 printf %s 0123456789 >"conftest.in"
3990 cat "conftest.in" "conftest.in" >"conftest.tmp"
3991 mv "conftest.tmp" "conftest.in"
3992 cp "conftest.in" "conftest.nl"
3993 printf "%s\n" 'EGREP' >> "conftest.nl"
3994 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3995 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3996 as_fn_arith $ac_count + 1 && ac_count=$as_val
3997 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3998 # Best one so far, save it but keep looking for a better one
3999 ac_cv_path_EGREP="$ac_path_EGREP"
4000 ac_path_EGREP_max=$ac_count
4002 # 10*(2^10) chars as input seems more than enough
4003 test $ac_count -gt 10 && break
4005 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4008 $ac_path_EGREP_found && break 3
4013 if test -z "$ac_cv_path_EGREP"; then
4014 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4017 ac_cv_path_EGREP=$EGREP
4022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4023 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4024 EGREP="$ac_cv_path_EGREP"
4027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4028 printf %s "checking for fgrep... " >&6; }
4029 if test ${ac_cv_path_FGREP+y}
4031 printf %s "(cached) " >&6
4033 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4034 then ac_cv_path_FGREP="$GREP -F"
4036 if test -z "$FGREP"; then
4037 ac_path_FGREP_found=false
4038 # Loop through the user's path and test for each of PROGNAME-LIST
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4043 case $as_dir in #(((
4046 *) as_dir=$as_dir/ ;;
4048 for ac_prog in fgrep
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4052 as_fn_executable_p "$ac_path_FGREP" || continue
4053 # Check for GNU ac_path_FGREP and select it if it is found.
4054 # Check for GNU $ac_path_FGREP
4055 case `"$ac_path_FGREP" --version 2>&1` in
4057 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4060 printf %s 0123456789 >"conftest.in"
4063 cat "conftest.in" "conftest.in" >"conftest.tmp"
4064 mv "conftest.tmp" "conftest.in"
4065 cp "conftest.in" "conftest.nl"
4066 printf "%s\n" 'FGREP' >> "conftest.nl"
4067 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4068 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4069 as_fn_arith $ac_count + 1 && ac_count=$as_val
4070 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4071 # Best one so far, save it but keep looking for a better one
4072 ac_cv_path_FGREP="$ac_path_FGREP"
4073 ac_path_FGREP_max=$ac_count
4075 # 10*(2^10) chars as input seems more than enough
4076 test $ac_count -gt 10 && break
4078 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4081 $ac_path_FGREP_found && break 3
4086 if test -z "$ac_cv_path_FGREP"; then
4087 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4090 ac_cv_path_FGREP=$FGREP
4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4096 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4097 FGREP="$ac_cv_path_FGREP"
4100 test -z "$GREP" && GREP=grep
4120 # Check whether --with-gnu-ld was given.
4121 if test ${with_gnu_ld+y}
4123 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4129 if test yes = "$GCC"; then
4130 # Check if gcc -print-prog-name=ld gives a path.
4131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4132 printf %s "checking for ld used by $CC... " >&6; }
4135 # gcc leaves a trailing carriage return, which upsets mingw
4136 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
4138 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
4141 # Accept absolute paths.
4143 re_direlt='/[^/][^/]*/\.\./'
4144 # Canonicalize the pathname of ld
4145 ac_prog=`$ECHO "$ac_prog"|
$SED 's%\\\\%/%g'`
4146 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4147 ac_prog=`$ECHO $ac_prog|
$SED "s%$re_direlt%/%"`
4149 test -z "$LD" && LD=$ac_prog
4152 # If it fails, then pretend we aren't using GCC.
4156 # If it is relative, then search for the first ld in PATH.
4160 elif test yes = "$with_gnu_ld"; then
4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4162 printf %s "checking for GNU ld... " >&6; }
4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4165 printf %s "checking for non-GNU ld... " >&6; }
4167 if test ${lt_cv_path_LD+y}
4169 printf %s "(cached) " >&6
4171 if test -z "$LD"; then
4172 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4173 for ac_dir in $PATH; do
4175 test -z "$ac_dir" && ac_dir=.
4176 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4177 lt_cv_path_LD=$ac_dir/$ac_prog
4178 # Check to see if the program is GNU ld. I'd rather use --version,
4179 # but apparently some variants of GNU ld only accept -v.
4180 # Break only if it was the GNU/non-GNU ld that we prefer.
4181 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
4182 *GNU* | *'with BFD'*)
4183 test no != "$with_gnu_ld" && break
4186 test yes != "$with_gnu_ld" && break
4193 lt_cv_path_LD=$LD # Let the user override the test with a path.
4198 if test -n "$LD"; then
4199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4200 printf "%s\n" "$LD" >&6; }
4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 printf "%s\n" "no" >&6; }
4205 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4207 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
4208 if test ${lt_cv_prog_gnu_ld+y}
4210 printf %s "(cached) " >&6
4212 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4213 case `$LD -v 2>&1 </dev
/null
` in
4214 *GNU* | *'with BFD'*)
4215 lt_cv_prog_gnu_ld=yes
4218 lt_cv_prog_gnu_ld=no
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4223 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
4224 with_gnu_ld=$lt_cv_prog_gnu_ld
4234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4235 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4236 if test ${lt_cv_path_NM+y}
4238 printf %s "(cached) " >&6
4240 if test -n "$NM"; then
4241 # Let the user override the test.
4244 lt_nm_to_check=${ac_tool_prefix}nm
4245 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4246 lt_nm_to_check="$lt_nm_to_check nm"
4248 for lt_tmp_nm in $lt_nm_to_check; do
4249 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4250 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4252 test -z "$ac_dir" && ac_dir=.
4253 tmp_nm=$ac_dir/$lt_tmp_nm
4254 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4255 # Check to see if the nm accepts a BSD-compat flag.
4256 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4257 # nm: unknown option "B" ignored
4258 # Tru64's nm complains that /dev/null is an invalid object file
4259 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4261 mingw*) lt_bad_file=conftest.nm/nofile ;;
4262 *) lt_bad_file=/dev/null ;;
4264 case `"$tmp_nm" -B $lt_bad_file 2>&1 |
sed '1q'` in
4265 *$lt_bad_file* | *'Invalid file or object type'*)
4266 lt_cv_path_NM="$tmp_nm -B"
4270 case `"$tmp_nm" -p /dev
/null
2>&1 |
sed '1q'` in
4272 lt_cv_path_NM="$tmp_nm -p"
4276 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4277 continue # so that we can try to find one that supports BSD flags
4286 : ${lt_cv_path_NM=no}
4289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4290 printf "%s\n" "$lt_cv_path_NM" >&6; }
4291 if test no != "$lt_cv_path_NM"; then
4294 # Didn't find any BSD compatible name lister, look for dumpbin.
4295 if test -n "$DUMPBIN"; then :
4296 # Let the user override the test.
4298 if test -n "$ac_tool_prefix"; then
4299 for ac_prog in dumpbin "link -dump"
4301 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4302 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4304 printf %s "checking for $ac_word... " >&6; }
4305 if test ${ac_cv_prog_DUMPBIN+y}
4307 printf %s "(cached) " >&6
4309 if test -n "$DUMPBIN"; then
4310 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 case $as_dir in #(((
4319 *) as_dir=$as_dir/ ;;
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4323 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4333 DUMPBIN=$ac_cv_prog_DUMPBIN
4334 if test -n "$DUMPBIN"; then
4335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4336 printf "%s\n" "$DUMPBIN" >&6; }
4338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 printf "%s\n" "no" >&6; }
4343 test -n "$DUMPBIN" && break
4346 if test -z "$DUMPBIN"; then
4347 ac_ct_DUMPBIN=$DUMPBIN
4348 for ac_prog in dumpbin "link -dump"
4350 # Extract the first word of "$ac_prog", so it can be a program name with args.
4351 set dummy $ac_prog; ac_word=$2
4352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 printf %s "checking for $ac_word... " >&6; }
4354 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
4356 printf %s "(cached) " >&6
4358 if test -n "$ac_ct_DUMPBIN"; then
4359 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 case $as_dir in #(((
4368 *) as_dir=$as_dir/ ;;
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4372 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4382 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4383 if test -n "$ac_ct_DUMPBIN"; then
4384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4385 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 printf "%s\n" "no" >&6; }
4392 test -n "$ac_ct_DUMPBIN" && break
4395 if test "x$ac_ct_DUMPBIN" = x; then
4398 case $cross_compiling:$ac_tool_warned in
4400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4401 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4402 ac_tool_warned=yes ;;
4404 DUMPBIN=$ac_ct_DUMPBIN
4408 case `$DUMPBIN -symbols -headers /dev
/null
2>&1 |
sed '1q'` in
4410 DUMPBIN="$DUMPBIN -symbols -headers"
4418 if test : != "$DUMPBIN"; then
4422 test -z "$NM" && NM=nm
4429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4430 printf %s "checking the name lister ($NM) interface... " >&6; }
4431 if test ${lt_cv_nm_interface+y}
4433 printf %s "(cached) " >&6
4435 lt_cv_nm_interface="BSD nm"
4436 echo "int some_variable = 0;" > conftest.$ac_ext
4437 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4438 (eval "$ac_compile" 2>conftest.err)
4439 cat conftest.err >&5
4440 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4441 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4442 cat conftest.err >&5
4443 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4444 cat conftest.out >&5
4445 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4446 lt_cv_nm_interface="MS dumpbin"
4450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4451 printf "%s\n" "$lt_cv_nm_interface" >&6; }
4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4454 printf %s "checking whether ln -s works... " >&6; }
4456 if test "$LN_S" = "ln -s"; then
4457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4458 printf "%s\n" "yes" >&6; }
4460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4461 printf "%s\n" "no, using $LN_S" >&6; }
4464 # find the maximum length of command line arguments
4465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4466 printf %s "checking the maximum length of command line arguments... " >&6; }
4467 if test ${lt_cv_sys_max_cmd_len+y}
4469 printf %s "(cached) " >&6
4476 # On DJGPP, this test can blow up pretty badly due to problems in libc
4477 # (any single argument exceeding 2000 bytes causes a buffer overrun
4478 # during glob expansion). Even if it were fixed, the result of this
4479 # check would be larger than it should be.
4480 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4484 # Under GNU Hurd, this test is not required because there is
4485 # no limit to the length of command line arguments.
4486 # Libtool will interpret -1 as no limit whatsoever
4487 lt_cv_sys_max_cmd_len=-1;
4490 cygwin* | mingw* | cegcc*)
4491 # On Win9x/ME, this test blows up -- it succeeds, but takes
4492 # about 5 minutes as the teststring grows exponentially.
4493 # Worse, since 9x/ME are not pre-emptively multitasking,
4494 # you end up with a "frozen" computer, even though with patience
4495 # the test eventually succeeds (with a max line length of 256k).
4496 # Instead, let's just punt: use the minimum linelength reported by
4497 # all of the supported platforms: 8192 (on NT/2K/XP).
4498 lt_cv_sys_max_cmd_len=8192;
4502 # On MiNT this can take a long time and run out of memory.
4503 lt_cv_sys_max_cmd_len=8192;
4507 # On AmigaOS with pdksh, this test takes hours, literally.
4508 # So we just punt and use a minimum line length of 8192.
4509 lt_cv_sys_max_cmd_len=8192;
4512 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4513 # This has been around since 386BSD, at least. Likely further.
4514 if test -x /sbin/sysctl; then
4515 lt_cv_sys_max_cmd_len=`/sbin
/sysctl
-n kern.argmax
`
4516 elif test -x /usr/sbin/sysctl; then
4517 lt_cv_sys_max_cmd_len=`/usr
/sbin
/sysctl
-n kern.argmax
`
4519 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4521 # And add a safety zone
4522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 4`
4523 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
* 3`
4527 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4528 lt_cv_sys_max_cmd_len=196608
4532 # The test takes a long time on OS/2.
4533 lt_cv_sys_max_cmd_len=8192
4537 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4538 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4539 # nice to cause kernel panics so lets avoid the loop below.
4540 # First set a reasonable default.
4541 lt_cv_sys_max_cmd_len=16384
4543 if test -x /sbin/sysconfig; then
4544 case `/sbin
/sysconfig
-q proc exec_disable_arg_limit
` in
4545 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4550 lt_cv_sys_max_cmd_len=102400
4552 sysv5* | sco5v6* | sysv4.2uw2*)
4553 kargmax=`grep ARG_MAX
/etc
/conf
/cf.d
/stune
2>/dev
/null
`
4554 if test -n "$kargmax"; then
4555 lt_cv_sys_max_cmd_len=`echo $kargmax |
sed 's/.*[ ]//'`
4557 lt_cv_sys_max_cmd_len=32768
4561 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX
) 2> /dev
/null
`
4562 if test -n "$lt_cv_sys_max_cmd_len" && \
4563 test undefined != "$lt_cv_sys_max_cmd_len"; then
4564 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 4`
4565 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
* 3`
4567 # Make teststring a little bigger before we do anything with it.
4568 # a 1K string should be a reasonable start.
4569 for i in 1 2 3 4 5 6 7 8; do
4570 teststring=$teststring$teststring
4572 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4573 # If test is not a shell built-in, we'll probably end up computing a
4574 # maximum length that is only half of the actual maximum length, but
4576 while { test X`env
echo "$teststring$teststring" 2>/dev
/null
` \
4577 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4578 test 17 != "$i" # 1/2 MB should be enough
4581 teststring=$teststring$teststring
4583 # Only check the string length outside the loop.
4584 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4586 # Add a significant safety factor because C++ compilers can tack on
4587 # massive amounts of additional arguments before passing them to the
4588 # linker. It appears as though 1/2 is a usable value.
4589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 2`
4596 if test -n "$lt_cv_sys_max_cmd_len"; then
4597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4598 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
4600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
4601 printf "%s\n" "none" >&6; }
4603 max_cmd_len=$lt_cv_sys_max_cmd_len
4614 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4624 # test EBCDIC or ASCII
4625 case `echo X|
tr X
'\101'` in
4626 A) # ASCII based system
4627 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4628 lt_SP2NL='tr \040 \012'
4629 lt_NL2SP='tr \015\012 \040\040'
4631 *) # EBCDIC based system
4632 lt_SP2NL='tr \100 \n'
4633 lt_NL2SP='tr \r\n \100\100'
4645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4646 printf %s "checking how to convert $build file names to $host format... " >&6; }
4647 if test ${lt_cv_to_host_file_cmd+y}
4649 printf %s "(cached) " >&6
4654 *-*-mingw* ) # actually msys
4655 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4658 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4660 * ) # otherwise, assume *nix
4661 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4667 *-*-mingw* ) # actually msys
4668 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4671 lt_cv_to_host_file_cmd=func_convert_file_noop
4673 * ) # otherwise, assume *nix
4674 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4678 * ) # unhandled hosts (and "normal" native builds)
4679 lt_cv_to_host_file_cmd=func_convert_file_noop
4685 to_host_file_cmd=$lt_cv_to_host_file_cmd
4686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4687 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
4693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4694 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
4695 if test ${lt_cv_to_tool_file_cmd+y}
4697 printf %s "(cached) " >&6
4699 #assume ordinary cross tools, or native build.
4700 lt_cv_to_tool_file_cmd=func_convert_file_noop
4704 *-*-mingw* ) # actually msys
4705 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4713 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4715 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
4721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4722 printf %s "checking for $LD option to reload object files... " >&6; }
4723 if test ${lt_cv_ld_reload_flag+y}
4725 printf %s "(cached) " >&6
4727 lt_cv_ld_reload_flag='-r'
4729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4730 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
4731 reload_flag=$lt_cv_ld_reload_flag
4732 case $reload_flag in
4734 *) reload_flag=" $reload_flag" ;;
4736 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4738 cygwin* | mingw* | pw32* | cegcc*)
4739 if test yes != "$GCC"; then
4744 if test yes = "$GCC"; then
4745 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4747 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4760 if test -n "$ac_tool_prefix"; then
4761 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4762 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764 printf %s "checking for $ac_word... " >&6; }
4765 if test ${ac_cv_prog_OBJDUMP+y}
4767 printf %s "(cached) " >&6
4769 if test -n "$OBJDUMP"; then
4770 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 case $as_dir in #(((
4779 *) as_dir=$as_dir/ ;;
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4783 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4793 OBJDUMP=$ac_cv_prog_OBJDUMP
4794 if test -n "$OBJDUMP"; then
4795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4796 printf "%s\n" "$OBJDUMP" >&6; }
4798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4799 printf "%s\n" "no" >&6; }
4804 if test -z "$ac_cv_prog_OBJDUMP"; then
4805 ac_ct_OBJDUMP=$OBJDUMP
4806 # Extract the first word of "objdump", so it can be a program name with args.
4807 set dummy objdump; ac_word=$2
4808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4809 printf %s "checking for $ac_word... " >&6; }
4810 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
4812 printf %s "(cached) " >&6
4814 if test -n "$ac_ct_OBJDUMP"; then
4815 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 case $as_dir in #(((
4824 *) as_dir=$as_dir/ ;;
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4828 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4838 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4839 if test -n "$ac_ct_OBJDUMP"; then
4840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4841 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
4843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 printf "%s\n" "no" >&6; }
4847 if test "x$ac_ct_OBJDUMP" = x; then
4850 case $cross_compiling:$ac_tool_warned in
4852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4853 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4854 ac_tool_warned=yes ;;
4856 OBJDUMP=$ac_ct_OBJDUMP
4859 OBJDUMP="$ac_cv_prog_OBJDUMP"
4862 test -z "$OBJDUMP" && OBJDUMP=objdump
4872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4873 printf %s "checking how to recognize dependent libraries... " >&6; }
4874 if test ${lt_cv_deplibs_check_method+y}
4876 printf %s "(cached) " >&6
4878 lt_cv_file_magic_cmd='$MAGIC_CMD'
4879 lt_cv_file_magic_test_file=
4880 lt_cv_deplibs_check_method='unknown'
4881 # Need to set the preceding variable on all platforms that support
4882 # interlibrary dependencies.
4883 # 'none' -- dependencies not supported.
4884 # 'unknown' -- same as none, but documents that we really don't know.
4885 # 'pass_all' -- all dependencies passed with no checks.
4886 # 'test_compile' -- check by making test program.
4887 # 'file_magic [[regex]]' -- check by looking for files in library path
4888 # that responds to the $file_magic_cmd with a given extended regex.
4889 # If you have 'file' or equivalent on your system and you're not sure
4890 # whether 'pass_all' will *always* work, you probably want this one.
4894 lt_cv_deplibs_check_method=pass_all
4898 lt_cv_deplibs_check_method=pass_all
4902 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4903 lt_cv_file_magic_cmd='/usr/bin/file -L'
4904 lt_cv_file_magic_test_file=/shlib/libc.so
4908 # func_win32_libid is a shell function defined in ltmain.sh
4909 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4910 lt_cv_file_magic_cmd='func_win32_libid'
4914 # Base MSYS/MinGW do not provide the 'file' command needed by
4915 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4916 # unless we find 'file', for example because we are cross-compiling.
4917 if ( file / ) >/dev/null 2>&1; then
4918 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4919 lt_cv_file_magic_cmd='func_win32_libid'
4921 # Keep this pattern in sync with the one in func_win32_libid.
4922 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4923 lt_cv_file_magic_cmd='$OBJDUMP -f'
4928 # use the weaker test based on 'objdump'. See mingw*.
4929 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4930 lt_cv_file_magic_cmd='$OBJDUMP -f'
4933 darwin* | rhapsody*)
4934 lt_cv_deplibs_check_method=pass_all
4937 freebsd* | dragonfly*)
4938 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4941 # Not sure whether the presence of OpenBSD here was a mistake.
4942 # Let's accept both of them until this is cleared up.
4943 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4944 lt_cv_file_magic_cmd=/usr/bin/file
4945 lt_cv_file_magic_test_file=`echo /usr
/lib
/libc.so.
*`
4949 lt_cv_deplibs_check_method=pass_all
4954 lt_cv_deplibs_check_method=pass_all
4957 hpux10.20* | hpux11*)
4958 lt_cv_file_magic_cmd=/usr/bin/file
4961 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4962 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4965 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]'
4966 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4969 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4970 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4976 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4977 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4980 irix5* | irix6* | nonstopux*)
4982 *-32|*"-32 ") libmagic=32-bit;;
4983 *-n32|*"-n32 ") libmagic=N32;;
4984 *-64|*"-64 ") libmagic=64-bit;;
4985 *) libmagic=never-match;;
4987 lt_cv_deplibs_check_method=pass_all
4990 # This must be glibc/ELF.
4991 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4992 lt_cv_deplibs_check_method=pass_all
4995 netbsd* | netbsdelf*-gnu)
4996 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4997 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4999 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5004 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5005 lt_cv_file_magic_cmd=/usr/bin/file
5006 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5010 lt_cv_deplibs_check_method=pass_all
5014 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`"; then
5015 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5017 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5021 osf3* | osf4* | osf5*)
5022 lt_cv_deplibs_check_method=pass_all
5026 lt_cv_deplibs_check_method=pass_all
5030 lt_cv_deplibs_check_method=pass_all
5033 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5034 lt_cv_deplibs_check_method=pass_all
5038 case $host_vendor in
5040 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]'
5041 lt_cv_file_magic_test_file=`echo /usr
/lib
/libc.so
*`
5044 lt_cv_deplibs_check_method=pass_all
5047 lt_cv_file_magic_cmd='/bin/file'
5048 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5051 lt_cv_file_magic_cmd='/bin/file'
5052 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5053 lt_cv_file_magic_test_file=/lib/libc.so
5056 lt_cv_deplibs_check_method=pass_all
5059 lt_cv_deplibs_check_method=pass_all
5065 lt_cv_deplibs_check_method=pass_all
5068 lt_cv_deplibs_check_method=pass_all
5073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5074 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
5078 if test "$build" = "$host"; then
5081 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5084 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ |
$SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5090 file_magic_cmd=$lt_cv_file_magic_cmd
5091 deplibs_check_method=$lt_cv_deplibs_check_method
5092 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5115 if test -n "$ac_tool_prefix"; then
5116 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5117 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5119 printf %s "checking for $ac_word... " >&6; }
5120 if test ${ac_cv_prog_DLLTOOL+y}
5122 printf %s "(cached) " >&6
5124 if test -n "$DLLTOOL"; then
5125 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 case $as_dir in #(((
5134 *) as_dir=$as_dir/ ;;
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5138 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5148 DLLTOOL=$ac_cv_prog_DLLTOOL
5149 if test -n "$DLLTOOL"; then
5150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5151 printf "%s\n" "$DLLTOOL" >&6; }
5153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154 printf "%s\n" "no" >&6; }
5159 if test -z "$ac_cv_prog_DLLTOOL"; then
5160 ac_ct_DLLTOOL=$DLLTOOL
5161 # Extract the first word of "dlltool", so it can be a program name with args.
5162 set dummy dlltool; ac_word=$2
5163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5164 printf %s "checking for $ac_word... " >&6; }
5165 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
5167 printf %s "(cached) " >&6
5169 if test -n "$ac_ct_DLLTOOL"; then
5170 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 case $as_dir in #(((
5179 *) as_dir=$as_dir/ ;;
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5183 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5193 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5194 if test -n "$ac_ct_DLLTOOL"; then
5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5196 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
5198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 printf "%s\n" "no" >&6; }
5202 if test "x$ac_ct_DLLTOOL" = x; then
5205 case $cross_compiling:$ac_tool_warned in
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5208 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5209 ac_tool_warned=yes ;;
5211 DLLTOOL=$ac_ct_DLLTOOL
5214 DLLTOOL="$ac_cv_prog_DLLTOOL"
5217 test -z "$DLLTOOL" && DLLTOOL=dlltool
5228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5229 printf %s "checking how to associate runtime and link libraries... " >&6; }
5230 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
5232 printf %s "(cached) " >&6
5234 lt_cv_sharedlib_from_linklib_cmd='unknown'
5237 cygwin* | mingw* | pw32* | cegcc*)
5238 # two different shell functions defined in ltmain.sh;
5239 # decide which one to use based on capabilities of $DLLTOOL
5240 case `$DLLTOOL --help 2>&1` in
5241 *--identify-strict*)
5242 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5245 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5250 # fallback: assume linklib IS sharedlib
5251 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5257 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5258 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5259 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5268 if test -n "$ac_tool_prefix"; then
5271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5272 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5274 printf %s "checking for $ac_word... " >&6; }
5275 if test ${ac_cv_prog_AR+y}
5277 printf %s "(cached) " >&6
5279 if test -n "$AR"; then
5280 ac_cv_prog_AR="$AR" # Let the user override the test.
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 case $as_dir in #(((
5289 *) as_dir=$as_dir/ ;;
5291 for ac_exec_ext in '' $ac_executable_extensions; do
5292 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5293 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5304 if test -n "$AR"; then
5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5306 printf "%s\n" "$AR" >&6; }
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309 printf "%s\n" "no" >&6; }
5313 test -n "$AR" && break
5316 if test -z "$AR"; then
5320 # Extract the first word of "$ac_prog", so it can be a program name with args.
5321 set dummy $ac_prog; ac_word=$2
5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5323 printf %s "checking for $ac_word... " >&6; }
5324 if test ${ac_cv_prog_ac_ct_AR+y}
5326 printf %s "(cached) " >&6
5328 if test -n "$ac_ct_AR"; then
5329 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 case $as_dir in #(((
5338 *) as_dir=$as_dir/ ;;
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5342 ac_cv_prog_ac_ct_AR="$ac_prog"
5343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5352 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5353 if test -n "$ac_ct_AR"; then
5354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5355 printf "%s\n" "$ac_ct_AR" >&6; }
5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 printf "%s\n" "no" >&6; }
5362 test -n "$ac_ct_AR" && break
5365 if test "x$ac_ct_AR" = x; then
5368 case $cross_compiling:$ac_tool_warned in
5370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5371 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5372 ac_tool_warned=yes ;;
5391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5392 printf %s "checking for archiver @FILE support... " >&6; }
5393 if test ${lt_cv_ar_at_file+y}
5395 printf %s "(cached) " >&6
5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399 /* end confdefs.h. */
5409 if ac_fn_c_try_compile "$LINENO"
5411 echo conftest.$ac_objext > conftest.lst
5412 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5414 (eval $lt_ar_try) 2>&5
5416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5417 test $ac_status = 0; }
5418 if test 0 -eq "$ac_status"; then
5419 # Ensure the archiver fails upon bogus file names.
5420 rm -f conftest.$ac_objext libconftest.a
5421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5422 (eval $lt_ar_try) 2>&5
5424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5425 test $ac_status = 0; }
5426 if test 0 -ne "$ac_status"; then
5430 rm -f conftest.* libconftest.a
5433 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5437 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
5439 if test no = "$lt_cv_ar_at_file"; then
5442 archiver_list_spec=$lt_cv_ar_at_file
5451 if test -n "$ac_tool_prefix"; then
5452 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5453 set dummy ${ac_tool_prefix}strip; ac_word=$2
5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455 printf %s "checking for $ac_word... " >&6; }
5456 if test ${ac_cv_prog_STRIP+y}
5458 printf %s "(cached) " >&6
5460 if test -n "$STRIP"; then
5461 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 case $as_dir in #(((
5470 *) as_dir=$as_dir/ ;;
5472 for ac_exec_ext in '' $ac_executable_extensions; do
5473 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5474 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5484 STRIP=$ac_cv_prog_STRIP
5485 if test -n "$STRIP"; then
5486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5487 printf "%s\n" "$STRIP" >&6; }
5489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490 printf "%s\n" "no" >&6; }
5495 if test -z "$ac_cv_prog_STRIP"; then
5497 # Extract the first word of "strip", so it can be a program name with args.
5498 set dummy strip; ac_word=$2
5499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500 printf %s "checking for $ac_word... " >&6; }
5501 if test ${ac_cv_prog_ac_ct_STRIP+y}
5503 printf %s "(cached) " >&6
5505 if test -n "$ac_ct_STRIP"; then
5506 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 case $as_dir in #(((
5515 *) as_dir=$as_dir/ ;;
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5519 ac_cv_prog_ac_ct_STRIP="strip"
5520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5529 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5530 if test -n "$ac_ct_STRIP"; then
5531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5532 printf "%s\n" "$ac_ct_STRIP" >&6; }
5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535 printf "%s\n" "no" >&6; }
5538 if test "x$ac_ct_STRIP" = x; then
5541 case $cross_compiling:$ac_tool_warned in
5543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5544 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5545 ac_tool_warned=yes ;;
5550 STRIP="$ac_cv_prog_STRIP"
5553 test -z "$STRIP" && STRIP=:
5560 if test -n "$ac_tool_prefix"; then
5561 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5562 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564 printf %s "checking for $ac_word... " >&6; }
5565 if test ${ac_cv_prog_RANLIB+y}
5567 printf %s "(cached) " >&6
5569 if test -n "$RANLIB"; then
5570 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 case $as_dir in #(((
5579 *) as_dir=$as_dir/ ;;
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5583 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5593 RANLIB=$ac_cv_prog_RANLIB
5594 if test -n "$RANLIB"; then
5595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5596 printf "%s\n" "$RANLIB" >&6; }
5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 printf "%s\n" "no" >&6; }
5604 if test -z "$ac_cv_prog_RANLIB"; then
5605 ac_ct_RANLIB=$RANLIB
5606 # Extract the first word of "ranlib", so it can be a program name with args.
5607 set dummy ranlib; ac_word=$2
5608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609 printf %s "checking for $ac_word... " >&6; }
5610 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5612 printf %s "(cached) " >&6
5614 if test -n "$ac_ct_RANLIB"; then
5615 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 case $as_dir in #(((
5624 *) as_dir=$as_dir/ ;;
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5628 ac_cv_prog_ac_ct_RANLIB="ranlib"
5629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5638 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5639 if test -n "$ac_ct_RANLIB"; then
5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5641 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644 printf "%s\n" "no" >&6; }
5647 if test "x$ac_ct_RANLIB" = x; then
5650 case $cross_compiling:$ac_tool_warned in
5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5653 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5654 ac_tool_warned=yes ;;
5656 RANLIB=$ac_ct_RANLIB
5659 RANLIB="$ac_cv_prog_RANLIB"
5662 test -z "$RANLIB" && RANLIB=:
5669 # Determine commands to create old-style static archives.
5670 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5671 old_postinstall_cmds='chmod 644 $oldlib'
5672 old_postuninstall_cmds=
5674 if test -n "$RANLIB"; then
5677 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5680 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5683 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5688 lock_old_archive_extraction=yes ;;
5690 lock_old_archive_extraction=no ;;
5713 for ac_prog in gawk mawk nawk awk
5715 # Extract the first word of "$ac_prog", so it can be a program name with args.
5716 set dummy $ac_prog; ac_word=$2
5717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718 printf %s "checking for $ac_word... " >&6; }
5719 if test ${ac_cv_prog_AWK+y}
5721 printf %s "(cached) " >&6
5723 if test -n "$AWK"; then
5724 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 case $as_dir in #(((
5733 *) as_dir=$as_dir/ ;;
5735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5737 ac_cv_prog_AWK="$ac_prog"
5738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5748 if test -n "$AWK"; then
5749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5750 printf "%s\n" "$AWK" >&6; }
5752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753 printf "%s\n" "no" >&6; }
5757 test -n "$AWK" && break
5778 # If no C compiler was specified, use CC.
5781 # If no C compiler flags were specified, use CFLAGS.
5782 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5784 # Allow CC to be a program name with arguments.
5788 # Check for command to grab the raw symbol name followed by C symbol from nm.
5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5790 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
5791 if test ${lt_cv_sys_global_symbol_pipe+y}
5793 printf %s "(cached) " >&6
5796 # These are sane defaults that work on at least a few old systems.
5797 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5799 # Character class describing NM global symbol codes.
5800 symcode='[BCDEGRST]'
5802 # Regexp to match symbols that can be accessed directly from C.
5803 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5805 # Define system-specific variables.
5810 cygwin* | mingw* | pw32* | cegcc*)
5811 symcode='[ABCDGISTW]'
5814 if test ia64 = "$host_cpu"; then
5815 symcode='[ABCDEGRST]'
5819 symcode='[BCDEGRST]'
5822 symcode='[BCDEGQRST]'
5833 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5841 # If we're using GNU nm, then use its standard symbol codes.
5842 case `$NM -V 2>&1` in
5843 *GNU* | *'with BFD'*)
5844 symcode='[ABCDGIRSTW]' ;;
5847 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5848 # Gets list of data symbols to import.
5849 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5850 # Adjust the below global symbol transforms to fixup imported variables.
5851 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5852 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5853 lt_c_name_lib_hook="\
5854 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5855 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5857 # Disable hooks by default.
5858 lt_cv_sys_global_symbol_to_import=
5864 # Transform an extracted symbol line into a proper C declaration.
5865 # Some systems (esp. on ia64) link data and code symbols differently,
5866 # so use this general approach.
5867 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5869 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5870 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5872 # Transform an extracted symbol line into symbol name and symbol address
5873 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5875 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5876 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5878 # Transform an extracted symbol line into symbol name with lib prefix and
5880 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5881 $lt_c_name_lib_hook\
5882 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5883 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5884 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5886 # Handle CRLF in mingw tool chain
5890 opt_cr=`$ECHO 'x\{0,1\}' |
tr x
'\015'` # option cr in regexp
5894 # Try without a prefix underscore, then with it.
5895 for ac_symprfx in "" "_"; do
5897 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5898 symxfrm="\\1 $ac_symprfx\\2 \\2"
5900 # Write the raw and C identifiers.
5901 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5902 # Fake it for dumpbin and say T for any non-static function,
5903 # D for any global variable and I for any imported variable.
5904 # Also find C++ and __fastcall symbols from MSVC++,
5905 # which start with @ or ?.
5906 lt_cv_sys_global_symbol_pipe="$AWK '"\
5907 " {last_section=section; section=\$ 3};"\
5908 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5909 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5910 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5911 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5912 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5913 " \$ 0!~/External *\|/{next};"\
5914 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5915 " {if(hide[section]) next};"\
5916 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5917 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5918 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5919 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5920 " ' prfx=^$ac_symprfx"
5922 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5924 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5926 # Check to see that the pipe works correctly.
5930 cat > conftest.$ac_ext <<_LT_EOF
5935 void nm_test_func(void);
5936 void nm_test_func(void){}
5940 int main(){nm_test_var='a';nm_test_func();return(0);}
5943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5944 (eval $ac_compile) 2>&5
5946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5947 test $ac_status = 0; }; then
5948 # Now try to grab the symbols.
5950 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
5951 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
5952 # Try sorting and uniquifying the output.
5953 if sort "$nlist" | uniq > "$nlist"T; then
5954 mv -f "$nlist"T "$nlist"
5959 # Make sure that we snagged all the symbols we need.
5960 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5961 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5962 cat <<_LT_EOF > conftest.$ac_ext
5963 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5964 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5965 /* DATA imports from DLLs on WIN32 can't be const, because runtime
5966 relocations are performed -- see ld's documentation on pseudo-relocs. */
5967 # define LT_DLSYM_CONST
5968 #elif defined __osf__
5969 /* This system does not cope well with relocations in const data. */
5970 # define LT_DLSYM_CONST
5972 # define LT_DLSYM_CONST const
5980 # Now generate the symbol file.
5981 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5983 cat <<_LT_EOF >> conftest.$ac_ext
5985 /* The mapping between symbol names and symbols. */
5986 LT_DLSYM_CONST struct {
5990 lt__PROGRAM__LTX_preloaded_symbols[] =
5992 { "@PROGRAM@", (void *) 0 },
5994 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5995 cat <<\_LT_EOF >> conftest.$ac_ext
5999 /* This works around a problem in FreeBSD linker */
6000 #ifdef FREEBSD_WORKAROUND
6001 static const void *lt_preloaded_setup() {
6002 return lt__PROGRAM__LTX_preloaded_symbols;
6010 # Now try linking the two files.
6011 mv conftest.$ac_objext conftstm.$ac_objext
6012 lt_globsym_save_LIBS=$LIBS
6013 lt_globsym_save_CFLAGS=$CFLAGS
6014 LIBS=conftstm.$ac_objext
6015 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6017 (eval $ac_link) 2>&5
6019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6020 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6023 LIBS=$lt_globsym_save_LIBS
6024 CFLAGS=$lt_globsym_save_CFLAGS
6026 echo "cannot find nm_test_func in $nlist" >&5
6029 echo "cannot find nm_test_var in $nlist" >&5
6032 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6035 echo "$progname: failed program was:" >&5
6036 cat conftest.$ac_ext >&5
6038 rm -rf conftest* conftst*
6040 # Do not use the global_symbol_pipe unless it works.
6041 if test yes = "$pipe_works"; then
6044 lt_cv_sys_global_symbol_pipe=
6050 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6051 lt_cv_sys_global_symbol_to_cdecl=
6053 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6055 printf "%s\n" "failed" >&6; }
6057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6058 printf "%s\n" "ok" >&6; }
6061 # Response file support.
6062 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6063 nm_file_list_spec='@'
6064 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6065 nm_file_list_spec='@'
6104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6105 printf %s "checking for sysroot... " >&6; }
6107 # Check whether --with-sysroot was given.
6108 if test ${with_sysroot+y}
6110 withval=$with_sysroot;
6117 case $with_sysroot in #(
6119 if test yes = "$GCC"; then
6120 lt_sysroot=`$CC --print-sysroot 2>/dev
/null
`
6124 lt_sysroot=`echo "$with_sysroot" |
sed -e "$sed_quote_subst"`
6129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6130 printf "%s\n" "$with_sysroot" >&6; }
6131 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6136 printf "%s\n" "${lt_sysroot:-no}" >&6; }
6142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6143 printf %s "checking for a working dd... " >&6; }
6144 if test ${ac_cv_path_lt_DD+y}
6146 printf %s "(cached) " >&6
6148 printf 0123456789abcdef0123456789abcdef >conftest.i
6149 cat conftest.i conftest.i >conftest2.i
6151 if test -z "$lt_DD"; then
6152 ac_path_lt_DD_found=false
6153 # Loop through the user's path and test for each of PROGNAME-LIST
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 case $as_dir in #(((
6161 *) as_dir=$as_dir/ ;;
6165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
6167 as_fn_executable_p "$ac_path_lt_DD" || continue
6168 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6169 cmp -s conftest.i conftest.out \
6170 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6172 $ac_path_lt_DD_found && break 3
6177 if test -z "$ac_cv_path_lt_DD"; then
6181 ac_cv_path_lt_DD=$lt_DD
6184 rm -f conftest.i conftest2.i conftest.out
6186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6187 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6191 printf %s "checking how to truncate binary pipes... " >&6; }
6192 if test ${lt_cv_truncate_bin+y}
6194 printf %s "(cached) " >&6
6196 printf 0123456789abcdef0123456789abcdef >conftest.i
6197 cat conftest.i conftest.i >conftest2.i
6199 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6200 cmp -s conftest.i conftest.out \
6201 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6203 rm -f conftest.i conftest2.i conftest.out
6204 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6207 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
6215 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6218 for cc_temp in $*""; do
6220 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6221 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6226 func_cc_basename_result=`$ECHO "$cc_temp" |
$SED "s%.*/%%; s%^$host_alias-%%"`
6229 # Check whether --enable-libtool-lock was given.
6230 if test ${enable_libtool_lock+y}
6232 enableval=$enable_libtool_lock;
6235 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6237 # Some flags need to be propagated to the compiler or linker for good
6241 # Find out what ABI is being produced by ac_compile, and set mode
6242 # options accordingly.
6243 echo 'int i;' > conftest.$ac_ext
6244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6245 (eval $ac_compile) 2>&5
6247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6248 test $ac_status = 0; }; then
6249 case `/usr
/bin
/file conftest.
$ac_objext` in
6261 # Find out what ABI is being produced by ac_compile, and set linker
6262 # options accordingly.
6263 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6265 (eval $ac_compile) 2>&5
6267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6268 test $ac_status = 0; }; then
6269 if test yes = "$lt_cv_prog_gnu_ld"; then
6270 case `/usr
/bin
/file conftest.
$ac_objext` in
6272 LD="${LD-ld} -melf32bsmip"
6275 LD="${LD-ld} -melf32bmipn32"
6278 LD="${LD-ld} -melf64bmip"
6282 case `/usr
/bin
/file conftest.
$ac_objext` in
6299 # Find out what ABI is being produced by ac_compile, and set linker
6300 # options accordingly.
6301 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6303 (eval $ac_compile) 2>&5
6305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6306 test $ac_status = 0; }; then
6308 case `/usr
/bin
/file conftest.
$ac_objext` in
6316 case `/usr
/bin
/file conftest.
$ac_objext` in
6318 emul="${emul}btsmip"
6321 emul="${emul}ltsmip"
6324 case `/usr
/bin
/file conftest.
$ac_objext` in
6329 LD="${LD-ld} -m $emul"
6334 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6335 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6336 # Find out what ABI is being produced by ac_compile, and set linker
6337 # options accordingly. Note that the listed cases only cover the
6338 # situations where additional linker options are needed (such as when
6339 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6340 # vice versa); the common cases where no linker options are needed do
6341 # not appear in the list.
6342 echo 'int i;' > conftest.$ac_ext
6343 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6344 (eval $ac_compile) 2>&5
6346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6347 test $ac_status = 0; }; then
6348 case `/usr
/bin
/file conftest.o
` in
6351 x86_64-*kfreebsd*-gnu)
6352 LD="${LD-ld} -m elf_i386_fbsd"
6355 case `/usr
/bin
/file conftest.o
` in
6357 LD="${LD-ld} -m elf32_x86_64"
6360 LD="${LD-ld} -m elf_i386"
6364 powerpc64le-*linux*)
6365 LD="${LD-ld} -m elf32lppclinux"
6368 LD="${LD-ld} -m elf32ppclinux"
6371 LD="${LD-ld} -m elf_s390"
6374 LD="${LD-ld} -m elf32_sparc"
6380 x86_64-*kfreebsd*-gnu)
6381 LD="${LD-ld} -m elf_x86_64_fbsd"
6384 LD="${LD-ld} -m elf_x86_64"
6387 LD="${LD-ld} -m elf64lppc"
6390 LD="${LD-ld} -m elf64ppc"
6392 s390*-*linux*|s390*-*tpf*)
6393 LD="${LD-ld} -m elf64_s390"
6396 LD="${LD-ld} -m elf64_sparc"
6406 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6408 CFLAGS="$CFLAGS -belf"
6409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6410 printf %s "checking whether the C compiler needs -belf... " >&6; }
6411 if test ${lt_cv_cc_needs_belf+y}
6413 printf %s "(cached) " >&6
6416 ac_cpp='$CPP $CPPFLAGS'
6417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6432 if ac_fn_c_try_link "$LINENO"
6434 lt_cv_cc_needs_belf=yes
6436 lt_cv_cc_needs_belf=no
6438 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6439 conftest$ac_exeext conftest.$ac_ext
6441 ac_cpp='$CPP $CPPFLAGS'
6442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6448 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
6449 if test yes != "$lt_cv_cc_needs_belf"; then
6450 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6455 # Find out what ABI is being produced by ac_compile, and set linker
6456 # options accordingly.
6457 echo 'int i;' > conftest.$ac_ext
6458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6459 (eval $ac_compile) 2>&5
6461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6462 test $ac_status = 0; }; then
6463 case `/usr
/bin
/file conftest.o
` in
6465 case $lt_cv_prog_gnu_ld in
6468 i?86-*-solaris*|x86_64-*-solaris*)
6469 LD="${LD-ld} -m elf_x86_64"
6472 LD="${LD-ld} -m elf64_sparc"
6475 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6476 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6481 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6493 need_locks=$enable_libtool_lock
6495 if test -n "$ac_tool_prefix"; then
6496 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6497 set dummy ${ac_tool_prefix}mt; ac_word=$2
6498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499 printf %s "checking for $ac_word... " >&6; }
6500 if test ${ac_cv_prog_MANIFEST_TOOL+y}
6502 printf %s "(cached) " >&6
6504 if test -n "$MANIFEST_TOOL"; then
6505 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 case $as_dir in #(((
6514 *) as_dir=$as_dir/ ;;
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6518 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6528 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6529 if test -n "$MANIFEST_TOOL"; then
6530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6531 printf "%s\n" "$MANIFEST_TOOL" >&6; }
6533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6534 printf "%s\n" "no" >&6; }
6539 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6540 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6541 # Extract the first word of "mt", so it can be a program name with args.
6542 set dummy mt; ac_word=$2
6543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544 printf %s "checking for $ac_word... " >&6; }
6545 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
6547 printf %s "(cached) " >&6
6549 if test -n "$ac_ct_MANIFEST_TOOL"; then
6550 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 case $as_dir in #(((
6559 *) as_dir=$as_dir/ ;;
6561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6563 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6573 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6574 if test -n "$ac_ct_MANIFEST_TOOL"; then
6575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6576 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
6578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579 printf "%s\n" "no" >&6; }
6582 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6585 case $cross_compiling:$ac_tool_warned in
6587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6588 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6589 ac_tool_warned=yes ;;
6591 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6594 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6597 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6599 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6600 if test ${lt_cv_path_mainfest_tool+y}
6602 printf %s "(cached) " >&6
6604 lt_cv_path_mainfest_tool=no
6605 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6606 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6607 cat conftest.err >&5
6608 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6609 lt_cv_path_mainfest_tool=yes
6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6614 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
6615 if test yes != "$lt_cv_path_mainfest_tool"; then
6625 rhapsody* | darwin*)
6626 if test -n "$ac_tool_prefix"; then
6627 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6628 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 printf %s "checking for $ac_word... " >&6; }
6631 if test ${ac_cv_prog_DSYMUTIL+y}
6633 printf %s "(cached) " >&6
6635 if test -n "$DSYMUTIL"; then
6636 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 case $as_dir in #(((
6645 *) as_dir=$as_dir/ ;;
6647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6649 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6659 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6660 if test -n "$DSYMUTIL"; then
6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6662 printf "%s\n" "$DSYMUTIL" >&6; }
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665 printf "%s\n" "no" >&6; }
6670 if test -z "$ac_cv_prog_DSYMUTIL"; then
6671 ac_ct_DSYMUTIL=$DSYMUTIL
6672 # Extract the first word of "dsymutil", so it can be a program name with args.
6673 set dummy dsymutil; ac_word=$2
6674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675 printf %s "checking for $ac_word... " >&6; }
6676 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
6678 printf %s "(cached) " >&6
6680 if test -n "$ac_ct_DSYMUTIL"; then
6681 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 case $as_dir in #(((
6690 *) as_dir=$as_dir/ ;;
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6694 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6704 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6705 if test -n "$ac_ct_DSYMUTIL"; then
6706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6707 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710 printf "%s\n" "no" >&6; }
6713 if test "x$ac_ct_DSYMUTIL" = x; then
6716 case $cross_compiling:$ac_tool_warned in
6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6719 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6720 ac_tool_warned=yes ;;
6722 DSYMUTIL=$ac_ct_DSYMUTIL
6725 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6728 if test -n "$ac_tool_prefix"; then
6729 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6730 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6732 printf %s "checking for $ac_word... " >&6; }
6733 if test ${ac_cv_prog_NMEDIT+y}
6735 printf %s "(cached) " >&6
6737 if test -n "$NMEDIT"; then
6738 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 case $as_dir in #(((
6747 *) as_dir=$as_dir/ ;;
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6751 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6761 NMEDIT=$ac_cv_prog_NMEDIT
6762 if test -n "$NMEDIT"; then
6763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6764 printf "%s\n" "$NMEDIT" >&6; }
6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767 printf "%s\n" "no" >&6; }
6772 if test -z "$ac_cv_prog_NMEDIT"; then
6773 ac_ct_NMEDIT=$NMEDIT
6774 # Extract the first word of "nmedit", so it can be a program name with args.
6775 set dummy nmedit; ac_word=$2
6776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777 printf %s "checking for $ac_word... " >&6; }
6778 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
6780 printf %s "(cached) " >&6
6782 if test -n "$ac_ct_NMEDIT"; then
6783 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789 case $as_dir in #(((
6792 *) as_dir=$as_dir/ ;;
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6796 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6806 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6807 if test -n "$ac_ct_NMEDIT"; then
6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6809 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
6811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 printf "%s\n" "no" >&6; }
6815 if test "x$ac_ct_NMEDIT" = x; then
6818 case $cross_compiling:$ac_tool_warned in
6820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6821 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6822 ac_tool_warned=yes ;;
6824 NMEDIT=$ac_ct_NMEDIT
6827 NMEDIT="$ac_cv_prog_NMEDIT"
6830 if test -n "$ac_tool_prefix"; then
6831 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6832 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834 printf %s "checking for $ac_word... " >&6; }
6835 if test ${ac_cv_prog_LIPO+y}
6837 printf %s "(cached) " >&6
6839 if test -n "$LIPO"; then
6840 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 case $as_dir in #(((
6849 *) as_dir=$as_dir/ ;;
6851 for ac_exec_ext in '' $ac_executable_extensions; do
6852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6853 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6863 LIPO=$ac_cv_prog_LIPO
6864 if test -n "$LIPO"; then
6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6866 printf "%s\n" "$LIPO" >&6; }
6868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 printf "%s\n" "no" >&6; }
6874 if test -z "$ac_cv_prog_LIPO"; then
6876 # Extract the first word of "lipo", so it can be a program name with args.
6877 set dummy lipo; ac_word=$2
6878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879 printf %s "checking for $ac_word... " >&6; }
6880 if test ${ac_cv_prog_ac_ct_LIPO+y}
6882 printf %s "(cached) " >&6
6884 if test -n "$ac_ct_LIPO"; then
6885 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 case $as_dir in #(((
6894 *) as_dir=$as_dir/ ;;
6896 for ac_exec_ext in '' $ac_executable_extensions; do
6897 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6898 ac_cv_prog_ac_ct_LIPO="lipo"
6899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6908 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6909 if test -n "$ac_ct_LIPO"; then
6910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6911 printf "%s\n" "$ac_ct_LIPO" >&6; }
6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914 printf "%s\n" "no" >&6; }
6917 if test "x$ac_ct_LIPO" = x; then
6920 case $cross_compiling:$ac_tool_warned in
6922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6923 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6924 ac_tool_warned=yes ;;
6929 LIPO="$ac_cv_prog_LIPO"
6932 if test -n "$ac_tool_prefix"; then
6933 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6934 set dummy ${ac_tool_prefix}otool; ac_word=$2
6935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936 printf %s "checking for $ac_word... " >&6; }
6937 if test ${ac_cv_prog_OTOOL+y}
6939 printf %s "(cached) " >&6
6941 if test -n "$OTOOL"; then
6942 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 case $as_dir in #(((
6951 *) as_dir=$as_dir/ ;;
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6955 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6965 OTOOL=$ac_cv_prog_OTOOL
6966 if test -n "$OTOOL"; then
6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6968 printf "%s\n" "$OTOOL" >&6; }
6970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 printf "%s\n" "no" >&6; }
6976 if test -z "$ac_cv_prog_OTOOL"; then
6978 # Extract the first word of "otool", so it can be a program name with args.
6979 set dummy otool; ac_word=$2
6980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981 printf %s "checking for $ac_word... " >&6; }
6982 if test ${ac_cv_prog_ac_ct_OTOOL+y}
6984 printf %s "(cached) " >&6
6986 if test -n "$ac_ct_OTOOL"; then
6987 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 case $as_dir in #(((
6996 *) as_dir=$as_dir/ ;;
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7000 ac_cv_prog_ac_ct_OTOOL="otool"
7001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7010 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7011 if test -n "$ac_ct_OTOOL"; then
7012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7013 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7016 printf "%s\n" "no" >&6; }
7019 if test "x$ac_ct_OTOOL" = x; then
7022 case $cross_compiling:$ac_tool_warned in
7024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7025 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7026 ac_tool_warned=yes ;;
7031 OTOOL="$ac_cv_prog_OTOOL"
7034 if test -n "$ac_tool_prefix"; then
7035 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7036 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7038 printf %s "checking for $ac_word... " >&6; }
7039 if test ${ac_cv_prog_OTOOL64+y}
7041 printf %s "(cached) " >&6
7043 if test -n "$OTOOL64"; then
7044 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 case $as_dir in #(((
7053 *) as_dir=$as_dir/ ;;
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7057 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7067 OTOOL64=$ac_cv_prog_OTOOL64
7068 if test -n "$OTOOL64"; then
7069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7070 printf "%s\n" "$OTOOL64" >&6; }
7072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073 printf "%s\n" "no" >&6; }
7078 if test -z "$ac_cv_prog_OTOOL64"; then
7079 ac_ct_OTOOL64=$OTOOL64
7080 # Extract the first word of "otool64", so it can be a program name with args.
7081 set dummy otool64; ac_word=$2
7082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7083 printf %s "checking for $ac_word... " >&6; }
7084 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
7086 printf %s "(cached) " >&6
7088 if test -n "$ac_ct_OTOOL64"; then
7089 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 case $as_dir in #(((
7098 *) as_dir=$as_dir/ ;;
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7102 ac_cv_prog_ac_ct_OTOOL64="otool64"
7103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7112 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7113 if test -n "$ac_ct_OTOOL64"; then
7114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7115 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
7117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118 printf "%s\n" "no" >&6; }
7121 if test "x$ac_ct_OTOOL64" = x; then
7124 case $cross_compiling:$ac_tool_warned in
7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7127 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7128 ac_tool_warned=yes ;;
7130 OTOOL64=$ac_ct_OTOOL64
7133 OTOOL64="$ac_cv_prog_OTOOL64"
7162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7163 printf %s "checking for -single_module linker flag... " >&6; }
7164 if test ${lt_cv_apple_cc_single_mod+y}
7166 printf %s "(cached) " >&6
7168 lt_cv_apple_cc_single_mod=no
7169 if test -z "$LT_MULTI_MODULE"; then
7170 # By default we will add the -single_module flag. You can override
7171 # by either setting the environment variable LT_MULTI_MODULE
7172 # non-empty at configure time, or by adding -multi_module to the
7174 rm -rf libconftest.dylib*
7175 echo "int foo(void){return 1;}" > conftest.c
7176 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7177 -dynamiclib -Wl,-single_module conftest.c" >&5
7178 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7179 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7181 # If there is a non-empty error log, and "single_module"
7182 # appears in it, assume the flag caused a linker warning
7183 if test -s conftest.err && $GREP single_module conftest.err; then
7184 cat conftest.err >&5
7185 # Otherwise, if the output was created with a 0 exit code from
7186 # the compiler, it worked.
7187 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7188 lt_cv_apple_cc_single_mod=yes
7190 cat conftest.err >&5
7192 rm -rf libconftest.dylib*
7196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7197 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
7199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7200 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
7201 if test ${lt_cv_ld_exported_symbols_list+y}
7203 printf %s "(cached) " >&6
7205 lt_cv_ld_exported_symbols_list=no
7206 save_LDFLAGS=$LDFLAGS
7207 echo "_main" > conftest.sym
7208 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210 /* end confdefs.h. */
7220 if ac_fn_c_try_link "$LINENO"
7222 lt_cv_ld_exported_symbols_list=yes
7224 lt_cv_ld_exported_symbols_list=no
7226 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7227 conftest$ac_exeext conftest.$ac_ext
7228 LDFLAGS=$save_LDFLAGS
7231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7232 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
7234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7235 printf %s "checking for -force_load linker flag... " >&6; }
7236 if test ${lt_cv_ld_force_load+y}
7238 printf %s "(cached) " >&6
7240 lt_cv_ld_force_load=no
7241 cat > conftest.c << _LT_EOF
7242 int forced_loaded() { return 2;}
7244 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7245 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7246 echo "$AR cr libconftest.a conftest.o" >&5
7247 $AR cr libconftest.a conftest.o 2>&5
7248 echo "$RANLIB libconftest.a" >&5
7249 $RANLIB libconftest.a 2>&5
7250 cat > conftest.c << _LT_EOF
7251 int main() { return 0;}
7253 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7254 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7256 if test -s conftest.err && $GREP force_load conftest.err; then
7257 cat conftest.err >&5
7258 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7259 lt_cv_ld_force_load=yes
7261 cat conftest.err >&5
7263 rm -f conftest.err libconftest.a conftest conftest.c
7264 rm -rf conftest.dSYM
7267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7268 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
7270 rhapsody* | darwin1.[012])
7271 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7273 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7274 darwin*) # darwin 5.x on
7275 # if running on 10.5 or later, the deployment target defaults
7276 # to the OS version, if on x86, and 10.4, the deployment
7277 # target defaults to 10.4. Don't you love it?
7278 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7279 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
7280 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7282 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7284 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7288 if test yes = "$lt_cv_apple_cc_single_mod"; then
7289 _lt_dar_single_mod='$single_module'
7291 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7292 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7294 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7296 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7297 _lt_dsymutil='~$DSYMUTIL $lib || :'
7304 # func_munge_path_list VARIABLE PATH
7305 # -----------------------------------
7306 # VARIABLE is name of variable containing _space_ separated list of
7307 # directories to be munged by the contents of PATH, which is string
7310 # string "DIR[ DIR]" will be prepended to VARIABLE
7312 # string "DIR[ DIR]" will be appended to VARIABLE
7313 # "DIRP[:DIRP]::[DIRA:]DIRA"
7314 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7315 # "DIRA[ DIRA]" will be appended to VARIABLE
7317 # VARIABLE will be replaced by "DIR[ DIR]"
7318 func_munge_path_list ()
7324 eval $1=\"`$ECHO $2 |
$SED 's/:/ /g'` \$$1\"
7327 eval $1=\"\$$1 `$ECHO $2 |
$SED 's/:/ /g'`\"
7330 eval $1=\"\$$1\ `$ECHO $2 |
$SED -e 's/.*:://' -e 's/:/ /g'`\"
7331 eval $1=\"`$ECHO $2 |
$SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7334 eval $1=\"`$ECHO $2 |
$SED 's/:/ /g'`\"
7339 ac_header= ac_cache=
7340 for ac_item in $ac_header_c_list
7342 if test $ac_cache; then
7343 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
7344 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
7345 printf "%s\n" "#define $ac_item 1" >> confdefs.h
7347 ac_header= ac_cache=
7348 elif test $ac_header; then
7362 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
7365 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
7368 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7370 if test "x$ac_cv_header_dlfcn_h" = xyes
7372 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
7390 # Check whether --enable-shared was given.
7391 if test ${enable_shared+y}
7393 enableval=$enable_shared; p=${PACKAGE-default}
7395 yes) enable_shared=yes ;;
7396 no) enable_shared=no ;;
7399 # Look at the argument we got. We use all the common list separators.
7400 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7401 for pkg in $enableval; do
7403 if test "X$pkg" = "X$p"; then
7422 # Check whether --enable-static was given.
7423 if test ${enable_static+y}
7425 enableval=$enable_static; p=${PACKAGE-default}
7427 yes) enable_static=yes ;;
7428 no) enable_static=no ;;
7431 # Look at the argument we got. We use all the common list separators.
7432 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7433 for pkg in $enableval; do
7435 if test "X$pkg" = "X$p"; then
7455 # Check whether --with-pic was given.
7456 if test ${with_pic+y}
7458 withval=$with_pic; lt_p=${PACKAGE-default}
7460 yes|no) pic_mode=$withval ;;
7463 # Look at the argument we got. We use all the common list separators.
7464 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7465 for lt_pkg in $withval; do
7467 if test "X$lt_pkg" = "X$lt_p"; then
7485 # Check whether --enable-fast-install was given.
7486 if test ${enable_fast_install+y}
7488 enableval=$enable_fast_install; p=${PACKAGE-default}
7490 yes) enable_fast_install=yes ;;
7491 no) enable_fast_install=no ;;
7493 enable_fast_install=no
7494 # Look at the argument we got. We use all the common list separators.
7495 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7496 for pkg in $enableval; do
7498 if test "X$pkg" = "X$p"; then
7499 enable_fast_install=yes
7506 enable_fast_install=yes
7516 shared_archive_member_spec=
7517 case $host,$enable_shared in
7518 power*-*-aix[5-9]*,yes)
7519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7520 printf %s "checking which variant of shared library versioning to provide... " >&6; }
7522 # Check whether --with-aix-soname was given.
7523 if test ${with_aix_soname+y}
7525 withval=$with_aix_soname; case $withval in
7529 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7532 lt_cv_with_aix_soname=$with_aix_soname
7534 if test ${lt_cv_with_aix_soname+y}
7536 printf %s "(cached) " >&6
7538 lt_cv_with_aix_soname=aix
7541 with_aix_soname=$lt_cv_with_aix_soname
7544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7545 printf "%s\n" "$with_aix_soname" >&6; }
7546 if test aix != "$with_aix_soname"; then
7547 # For the AIX way of multilib, we name the shared archive member
7548 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7549 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7550 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7551 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7552 if test 64 = "${OBJECT_MODE-32}"; then
7553 shared_archive_member_spec=shr_64
7555 shared_archive_member_spec=shr
7573 # This can be used to rebuild libtool when needed
7574 LIBTOOL_DEPS=$ltmain
7576 # Always use our own libtool.
7577 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7608 test -z "$LN_S" && LN_S="ln -s"
7623 if test -n "${ZSH_VERSION+set}"; then
7624 setopt NO_GLOB_SUBST
7627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7628 printf %s "checking for objdir... " >&6; }
7629 if test ${lt_cv_objdir+y}
7631 printf %s "(cached) " >&6
7633 rm -f .libs 2>/dev/null
7634 mkdir .libs 2>/dev/null
7635 if test -d .libs; then
7638 # MS-DOS does not allow filenames that begin with a dot.
7641 rmdir .libs 2>/dev/null
7643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7644 printf "%s\n" "$lt_cv_objdir" >&6; }
7645 objdir=$lt_cv_objdir
7651 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
7658 # AIX sometimes has problems with the GCC collect2 program. For some
7659 # reason, if we set the COLLECT_NAMES environment variable, the problems
7660 # vanish in a puff of smoke.
7661 if test set != "${COLLECT_NAMES+set}"; then
7663 export COLLECT_NAMES
7670 can_build_shared=yes
7672 # All known linkers require a '.a' archive for static linking (except MSVC,
7673 # which needs '.lib').
7676 with_gnu_ld=$lt_cv_prog_gnu_ld
7681 # Set sane defaults for various variables
7682 test -z "$CC" && CC=cc
7683 test -z "$LTCC" && LTCC=$CC
7684 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7685 test -z "$LD" && LD=ld
7686 test -z "$ac_objext" && ac_objext=o
7688 func_cc_basename $compiler
7689 cc_basename=$func_cc_basename_result
7692 # Only perform the check for file, if the check method requires it
7693 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7694 case $deplibs_check_method in
7696 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7698 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
7699 if test ${lt_cv_path_MAGIC_CMD+y}
7701 printf %s "(cached) " >&6
7705 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7708 lt_save_MAGIC_CMD=$MAGIC_CMD
7709 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7710 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7711 for ac_dir in $ac_dummy; do
7713 test -z "$ac_dir" && ac_dir=.
7714 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7715 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7716 if test -n "$file_magic_test_file"; then
7717 case $deplibs_check_method in
7719 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7720 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7721 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7722 $EGREP "$file_magic_regex" > /dev/null; then
7727 *** Warning: the command libtool uses to detect shared libraries,
7728 *** $file_magic_cmd, produces output that libtool cannot recognize.
7729 *** The result is that libtool may fail to recognize shared libraries
7730 *** as such. This will affect the creation of libtool libraries that
7731 *** depend on shared libraries, but programs linked with such libtool
7732 *** libraries will work regardless of this problem. Nevertheless, you
7733 *** may want to report the problem to your system manager and/or to
7734 *** bug-libtool@gnu.org
7744 MAGIC_CMD=$lt_save_MAGIC_CMD
7749 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7750 if test -n "$MAGIC_CMD"; then
7751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7752 printf "%s\n" "$MAGIC_CMD" >&6; }
7754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755 printf "%s\n" "no" >&6; }
7762 if test -z "$lt_cv_path_MAGIC_CMD"; then
7763 if test -n "$ac_tool_prefix"; then
7764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7765 printf %s "checking for file... " >&6; }
7766 if test ${lt_cv_path_MAGIC_CMD+y}
7768 printf %s "(cached) " >&6
7772 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7775 lt_save_MAGIC_CMD=$MAGIC_CMD
7776 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7777 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7778 for ac_dir in $ac_dummy; do
7780 test -z "$ac_dir" && ac_dir=.
7781 if test -f "$ac_dir/file"; then
7782 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7783 if test -n "$file_magic_test_file"; then
7784 case $deplibs_check_method in
7786 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7787 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7788 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7789 $EGREP "$file_magic_regex" > /dev/null; then
7794 *** Warning: the command libtool uses to detect shared libraries,
7795 *** $file_magic_cmd, produces output that libtool cannot recognize.
7796 *** The result is that libtool may fail to recognize shared libraries
7797 *** as such. This will affect the creation of libtool libraries that
7798 *** depend on shared libraries, but programs linked with such libtool
7799 *** libraries will work regardless of this problem. Nevertheless, you
7800 *** may want to report the problem to your system manager and/or to
7801 *** bug-libtool@gnu.org
7811 MAGIC_CMD=$lt_save_MAGIC_CMD
7816 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7817 if test -n "$MAGIC_CMD"; then
7818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7819 printf "%s\n" "$MAGIC_CMD" >&6; }
7821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 printf "%s\n" "no" >&6; }
7835 # Use C for the default configuration in the libtool script
7839 ac_cpp='$CPP $CPPFLAGS'
7840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7845 # Source file extension for C test sources.
7848 # Object file extension for compiled C test sources.
7852 # Code to be used in simple compile tests
7853 lt_simple_compile_test_code="int some_variable = 0;"
7855 # Code to be used in simple link tests
7856 lt_simple_link_test_code='int main(){return(0);}'
7864 # If no C compiler was specified, use CC.
7867 # If no C compiler flags were specified, use CFLAGS.
7868 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7870 # Allow CC to be a program name with arguments.
7873 # Save the default compiler, since it gets overwritten when the other
7874 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7875 compiler_DEFAULT=$CC
7877 # save warnings/boilerplate of simple test code
7878 ac_outfile=conftest.$ac_objext
7879 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7880 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7881 _lt_compiler_boilerplate=`cat conftest.err
`
7884 ac_outfile=conftest.$ac_objext
7885 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7886 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7887 _lt_linker_boilerplate=`cat conftest.err
`
7891 if test -n "$compiler"; then
7893 lt_prog_compiler_no_builtin_flag=
7895 if test yes = "$GCC"; then
7896 case $cc_basename in
7898 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7900 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7904 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7905 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
7907 printf %s "(cached) " >&6
7909 lt_cv_prog_compiler_rtti_exceptions=no
7910 ac_outfile=conftest.$ac_objext
7911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7912 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
7913 # Insert the option either (1) after the last *FLAGS variable, or
7914 # (2) before a word containing "conftest.", or (3) at the end.
7915 # Note that $ac_compile itself does not contain backslashes and begins
7916 # with a dollar sign (not a hyphen), so the echo should work correctly.
7917 # The option is referenced via a variable to avoid confusing sed.
7918 lt_compile=`echo "$ac_compile" |
$SED \
7919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7921 -e 's:$: $lt_compiler_flag:'`
7922 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7923 (eval "$lt_compile" 2>conftest.err)
7925 cat conftest.err >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 if (exit $ac_status) && test -s "$ac_outfile"; then
7928 # The compiler can only warn and ignore the option if not recognized
7929 # So say no if there are warnings other than the usual output.
7930 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7932 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7933 lt_cv_prog_compiler_rtti_exceptions=yes
7939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7940 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7942 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7943 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7955 lt_prog_compiler_wl=
7956 lt_prog_compiler_pic=
7957 lt_prog_compiler_static=
7960 if test yes = "$GCC"; then
7961 lt_prog_compiler_wl='-Wl,'
7962 lt_prog_compiler_static='-static'
7966 # All AIX code is PIC.
7967 if test ia64 = "$host_cpu"; then
7968 # AIX 5 now supports IA64 processor
7969 lt_prog_compiler_static='-Bstatic'
7971 lt_prog_compiler_pic='-fPIC'
7977 # see comment about AmigaOS4 .so support
7978 lt_prog_compiler_pic='-fPIC'
7981 # FIXME: we need at least 68020 code to build shared libraries, but
7982 # adding the '-m68020' flag to GCC prevents building anything better,
7984 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7989 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7990 # PIC is the default for these OSes.
7993 mingw* | cygwin* | pw32* | os2* | cegcc*)
7994 # This hack is so that the source file can tell whether it is being
7995 # built for inclusion in a dll (and should export symbols for example).
7996 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7997 # (--disable-auto-import) libraries
7998 lt_prog_compiler_pic='-DDLL_EXPORT'
8001 lt_prog_compiler_static='$wl-static'
8006 darwin* | rhapsody*)
8007 # PIC is the default on this platform
8008 # Common symbols not allowed in MH_DYLIB files
8009 lt_prog_compiler_pic='-fno-common'
8013 # PIC is the default for Haiku.
8014 # The "-static" flag exists, but is broken.
8015 lt_prog_compiler_static=
8019 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8020 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8021 # sets the default TLS model and affects inlining.
8027 lt_prog_compiler_pic='-fPIC'
8033 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8034 # Instead, we relocate shared libraries at runtime.
8038 # Just because we use GCC doesn't mean we suddenly get shared libraries
8039 # on systems that don't support them.
8040 lt_prog_compiler_can_build_shared=no
8045 # QNX uses GNU C++, but need to define -shared option too, otherwise
8047 lt_prog_compiler_pic='-fPIC -shared'
8051 if test -d /usr/nec; then
8052 lt_prog_compiler_pic=-Kconform_pic
8057 lt_prog_compiler_pic='-fPIC'
8061 case $cc_basename in
8062 nvcc*) # Cuda Compiler Driver 2.2
8063 lt_prog_compiler_wl='-Xlinker '
8064 if test -n "$lt_prog_compiler_pic"; then
8065 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8070 # PORTME Check for flag to pass linker flags through the system compiler.
8073 lt_prog_compiler_wl='-Wl,'
8074 if test ia64 = "$host_cpu"; then
8075 # AIX 5 now supports IA64 processor
8076 lt_prog_compiler_static='-Bstatic'
8078 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8082 darwin* | rhapsody*)
8083 # PIC is the default on this platform
8084 # Common symbols not allowed in MH_DYLIB files
8085 lt_prog_compiler_pic='-fno-common'
8086 case $cc_basename in
8088 # NAG Fortran compiler
8089 lt_prog_compiler_wl='-Wl,-Wl,,'
8090 lt_prog_compiler_pic='-PIC'
8091 lt_prog_compiler_static='-Bstatic'
8096 mingw* | cygwin* | pw32* | os2* | cegcc*)
8097 # This hack is so that the source file can tell whether it is being
8098 # built for inclusion in a dll (and should export symbols for example).
8099 lt_prog_compiler_pic='-DDLL_EXPORT'
8102 lt_prog_compiler_static='$wl-static'
8107 hpux9* | hpux10* | hpux11*)
8108 lt_prog_compiler_wl='-Wl,'
8109 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8116 lt_prog_compiler_pic='+Z'
8119 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8120 lt_prog_compiler_static='$wl-a ${wl}archive'
8123 irix5* | irix6* | nonstopux*)
8124 lt_prog_compiler_wl='-Wl,'
8125 # PIC (with -KPIC) is the default.
8126 lt_prog_compiler_static='-non_shared'
8129 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8130 case $cc_basename in
8131 # old Intel for x86_64, which still supported -KPIC.
8133 lt_prog_compiler_wl='-Wl,'
8134 lt_prog_compiler_pic='-KPIC'
8135 lt_prog_compiler_static='-static'
8137 # flang / f18. f95 an alias for gfortran or flang on Debian
8138 flang* | f18* | f95*)
8139 lt_prog_compiler_wl='-Wl,'
8140 lt_prog_compiler_pic='-fPIC'
8141 lt_prog_compiler_static='-static'
8143 # icc used to be incompatible with GCC.
8144 # ICC 10 doesn't accept -KPIC any more.
8146 lt_prog_compiler_wl='-Wl,'
8147 lt_prog_compiler_pic='-fPIC'
8148 lt_prog_compiler_static='-static'
8150 # Lahey Fortran 8.1.
8152 lt_prog_compiler_wl='-Wl,'
8153 lt_prog_compiler_pic='--shared'
8154 lt_prog_compiler_static='--static'
8157 # NAG Fortran compiler
8158 lt_prog_compiler_wl='-Wl,-Wl,,'
8159 lt_prog_compiler_pic='-PIC'
8160 lt_prog_compiler_static='-Bstatic'
8163 # Fabrice Bellard et al's Tiny C Compiler
8164 lt_prog_compiler_wl='-Wl,'
8165 lt_prog_compiler_pic='-fPIC'
8166 lt_prog_compiler_static='-static'
8168 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8169 # Portland Group compilers (*not* the Pentium gcc compiler,
8170 # which looks to be a dead project)
8171 lt_prog_compiler_wl='-Wl,'
8172 lt_prog_compiler_pic='-fpic'
8173 lt_prog_compiler_static='-Bstatic'
8176 lt_prog_compiler_wl='-Wl,'
8177 # All Alpha code is PIC.
8178 lt_prog_compiler_static='-non_shared'
8180 xl* | bgxl* | bgf* | mpixl*)
8181 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8182 lt_prog_compiler_wl='-Wl,'
8183 lt_prog_compiler_pic='-qpic'
8184 lt_prog_compiler_static='-qstaticlink'
8187 case `$CC -V 2>&1 |
sed 5q
` in
8188 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8189 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8190 lt_prog_compiler_pic='-KPIC'
8191 lt_prog_compiler_static='-Bstatic'
8192 lt_prog_compiler_wl=''
8194 *Sun\ F* | *Sun*Fortran*)
8195 lt_prog_compiler_pic='-KPIC'
8196 lt_prog_compiler_static='-Bstatic'
8197 lt_prog_compiler_wl='-Qoption ld '
8201 lt_prog_compiler_pic='-KPIC'
8202 lt_prog_compiler_static='-Bstatic'
8203 lt_prog_compiler_wl='-Wl,'
8205 *Intel*\ [CF]*Compiler*)
8206 lt_prog_compiler_wl='-Wl,'
8207 lt_prog_compiler_pic='-fPIC'
8208 lt_prog_compiler_static='-static'
8211 lt_prog_compiler_wl='-Wl,'
8212 lt_prog_compiler_pic='-fpic'
8213 lt_prog_compiler_static='-Bstatic'
8221 lt_prog_compiler_pic='-KPIC'
8222 lt_prog_compiler_static='-Bstatic'
8226 # QNX uses GNU C++, but need to define -shared option too, otherwise
8228 lt_prog_compiler_pic='-fPIC -shared'
8231 osf3* | osf4* | osf5*)
8232 lt_prog_compiler_wl='-Wl,'
8233 # All OSF/1 code is PIC.
8234 lt_prog_compiler_static='-non_shared'
8238 lt_prog_compiler_static='-non_shared'
8242 lt_prog_compiler_pic='-KPIC'
8243 lt_prog_compiler_static='-Bstatic'
8244 case $cc_basename in
8245 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8246 lt_prog_compiler_wl='-Qoption ld ';;
8248 lt_prog_compiler_wl='-Wl,';;
8253 lt_prog_compiler_wl='-Qoption ld '
8254 lt_prog_compiler_pic='-PIC'
8255 lt_prog_compiler_static='-Bstatic'
8258 sysv4 | sysv4.2uw2* | sysv4.3*)
8259 lt_prog_compiler_wl='-Wl,'
8260 lt_prog_compiler_pic='-KPIC'
8261 lt_prog_compiler_static='-Bstatic'
8265 if test -d /usr/nec; then
8266 lt_prog_compiler_pic='-Kconform_pic'
8267 lt_prog_compiler_static='-Bstatic'
8271 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8272 lt_prog_compiler_wl='-Wl,'
8273 lt_prog_compiler_pic='-KPIC'
8274 lt_prog_compiler_static='-Bstatic'
8278 lt_prog_compiler_wl='-Wl,'
8279 lt_prog_compiler_can_build_shared=no
8283 lt_prog_compiler_pic='-pic'
8284 lt_prog_compiler_static='-Bstatic'
8288 lt_prog_compiler_can_build_shared=no
8294 # For platforms that do not support PIC, -DPIC is meaningless:
8296 lt_prog_compiler_pic=
8299 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8304 printf %s "checking for $compiler option to produce PIC... " >&6; }
8305 if test ${lt_cv_prog_compiler_pic+y}
8307 printf %s "(cached) " >&6
8309 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8312 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
8313 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8316 # Check to make sure the PIC flag actually works.
8318 if test -n "$lt_prog_compiler_pic"; then
8319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8320 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8321 if test ${lt_cv_prog_compiler_pic_works+y}
8323 printf %s "(cached) " >&6
8325 lt_cv_prog_compiler_pic_works=no
8326 ac_outfile=conftest.$ac_objext
8327 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8328 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8329 # Insert the option either (1) after the last *FLAGS variable, or
8330 # (2) before a word containing "conftest.", or (3) at the end.
8331 # Note that $ac_compile itself does not contain backslashes and begins
8332 # with a dollar sign (not a hyphen), so the echo should work correctly.
8333 # The option is referenced via a variable to avoid confusing sed.
8334 lt_compile=`echo "$ac_compile" |
$SED \
8335 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8336 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8337 -e 's:$: $lt_compiler_flag:'`
8338 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8339 (eval "$lt_compile" 2>conftest.err)
8341 cat conftest.err >&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 if (exit $ac_status) && test -s "$ac_outfile"; then
8344 # The compiler can only warn and ignore the option if not recognized
8345 # So say no if there are warnings other than the usual output.
8346 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8347 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8348 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8349 lt_cv_prog_compiler_pic_works=yes
8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8356 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
8358 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8359 case $lt_prog_compiler_pic in
8361 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8364 lt_prog_compiler_pic=
8365 lt_prog_compiler_can_build_shared=no
8381 # Check to make sure the static flag actually works.
8383 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8385 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8386 if test ${lt_cv_prog_compiler_static_works+y}
8388 printf %s "(cached) " >&6
8390 lt_cv_prog_compiler_static_works=no
8391 save_LDFLAGS=$LDFLAGS
8392 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8393 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8394 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8395 # The linker can only warn and ignore the option if not recognized
8396 # So say no if there are warnings
8397 if test -s conftest.err; then
8398 # Append any errors to the config.log.
8399 cat conftest.err 1>&5
8400 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8401 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8402 if diff conftest.exp conftest.er2 >/dev/null; then
8403 lt_cv_prog_compiler_static_works=yes
8406 lt_cv_prog_compiler_static_works=yes
8410 LDFLAGS=$save_LDFLAGS
8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8414 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
8416 if test yes = "$lt_cv_prog_compiler_static_works"; then
8419 lt_prog_compiler_static=
8428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8429 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8430 if test ${lt_cv_prog_compiler_c_o+y}
8432 printf %s "(cached) " >&6
8434 lt_cv_prog_compiler_c_o=no
8435 $RM -r conftest 2>/dev/null
8439 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8441 lt_compiler_flag="-o out/conftest2.$ac_objext"
8442 # Insert the option either (1) after the last *FLAGS variable, or
8443 # (2) before a word containing "conftest.", or (3) at the end.
8444 # Note that $ac_compile itself does not contain backslashes and begins
8445 # with a dollar sign (not a hyphen), so the echo should work correctly.
8446 lt_compile=`echo "$ac_compile" |
$SED \
8447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8449 -e 's:$: $lt_compiler_flag:'`
8450 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8451 (eval "$lt_compile" 2>out/conftest.err)
8453 cat out/conftest.err >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8457 # The compiler can only warn and ignore the option if not recognized
8458 # So say no if there are warnings
8459 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8460 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8461 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8462 lt_cv_prog_compiler_c_o=yes
8467 # SGI C++ compiler will create directory out/ii_files/ for
8468 # template instantiation
8469 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8470 $RM out/* && rmdir out
8476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8477 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
8484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8485 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8486 if test ${lt_cv_prog_compiler_c_o+y}
8488 printf %s "(cached) " >&6
8490 lt_cv_prog_compiler_c_o=no
8491 $RM -r conftest 2>/dev/null
8495 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8497 lt_compiler_flag="-o out/conftest2.$ac_objext"
8498 # Insert the option either (1) after the last *FLAGS variable, or
8499 # (2) before a word containing "conftest.", or (3) at the end.
8500 # Note that $ac_compile itself does not contain backslashes and begins
8501 # with a dollar sign (not a hyphen), so the echo should work correctly.
8502 lt_compile=`echo "$ac_compile" |
$SED \
8503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8505 -e 's:$: $lt_compiler_flag:'`
8506 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8507 (eval "$lt_compile" 2>out/conftest.err)
8509 cat out/conftest.err >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8513 # The compiler can only warn and ignore the option if not recognized
8514 # So say no if there are warnings
8515 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8516 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8517 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8518 lt_cv_prog_compiler_c_o=yes
8523 # SGI C++ compiler will create directory out/ii_files/ for
8524 # template instantiation
8525 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8526 $RM out/* && rmdir out
8532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8533 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
8538 hard_links=nottested
8539 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8540 # do not overwrite the value of need_locks provided by the user
8541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8542 printf %s "checking if we can lock with hard links... " >&6; }
8545 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8547 ln conftest.a conftest.b 2>&5 || hard_links=no
8548 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8550 printf "%s\n" "$hard_links" >&6; }
8551 if test no = "$hard_links"; then
8552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8553 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8566 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8569 allow_undefined_flag=
8570 always_export_symbols=no
8572 archive_expsym_cmds=
8573 compiler_needs_object=no
8574 enable_shared_with_static_runtimes=no
8575 export_dynamic_flag_spec=
8576 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8577 hardcode_automatic=no
8579 hardcode_direct_absolute=no
8580 hardcode_libdir_flag_spec=
8581 hardcode_libdir_separator=
8583 hardcode_shlibpath_var=unsupported
8585 link_all_deplibs=unknown
8588 old_archive_from_new_cmds=
8589 old_archive_from_expsyms_cmds=
8590 thread_safe_flag_spec=
8591 whole_archive_flag_spec=
8592 # include_expsyms should be a list of space-separated symbols to be *always*
8593 # included in the symbol list
8595 # exclude_expsyms can be an extended regexp of symbols to exclude
8596 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8597 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8598 # as well as any symbol that contains 'd'.
8599 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8600 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8601 # platforms (ab)use it in PIC code, but their linkers get confused if
8602 # the symbol is explicitly referenced. Since portable code cannot
8603 # rely on this symbol name, it's probably fine to never include it in
8604 # preloaded symbol tables.
8605 # Exclude shared library initialization/finalization symbols.
8606 extract_expsyms_cmds=
8609 cygwin* | mingw* | pw32* | cegcc*)
8610 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8611 # When not using gcc, we currently assume that we are using
8612 # Microsoft Visual C++.
8613 if test yes != "$GCC"; then
8618 # we just hope/assume this is gcc and not c89 (= MSVC++)
8624 linux* | k*bsd*-gnu | gnu*)
8631 # On some targets, GNU ld is compatible enough with the native linker
8632 # that we're better off using the native interface for both.
8633 lt_use_gnu_ld_interface=no
8634 if test yes = "$with_gnu_ld"; then
8637 # The AIX port of GNU ld has always aspired to compatibility
8638 # with the native linker. However, as the warning in the GNU ld
8639 # block says, versions before 2.19.5* couldn't really create working
8640 # shared libraries, regardless of the interface used.
8641 case `$LD -v 2>&1` in
8642 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8643 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8644 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8646 lt_use_gnu_ld_interface=yes
8651 lt_use_gnu_ld_interface=yes
8656 if test yes = "$lt_use_gnu_ld_interface"; then
8657 # If archive_cmds runs LD, not CC, wlarc should be empty
8660 # Set some defaults for GNU ld with shared library support. These
8661 # are reset later if shared libraries are not supported. Putting them
8662 # here allows them to be overridden if necessary.
8663 runpath_var=LD_RUN_PATH
8664 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8665 export_dynamic_flag_spec='$wl--export-dynamic'
8666 # ancient GNU ld didn't support --whole-archive et. al.
8667 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8668 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8670 whole_archive_flag_spec=
8672 supports_anon_versioning=no
8673 case `$LD -v |
$SED -e 's/(^)\+)\s\+//' 2>&1` in
8674 *GNU\ gold*) supports_anon_versioning=yes ;;
8675 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8676 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8677 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8678 *\ 2.11.*) ;; # other 2.11 versions
8679 *) supports_anon_versioning=yes ;;
8682 # See if GNU ld supports shared libraries.
8685 # On AIX/PPC, the GNU linker is very broken
8686 if test ia64 != "$host_cpu"; then
8690 *** Warning: the GNU linker, at least up to release 2.19, is reported
8691 *** to be unable to reliably create shared libraries on AIX.
8692 *** Therefore, libtool is disabling shared libraries support. If you
8693 *** really care for shared libraries, you may want to install binutils
8694 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8695 *** You will then need to restart the configuration process.
8704 # see comment about AmigaOS4 .so support
8705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8706 archive_expsym_cmds=''
8709 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)'
8710 hardcode_libdir_flag_spec='-L$libdir'
8711 hardcode_minus_L=yes
8717 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8718 allow_undefined_flag=unsupported
8719 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8720 # support --undefined. This deserves some investigation. FIXME
8721 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8727 cygwin* | mingw* | pw32* | cegcc*)
8728 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8729 # as there is no search path for DLLs.
8730 hardcode_libdir_flag_spec='-L$libdir'
8731 export_dynamic_flag_spec='$wl--export-all-symbols'
8732 allow_undefined_flag=unsupported
8733 always_export_symbols=no
8734 enable_shared_with_static_runtimes=yes
8735 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'
8736 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8738 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8740 # If the export-symbols file already is a .def file, use it as
8741 # is; otherwise, prepend EXPORTS...
8742 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s
/^
[ ]*//'\'' -e '\''/^\
(;.
*\
)*$
/d
'\'' -e '\''s
/^\
(EXPORTS\|LIBRARY\
)\
([ ].
*\
)*$
/DEF
/p
'\'' -e q
$export_symbols`" ; then
8743 cp $export_symbols $output_objdir/$soname.def;
8745 echo EXPORTS > $output_objdir/$soname.def;
8746 cat $export_symbols >> $output_objdir/$soname.def;
8748 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8755 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8756 link_all_deplibs=yes
8760 hardcode_libdir_flag_spec='-L$libdir'
8761 hardcode_minus_L=yes
8762 allow_undefined_flag=unsupported
8764 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8765 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8766 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8767 $ECHO EXPORTS >> $output_objdir/$libname.def~
8768 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8769 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8770 emximp -o $lib $output_objdir/$libname.def'
8771 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8772 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8773 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8774 $ECHO EXPORTS >> $output_objdir/$libname.def~
8776 if test EXPORTS = "`$SED 1q
$export_symbols`"; then
8777 prefix_cmds="$prefix_cmds -e 1d";
8779 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8780 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8781 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8782 emximp -o $lib $output_objdir/$libname.def'
8783 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8784 enable_shared_with_static_runtimes=yes
8789 hardcode_shlibpath_var=no
8790 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8791 export_dynamic_flag_spec='$wl-E'
8792 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8793 # Instead, shared libraries are loaded at an image base (0x10000000 by
8794 # default) and relocated if they conflict, which is a slow very memory
8795 # consuming and fragmenting process. To avoid this, we pick a random,
8796 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8797 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8798 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \
* 262144 + 1342177280` -o $lib'
8799 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'
8802 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8804 if test linux-dietlibc = "$host_os"; then
8805 case $cc_basename in
8806 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8809 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8810 && test no = "$tmp_diet"
8812 tmp_addflag=' $pic_flag'
8813 tmp_sharedflag='-shared'
8814 case $cc_basename,$host_cpu in
8815 pgcc*) # Portland Group C compiler
8816 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'
8817 tmp_addflag=' $pic_flag'
8819 pgf77* | pgf90* | pgf95* | pgfortran*)
8820 # Portland Group f77 and f90 compilers
8821 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'
8822 tmp_addflag=' $pic_flag -Mnomain' ;;
8823 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8824 tmp_addflag=' -i_dynamic' ;;
8825 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8826 tmp_addflag=' -i_dynamic -nofor_main' ;;
8827 ifc* | ifort*) # Intel Fortran compiler
8828 tmp_addflag=' -nofor_main' ;;
8829 lf95*) # Lahey Fortran 8.1
8830 whole_archive_flag_spec=
8831 tmp_sharedflag='--shared' ;;
8832 nagfor*) # NAGFOR 5.3
8833 tmp_sharedflag='-Wl,-shared' ;;
8834 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8835 tmp_sharedflag='-qmkshrobj'
8837 nvcc*) # Cuda Compiler Driver 2.2
8838 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'
8839 compiler_needs_object=yes
8842 case `$CC -V 2>&1 |
sed 5q
` in
8843 *Sun\ C*) # Sun C 5.9
8844 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'
8845 compiler_needs_object=yes
8846 tmp_sharedflag='-G' ;;
8847 *Sun\ F*) # Sun Fortran 8.3
8848 tmp_sharedflag='-G' ;;
8850 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8852 if test yes = "$supports_anon_versioning"; then
8853 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8854 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8855 echo "local: *; };" >> $output_objdir/$libname.ver~
8856 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8859 case $cc_basename in
8861 export_dynamic_flag_spec='-rdynamic'
8863 xlf* | bgf* | bgxlf* | mpixlf*)
8864 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8865 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8866 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8867 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8868 if test yes = "$supports_anon_versioning"; then
8869 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8870 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8871 echo "local: *; };" >> $output_objdir/$libname.ver~
8872 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8881 netbsd* | netbsdelf*-gnu)
8882 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8883 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8886 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8887 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8892 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8896 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8897 *** create shared libraries on Solaris systems. Therefore, libtool
8898 *** is disabling shared libraries support. We urge you to upgrade GNU
8899 *** binutils to release 2.9.1 or newer. Another option is to modify
8900 *** your PATH or compiler configuration so that the native linker is
8901 *** used, and then restart.
8904 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8905 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8906 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8912 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8913 case `$LD -v 2>&1` in
8914 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8918 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8919 *** reliably create shared libraries on SCO systems. Therefore, libtool
8920 *** is disabling shared libraries support. We urge you to upgrade GNU
8921 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8922 *** your PATH or compiler configuration so that the native linker is
8923 *** used, and then restart.
8928 # For security reasons, it is highly recommended that you always
8929 # use absolute paths for naming shared libraries, and exclude the
8930 # DT_RUNPATH tag from executables and libraries. But doing so
8931 # requires that you compile everything twice, which is a pain.
8932 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8933 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8934 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8935 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8944 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8947 hardcode_shlibpath_var=no
8951 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8952 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8953 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8960 if test no = "$ld_shlibs"; then
8962 hardcode_libdir_flag_spec=
8963 export_dynamic_flag_spec=
8964 whole_archive_flag_spec=
8967 # PORTME fill in a description of your system's linker (not GNU ld)
8970 allow_undefined_flag=unsupported
8971 always_export_symbols=yes
8972 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'
8973 # Note: this linker hardcodes the directories in LIBPATH if there
8974 # are no directories specified by -L.
8975 hardcode_minus_L=yes
8976 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8977 # Neither direct hardcoding nor static linking is supported with a
8979 hardcode_direct=unsupported
8984 if test ia64 = "$host_cpu"; then
8985 # On IA64, the linker does run time linking by default, so we don't
8986 # have to do anything special.
8987 aix_use_runtimelinking=no
8988 exp_sym_flag='-Bexport'
8991 # If we're using GNU nm, then we don't want the "-C" option.
8992 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
8993 # Without the "-l" option, or with the "-B" option, AIX nm treats
8994 # weak defined symbols like other global defined symbols, whereas
8995 # GNU nm marks them as "W".
8996 # While the 'weak' keyword is ignored in the Export File, we need
8997 # it in the Import File for the 'aix-soname' feature, so we have
8998 # to replace the "-B" option with "-P" for AIX nm.
8999 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9000 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'
9002 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'
9004 aix_use_runtimelinking=no
9006 # Test if we are trying to use run time linking or normal
9007 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9008 # have runtime linking enabled, and use it for executables.
9009 # For shared libraries, we enable/disable runtime linking
9010 # depending on the kind of the shared library created -
9011 # when "with_aix_soname,aix_use_runtimelinking" is:
9012 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9013 # "aix,yes" lib.so shared, rtl:yes, for executables
9014 # lib.a static archive
9015 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9016 # lib.a(lib.so.V) shared, rtl:no, for executables
9017 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9018 # lib.a(lib.so.V) shared, rtl:no
9019 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9020 # lib.a static archive
9021 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9022 for ld_flag in $LDFLAGS; do
9023 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9024 aix_use_runtimelinking=yes
9028 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9029 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9030 # so we don't have lib.a shared libs to link our executables.
9031 # We have to force runtime linking in this case.
9032 aix_use_runtimelinking=yes
9033 LDFLAGS="$LDFLAGS -Wl,-brtl"
9038 exp_sym_flag='-bexport'
9039 no_entry_flag='-bnoentry'
9042 # When large executables or shared objects are built, AIX ld can
9043 # have problems creating the table of contents. If linking a library
9044 # or program results in "error TOC overflow" add -mminimal-toc to
9045 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9046 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9050 hardcode_direct_absolute=yes
9051 hardcode_libdir_separator=':'
9052 link_all_deplibs=yes
9053 file_list_spec='$wl-f,'
9054 case $with_aix_soname,$aix_use_runtimelinking in
9055 aix,*) ;; # traditional, no import file
9056 svr4,* | *,yes) # use import file
9057 # The Import File defines what to hardcode.
9059 hardcode_direct_absolute=no
9063 if test yes = "$GCC"; then
9064 case $host_os in aix4.[012]|aix4.[012].*)
9065 # We only want to do this on AIX 4.2 and lower, the check
9066 # below for broken collect2 doesn't work under 4.3+
9067 collect2name=`$CC -print-prog-name=collect2
`
9068 if test -f "$collect2name" &&
9069 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9071 # We have reworked collect2
9074 # We have old collect2
9075 hardcode_direct=unsupported
9076 # It fails to find uninstalled libraries when the uninstalled
9077 # path is not listed in the libpath. Setting hardcode_minus_L
9078 # to unsupported forces relinking
9079 hardcode_minus_L=yes
9080 hardcode_libdir_flag_spec='-L$libdir'
9081 hardcode_libdir_separator=
9085 shared_flag='-shared'
9086 if test yes = "$aix_use_runtimelinking"; then
9087 shared_flag="$shared_flag "'$wl-G'
9089 # Need to ensure runtime linking is disabled for the traditional
9090 # shared library, or the linker may eventually find shared libraries
9091 # /with/ Import File - we do not want to mix them.
9092 shared_flag_aix='-shared'
9093 shared_flag_svr4='-shared $wl-G'
9096 if test ia64 = "$host_cpu"; then
9097 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9098 # chokes on -Wl,-G. The following line is correct:
9101 if test yes = "$aix_use_runtimelinking"; then
9104 shared_flag='$wl-bM:SRE'
9106 shared_flag_aix='$wl-bM:SRE'
9107 shared_flag_svr4='$wl-G'
9111 export_dynamic_flag_spec='$wl-bexpall'
9112 # It seems that -bexpall does not export symbols beginning with
9113 # underscore (_), so it is better to generate a list of symbols to export.
9114 always_export_symbols=yes
9115 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9116 # Warning - without using the other runtime loading flags (-brtl),
9117 # -berok will link without error, but may produce a broken library.
9118 allow_undefined_flag='-berok'
9119 # Determine the default libpath from the value encoded in an
9121 if test set = "${lt_cv_aix_libpath+set}"; then
9122 aix_libpath=$lt_cv_aix_libpath
9124 if test ${lt_cv_aix_libpath_+y}
9126 printf %s "(cached) " >&6
9128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h. */
9139 if ac_fn_c_try_link "$LINENO"
9142 lt_aix_libpath_sed='
9143 /Import File Strings/,/^$/ {
9145 s/^0 *\([^ ]*\) *$/\1/
9149 lt_cv_aix_libpath_=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
9150 # Check for a 64-bit object if we didn't find anything.
9151 if test -z "$lt_cv_aix_libpath_"; then
9152 lt_cv_aix_libpath_=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
9155 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9156 conftest$ac_exeext conftest.$ac_ext
9157 if test -z "$lt_cv_aix_libpath_"; then
9158 lt_cv_aix_libpath_=/usr/lib:/lib
9163 aix_libpath=$lt_cv_aix_libpath_
9166 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9167 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
9169 if test ia64 = "$host_cpu"; then
9170 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9171 allow_undefined_flag="-z nodefs"
9172 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"
9174 # Determine the default libpath from the value encoded in an
9176 if test set = "${lt_cv_aix_libpath+set}"; then
9177 aix_libpath=$lt_cv_aix_libpath
9179 if test ${lt_cv_aix_libpath_+y}
9181 printf %s "(cached) " >&6
9183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184 /* end confdefs.h. */
9194 if ac_fn_c_try_link "$LINENO"
9197 lt_aix_libpath_sed='
9198 /Import File Strings/,/^$/ {
9200 s/^0 *\([^ ]*\) *$/\1/
9204 lt_cv_aix_libpath_=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
9205 # Check for a 64-bit object if we didn't find anything.
9206 if test -z "$lt_cv_aix_libpath_"; then
9207 lt_cv_aix_libpath_=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
9210 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9211 conftest$ac_exeext conftest.$ac_ext
9212 if test -z "$lt_cv_aix_libpath_"; then
9213 lt_cv_aix_libpath_=/usr/lib:/lib
9218 aix_libpath=$lt_cv_aix_libpath_
9221 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9222 # Warning - without using the other run time loading flags,
9223 # -berok will link without error, but may produce a broken library.
9224 no_undefined_flag=' $wl-bernotok'
9225 allow_undefined_flag=' $wl-berok'
9226 if test yes = "$with_gnu_ld"; then
9227 # We only use this code for GNU lds that support --whole-archive.
9228 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9230 # Exported symbols can be pulled into shared objects from archives
9231 whole_archive_flag_spec='$convenience'
9233 archive_cmds_need_lc=yes
9234 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9235 # -brtl affects multiple linker settings, -berok does not and is overridden later
9236 compiler_flags_filtered='`func_echo_all
"$compiler_flags " |
$SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9237 if test svr4 != "$with_aix_soname"; then
9238 # This is similar to how AIX traditionally builds its shared libraries.
9239 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'
9241 if test aix != "$with_aix_soname"; then
9242 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'
9244 # used by -dlpreopen to get the symbols
9245 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9247 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9255 # see comment about AmigaOS4 .so support
9256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9257 archive_expsym_cmds=''
9260 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)'
9261 hardcode_libdir_flag_spec='-L$libdir'
9262 hardcode_minus_L=yes
9268 export_dynamic_flag_spec=-rdynamic
9271 cygwin* | mingw* | pw32* | cegcc*)
9272 # When not using gcc, we currently assume that we are using
9273 # Microsoft Visual C++.
9274 # hardcode_libdir_flag_spec is actually meaningless, as there is
9275 # no search path for DLLs.
9276 case $cc_basename in
9279 hardcode_libdir_flag_spec=' '
9280 allow_undefined_flag=unsupported
9281 always_export_symbols=yes
9283 # Tell ltmain to make .lib files, not .a files.
9285 # Tell ltmain to make .dll files, not .so files.
9287 # FIXME: Setting linknames here is a bad hack.
9288 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9289 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s
/^
[ ]*//'\'' -e '\''/^\
(;.
*\
)*$
/d
'\'' -e '\''s
/^\
(EXPORTS\|LIBRARY\
)\
([ ].
*\
)*$
/DEF
/p
'\'' -e q
$export_symbols`" ; then
9290 cp "$export_symbols" "$output_objdir/$soname.def";
9291 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9293 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9295 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9297 # The linker will not automatically build a static lib if we build a DLL.
9298 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9299 enable_shared_with_static_runtimes=yes
9300 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9301 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9303 old_postinstall_cmds='chmod 644 $oldlib'
9304 postlink_cmds='lt_outputfile="@OUTPUT@"~
9305 lt_tool_outputfile="@TOOL_OUTPUT@"~
9306 case $lt_outputfile in
9309 lt_outputfile=$lt_outputfile.exe
9310 lt_tool_outputfile=$lt_tool_outputfile.exe
9313 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9314 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9315 $RM "$lt_outputfile.manifest";
9319 # Assume MSVC wrapper
9320 hardcode_libdir_flag_spec=' '
9321 allow_undefined_flag=unsupported
9322 # Tell ltmain to make .lib files, not .a files.
9324 # Tell ltmain to make .dll files, not .so files.
9326 # FIXME: Setting linknames here is a bad hack.
9327 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all
"$deplibs" |
$SED '\''s
/ -lc$
//'\''` -link -dll~linknames='
9328 # The linker will automatically build a .lib file if we build a DLL.
9329 old_archive_from_new_cmds='true'
9330 # FIXME: Should let the user specify the lib program.
9331 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9332 enable_shared_with_static_runtimes=yes
9337 darwin* | rhapsody*)
9340 archive_cmds_need_lc=no
9342 hardcode_automatic=yes
9343 hardcode_shlibpath_var=unsupported
9344 if test yes = "$lt_cv_ld_force_load"; then
9345 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\"`'
9348 whole_archive_flag_spec=''
9350 link_all_deplibs=yes
9351 allow_undefined_flag=$_lt_dar_allow_undefined
9352 case $cc_basename in
9353 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9354 *) _lt_dar_can_shared=$GCC ;;
9356 if test yes = "$_lt_dar_can_shared"; then
9357 output_verbose_link_cmd=func_echo_all
9358 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9359 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9360 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"
9361 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"
9370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9371 hardcode_libdir_flag_spec='-L$libdir'
9372 hardcode_shlibpath_var=no
9375 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9376 # support. Future versions do this automatically, but an explicit c++rt0.o
9377 # does not break anything, and helps significantly (at the cost of a little
9380 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9381 hardcode_libdir_flag_spec='-R$libdir'
9383 hardcode_shlibpath_var=no
9386 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9388 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9390 hardcode_minus_L=yes
9391 hardcode_shlibpath_var=no
9394 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9395 freebsd* | dragonfly*)
9396 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9397 hardcode_libdir_flag_spec='-R$libdir'
9399 hardcode_shlibpath_var=no
9403 if test yes = "$GCC"; then
9404 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'
9406 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'
9408 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9409 hardcode_libdir_separator=:
9412 # hardcode_minus_L: Not really in the search PATH,
9413 # but as the default location of the library.
9414 hardcode_minus_L=yes
9415 export_dynamic_flag_spec='$wl-E'
9419 if test yes,no = "$GCC,$with_gnu_ld"; then
9420 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9422 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9424 if test no = "$with_gnu_ld"; then
9425 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9426 hardcode_libdir_separator=:
9428 hardcode_direct_absolute=yes
9429 export_dynamic_flag_spec='$wl-E'
9430 # hardcode_minus_L: Not really in the search PATH,
9431 # but as the default location of the library.
9432 hardcode_minus_L=yes
9437 if test yes,no = "$GCC,$with_gnu_ld"; then
9440 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9443 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9446 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9452 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9455 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9459 # Older versions of the 11.00 compiler do not understand -b yet
9460 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9462 printf %s "checking if $CC understands -b... " >&6; }
9463 if test ${lt_cv_prog_compiler__b+y}
9465 printf %s "(cached) " >&6
9467 lt_cv_prog_compiler__b=no
9468 save_LDFLAGS=$LDFLAGS
9469 LDFLAGS="$LDFLAGS -b"
9470 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9471 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9472 # The linker can only warn and ignore the option if not recognized
9473 # So say no if there are warnings
9474 if test -s conftest.err; then
9475 # Append any errors to the config.log.
9476 cat conftest.err 1>&5
9477 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9478 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9479 if diff conftest.exp conftest.er2 >/dev/null; then
9480 lt_cv_prog_compiler__b=yes
9483 lt_cv_prog_compiler__b=yes
9487 LDFLAGS=$save_LDFLAGS
9490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9491 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
9493 if test yes = "$lt_cv_prog_compiler__b"; then
9494 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9496 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9502 if test no = "$with_gnu_ld"; then
9503 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9504 hardcode_libdir_separator=:
9509 hardcode_shlibpath_var=no
9513 hardcode_direct_absolute=yes
9514 export_dynamic_flag_spec='$wl-E'
9516 # hardcode_minus_L: Not really in the search PATH,
9517 # but as the default location of the library.
9518 hardcode_minus_L=yes
9524 irix5* | irix6* | nonstopux*)
9525 if test yes = "$GCC"; then
9526 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'
9527 # Try to use the -exported_symbol ld option, if it does not
9528 # work, assume that -exports_file does not work either and
9529 # implicitly export all symbols.
9530 # This should be the same for all languages, so no per-tag cache variable.
9531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9532 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9533 if test ${lt_cv_irix_exported_symbol+y}
9535 printf %s "(cached) " >&6
9537 save_LDFLAGS=$LDFLAGS
9538 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540 /* end confdefs.h. */
9541 int foo (void) { return 0; }
9543 if ac_fn_c_try_link "$LINENO"
9545 lt_cv_irix_exported_symbol=yes
9547 lt_cv_irix_exported_symbol=no
9549 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9550 conftest$ac_exeext conftest.$ac_ext
9551 LDFLAGS=$save_LDFLAGS
9553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9554 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
9555 if test yes = "$lt_cv_irix_exported_symbol"; then
9556 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'
9560 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'
9561 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'
9563 archive_cmds_need_lc='no'
9564 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9565 hardcode_libdir_separator=:
9567 link_all_deplibs=yes
9571 case $cc_basename in
9573 # Fabrice Bellard et al's Tiny C Compiler
9575 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9580 netbsd* | netbsdelf*-gnu)
9581 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9582 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9584 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9586 hardcode_libdir_flag_spec='-R$libdir'
9588 hardcode_shlibpath_var=no
9592 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9594 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9595 hardcode_libdir_separator=:
9596 hardcode_shlibpath_var=no
9603 if test -f /usr/libexec/ld.so; then
9605 hardcode_shlibpath_var=no
9606 hardcode_direct_absolute=yes
9607 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`"; then
9608 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9609 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9610 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9611 export_dynamic_flag_spec='$wl-E'
9613 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9614 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9622 hardcode_libdir_flag_spec='-L$libdir'
9623 hardcode_minus_L=yes
9624 allow_undefined_flag=unsupported
9626 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9627 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9628 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9629 $ECHO EXPORTS >> $output_objdir/$libname.def~
9630 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9631 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9632 emximp -o $lib $output_objdir/$libname.def'
9633 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9634 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9635 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9636 $ECHO EXPORTS >> $output_objdir/$libname.def~
9638 if test EXPORTS = "`$SED 1q
$export_symbols`"; then
9639 prefix_cmds="$prefix_cmds -e 1d";
9641 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9642 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9643 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9644 emximp -o $lib $output_objdir/$libname.def'
9645 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9646 enable_shared_with_static_runtimes=yes
9650 if test yes = "$GCC"; then
9651 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9652 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'
9654 allow_undefined_flag=' -expect_unresolved \*'
9655 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'
9657 archive_cmds_need_lc='no'
9658 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9659 hardcode_libdir_separator=:
9662 osf4* | osf5*) # as osf3* with the addition of -msym flag
9663 if test yes = "$GCC"; then
9664 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9665 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'
9666 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9668 allow_undefined_flag=' -expect_unresolved \*'
9669 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'
9670 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~
9671 $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'
9673 # Both c and cxx compiler support -rpath directly
9674 hardcode_libdir_flag_spec='-rpath $libdir'
9676 archive_cmds_need_lc='no'
9677 hardcode_libdir_separator=:
9681 no_undefined_flag=' -z defs'
9682 if test yes = "$GCC"; then
9684 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9685 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9686 $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'
9688 case `$CC -V 2>&1` in
9691 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9692 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9693 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9697 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9698 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9699 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9703 hardcode_libdir_flag_spec='-R$libdir'
9704 hardcode_shlibpath_var=no
9706 solaris2.[0-5] | solaris2.[0-5].*) ;;
9708 # The compiler driver will combine and reorder linker options,
9709 # but understands '-z linker_flag'. GCC discards it without '$wl',
9710 # but is careful enough not to reorder.
9711 # Supported since Solaris 2.6 (maybe 2.5.1?)
9712 if test yes = "$GCC"; then
9713 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9715 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9719 link_all_deplibs=yes
9723 if test sequent = "$host_vendor"; then
9724 # Use $CC to link under sequent, because it throws in some extra .o
9725 # files that make .init and .fini sections work.
9726 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9728 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9730 hardcode_libdir_flag_spec='-L$libdir'
9732 hardcode_minus_L=yes
9733 hardcode_shlibpath_var=no
9737 case $host_vendor in
9739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9740 hardcode_direct=yes # is this really true???
9743 ## LD is ld it makes a PLAMLIB
9744 ## CC just makes a GrossModule.
9745 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9746 reload_cmds='$CC -r -o $output$reload_objs'
9750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9751 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9754 runpath_var='LD_RUN_PATH'
9755 hardcode_shlibpath_var=no
9759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9760 hardcode_shlibpath_var=no
9761 export_dynamic_flag_spec='-Bexport'
9765 if test -d /usr/nec; then
9766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9767 hardcode_shlibpath_var=no
9768 runpath_var=LD_RUN_PATH
9769 hardcode_runpath_var=yes
9774 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9775 no_undefined_flag='$wl-z,text'
9776 archive_cmds_need_lc=no
9777 hardcode_shlibpath_var=no
9778 runpath_var='LD_RUN_PATH'
9780 if test yes = "$GCC"; then
9781 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9782 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9784 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9785 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9789 sysv5* | sco3.2v5* | sco5v6*)
9790 # Note: We CANNOT use -z defs as we might desire, because we do not
9791 # link with -lc, and that would cause any symbols used from libc to
9792 # always be unresolved, which means just about no library would
9793 # ever link correctly. If we're not using GNU ld we use -z text
9794 # though, which does catch some bad symbols but isn't as heavy-handed
9796 no_undefined_flag='$wl-z,text'
9797 allow_undefined_flag='$wl-z,nodefs'
9798 archive_cmds_need_lc=no
9799 hardcode_shlibpath_var=no
9800 hardcode_libdir_flag_spec='$wl-R,$libdir'
9801 hardcode_libdir_separator=':'
9802 link_all_deplibs=yes
9803 export_dynamic_flag_spec='$wl-Bexport'
9804 runpath_var='LD_RUN_PATH'
9806 if test yes = "$GCC"; then
9807 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9808 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9810 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9811 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9817 hardcode_libdir_flag_spec='-L$libdir'
9818 hardcode_shlibpath_var=no
9826 if test sni = "$host_vendor"; then
9828 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9829 export_dynamic_flag_spec='$wl-Blargedynsym'
9835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9836 printf "%s\n" "$ld_shlibs" >&6; }
9837 test no = "$ld_shlibs" && can_build_shared=no
9839 with_gnu_ld=$with_gnu_ld
9856 # Do we need to explicitly link libc?
9858 case "x$archive_cmds_need_lc" in
9860 # Assume -lc should be added
9861 archive_cmds_need_lc=yes
9863 if test yes,yes = "$GCC,$enable_shared"; then
9864 case $archive_cmds in
9866 # FIXME: we may have to deal with multi-command sequences.
9869 # Test whether the compiler implicitly links with -lc since on some
9870 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9871 # to ld, don't add -lc before -lgcc.
9872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9873 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
9874 if test ${lt_cv_archive_cmds_need_lc+y}
9876 printf %s "(cached) " >&6
9879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9882 (eval $ac_compile) 2>&5
9884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9885 test $ac_status = 0; } 2>conftest.err; then
9888 libobjs=conftest.$ac_objext
9890 wl=$lt_prog_compiler_wl
9891 pic_flag=$lt_prog_compiler_pic
9897 lt_save_allow_undefined_flag=$allow_undefined_flag
9898 allow_undefined_flag=
9899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9900 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9903 test $ac_status = 0; }
9905 lt_cv_archive_cmds_need_lc=no
9907 lt_cv_archive_cmds_need_lc=yes
9909 allow_undefined_flag=$lt_save_allow_undefined_flag
9911 cat conftest.err 1>&5
9916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9917 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
9918 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10077 printf %s "checking dynamic linker characteristics... " >&6; }
10079 if test yes = "$GCC"; then
10081 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10082 *) lt_awk_arg='/^libraries:/' ;;
10085 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10086 *) lt_sed_strip_eq='s|=/|/|g' ;;
10088 lt_search_path_spec=`$CC -print-search-dirs |
awk $lt_awk_arg |
$SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10089 case $lt_search_path_spec in
10091 # if the path contains ";" then we assume it to be the separator
10092 # otherwise default to the standard path separator (i.e. ":") - it is
10093 # assumed that no part of a normal pathname contains ";" but that should
10094 # okay in the real world where ";" in dirpaths is itself problematic.
10095 lt_search_path_spec=`$ECHO "$lt_search_path_spec" |
$SED 's/;/ /g'`
10098 lt_search_path_spec=`$ECHO "$lt_search_path_spec" |
$SED "s/$PATH_SEPARATOR/ /g"`
10101 # Ok, now we have the path, separated by spaces, we can step through it
10102 # and add multilib dir if necessary...
10103 lt_tmp_lt_search_path_spec=
10104 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev
/null
`
10105 # ...but if some path component already ends with the multilib dir we assume
10106 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10107 case "$lt_multi_os_dir; $lt_search_path_spec " in
10108 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10112 for lt_sys_path in $lt_search_path_spec; do
10113 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10114 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10115 elif test -n "$lt_multi_os_dir"; then
10116 test -d "$lt_sys_path" && \
10117 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10120 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" |
awk '
10121 BEGIN {RS = " "; FS = "/|\n";} {
10124 for (lt_i = NF; lt_i > 0; lt_i--) {
10125 if ($lt_i != "" && $lt_i != ".") {
10126 if ($lt_i == "..") {
10129 if (lt_count == 0) {
10130 lt_foo = "/" $lt_i lt_foo;
10137 if (lt_foo != "") { lt_freq[lt_foo]++; }
10138 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10140 # AWK program above erroneously prepends '/' to C:/dos/paths
10143 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10144 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10146 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" |
$lt_NL2SP`
10148 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10150 library_names_spec=
10151 libname_spec='lib$name'
10155 postuninstall_cmds=
10159 shlibpath_overrides_runpath=unknown
10161 dynamic_linker="$host_os ld.so"
10162 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10163 need_lib_prefix=unknown
10164 hardcode_into_libs=no
10166 # when you set need_version to no, make sure it does not cause -set_version
10167 # flags to be left without arguments
10168 need_version=unknown
10174 version_type=linux # correct to gnu/linux during the next big refactor
10175 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10176 shlibpath_var=LIBPATH
10178 # AIX 3 has no versioning support, so we append a major version to the name.
10179 soname_spec='$libname$release$shared_ext$major'
10183 version_type=linux # correct to gnu/linux during the next big refactor
10186 hardcode_into_libs=yes
10187 if test ia64 = "$host_cpu"; then
10188 # AIX 5 supports IA64
10189 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10190 shlibpath_var=LD_LIBRARY_PATH
10192 # With GCC up to 2.95.x, collect2 would create an import file
10193 # for dependence libraries. The import file would start with
10194 # the line '#! .'. This would cause the generated library to
10195 # depend on '.', always an invalid library. This was fixed in
10196 # development snapshots of GCC prior to 3.0.
10198 aix4 | aix4.[01] | aix4.[01].*)
10199 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10201 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10204 can_build_shared=no
10208 # Using Import Files as archive members, it is possible to support
10209 # filename-based versioning of shared library archives on AIX. While
10210 # this would work for both with and without runtime linking, it will
10211 # prevent static linking of such archives. So we do filename-based
10212 # shared library versioning with .so extension only, which is used
10213 # when both runtime linking and shared linking is enabled.
10214 # Unfortunately, runtime linking may impact performance, so we do
10215 # not want this to be the default eventually. Also, we use the
10216 # versioned .so libs for executables only if there is the -brtl
10217 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10218 # To allow for filename-based versioning support, we need to create
10219 # libNAME.so.V as an archive file, containing:
10220 # *) an Import File, referring to the versioned filename of the
10221 # archive as well as the shared archive member, telling the
10222 # bitwidth (32 or 64) of that shared object, and providing the
10223 # list of exported symbols of that shared object, eventually
10224 # decorated with the 'weak' keyword
10225 # *) the shared object with the F_LOADONLY flag set, to really avoid
10226 # it being seen by the linker.
10227 # At run time we better use the real file rather than another symlink,
10228 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10230 case $with_aix_soname,$aix_use_runtimelinking in
10231 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10232 # soname into executable. Probably we can add versioning support to
10233 # collect2, so additional links can be useful in future.
10234 aix,yes) # traditional libtool
10235 dynamic_linker='AIX unversionable lib.so'
10236 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10237 # instead of lib<name>.a to let people know that these are not
10238 # typical AIX shared libraries.
10239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10241 aix,no) # traditional AIX only
10242 dynamic_linker='AIX lib.a(lib.so.V)'
10243 # We preserve .a as extension for shared libraries through AIX4.2
10244 # and later when we are not doing run time linking.
10245 library_names_spec='$libname$release.a $libname.a'
10246 soname_spec='$libname$release$shared_ext$major'
10248 svr4,*) # full svr4 only
10249 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10250 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10251 # We do not specify a path in Import Files, so LIBPATH fires.
10252 shlibpath_overrides_runpath=yes
10254 *,yes) # both, prefer svr4
10255 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10256 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10257 # unpreferred sharedlib libNAME.a needs extra handling
10258 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"'
10259 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"'
10260 # We do not specify a path in Import Files, so LIBPATH fires.
10261 shlibpath_overrides_runpath=yes
10263 *,no) # both, prefer aix
10264 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10265 library_names_spec='$libname$release.a $libname.a'
10266 soname_spec='$libname$release$shared_ext$major'
10267 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10268 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)'
10269 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"'
10272 shlibpath_var=LIBPATH
10279 # Since July 2007 AmigaOS4 officially supports .so libraries.
10280 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10284 library_names_spec='$libname.ixlibrary $libname.a'
10285 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10286 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'
10292 library_names_spec='$libname$shared_ext'
10293 dynamic_linker="$host_os ld.so"
10294 shlibpath_var=LIBRARY_PATH
10298 version_type=linux # correct to gnu/linux during the next big refactor
10300 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10301 soname_spec='$libname$release$shared_ext$major'
10302 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10303 shlibpath_var=LD_LIBRARY_PATH
10304 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10305 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10306 # the default ld.so.conf also contains /usr/contrib/lib and
10307 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10308 # libtool to hard-code these into programs
10311 cygwin* | mingw* | pw32* | cegcc*)
10312 version_type=windows
10317 case $GCC,$cc_basename in
10320 library_names_spec='$libname.dll.a'
10321 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10322 postinstall_cmds='base_file=`basename \
$file`~
10323 dlpath=`$SHELL 2>&1 -c '\''.
$dir/'\''\
$base_file'\''i
; echo \
$dlname'\''`~
10324 dldir=$destdir/`dirname \
$dlpath`~
10325 test -d \$dldir || mkdir -p \$dldir~
10326 $install_prog $dir/$dlname \$dldir/$dlname~
10327 chmod a+x \$dldir/$dlname~
10328 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10329 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10331 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''.
$file; echo \
$dlname'\''`~
10332 dlpath=$dir/\$dldll~
10334 shlibpath_overrides_runpath=yes
10338 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10339 soname_spec='`echo $libname |
sed -e 's/^lib/cyg/'``echo $release |
$SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10341 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10344 # MinGW DLLs use traditional 'lib' prefix
10345 soname_spec='$libname`echo $release |
$SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10348 # pw32 DLLs use 'pw' prefix rather than 'lib'
10349 library_names_spec='`echo $libname |
sed -e 's/^lib/pw/'``echo $release |
$SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10352 dynamic_linker='Win32 ld.exe'
10357 libname_spec='$name'
10358 soname_spec='$libname`echo $release |
$SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10359 library_names_spec='$libname.dll.lib'
10363 sys_lib_search_path_spec=
10366 for lt_path in $LIB
10369 # Let DOS variable expansion print the short 8.3 style file name.
10370 lt_path=`cd "$lt_path" 2>/dev
/null
&& cmd
//C
"for %i in (".
") do @echo %~si"`
10371 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10374 # Convert to MSYS style.
10375 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" |
sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10378 # Convert to unix form, then to dos form, then back to unix form
10379 # but this time dos style (no spaces!) so that the unix form looks
10380 # like /cygdrive/c/PROGRA~1:/cygdr...
10381 sys_lib_search_path_spec=`cygpath
--path --unix "$LIB"`
10382 sys_lib_search_path_spec=`cygpath
--path --dos "$sys_lib_search_path_spec" 2>/dev
/null
`
10383 sys_lib_search_path_spec=`cygpath
--path --unix "$sys_lib_search_path_spec" |
$SED -e "s/$PATH_SEPARATOR/ /g"`
10386 sys_lib_search_path_spec=$LIB
10387 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10388 # It is most probably a Windows format PATH.
10389 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" |
$SED -e 's/;/ /g'`
10391 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" |
$SED -e "s/$PATH_SEPARATOR/ /g"`
10393 # FIXME: find the short name or the path components, as spaces are
10394 # common. (e.g. "Program Files" -> "PROGRA~1")
10398 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10399 postinstall_cmds='base_file=`basename \
$file`~
10400 dlpath=`$SHELL 2>&1 -c '\''.
$dir/'\''\
$base_file'\''i
; echo \
$dlname'\''`~
10401 dldir=$destdir/`dirname \
$dlpath`~
10402 test -d \$dldir || mkdir -p \$dldir~
10403 $install_prog $dir/$dlname \$dldir/$dlname'
10404 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''.
$file; echo \
$dlname'\''`~
10405 dlpath=$dir/\$dldll~
10407 shlibpath_overrides_runpath=yes
10408 dynamic_linker='Win32 link.exe'
10412 # Assume MSVC wrapper
10413 library_names_spec='$libname`echo $release |
$SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10414 dynamic_linker='Win32 ld.exe'
10417 # FIXME: first we should search . and the directory the executable is in
10421 darwin* | rhapsody*)
10422 dynamic_linker="$host_os dyld"
10423 version_type=darwin
10426 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10427 soname_spec='$libname$release$major$shared_ext'
10428 shlibpath_overrides_runpath=yes
10429 shlibpath_var=DYLD_LIBRARY_PATH
10430 shrext_cmds='`test .
$module = .
yes && echo .so ||
echo .dylib
`'
10432 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10433 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10437 version_type=linux # correct to gnu/linux during the next big refactor
10440 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10441 soname_spec='$libname$release$shared_ext$major'
10442 shlibpath_var=LD_LIBRARY_PATH
10445 freebsd* | dragonfly*)
10446 # DragonFly does not have aout. When/if they implement a new
10447 # versioning mechanism, adjust this.
10448 if test -x /usr/bin/objformat; then
10449 objformat=`/usr
/bin
/objformat
`
10452 freebsd[23].*) objformat=aout ;;
10453 *) objformat=elf ;;
10456 version_type=freebsd-$objformat
10457 case $version_type in
10459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10460 soname_spec='$libname$release$shared_ext$major'
10465 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10469 shlibpath_var=LD_LIBRARY_PATH
10472 shlibpath_overrides_runpath=yes
10474 freebsd3.[01]* | freebsdelf3.[01]*)
10475 shlibpath_overrides_runpath=yes
10476 hardcode_into_libs=yes
10478 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10479 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10480 shlibpath_overrides_runpath=no
10481 hardcode_into_libs=yes
10483 *) # from 4.6 on, and DragonFly
10484 shlibpath_overrides_runpath=yes
10485 hardcode_into_libs=yes
10491 version_type=linux # correct to gnu/linux during the next big refactor
10494 dynamic_linker="$host_os runtime_loader"
10495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10496 soname_spec='$libname$release$shared_ext$major'
10497 shlibpath_var=LIBRARY_PATH
10498 shlibpath_overrides_runpath=no
10499 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10500 hardcode_into_libs=yes
10503 hpux9* | hpux10* | hpux11*)
10504 # Give a soname corresponding to the major version so that dld.sl refuses to
10505 # link against other versions.
10512 hardcode_into_libs=yes
10513 dynamic_linker="$host_os dld.so"
10514 shlibpath_var=LD_LIBRARY_PATH
10515 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10517 soname_spec='$libname$release$shared_ext$major'
10518 if test 32 = "$HPUX_IA64_MODE"; then
10519 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10520 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10522 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10523 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10528 hardcode_into_libs=yes
10529 dynamic_linker="$host_os dld.sl"
10530 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10531 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10533 soname_spec='$libname$release$shared_ext$major'
10534 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10535 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10539 dynamic_linker="$host_os dld.sl"
10540 shlibpath_var=SHLIB_PATH
10541 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10542 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10543 soname_spec='$libname$release$shared_ext$major'
10546 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10547 postinstall_cmds='chmod 555 $lib'
10548 # or fails outright, so override atomically:
10549 install_override_mode=555
10553 version_type=linux # correct to gnu/linux during the next big refactor
10556 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10557 soname_spec='$libname$release$shared_ext$major'
10558 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10559 shlibpath_var=LD_LIBRARY_PATH
10560 shlibpath_overrides_runpath=no
10561 hardcode_into_libs=yes
10564 irix5* | irix6* | nonstopux*)
10566 nonstopux*) version_type=nonstopux ;;
10568 if test yes = "$lt_cv_prog_gnu_ld"; then
10569 version_type=linux # correct to gnu/linux during the next big refactor
10576 soname_spec='$libname$release$shared_ext$major'
10577 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10579 irix5* | nonstopux*)
10580 libsuff= shlibsuff=
10583 case $LD in # libtool.m4 will add one of these switches to LD
10584 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10585 libsuff= shlibsuff= libmagic=32-bit;;
10586 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10587 libsuff=32 shlibsuff=N32 libmagic=N32;;
10588 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10589 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10590 *) libsuff= shlibsuff= libmagic=never-match;;
10594 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10595 shlibpath_overrides_runpath=no
10596 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10597 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10598 hardcode_into_libs=yes
10601 # No shared lib support for Linux oldld, aout, or coff.
10602 linux*oldld* | linux*aout* | linux*coff*)
10607 version_type=none # Android doesn't support versioned libraries.
10610 library_names_spec='$libname$release$shared_ext'
10611 soname_spec='$libname$release$shared_ext'
10613 shlibpath_var=LD_LIBRARY_PATH
10614 shlibpath_overrides_runpath=yes
10616 # This implies no fast_install, which is unacceptable.
10617 # Some rework will be needed to allow for fast_install
10618 # before this can be enabled.
10619 hardcode_into_libs=yes
10621 dynamic_linker='Android linker'
10622 # Don't embed -rpath directories since the linker doesn't support them.
10623 hardcode_libdir_flag_spec='-L$libdir'
10626 # This must be glibc/ELF.
10627 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10628 version_type=linux # correct to gnu/linux during the next big refactor
10631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10632 soname_spec='$libname$release$shared_ext$major'
10633 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10634 shlibpath_var=LD_LIBRARY_PATH
10635 shlibpath_overrides_runpath=no
10637 # Some binutils ld are patched to set DT_RUNPATH
10638 if test ${lt_cv_shlibpath_overrides_runpath+y}
10640 printf %s "(cached) " >&6
10642 lt_cv_shlibpath_overrides_runpath=no
10643 save_LDFLAGS=$LDFLAGS
10644 save_libdir=$libdir
10645 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10646 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10658 if ac_fn_c_try_link "$LINENO"
10660 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
10662 lt_cv_shlibpath_overrides_runpath=yes
10665 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10666 conftest$ac_exeext conftest.$ac_ext
10667 LDFLAGS=$save_LDFLAGS
10668 libdir=$save_libdir
10672 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10674 # This implies no fast_install, which is unacceptable.
10675 # Some rework will be needed to allow for fast_install
10676 # before this can be enabled.
10677 hardcode_into_libs=yes
10679 # Ideally, we could use ldconfig to report *all* directores which are
10680 # searched for libraries, however this is still not possible. Aside from not
10681 # being certain /sbin/ldconfig is available, command
10682 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10683 # even though it is searched at run-time. Try to do the best guess by
10684 # appending ld.so.conf contents (and includes) to the search path.
10685 if test -f /etc/ld.so.conf; then
10686 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' ' '`
10687 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10690 # We used to test for /lib/ld.so.1 and disable shared libraries on
10691 # powerpc, because MkLinux only supported shared libraries with the
10692 # GNU dynamic linker. Since this was broken with cross compilers,
10693 # most powerpc-linux boxes support dynamic linking these days and
10694 # people can always --disable-shared, the test was removed, and we
10695 # assume the GNU/Linux dynamic linker is in use.
10696 dynamic_linker='GNU/Linux ld.so'
10703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10704 soname_spec='${libname}${release}${shared_ext}$major'
10705 shlibpath_var=LD_LIBRARY_PATH
10706 shlibpath_overrides_runpath=no
10707 hardcode_into_libs=yes
10708 dynamic_linker='NetBSD ld.elf_so'
10715 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10716 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10717 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10718 dynamic_linker='NetBSD (a.out) ld.so'
10720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10721 soname_spec='$libname$release$shared_ext$major'
10722 dynamic_linker='NetBSD ld.elf_so'
10724 shlibpath_var=LD_LIBRARY_PATH
10725 shlibpath_overrides_runpath=yes
10726 hardcode_into_libs=yes
10730 version_type=linux # correct to gnu/linux during the next big refactor
10731 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10732 shlibpath_var=LD_LIBRARY_PATH
10733 shlibpath_overrides_runpath=yes
10740 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10741 soname_spec='$libname$release$shared_ext$major'
10742 shlibpath_var=LD_LIBRARY_PATH
10743 shlibpath_overrides_runpath=no
10744 hardcode_into_libs=yes
10745 dynamic_linker='ldqnx.so'
10748 openbsd* | bitrig*)
10750 sys_lib_dlsearch_path_spec=/usr/lib
10752 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`"; then
10757 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10758 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10759 shlibpath_var=LD_LIBRARY_PATH
10760 shlibpath_overrides_runpath=yes
10764 libname_spec='$name'
10765 version_type=windows
10769 # OS/2 can only load a DLL with a base name of 8 characters or less.
10770 soname_spec='`test -n "$os2dllname" && libname
="$os2dllname";
10771 v
=$
($ECHO $release$versuffix |
tr -d .
-);
10772 n
=$
($ECHO $libname | cut
-b -$
((8 - ${#v})) |
tr . _
);
10773 $ECHO $n$v`$shared_ext'
10774 library_names_spec='${libname}_dll.$libext'
10775 dynamic_linker='OS/2 ld.exe'
10776 shlibpath_var=BEGINLIBPATH
10777 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10778 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10779 postinstall_cmds='base_file=`basename \
$file`~
10780 dlpath=`$SHELL 2>&1 -c '\''.
$dir/'\''\
$base_file'\''i
; $ECHO \
$dlname'\''`~
10781 dldir=$destdir/`dirname \
$dlpath`~
10782 test -d \$dldir || mkdir -p \$dldir~
10783 $install_prog $dir/$dlname \$dldir/$dlname~
10784 chmod a+x \$dldir/$dlname~
10785 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10786 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10788 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''.
$file; $ECHO \
$dlname'\''`~
10789 dlpath=$dir/\$dldll~
10793 osf3* | osf4* | osf5*)
10797 soname_spec='$libname$release$shared_ext$major'
10798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10799 shlibpath_var=LD_LIBRARY_PATH
10800 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10809 version_type=linux # correct to gnu/linux during the next big refactor
10812 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10813 soname_spec='$libname$release$shared_ext$major'
10814 shlibpath_var=LD_LIBRARY_PATH
10815 shlibpath_overrides_runpath=yes
10816 hardcode_into_libs=yes
10817 # ldd complains unless libraries are executable
10818 postinstall_cmds='chmod +x $lib'
10823 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10824 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10825 shlibpath_var=LD_LIBRARY_PATH
10826 shlibpath_overrides_runpath=yes
10827 if test yes = "$with_gnu_ld"; then
10834 version_type=linux # correct to gnu/linux during the next big refactor
10835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10836 soname_spec='$libname$release$shared_ext$major'
10837 shlibpath_var=LD_LIBRARY_PATH
10838 case $host_vendor in
10840 shlibpath_overrides_runpath=no
10842 runpath_var=LD_RUN_PATH
10850 shlibpath_overrides_runpath=no
10851 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10857 if test -d /usr/nec; then
10858 version_type=linux # correct to gnu/linux during the next big refactor
10859 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10860 soname_spec='$libname$shared_ext.$major'
10861 shlibpath_var=LD_LIBRARY_PATH
10865 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10869 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10870 soname_spec='$libname$release$shared_ext$major'
10871 shlibpath_var=LD_LIBRARY_PATH
10872 shlibpath_overrides_runpath=yes
10873 hardcode_into_libs=yes
10874 if test yes = "$with_gnu_ld"; then
10875 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10877 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10880 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10884 sys_lib_dlsearch_path_spec='/usr/lib'
10888 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10889 version_type=linux # correct to gnu/linux during the next big refactor
10892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10893 shlibpath_var=LD_LIBRARY_PATH
10894 shlibpath_overrides_runpath=no
10895 hardcode_into_libs=yes
10899 version_type=linux # correct to gnu/linux during the next big refactor
10900 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10901 soname_spec='$libname$release$shared_ext$major'
10902 shlibpath_var=LD_LIBRARY_PATH
10909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10910 printf "%s\n" "$dynamic_linker" >&6; }
10911 test no = "$dynamic_linker" && can_build_shared=no
10913 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10914 if test yes = "$GCC"; then
10915 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10918 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10919 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
10922 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10923 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
10926 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
10927 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
10929 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
10930 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
10932 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
10933 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11032 printf %s "checking how to hardcode library paths into programs... " >&6; }
11034 if test -n "$hardcode_libdir_flag_spec" ||
11035 test -n "$runpath_var" ||
11036 test yes = "$hardcode_automatic"; then
11038 # We can hardcode non-existent directories.
11039 if test no != "$hardcode_direct" &&
11040 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11041 # have to relink, otherwise we might link with an installed library
11042 # when we should be linking with a yet-to-be-installed one
11043 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11044 test no != "$hardcode_minus_L"; then
11045 # Linking always hardcodes the temporary library directory.
11046 hardcode_action=relink
11048 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11049 hardcode_action=immediate
11052 # We cannot hardcode anything, or else we can only hardcode existing
11054 hardcode_action=unsupported
11056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11057 printf "%s\n" "$hardcode_action" >&6; }
11059 if test relink = "$hardcode_action" ||
11060 test yes = "$inherit_rpath"; then
11061 # Fast installation is not supported
11062 enable_fast_install=no
11063 elif test yes = "$shlibpath_overrides_runpath" ||
11064 test no = "$enable_shared"; then
11065 # Fast installation is not necessary
11066 enable_fast_install=needless
11074 if test yes != "$enable_dlopen"; then
11075 enable_dlopen=unknown
11076 enable_dlopen_self=unknown
11077 enable_dlopen_self_static=unknown
11084 lt_cv_dlopen=load_add_on
11086 lt_cv_dlopen_self=yes
11089 mingw* | pw32* | cegcc*)
11090 lt_cv_dlopen=LoadLibrary
11095 lt_cv_dlopen=dlopen
11100 # if libdl is installed we need to link against it
11101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11102 printf %s "checking for dlopen in -ldl... " >&6; }
11103 if test ${ac_cv_lib_dl_dlopen+y}
11105 printf %s "(cached) " >&6
11107 ac_check_lib_save_LIBS=$LIBS
11109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11110 /* end confdefs.h. */
11112 /* Override any GCC internal prototype to avoid an error.
11113 Use char because int might match the return type of a GCC
11114 builtin and then its argument prototype would still apply. */
11124 if ac_fn_c_try_link "$LINENO"
11126 ac_cv_lib_dl_dlopen=yes
11128 ac_cv_lib_dl_dlopen=no
11130 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11131 conftest$ac_exeext conftest.$ac_ext
11132 LIBS=$ac_check_lib_save_LIBS
11134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11135 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
11136 if test "x$ac_cv_lib_dl_dlopen" = xyes
11138 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11143 lt_cv_dlopen_self=yes
11150 # Don't try to run any link tests for TPF. We know it's impossible
11151 # because TPF is a cross-compiler, and we know how we open DSOs.
11152 lt_cv_dlopen=dlopen
11154 lt_cv_dlopen_self=no
11158 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11159 if test "x$ac_cv_func_shl_load" = xyes
11161 lt_cv_dlopen=shl_load
11163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11164 printf %s "checking for shl_load in -ldld... " >&6; }
11165 if test ${ac_cv_lib_dld_shl_load+y}
11167 printf %s "(cached) " >&6
11169 ac_check_lib_save_LIBS=$LIBS
11171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11172 /* end confdefs.h. */
11174 /* Override any GCC internal prototype to avoid an error.
11175 Use char because int might match the return type of a GCC
11176 builtin and then its argument prototype would still apply. */
11181 return shl_load ();
11186 if ac_fn_c_try_link "$LINENO"
11188 ac_cv_lib_dld_shl_load=yes
11190 ac_cv_lib_dld_shl_load=no
11192 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11193 conftest$ac_exeext conftest.$ac_ext
11194 LIBS=$ac_check_lib_save_LIBS
11196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11197 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
11198 if test "x$ac_cv_lib_dld_shl_load" = xyes
11200 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11202 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11203 if test "x$ac_cv_func_dlopen" = xyes
11205 lt_cv_dlopen=dlopen
11207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11208 printf %s "checking for dlopen in -ldl... " >&6; }
11209 if test ${ac_cv_lib_dl_dlopen+y}
11211 printf %s "(cached) " >&6
11213 ac_check_lib_save_LIBS=$LIBS
11215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11216 /* end confdefs.h. */
11218 /* Override any GCC internal prototype to avoid an error.
11219 Use char because int might match the return type of a GCC
11220 builtin and then its argument prototype would still apply. */
11230 if ac_fn_c_try_link "$LINENO"
11232 ac_cv_lib_dl_dlopen=yes
11234 ac_cv_lib_dl_dlopen=no
11236 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11237 conftest$ac_exeext conftest.$ac_ext
11238 LIBS=$ac_check_lib_save_LIBS
11240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11241 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
11242 if test "x$ac_cv_lib_dl_dlopen" = xyes
11244 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11247 printf %s "checking for dlopen in -lsvld... " >&6; }
11248 if test ${ac_cv_lib_svld_dlopen+y}
11250 printf %s "(cached) " >&6
11252 ac_check_lib_save_LIBS=$LIBS
11253 LIBS="-lsvld $LIBS"
11254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11255 /* end confdefs.h. */
11257 /* Override any GCC internal prototype to avoid an error.
11258 Use char because int might match the return type of a GCC
11259 builtin and then its argument prototype would still apply. */
11269 if ac_fn_c_try_link "$LINENO"
11271 ac_cv_lib_svld_dlopen=yes
11273 ac_cv_lib_svld_dlopen=no
11275 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11276 conftest$ac_exeext conftest.$ac_ext
11277 LIBS=$ac_check_lib_save_LIBS
11279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11280 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
11281 if test "x$ac_cv_lib_svld_dlopen" = xyes
11283 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11286 printf %s "checking for dld_link in -ldld... " >&6; }
11287 if test ${ac_cv_lib_dld_dld_link+y}
11289 printf %s "(cached) " >&6
11291 ac_check_lib_save_LIBS=$LIBS
11293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11294 /* end confdefs.h. */
11296 /* Override any GCC internal prototype to avoid an error.
11297 Use char because int might match the return type of a GCC
11298 builtin and then its argument prototype would still apply. */
11303 return dld_link ();
11308 if ac_fn_c_try_link "$LINENO"
11310 ac_cv_lib_dld_dld_link=yes
11312 ac_cv_lib_dld_dld_link=no
11314 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11315 conftest$ac_exeext conftest.$ac_ext
11316 LIBS=$ac_check_lib_save_LIBS
11318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11319 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
11320 if test "x$ac_cv_lib_dld_dld_link" = xyes
11322 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11343 if test no = "$lt_cv_dlopen"; then
11349 case $lt_cv_dlopen in
11351 save_CPPFLAGS=$CPPFLAGS
11352 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11354 save_LDFLAGS=$LDFLAGS
11355 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11358 LIBS="$lt_cv_dlopen_libs $LIBS"
11360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11361 printf %s "checking whether a program can dlopen itself... " >&6; }
11362 if test ${lt_cv_dlopen_self+y}
11364 printf %s "(cached) " >&6
11366 if test yes = "$cross_compiling"; then :
11367 lt_cv_dlopen_self=cross
11369 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11370 lt_status=$lt_dlunknown
11371 cat > conftest.$ac_ext <<_LT_EOF
11372 #line $LINENO "configure"
11373 #include "confdefs.h"
11382 # define LT_DLGLOBAL RTLD_GLOBAL
11385 # define LT_DLGLOBAL DL_GLOBAL
11387 # define LT_DLGLOBAL 0
11391 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11392 find out it does not work in some platform. */
11393 #ifndef LT_DLLAZY_OR_NOW
11395 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11398 # define LT_DLLAZY_OR_NOW DL_LAZY
11401 # define LT_DLLAZY_OR_NOW RTLD_NOW
11404 # define LT_DLLAZY_OR_NOW DL_NOW
11406 # define LT_DLLAZY_OR_NOW 0
11413 /* When -fvisibility=hidden is used, assume the code has been annotated
11414 correspondingly for the symbols needed. */
11415 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11416 int fnord () __attribute__((visibility("default")));
11419 int fnord () { return 42; }
11422 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11423 int status = $lt_dlunknown;
11427 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11430 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11431 else puts (dlerror ());
11433 /* dlclose (self); */
11441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11442 (eval $ac_link) 2>&5
11444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11445 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11446 (./conftest; exit; ) >&5 2>/dev/null
11448 case x$lt_status in
11449 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11450 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11451 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11454 # compilation failed
11455 lt_cv_dlopen_self=no
11462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11463 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
11465 if test yes = "$lt_cv_dlopen_self"; then
11466 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11468 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
11469 if test ${lt_cv_dlopen_self_static+y}
11471 printf %s "(cached) " >&6
11473 if test yes = "$cross_compiling"; then :
11474 lt_cv_dlopen_self_static=cross
11476 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11477 lt_status=$lt_dlunknown
11478 cat > conftest.$ac_ext <<_LT_EOF
11479 #line $LINENO "configure"
11480 #include "confdefs.h"
11489 # define LT_DLGLOBAL RTLD_GLOBAL
11492 # define LT_DLGLOBAL DL_GLOBAL
11494 # define LT_DLGLOBAL 0
11498 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11499 find out it does not work in some platform. */
11500 #ifndef LT_DLLAZY_OR_NOW
11502 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11505 # define LT_DLLAZY_OR_NOW DL_LAZY
11508 # define LT_DLLAZY_OR_NOW RTLD_NOW
11511 # define LT_DLLAZY_OR_NOW DL_NOW
11513 # define LT_DLLAZY_OR_NOW 0
11520 /* When -fvisibility=hidden is used, assume the code has been annotated
11521 correspondingly for the symbols needed. */
11522 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11523 int fnord () __attribute__((visibility("default")));
11526 int fnord () { return 42; }
11529 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11530 int status = $lt_dlunknown;
11534 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11537 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11538 else puts (dlerror ());
11540 /* dlclose (self); */
11548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11549 (eval $ac_link) 2>&5
11551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11552 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11553 (./conftest; exit; ) >&5 2>/dev/null
11555 case x$lt_status in
11556 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11557 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11558 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11561 # compilation failed
11562 lt_cv_dlopen_self_static=no
11569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11570 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
11573 CPPFLAGS=$save_CPPFLAGS
11574 LDFLAGS=$save_LDFLAGS
11579 case $lt_cv_dlopen_self in
11580 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11581 *) enable_dlopen_self=unknown ;;
11584 case $lt_cv_dlopen_self_static in
11585 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11586 *) enable_dlopen_self_static=unknown ;;
11608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11609 printf %s "checking whether stripping libraries is possible... " >&6; }
11610 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11611 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11612 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11614 printf "%s\n" "yes" >&6; }
11616 # FIXME - insert some real tests, host_os isn't really good enough
11619 if test -n "$STRIP"; then
11620 striplib="$STRIP -x"
11621 old_striplib="$STRIP -S"
11622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11623 printf "%s\n" "yes" >&6; }
11625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11626 printf "%s\n" "no" >&6; }
11630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631 printf "%s\n" "no" >&6; }
11647 # Report what library types will actually be built
11648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11649 printf %s "checking if libtool supports shared libraries... " >&6; }
11650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11651 printf "%s\n" "$can_build_shared" >&6; }
11653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11654 printf %s "checking whether to build shared libraries... " >&6; }
11655 test no = "$can_build_shared" && enable_shared=no
11657 # On AIX, shared libraries and static libraries use the same namespace, and
11658 # are all built from PIC.
11661 test yes = "$enable_shared" && enable_static=no
11662 if test -n "$RANLIB"; then
11663 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11664 postinstall_cmds='$RANLIB $lib'
11669 if test ia64 != "$host_cpu"; then
11670 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11671 yes,aix,yes) ;; # shared object as lib.so file only
11672 yes,svr4,*) ;; # shared object as lib.so archive member only
11673 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11679 printf "%s\n" "$enable_shared" >&6; }
11681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11682 printf %s "checking whether to build static libraries... " >&6; }
11683 # Make sure either enable_shared or enable_static is yes.
11684 test yes = "$enable_shared" || enable_static=yes
11685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11686 printf "%s\n" "$enable_static" >&6; }
11693 ac_cpp='$CPP $CPPFLAGS'
11694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11714 ac_config_commands="$ac_config_commands libtool"
11719 # Only expand once:
11723 # Find a good install program. We prefer a C program (faster),
11724 # so one script is as good as another. But avoid the broken or
11725 # incompatible versions:
11726 # SysV /etc/install, /usr/sbin/install
11727 # SunOS /usr/etc/install
11728 # IRIX /sbin/install
11730 # AmigaOS /C/install, which installs bootblocks on floppy discs
11731 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11732 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11733 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11734 # OS/2's system install, which has a completely different semantic
11735 # ./install, which can be erroneously created by make from ./install.sh.
11736 # Reject install programs that cannot install multiple files.
11737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11738 printf %s "checking for a BSD-compatible install... " >&6; }
11739 if test -z "$INSTALL"; then
11740 if test ${ac_cv_path_install+y}
11742 printf %s "(cached) " >&6
11744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11745 for as_dir in $PATH
11748 case $as_dir in #(((
11751 *) as_dir=$as_dir/ ;;
11753 # Account for fact that we put trailing slashes in our PATH walk.
11754 case $as_dir in #((
11756 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11757 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11760 # OSF1 and SCO ODT 3.0 have their own names for install.
11761 # Don't use installbsd from OSF since it installs stuff as root
11763 for ac_prog in ginstall scoinst install; do
11764 for ac_exec_ext in '' $ac_executable_extensions; do
11765 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
11766 if test $ac_prog = install &&
11767 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11768 # AIX install. It has an incompatible calling convention.
11770 elif test $ac_prog = install &&
11771 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11772 # program-specific install script used by HP pwplus--don't use.
11775 rm -rf conftest.one conftest.two conftest.dir
11776 echo one > conftest.one
11777 echo two > conftest.two
11779 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
11780 test -s conftest.one && test -s conftest.two &&
11781 test -s conftest.dir/conftest.one &&
11782 test -s conftest.dir/conftest.two
11784 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
11797 rm -rf conftest.one conftest.two conftest.dir
11800 if test ${ac_cv_path_install+y}; then
11801 INSTALL=$ac_cv_path_install
11803 # As a last resort, use the slow shell script. Don't cache a
11804 # value for INSTALL within a source directory, because that will
11805 # break other packages using the cache if that directory is
11806 # removed, or if the value is a relative name.
11807 INSTALL=$ac_install_sh
11810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11811 printf "%s\n" "$INSTALL" >&6; }
11813 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11814 # It thinks the first close brace ends the variable substitution.
11815 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11817 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11819 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11823 # Enable large file support (if special flags are necessary)
11825 # Check whether --enable-largefile was given.
11826 if test ${enable_largefile+y}
11828 enableval=$enable_largefile;
11831 if test "$enable_largefile" != no; then
11833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11834 printf %s "checking for special C compiler options needed for large files... " >&6; }
11835 if test ${ac_cv_sys_largefile_CC+y}
11837 printf %s "(cached) " >&6
11839 ac_cv_sys_largefile_CC=no
11840 if test "$GCC" != yes; then
11843 # IRIX 6.2 and later do not support large files by default,
11844 # so use the C compiler's -n32 option if that helps.
11845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11846 /* end confdefs.h. */
11847 #include <sys/types.h>
11848 /* Check that off_t can represent 2**63 - 1 correctly.
11849 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11850 since some C++ compilers masquerading as C compilers
11851 incorrectly reject 9223372036854775807. */
11852 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
11853 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11854 && LARGE_OFF_T % 2147483647 == 1)
11864 if ac_fn_c_try_compile "$LINENO"
11868 rm -f core conftest.err conftest.$ac_objext conftest.beam
11870 if ac_fn_c_try_compile "$LINENO"
11872 ac_cv_sys_largefile_CC=' -n32'; break
11874 rm -f core conftest.err conftest.$ac_objext conftest.beam
11878 rm -f conftest.$ac_ext
11881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11882 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
11883 if test "$ac_cv_sys_largefile_CC" != no; then
11884 CC=$CC$ac_cv_sys_largefile_CC
11887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11888 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11889 if test ${ac_cv_sys_file_offset_bits+y}
11891 printf %s "(cached) " >&6
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11896 #include <sys/types.h>
11897 /* Check that off_t can represent 2**63 - 1 correctly.
11898 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11899 since some C++ compilers masquerading as C compilers
11900 incorrectly reject 9223372036854775807. */
11901 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
11902 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11903 && LARGE_OFF_T % 2147483647 == 1)
11913 if ac_fn_c_try_compile "$LINENO"
11915 ac_cv_sys_file_offset_bits=no; break
11917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11919 /* end confdefs.h. */
11920 #define _FILE_OFFSET_BITS 64
11921 #include <sys/types.h>
11922 /* Check that off_t can represent 2**63 - 1 correctly.
11923 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11924 since some C++ compilers masquerading as C compilers
11925 incorrectly reject 9223372036854775807. */
11926 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
11927 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11928 && LARGE_OFF_T % 2147483647 == 1)
11938 if ac_fn_c_try_compile "$LINENO"
11940 ac_cv_sys_file_offset_bits=64; break
11942 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11943 ac_cv_sys_file_offset_bits=unknown
11947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11948 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
11949 case $ac_cv_sys_file_offset_bits in #(
11952 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
11956 if test $ac_cv_sys_file_offset_bits = unknown; then
11957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11958 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
11959 if test ${ac_cv_sys_large_files+y}
11961 printf %s "(cached) " >&6
11964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11965 /* end confdefs.h. */
11966 #include <sys/types.h>
11967 /* Check that off_t can represent 2**63 - 1 correctly.
11968 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11969 since some C++ compilers masquerading as C compilers
11970 incorrectly reject 9223372036854775807. */
11971 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
11972 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11973 && LARGE_OFF_T % 2147483647 == 1)
11983 if ac_fn_c_try_compile "$LINENO"
11985 ac_cv_sys_large_files=no; break
11987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11989 /* end confdefs.h. */
11990 #define _LARGE_FILES 1
11991 #include <sys/types.h>
11992 /* Check that off_t can represent 2**63 - 1 correctly.
11993 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11994 since some C++ compilers masquerading as C compilers
11995 incorrectly reject 9223372036854775807. */
11996 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
11997 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11998 && LARGE_OFF_T % 2147483647 == 1)
12008 if ac_fn_c_try_compile "$LINENO"
12010 ac_cv_sys_large_files=1; break
12012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12013 ac_cv_sys_large_files=unknown
12017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12018 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
12019 case $ac_cv_sys_large_files in #(
12022 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
12031 # Check for needed/wanted data types
12032 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
12033 if test "x$ac_cv_type_int8_t" = xyes
12036 printf "%s\n" "#define HAVE_INT8_T 1" >>confdefs.h
12040 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
12041 if test "x$ac_cv_type_int16_t" = xyes
12044 printf "%s\n" "#define HAVE_INT16_T 1" >>confdefs.h
12048 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
12049 if test "x$ac_cv_type_int32_t" = xyes
12052 printf "%s\n" "#define HAVE_INT32_T 1" >>confdefs.h
12056 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
12057 if test "x$ac_cv_type_int64_t" = xyes
12060 printf "%s\n" "#define HAVE_INT64_T 1" >>confdefs.h
12064 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12065 if test "x$ac_cv_type_intptr_t" = xyes
12068 printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
12072 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
12073 if test "x$ac_cv_type_uint8_t" = xyes
12076 printf "%s\n" "#define HAVE_UINT8_T 1" >>confdefs.h
12080 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
12081 if test "x$ac_cv_type_uint16_t" = xyes
12084 printf "%s\n" "#define HAVE_UINT16_T 1" >>confdefs.h
12088 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
12089 if test "x$ac_cv_type_uint32_t" = xyes
12092 printf "%s\n" "#define HAVE_UINT32_T 1" >>confdefs.h
12096 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
12097 if test "x$ac_cv_type_uint64_t" = xyes
12100 printf "%s\n" "#define HAVE_UINT64_T 1" >>confdefs.h
12104 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
12105 if test "x$ac_cv_type_uintptr_t" = xyes
12108 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
12115 # Check for needed/wanted headers
12116 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12117 if test "x$ac_cv_header_sys_types_h" = xyes
12119 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12122 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12123 if test "x$ac_cv_header_stdlib_h" = xyes
12125 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
12128 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
12129 if test "x$ac_cv_header_stdint_h" = xyes
12131 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
12134 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12135 if test "x$ac_cv_header_inttypes_h" = xyes
12137 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
12140 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
12141 if test "x$ac_cv_header_malloc_h" = xyes
12143 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
12149 # Figure out whether or not we have these functions
12151 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
12152 if test "x$ac_cv_func_fdatasync" = xyes
12154 printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
12157 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
12158 if test "x$ac_cv_func_gmtime_r" = xyes
12160 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
12163 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
12164 if test "x$ac_cv_func_isnan" = xyes
12166 printf "%s\n" "#define HAVE_ISNAN 1" >>confdefs.h
12169 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
12170 if test "x$ac_cv_func_localtime_r" = xyes
12172 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
12175 ac_fn_c_check_func "$LINENO" "localtime_s" "ac_cv_func_localtime_s"
12176 if test "x$ac_cv_func_localtime_s" = xyes
12178 printf "%s\n" "#define HAVE_LOCALTIME_S 1" >>confdefs.h
12181 ac_fn_c_check_func "$LINENO" "malloc_usable_size" "ac_cv_func_malloc_usable_size"
12182 if test "x$ac_cv_func_malloc_usable_size" = xyes
12184 printf "%s\n" "#define HAVE_MALLOC_USABLE_SIZE 1" >>confdefs.h
12187 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
12188 if test "x$ac_cv_func_strchrnul" = xyes
12190 printf "%s\n" "#define HAVE_STRCHRNUL 1" >>confdefs.h
12193 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
12194 if test "x$ac_cv_func_usleep" = xyes
12196 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
12199 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
12200 if test "x$ac_cv_func_utime" = xyes
12202 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
12205 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
12206 if test "x$ac_cv_func_pread" = xyes
12208 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
12211 ac_fn_c_check_func "$LINENO" "pread64" "ac_cv_func_pread64"
12212 if test "x$ac_cv_func_pread64" = xyes
12214 printf "%s\n" "#define HAVE_PREAD64 1" >>confdefs.h
12217 ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
12218 if test "x$ac_cv_func_pwrite" = xyes
12220 printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
12223 ac_fn_c_check_func "$LINENO" "pwrite64" "ac_cv_func_pwrite64"
12224 if test "x$ac_cv_func_pwrite64" = xyes
12226 printf "%s\n" "#define HAVE_PWRITE64 1" >>confdefs.h
12232 # By default, we use the amalgamation (this may be changed below...)
12237 # See whether we can run specific tclsh versions known to work well;
12238 # if not, then we fall back to plain tclsh.
12239 # TODO: try other versions before falling back?
12241 for ac_prog in tclsh8.7 tclsh8.6 tclsh8.5 tclsh
12243 # Extract the first word of "$ac_prog", so it can be a program name with args.
12244 set dummy $ac_prog; ac_word=$2
12245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12246 printf %s "checking for $ac_word... " >&6; }
12247 if test ${ac_cv_prog_TCLSH_CMD+y}
12249 printf %s "(cached) " >&6
12251 if test -n "$TCLSH_CMD"; then
12252 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
12254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12255 for as_dir in $PATH
12258 case $as_dir in #(((
12261 *) as_dir=$as_dir/ ;;
12263 for ac_exec_ext in '' $ac_executable_extensions; do
12264 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12265 ac_cv_prog_TCLSH_CMD="$ac_prog"
12266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12275 TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
12276 if test -n "$TCLSH_CMD"; then
12277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
12278 printf "%s\n" "$TCLSH_CMD" >&6; }
12280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281 printf "%s\n" "no" >&6; }
12285 test -n "$TCLSH_CMD" && break
12287 test -n "$TCLSH_CMD" || TCLSH_CMD="none"
12289 if test "$TCLSH_CMD" = "none"; then
12290 # If we can't find a local tclsh, then building the amalgamation will fail.
12291 # We act as though --disable-amalgamation has been used.
12292 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
12299 if test "x${TCLLIBDIR+set}" != "xset" ; then
12300 TCLLIBDIR='$(libdir)'
12301 for i in `echo 'puts stdout $auto_path' |
${TCLSH_CMD}` ; do
12302 if test -d $i ; then
12307 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
12311 # Set up an appropriate program prefix
12313 if test "$program_prefix" = "NONE"; then
12318 VERSION=`cat $srcdir/VERSION |
sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
12319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
12320 printf "%s\n" "$as_me: Version set to $VERSION" >&6;}
12322 RELEASE=`cat $srcdir/VERSION
`
12323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
12324 printf "%s\n" "$as_me: Release set to $RELEASE" >&6;}
12328 # Handle --with-wasi-sdk=DIR
12330 # This must be early because it changes the toolchain.
12333 # Check whether --with-wasi-sdk was given.
12334 if test ${with_wasi_sdk+y}
12336 withval=$with_wasi_sdk; with_wasisdk=${withval}
12339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for WASI SDK directory" >&5
12340 printf %s "checking for WASI SDK directory... " >&6; }
12341 if test ${ac_cv_c_wasi_sdk+y}
12343 printf %s "(cached) " >&6
12346 # First check to see if --with-tcl was specified.
12347 if test x"${with_wasi_sdk}" != x ; then
12348 if ! test -d "${with_wasi_sdk}" ; then
12349 as_fn_error $? "${with_wasi_sdk} directory doesn't exist" "$LINENO" 5
12351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${with_wasi_sdk}: using wasi-sdk clang, disabling: tcl, CLI shell, DLL" >&5
12352 printf "%s\n" "${with_wasi_sdk}: using wasi-sdk clang, disabling: tcl, CLI shell, DLL" >&6; }
12360 if test "${use_wasi_sdk}" = "no" ; then
12362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12363 printf "%s\n" "no" >&6; }
12366 # Changing --host and --target have no effect here except to possibly
12367 # cause confusion. autoconf has finished processing them by this
12370 # host_alias=wasm32-wasi
12371 # target=wasm32-wasi
12373 # Merely changing CC and LD to the wasi-sdk's is enough to get
12374 # sqlite3.o building in WASM format.
12375 CC="${with_wasi_sdk}/bin/clang"
12376 LD="${with_wasi_sdk}/bin/wasm-ld"
12377 RANLIB="${with_wasi_sdk}/bin/llvm-ranlib"
12378 cross_compiling=yes
12379 enable_threadsafe=no
12382 # libtool is apparently hard-coded to use gcc for linking DLLs, so
12383 # we disable the DLL build...
12385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12386 printf "%s\n" "yes" >&6; }
12392 # Locate a compiler for the build machine. This compiler should
12393 # generate command-line programs that run on the build machine.
12395 if test x"$cross_compiling" = xno; then
12397 BUILD_CFLAGS=$CFLAGS
12399 if test "${BUILD_CC+set}" != set; then
12400 for ac_prog in gcc cc cl
12402 # Extract the first word of "$ac_prog", so it can be a program name with args.
12403 set dummy $ac_prog; ac_word=$2
12404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12405 printf %s "checking for $ac_word... " >&6; }
12406 if test ${ac_cv_prog_BUILD_CC+y}
12408 printf %s "(cached) " >&6
12410 if test -n "$BUILD_CC"; then
12411 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414 for as_dir in $PATH
12417 case $as_dir in #(((
12420 *) as_dir=$as_dir/ ;;
12422 for ac_exec_ext in '' $ac_executable_extensions; do
12423 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12424 ac_cv_prog_BUILD_CC="$ac_prog"
12425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12434 BUILD_CC=$ac_cv_prog_BUILD_CC
12435 if test -n "$BUILD_CC"; then
12436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12437 printf "%s\n" "$BUILD_CC" >&6; }
12439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440 printf "%s\n" "no" >&6; }
12444 test -n "$BUILD_CC" && break
12448 if test "${BUILD_CFLAGS+set}" != set; then
12455 # Do we want to support multithreaded use of sqlite
12457 # Check whether --enable-threadsafe was given.
12458 if test ${enable_threadsafe+y}
12460 enableval=$enable_threadsafe;
12463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
12464 printf %s "checking whether to support threadsafe operation... " >&6; }
12465 if test "$enable_threadsafe" = "no"; then
12466 SQLITE_THREADSAFE=0
12467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12468 printf "%s\n" "no" >&6; }
12470 SQLITE_THREADSAFE=1
12471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12472 printf "%s\n" "yes" >&6; }
12476 if test "$SQLITE_THREADSAFE" = "1"; then
12477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
12478 printf %s "checking for library containing pthread_create... " >&6; }
12479 if test ${ac_cv_search_pthread_create+y}
12481 printf %s "(cached) " >&6
12483 ac_func_search_save_LIBS=$LIBS
12484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12485 /* end confdefs.h. */
12487 /* Override any GCC internal prototype to avoid an error.
12488 Use char because int might match the return type of a GCC
12489 builtin and then its argument prototype would still apply. */
12490 char pthread_create ();
12494 return pthread_create ();
12499 for ac_lib in '' pthread
12501 if test -z "$ac_lib"; then
12502 ac_res="none required"
12505 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12507 if ac_fn_c_try_link "$LINENO"
12509 ac_cv_search_pthread_create=$ac_res
12511 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12513 if test ${ac_cv_search_pthread_create+y}
12518 if test ${ac_cv_search_pthread_create+y}
12522 ac_cv_search_pthread_create=no
12524 rm conftest.$ac_ext
12525 LIBS=$ac_func_search_save_LIBS
12527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
12528 printf "%s\n" "$ac_cv_search_pthread_create" >&6; }
12529 ac_res=$ac_cv_search_pthread_create
12530 if test "$ac_res" != no
12532 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
12537 printf %s "checking for library containing pthread_mutexattr_init... " >&6; }
12538 if test ${ac_cv_search_pthread_mutexattr_init+y}
12540 printf %s "(cached) " >&6
12542 ac_func_search_save_LIBS=$LIBS
12543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544 /* end confdefs.h. */
12546 /* Override any GCC internal prototype to avoid an error.
12547 Use char because int might match the return type of a GCC
12548 builtin and then its argument prototype would still apply. */
12549 char pthread_mutexattr_init ();
12553 return pthread_mutexattr_init ();
12558 for ac_lib in '' pthread
12560 if test -z "$ac_lib"; then
12561 ac_res="none required"
12564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12566 if ac_fn_c_try_link "$LINENO"
12568 ac_cv_search_pthread_mutexattr_init=$ac_res
12570 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12572 if test ${ac_cv_search_pthread_mutexattr_init+y}
12577 if test ${ac_cv_search_pthread_mutexattr_init+y}
12581 ac_cv_search_pthread_mutexattr_init=no
12583 rm conftest.$ac_ext
12584 LIBS=$ac_func_search_save_LIBS
12586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
12587 printf "%s\n" "$ac_cv_search_pthread_mutexattr_init" >&6; }
12588 ac_res=$ac_cv_search_pthread_mutexattr_init
12589 if test "$ac_res" != no
12591 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12598 # Which crypto library do we use
12601 # Check whether --with-crypto-lib was given.
12602 if test ${with_crypto_lib+y}
12604 withval=$with_crypto_lib; crypto_lib=$withval
12607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypto library to use" >&5
12608 printf %s "checking for crypto library to use... " >&6; }
12609 if test "$crypto_lib" = "none"; then
12610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12611 printf "%s\n" "none" >&6; }
12613 if test "$crypto_lib" = "commoncrypto"; then
12614 CFLAGS="$CFLAGS -DSQLCIPHER_CRYPTO_CC"
12615 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_CC"
12616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: commoncrypto" >&5
12617 printf "%s\n" "commoncrypto" >&6; }
12619 if test "$crypto_lib" = "libtomcrypt"; then
12620 CFLAGS="$CFLAGS -DSQLCIPHER_CRYPTO_LIBTOMCRYPT"
12621 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_LIBTOMCRYPT"
12622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libtomcrypt" >&5
12623 printf "%s\n" "libtomcrypt" >&6; }
12624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for register_cipher in -ltomcrypt" >&5
12625 printf %s "checking for register_cipher in -ltomcrypt... " >&6; }
12626 if test ${ac_cv_lib_tomcrypt_register_cipher+y}
12628 printf %s "(cached) " >&6
12630 ac_check_lib_save_LIBS=$LIBS
12631 LIBS="-ltomcrypt $LIBS"
12632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h. */
12635 /* Override any GCC internal prototype to avoid an error.
12636 Use char because int might match the return type of a GCC
12637 builtin and then its argument prototype would still apply. */
12638 char register_cipher ();
12642 return register_cipher ();
12647 if ac_fn_c_try_link "$LINENO"
12649 ac_cv_lib_tomcrypt_register_cipher=yes
12651 ac_cv_lib_tomcrypt_register_cipher=no
12653 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12654 conftest$ac_exeext conftest.$ac_ext
12655 LIBS=$ac_check_lib_save_LIBS
12657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tomcrypt_register_cipher" >&5
12658 printf "%s\n" "$ac_cv_lib_tomcrypt_register_cipher" >&6; }
12659 if test "x$ac_cv_lib_tomcrypt_register_cipher" = xyes
12661 printf "%s\n" "#define HAVE_LIBTOMCRYPT 1" >>confdefs.h
12663 LIBS="-ltomcrypt $LIBS"
12666 as_fn_error $? "Library crypto not found. Install libtomcrypt!\"" "$LINENO" 5
12670 if test "$crypto_lib" = "nss"; then
12671 CFLAGS="$CFLAGS -DSQLCIPHER_CRYPTO_NSS"
12672 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_NSS"
12673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: nss3" >&5
12674 printf "%s\n" "nss3" >&6; }
12675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PK11_Decrypt in -lnss3" >&5
12676 printf %s "checking for PK11_Decrypt in -lnss3... " >&6; }
12677 if test ${ac_cv_lib_nss3_PK11_Decrypt+y}
12679 printf %s "(cached) " >&6
12681 ac_check_lib_save_LIBS=$LIBS
12682 LIBS="-lnss3 $LIBS"
12683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12684 /* end confdefs.h. */
12686 /* Override any GCC internal prototype to avoid an error.
12687 Use char because int might match the return type of a GCC
12688 builtin and then its argument prototype would still apply. */
12689 char PK11_Decrypt ();
12693 return PK11_Decrypt ();
12698 if ac_fn_c_try_link "$LINENO"
12700 ac_cv_lib_nss3_PK11_Decrypt=yes
12702 ac_cv_lib_nss3_PK11_Decrypt=no
12704 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12705 conftest$ac_exeext conftest.$ac_ext
12706 LIBS=$ac_check_lib_save_LIBS
12708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_Decrypt" >&5
12709 printf "%s\n" "$ac_cv_lib_nss3_PK11_Decrypt" >&6; }
12710 if test "x$ac_cv_lib_nss3_PK11_Decrypt" = xyes
12712 printf "%s\n" "#define HAVE_LIBNSS3 1" >>confdefs.h
12714 LIBS="-lnss3 $LIBS"
12717 as_fn_error $? "Library crypto not found. Install nss!\"" "$LINENO" 5
12721 CFLAGS="$CFLAGS -DSQLCIPHER_CRYPTO_OPENSSL"
12722 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_OPENSSL"
12723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: openssl" >&5
12724 printf "%s\n" "openssl" >&6; }
12725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
12726 printf %s "checking for HMAC_Init_ex in -lcrypto... " >&6; }
12727 if test ${ac_cv_lib_crypto_HMAC_Init_ex+y}
12729 printf %s "(cached) " >&6
12731 ac_check_lib_save_LIBS=$LIBS
12732 LIBS="-lcrypto $LIBS"
12733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734 /* end confdefs.h. */
12736 /* Override any GCC internal prototype to avoid an error.
12737 Use char because int might match the return type of a GCC
12738 builtin and then its argument prototype would still apply. */
12739 char HMAC_Init_ex ();
12743 return HMAC_Init_ex ();
12748 if ac_fn_c_try_link "$LINENO"
12750 ac_cv_lib_crypto_HMAC_Init_ex=yes
12752 ac_cv_lib_crypto_HMAC_Init_ex=no
12754 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12755 conftest$ac_exeext conftest.$ac_ext
12756 LIBS=$ac_check_lib_save_LIBS
12758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
12759 printf "%s\n" "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
12760 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes
12762 printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12764 LIBS="-lcrypto $LIBS"
12767 as_fn_error $? "Library crypto not found. Install openssl!\"" "$LINENO" 5
12776 # Do we want to allow a connection created in one thread to be used
12777 # in another thread. This does not work on many Linux systems (ex: RedHat 9)
12778 # due to bugs in the threading implementations. This is thus off by default.
12780 # Check whether --enable-cross-thread-connections was given.
12781 if test ${enable_cross_thread_connections+y}
12783 enableval=$enable_cross_thread_connections;
12785 enable_xthreadconnect=no
12788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to allow connections to be shared across threads" >&5
12789 printf %s "checking whether to allow connections to be shared across threads... " >&6; }
12790 if test "$enable_xthreadconnect" = "no"; then
12792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793 printf "%s\n" "no" >&6; }
12795 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
12796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12797 printf "%s\n" "yes" >&6; }
12802 # Do we want to support release
12804 # Check whether --enable-releasemode was given.
12805 if test ${enable_releasemode+y}
12807 enableval=$enable_releasemode;
12809 enable_releasemode=no
12812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
12813 printf %s "checking whether to support shared library linked as release mode or not... " >&6; }
12814 if test "$enable_releasemode" = "no"; then
12816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12817 printf "%s\n" "no" >&6; }
12819 ALLOWRELEASE="-release `cat $srcdir/VERSION
`"
12820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12821 printf "%s\n" "yes" >&6; }
12826 # Do we want temporary databases in memory
12828 # Check whether --enable-tempstore was given.
12829 if test ${enable_tempstore+y}
12831 enableval=$enable_tempstore;
12833 enable_tempstore=no
12836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
12837 printf %s "checking whether to use an in-ram database for temporary tables... " >&6; }
12838 case "$enable_tempstore" in
12841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: never" >&5
12842 printf "%s\n" "never" >&6; }
12846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847 printf "%s\n" "no" >&6; }
12851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12852 printf "%s\n" "yes" >&6; }
12856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: always" >&5
12857 printf "%s\n" "always" >&6; }
12861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12862 printf "%s\n" "no" >&6; }
12869 # Lots of things are different if we are compiling for Windows using
12870 # the CYGWIN environment. So check for that special case and handle
12871 # things accordingly.
12873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
12874 printf %s "checking if executables have the .exe suffix... " >&6; }
12875 if test "$config_BUILD_EXEEXT" = ".exe"; then
12877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12878 printf "%s\n" "yes" >&6; }
12880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12881 printf "%s\n" "unknown" >&6; }
12883 if test "$CYGWIN" != "yes"; then
12886 *cygwin* ) CYGWIN=yes;;
12891 if test "$CYGWIN" = "yes"; then
12894 BUILD_EXEEXT=$EXEEXT
12896 if test x"$cross_compiling" = xno; then
12897 TARGET_EXEEXT=$BUILD_EXEEXT
12899 TARGET_EXEEXT=$config_TARGET_EXEEXT
12901 if test "$TARGET_EXEEXT" = ".exe"; then
12904 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
12908 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
12917 # Figure out all the parameters needed to compile against Tcl.
12919 # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
12920 # macros in the in the tcl.m4 file of the standard TCL distribution.
12921 # Those macros could not be used directly since we have to make some
12922 # minor changes to accomodate systems that do not have TCL installed.
12924 # Check whether --enable-tcl was given.
12925 if test ${enable_tcl+y}
12927 enableval=$enable_tcl; use_tcl=$enableval
12932 if test "${use_tcl}" = "yes" ; then
12934 # Check whether --with-tcl was given.
12935 if test ${with_tcl+y}
12937 withval=$with_tcl; with_tclconfig=${withval}
12940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
12941 printf %s "checking for Tcl configuration... " >&6; }
12942 if test ${ac_cv_c_tclconfig+y}
12944 printf %s "(cached) " >&6
12947 # First check to see if --with-tcl was specified.
12948 if test x"${with_tclconfig}" != x ; then
12949 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12950 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
12952 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
12956 # Start autosearch by asking tclsh
12957 if test x"${ac_cv_c_tclconfig}" = x ; then
12958 if test x"$cross_compiling" = xno; then
12959 for i in `echo 'puts stdout $auto_path' |
${TCLSH_CMD}`
12961 if test -f "$i/tclConfig.sh" ; then
12962 ac_cv_c_tclconfig="$i"
12969 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
12970 # So try again after applying corrections.
12971 if test x"${ac_cv_c_tclconfig}" = x ; then
12972 if test x"$cross_compiling" = xno; then
12973 for i in `echo 'puts stdout $auto_path' |
${TCLSH_CMD} |
sed 's,/tcltk/tcl,/tcl,g'`
12975 if test -f "$i/tclConfig.sh" ; then
12976 ac_cv_c_tclconfig="$i"
12983 # Recent versions of Xcode on Macs hid the tclConfig.sh file
12984 # in a strange place.
12985 if test x"${ac_cv_c_tclconfig}" = x ; then
12986 if test x"$cross_compiling" = xno; then
12987 for i in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.sdk/usr/lib
12989 if test -f "$i/tclConfig.sh" ; then
12990 ac_cv_c_tclconfig="$i"
12997 # then check for a private Tcl installation
12998 if test x"${ac_cv_c_tclconfig}" = x ; then
13001 `ls -dr ..
/tcl
[8-9].
[0-9].
[0-9]* 2>/dev
/null
` \
13002 `ls -dr ..
/tcl
[8-9].
[0-9] 2>/dev
/null
` \
13003 `ls -dr ..
/tcl
[8-9].
[0-9]* 2>/dev
/null
` \
13005 `ls -dr ..
/..
/tcl
[8-9].
[0-9].
[0-9]* 2>/dev
/null
` \
13006 `ls -dr ..
/..
/tcl
[8-9].
[0-9] 2>/dev
/null
` \
13007 `ls -dr ..
/..
/tcl
[8-9].
[0-9]* 2>/dev
/null
` \
13009 `ls -dr ..
/..
/..
/tcl
[8-9].
[0-9].
[0-9]* 2>/dev
/null
` \
13010 `ls -dr ..
/..
/..
/tcl
[8-9].
[0-9] 2>/dev
/null
` \
13011 `ls -dr ..
/..
/..
/tcl
[8-9].
[0-9]* 2>/dev
/null
`
13013 if test -f "$i/unix/tclConfig.sh" ; then
13014 ac_cv_c_tclconfig=`(cd $i/unix
; pwd)`
13020 # check in a few common install locations
13021 if test x"${ac_cv_c_tclconfig}" = x ; then
13023 `ls -d ${libdir} 2>/dev
/null
` \
13024 `ls -d /usr
/local
/lib
2>/dev
/null
` \
13025 `ls -d /usr
/contrib
/lib
2>/dev
/null
` \
13026 `ls -d /usr
/lib
2>/dev
/null
`
13028 if test -f "$i/tclConfig.sh" ; then
13029 ac_cv_c_tclconfig=`(cd $i; pwd)`
13035 # check in a few other private locations
13036 if test x"${ac_cv_c_tclconfig}" = x ; then
13039 `ls -dr ${srcdir}/..
/tcl
[8-9].
[0-9].
[0-9]* 2>/dev
/null
` \
13040 `ls -dr ${srcdir}/..
/tcl
[8-9].
[0-9] 2>/dev
/null
` \
13041 `ls -dr ${srcdir}/..
/tcl
[8-9].
[0-9]* 2>/dev
/null
`
13043 if test -f "$i/unix/tclConfig.sh" ; then
13044 ac_cv_c_tclconfig=`(cd $i/unix
; pwd)`
13053 if test x"${ac_cv_c_tclconfig}" = x ; then
13055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
13056 printf "%s\n" "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
13057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
13058 printf "%s\n" "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
13059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
13060 printf "%s\n" "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
13062 TCL_BIN_DIR=${ac_cv_c_tclconfig}
13063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
13064 printf "%s\n" "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
13066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
13067 printf %s "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
13068 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
13069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: loading" >&5
13070 printf "%s\n" "loading" >&6; }
13071 . $TCL_BIN_DIR/tclConfig.sh
13073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
13074 printf "%s\n" "file not found" >&6; }
13078 # If the TCL_BIN_DIR is the build directory (not the install directory),
13079 # then set the common variable name to the value of the build variables.
13080 # For example, the variable TCL_LIB_SPEC will be set to the value
13081 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
13082 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
13083 # installed and uninstalled version of Tcl.
13086 if test -f $TCL_BIN_DIR/Makefile ; then
13087 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
13088 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
13089 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
13093 # eval is required to do the TCL_DBGX substitution
13096 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
13097 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
13098 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
13100 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
13101 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
13102 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
13119 if test "${use_tcl}" = "no" ; then
13127 # Figure out what C libraries are required to compile programs
13128 # that use "readline()" library.
13130 TARGET_READLINE_LIBS=""
13131 TARGET_READLINE_INC=""
13132 TARGET_HAVE_READLINE=0
13133 TARGET_HAVE_EDITLINE=0
13134 # Check whether --enable-editline was given.
13135 if test ${enable_editline+y}
13137 enableval=$enable_editline; with_editline=$enableval
13142 # Check whether --enable-readline was given.
13143 if test ${enable_readline+y}
13145 enableval=$enable_readline; with_readline=$enableval
13151 if test x"$with_editline" != xno; then
13154 TARGET_HAVE_EDITLINE=1
13155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
13156 printf %s "checking for library containing readline... " >&6; }
13157 if test ${ac_cv_search_readline+y}
13159 printf %s "(cached) " >&6
13161 ac_func_search_save_LIBS=$LIBS
13162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13163 /* end confdefs.h. */
13165 /* Override any GCC internal prototype to avoid an error.
13166 Use char because int might match the return type of a GCC
13167 builtin and then its argument prototype would still apply. */
13172 return readline ();
13177 for ac_lib in '' edit
13179 if test -z "$ac_lib"; then
13180 ac_res="none required"
13183 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13185 if ac_fn_c_try_link "$LINENO"
13187 ac_cv_search_readline=$ac_res
13189 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13191 if test ${ac_cv_search_readline+y}
13196 if test ${ac_cv_search_readline+y}
13200 ac_cv_search_readline=no
13202 rm conftest.$ac_ext
13203 LIBS=$ac_func_search_save_LIBS
13205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
13206 printf "%s\n" "$ac_cv_search_readline" >&6; }
13207 ac_res=$ac_cv_search_readline
13208 if test "$ac_res" != no
13210 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13213 TARGET_HAVE_EDITLINE=0
13216 TARGET_READLINE_LIBS=$LIBS
13219 if test x"$with_readline" != xno; then
13223 # Check whether --with-readline-lib was given.
13224 if test ${with_readline_lib+y}
13226 withval=$with_readline_lib; with_readline_lib=$withval
13228 with_readline_lib="auto"
13231 if test "x$with_readline_lib" = xauto; then
13234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13235 printf %s "checking for library containing tgetent... " >&6; }
13236 if test ${ac_cv_search_tgetent+y}
13238 printf %s "(cached) " >&6
13240 ac_func_search_save_LIBS=$LIBS
13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h. */
13244 /* Override any GCC internal prototype to avoid an error.
13245 Use char because int might match the return type of a GCC
13246 builtin and then its argument prototype would still apply. */
13256 for ac_lib in '' readline ncurses curses termcap
13258 if test -z "$ac_lib"; then
13259 ac_res="none required"
13262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13264 if ac_fn_c_try_link "$LINENO"
13266 ac_cv_search_tgetent=$ac_res
13268 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13270 if test ${ac_cv_search_tgetent+y}
13275 if test ${ac_cv_search_tgetent+y}
13279 ac_cv_search_tgetent=no
13281 rm conftest.$ac_ext
13282 LIBS=$ac_func_search_save_LIBS
13284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13285 printf "%s\n" "$ac_cv_search_tgetent" >&6; }
13286 ac_res=$ac_cv_search_tgetent
13287 if test "$ac_res" != no
13289 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13296 printf %s "checking for readline in -lreadline... " >&6; }
13297 if test ${ac_cv_lib_readline_readline+y}
13299 printf %s "(cached) " >&6
13301 ac_check_lib_save_LIBS=$LIBS
13302 LIBS="-lreadline $LIBS"
13303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13304 /* end confdefs.h. */
13306 /* Override any GCC internal prototype to avoid an error.
13307 Use char because int might match the return type of a GCC
13308 builtin and then its argument prototype would still apply. */
13313 return readline ();
13318 if ac_fn_c_try_link "$LINENO"
13320 ac_cv_lib_readline_readline=yes
13322 ac_cv_lib_readline_readline=no
13324 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13325 conftest$ac_exeext conftest.$ac_ext
13326 LIBS=$ac_check_lib_save_LIBS
13328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
13329 printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
13330 if test "x$ac_cv_lib_readline_readline" = xyes
13332 TARGET_READLINE_LIBS="-lreadline"
13337 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
13340 TARGET_READLINE_LIBS="$with_readline_lib"
13344 # Check whether --with-readline-inc was given.
13345 if test ${with_readline_inc+y}
13347 withval=$with_readline_inc; with_readline_inc=$withval
13349 with_readline_inc="auto"
13352 if test "x$with_readline_inc" = xauto; then
13353 ac_fn_c_check_header_compile "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
13354 if test "x$ac_cv_header_readline_h" = xyes
13360 if test "$cross_compiling" != yes; then
13361 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
13362 for subdir in include include/readline; do
13363 as_ac_File=`printf "%s\n" "ac_cv_file_$dir/$subdir/readline.h" |
$as_tr_sh`
13364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
13365 printf %s "checking for $dir/$subdir/readline.h... " >&6; }
13366 if eval test \${$as_ac_File+y}
13368 printf %s "(cached) " >&6
13370 test "$cross_compiling" = yes &&
13371 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
13372 if test -r "$dir/$subdir/readline.h"; then
13373 eval "$as_ac_File=yes"
13375 eval "$as_ac_File=no"
13378 eval ac_res=\$$as_ac_File
13379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13380 printf "%s\n" "$ac_res" >&6; }
13381 if eval test \"x\$"$as_ac_File"\" = x"yes"
13386 if test "$found" = "yes"; then
13387 TARGET_READLINE_INC="-I$dir/$subdir"
13391 test "$found" = "yes" && break
13398 TARGET_READLINE_INC="$with_readline_inc"
13401 if test x"$found" = xno; then
13402 TARGET_READLINE_LIBS=""
13403 TARGET_READLINE_INC=""
13404 TARGET_HAVE_READLINE=0
13406 TARGET_HAVE_READLINE=1
13416 # Figure out what C libraries are required to compile programs
13417 # that use "fdatasync()" function.
13419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
13420 printf %s "checking for library containing fdatasync... " >&6; }
13421 if test ${ac_cv_search_fdatasync+y}
13423 printf %s "(cached) " >&6
13425 ac_func_search_save_LIBS=$LIBS
13426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13427 /* end confdefs.h. */
13429 /* Override any GCC internal prototype to avoid an error.
13430 Use char because int might match the return type of a GCC
13431 builtin and then its argument prototype would still apply. */
13436 return fdatasync ();
13441 for ac_lib in '' rt
13443 if test -z "$ac_lib"; then
13444 ac_res="none required"
13447 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13449 if ac_fn_c_try_link "$LINENO"
13451 ac_cv_search_fdatasync=$ac_res
13453 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13455 if test ${ac_cv_search_fdatasync+y}
13460 if test ${ac_cv_search_fdatasync+y}
13464 ac_cv_search_fdatasync=no
13466 rm conftest.$ac_ext
13467 LIBS=$ac_func_search_save_LIBS
13469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
13470 printf "%s\n" "$ac_cv_search_fdatasync" >&6; }
13471 ac_res=$ac_cv_search_fdatasync
13472 if test "$ac_res" != no
13474 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13480 # check for debug enabled
13481 # Check whether --enable-debug was given.
13482 if test ${enable_debug+y}
13484 enableval=$enable_debug;
13487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build type" >&5
13488 printf %s "checking build type... " >&6; }
13489 if test "${enable_debug}" = "yes" ; then
13490 TARGET_DEBUG="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0"
13491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: debug" >&5
13492 printf "%s\n" "debug" >&6; }
13494 TARGET_DEBUG="-DNDEBUG"
13495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: release" >&5
13496 printf "%s\n" "release" >&6; }
13501 # See whether we should use the amalgamation to build
13503 # Check whether --enable-amalgamation was given.
13504 if test ${enable_amalgamation+y}
13506 enableval=$enable_amalgamation;
13509 if test "${enable_amalgamation}" = "no" ; then
13515 # By default, amalgamation sqlite3.c will have #line directives.
13516 # This is a build option not shown by ./configure --help
13517 # To control it, use configure option: amalgamation_line_macros=?
13518 # where ? is no to suppress #line directives or yes to create them.
13519 AMALGAMATION_LINE_MACROS=--linemacros=1
13522 if test "${amalgamation_line_macros+set}" = set; then :
13523 enableval=$amalgamation_line_macros;
13525 if test "${amalgamation_line_macros}" = "yes" ; then
13526 AMALGAMATION_LINE_MACROS=--linemacros=1
13528 if test "${amalgamation_line_macros}" = "no" ; then
13529 AMALGAMATION_LINE_MACROS=--linemacros=0
13533 # Look for zlib. Only needed by extensions and by the sqlite3.exe shell
13534 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13535 if test "x$ac_cv_header_zlib_h" = xyes
13537 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
13541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
13542 printf %s "checking for library containing deflate... " >&6; }
13543 if test ${ac_cv_search_deflate+y}
13545 printf %s "(cached) " >&6
13547 ac_func_search_save_LIBS=$LIBS
13548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13549 /* end confdefs.h. */
13551 /* Override any GCC internal prototype to avoid an error.
13552 Use char because int might match the return type of a GCC
13553 builtin and then its argument prototype would still apply. */
13565 if test -z "$ac_lib"; then
13566 ac_res="none required"
13569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13571 if ac_fn_c_try_link "$LINENO"
13573 ac_cv_search_deflate=$ac_res
13575 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13577 if test ${ac_cv_search_deflate+y}
13582 if test ${ac_cv_search_deflate+y}
13586 ac_cv_search_deflate=no
13588 rm conftest.$ac_ext
13589 LIBS=$ac_func_search_save_LIBS
13591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
13592 printf "%s\n" "$ac_cv_search_deflate" >&6; }
13593 ac_res=$ac_cv_search_deflate
13594 if test "$ac_res" != no
13596 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13597 HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1"
13605 # See whether we should allow loadable extensions
13606 # Check whether --enable-load-extension was given.
13607 if test ${enable_load_extension+y}
13609 enableval=$enable_load_extension;
13611 enable_load_extension=yes
13614 if test "${enable_load_extension}" = "yes" ; then
13615 OPT_FEATURE_FLAGS=""
13616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13617 printf %s "checking for library containing dlopen... " >&6; }
13618 if test ${ac_cv_search_dlopen+y}
13620 printf %s "(cached) " >&6
13622 ac_func_search_save_LIBS=$LIBS
13623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13624 /* end confdefs.h. */
13626 /* Override any GCC internal prototype to avoid an error.
13627 Use char because int might match the return type of a GCC
13628 builtin and then its argument prototype would still apply. */
13638 for ac_lib in '' dl
13640 if test -z "$ac_lib"; then
13641 ac_res="none required"
13644 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13646 if ac_fn_c_try_link "$LINENO"
13648 ac_cv_search_dlopen=$ac_res
13650 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13652 if test ${ac_cv_search_dlopen+y}
13657 if test ${ac_cv_search_dlopen+y}
13661 ac_cv_search_dlopen=no
13663 rm conftest.$ac_ext
13664 LIBS=$ac_func_search_save_LIBS
13666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13667 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
13668 ac_res=$ac_cv_search_dlopen
13669 if test "$ac_res" != no
13671 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13676 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
13680 # Do we want to support math functions
13682 # Check whether --enable-math was given.
13683 if test ${enable_math+y}
13685 enableval=$enable_math;
13688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support math functions" >&5
13689 printf %s "checking whether to support math functions... " >&6; }
13690 if test "$enable_math" = "no"; then
13691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13692 printf "%s\n" "no" >&6; }
13694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13695 printf "%s\n" "yes" >&6; }
13696 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MATH_FUNCTIONS"
13697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5
13698 printf %s "checking for library containing ceil... " >&6; }
13699 if test ${ac_cv_search_ceil+y}
13701 printf %s "(cached) " >&6
13703 ac_func_search_save_LIBS=$LIBS
13704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13705 /* end confdefs.h. */
13707 /* Override any GCC internal prototype to avoid an error.
13708 Use char because int might match the return type of a GCC
13709 builtin and then its argument prototype would still apply. */
13721 if test -z "$ac_lib"; then
13722 ac_res="none required"
13725 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13727 if ac_fn_c_try_link "$LINENO"
13729 ac_cv_search_ceil=$ac_res
13731 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13733 if test ${ac_cv_search_ceil+y}
13738 if test ${ac_cv_search_ceil+y}
13742 ac_cv_search_ceil=no
13744 rm conftest.$ac_ext
13745 LIBS=$ac_func_search_save_LIBS
13747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5
13748 printf "%s\n" "$ac_cv_search_ceil" >&6; }
13749 ac_res=$ac_cv_search_ceil
13750 if test "$ac_res" != no
13752 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13759 # Do we want to support JSON functions
13761 # Check whether --enable-json was given.
13762 if test ${enable_json+y}
13764 enableval=$enable_json;
13767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support JSON functions" >&5
13768 printf %s "checking whether to support JSON functions... " >&6; }
13769 if test "$enable_json" = "no"; then
13770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13771 printf "%s\n" "no" >&6; }
13772 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_OMIT_JSON"
13774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13775 printf "%s\n" "yes" >&6; }
13779 # The --enable-all argument is short-hand to enable
13780 # multiple extensions.
13781 # Check whether --enable-all was given.
13782 if test ${enable_all+y}
13784 enableval=$enable_all;
13789 # Do we want to support memsys3 and/or memsys5
13791 # Check whether --enable-memsys5 was given.
13792 if test ${enable_memsys5+y}
13794 enableval=$enable_memsys5;
13797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5
13798 printf %s "checking whether to support MEMSYS5... " >&6; }
13799 if test "${enable_memsys5}" = "yes"; then
13800 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5"
13801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13802 printf "%s\n" "yes" >&6; }
13804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13805 printf "%s\n" "no" >&6; }
13807 # Check whether --enable-memsys3 was given.
13808 if test ${enable_memsys3+y}
13810 enableval=$enable_memsys3;
13813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5
13814 printf %s "checking whether to support MEMSYS3... " >&6; }
13815 if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then
13816 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3"
13817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13818 printf "%s\n" "yes" >&6; }
13820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13821 printf "%s\n" "no" >&6; }
13825 # See whether we should enable Full Text Search extensions
13826 # Check whether --enable-fts3 was given.
13827 if test ${enable_fts3+y}
13829 enableval=$enable_fts3;
13832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support FTS3" >&5
13833 printf %s "checking whether to support FTS3... " >&6; }
13834 if test "${enable_fts3}" = "yes" ; then
13835 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3"
13836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13837 printf "%s\n" "yes" >&6; }
13839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13840 printf "%s\n" "no" >&6; }
13842 # Check whether --enable-fts4 was given.
13843 if test ${enable_fts4+y}
13845 enableval=$enable_fts4;
13848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support FTS4" >&5
13849 printf %s "checking whether to support FTS4... " >&6; }
13850 if test "${enable_fts4}" = "yes" -o "${enable_all}" = "yes" ; then
13851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13852 printf "%s\n" "yes" >&6; }
13853 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4"
13854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
13855 printf %s "checking for library containing log... " >&6; }
13856 if test ${ac_cv_search_log+y}
13858 printf %s "(cached) " >&6
13860 ac_func_search_save_LIBS=$LIBS
13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h. */
13864 /* Override any GCC internal prototype to avoid an error.
13865 Use char because int might match the return type of a GCC
13866 builtin and then its argument prototype would still apply. */
13878 if test -z "$ac_lib"; then
13879 ac_res="none required"
13882 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13884 if ac_fn_c_try_link "$LINENO"
13886 ac_cv_search_log=$ac_res
13888 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13890 if test ${ac_cv_search_log+y}
13895 if test ${ac_cv_search_log+y}
13899 ac_cv_search_log=no
13901 rm conftest.$ac_ext
13902 LIBS=$ac_func_search_save_LIBS
13904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
13905 printf "%s\n" "$ac_cv_search_log" >&6; }
13906 ac_res=$ac_cv_search_log
13907 if test "$ac_res" != no
13909 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13915 printf "%s\n" "no" >&6; }
13917 # Check whether --enable-fts5 was given.
13918 if test ${enable_fts5+y}
13920 enableval=$enable_fts5;
13923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support FTS5" >&5
13924 printf %s "checking whether to support FTS5... " >&6; }
13925 if test "${enable_fts5}" = "yes" -o "${enable_all}" = "yes" ; then
13926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13927 printf "%s\n" "yes" >&6; }
13928 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5"
13929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
13930 printf %s "checking for library containing log... " >&6; }
13931 if test ${ac_cv_search_log+y}
13933 printf %s "(cached) " >&6
13935 ac_func_search_save_LIBS=$LIBS
13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h. */
13939 /* Override any GCC internal prototype to avoid an error.
13940 Use char because int might match the return type of a GCC
13941 builtin and then its argument prototype would still apply. */
13953 if test -z "$ac_lib"; then
13954 ac_res="none required"
13957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13959 if ac_fn_c_try_link "$LINENO"
13961 ac_cv_search_log=$ac_res
13963 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13965 if test ${ac_cv_search_log+y}
13970 if test ${ac_cv_search_log+y}
13974 ac_cv_search_log=no
13976 rm conftest.$ac_ext
13977 LIBS=$ac_func_search_save_LIBS
13979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
13980 printf "%s\n" "$ac_cv_search_log" >&6; }
13981 ac_res=$ac_cv_search_log
13982 if test "$ac_res" != no
13984 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13990 printf "%s\n" "no" >&6; }
13994 # See whether we should enable the LIMIT clause on UPDATE and DELETE
13996 # Check whether --enable-update-limit was given.
13997 if test ${enable_update_limit+y}
13999 enableval=$enable_update_limit;
14002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support LIMIT on UPDATE and DELETE statements" >&5
14003 printf %s "checking whether to support LIMIT on UPDATE and DELETE statements... " >&6; }
14004 if test "${enable_update_limit}" = "yes" ; then
14005 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT"
14006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14007 printf "%s\n" "yes" >&6; }
14009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14010 printf "%s\n" "no" >&6; }
14014 # See whether we should enable GEOPOLY
14015 # Check whether --enable-geopoly was given.
14016 if test ${enable_geopoly+y}
14018 enableval=$enable_geopoly; enable_geopoly=yes
14023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support GEOPOLY" >&5
14024 printf %s "checking whether to support GEOPOLY... " >&6; }
14025 if test "${enable_geopoly}" = "yes" -o "${enable_all}" = "yes" ; then
14026 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_GEOPOLY"
14028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14029 printf "%s\n" "yes" >&6; }
14031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14032 printf "%s\n" "no" >&6; }
14036 # See whether we should enable RTREE
14037 # Check whether --enable-rtree was given.
14038 if test ${enable_rtree+y}
14040 enableval=$enable_rtree;
14043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support RTREE" >&5
14044 printf %s "checking whether to support RTREE... " >&6; }
14045 if test "${enable_rtree}" = "yes" ; then
14046 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE"
14047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14048 printf "%s\n" "yes" >&6; }
14050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14051 printf "%s\n" "no" >&6; }
14055 # See whether we should enable the SESSION extension
14056 # Check whether --enable-session was given.
14057 if test ${enable_session+y}
14059 enableval=$enable_session;
14062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support SESSION" >&5
14063 printf %s "checking whether to support SESSION... " >&6; }
14064 if test "${enable_session}" = "yes" -o "${enable_all}" = "yes" ; then
14065 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION"
14066 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK"
14067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14068 printf "%s\n" "yes" >&6; }
14070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14071 printf "%s\n" "no" >&6; }
14075 # attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter
14076 for option in $CFLAGS $CPPFLAGS
14079 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
14080 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
14086 # attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
14088 for option in $CFLAGS
14092 -DSQLITE_ENABLE*) ;;
14093 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
14096 CFLAGS=$ac_temp_CFLAGS
14099 # attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
14100 ac_temp_CPPFLAGS=""
14101 for option in $CPPFLAGS
14105 -DSQLITE_ENABLE*) ;;
14106 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
14109 CPPFLAGS=$ac_temp_CPPFLAGS
14112 # attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
14113 ac_temp_BUILD_CFLAGS=""
14114 for option in $BUILD_CFLAGS
14118 -DSQLITE_ENABLE*) ;;
14119 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
14122 BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
14126 # See whether we should use GCOV
14127 # Check whether --enable-gcov was given.
14128 if test ${enable_gcov+y}
14130 enableval=$enable_gcov;
14133 if test "${use_gcov}" = "yes" ; then
14141 # Enable/disabled amalagamation line macros
14143 AMALGAMATION_LINE_MACROS=--linemacros=0
14144 if test "${amalgamation_line_macros}" = "yes" ; then
14145 AMALGAMATION_LINE_MACROS=--linemacros=1
14147 if test "${amalgamation_line_macros}" = "no" ; then
14148 AMALGAMATION_LINE_MACROS=--linemacros=0
14153 # Output the config header
14154 ac_config_headers="$ac_config_headers sqlite_cfg.h"
14158 # Generate the output files.
14161 ac_config_files="$ac_config_files Makefile sqlcipher.pc"
14163 cat >confcache <<\_ACEOF
14164 # This file is a shell script that caches the results of configure
14165 # tests run on this system so they can be shared between configure
14166 # scripts and configure runs, see configure's option --config-cache.
14167 # It is not useful on other systems. If it contains results you don't
14168 # want to keep, you may remove or edit it.
14170 # config.status only pays attention to the cache file if you give it
14171 # the --recheck option to rerun configure.
14173 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
14174 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14175 # following values.
14179 # The following way of writing the cache mishandles newlines in values,
14180 # but we know of no workaround that is simple, portable, and efficient.
14181 # So, we kill variables containing newlines.
14182 # Ultrix sh set writes to stderr and can't be redirected directly,
14183 # and sets the high bit in the cache file unless we assign to the vars.
14185 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14186 eval ac_val
=\$
$ac_var
14190 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14191 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14194 _ | IFS | as_nl
) ;; #(
14195 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
14196 *) { eval $ac_var=; unset $ac_var;} ;;
14202 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14203 *${as_nl}ac_space
=\
*)
14204 # `set' does not quote correctly, so add quotes: double-quote
14205 # substitution turns \\\\ into \\, and sed turns \\ into \.
14208 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14211 # `set' quotes correctly as required by POSIX, so do not add quotes.
14212 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14221 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14223 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14225 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14226 if test -w "$cache_file"; then
14227 if test "x$cache_file" != "x/dev/null"; then
14228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14229 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14230 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
14231 cat confcache
>"$cache_file"
14233 case $cache_file in #(
14235 mv -f confcache
"$cache_file"$$
&&
14236 mv -f "$cache_file"$$
"$cache_file" ;; #(
14238 mv -f confcache
"$cache_file" ;;
14243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14244 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14249 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14250 # Let make expand exec_prefix.
14251 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14253 DEFS
=-DHAVE_CONFIG_H
14258 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14259 # 1. Remove the extension, and $U if already installed.
14260 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14261 ac_i
=`printf "%s\n" "$ac_i" | sed "$ac_script"`
14262 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14263 # will be set to the directory where LIBOBJS objects are built.
14264 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14265 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
14267 LIBOBJS
=$ac_libobjs
14269 LTLIBOBJS
=$ac_ltlibobjs
14273 : "${CONFIG_STATUS=./config.status}"
14275 ac_clean_files_save
=$ac_clean_files
14276 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14278 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
14280 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14282 # Generated by $as_me.
14283 # Run this file to recreate the current configuration.
14284 # Compiler output produced by configure, useful for debugging
14285 # configure, is in config.log if it exists.
14288 ac_cs_recheck=false
14291 SHELL=\${CONFIG_SHELL-$SHELL}
14294 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
14295 ## -------------------- ##
14296 ## M4sh Initialization. ##
14297 ## -------------------- ##
14299 # Be more Bourne compatible
14300 DUALCASE
=1; export DUALCASE
# for MKS sh
14302 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
14306 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14307 # is contrary to our usage. Disable this feature.
14308 alias -g '${1+"$@"}'='"$@"'
14309 setopt NO_GLOB_SUBST
14311 case `(set -o) 2>/dev/null` in #(
14321 # Reset variables that may have inherited troublesome values from
14324 # IFS needs to be set, to space, tab, and newline, in precisely that order.
14325 # (If _AS_PATH_WALK were called with IFS unset, it would have the
14326 # side effect of setting IFS to empty, thus disabling word splitting.)
14327 # Quoting is to prevent editors from complaining about space-tab.
14337 # Ensure predictable behavior from utilities with locale-dependent output.
14343 # We cannot yet rely on "unset" to work, but we need these variables
14344 # to be unset--not just set to an empty or harmless value--now, to
14345 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
14346 # also avoids known problems related to "unset" and subshell syntax
14347 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
14348 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
14349 do eval test \
${$as_var+y} \
14350 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
14353 # Ensure that fds 0, 1, and 2 are open.
14354 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
14355 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
14356 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
14358 # The user is always right.
14359 if ${PATH_SEPARATOR+false} :; then
14361 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
14362 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
14368 # Find who we are. Look in the path if we contain no directory separator.
14371 *[\\/]* ) as_myself
=$0 ;;
14372 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14373 for as_dir
in $PATH
14376 case $as_dir in #(((
14379 *) as_dir
=$as_dir/ ;;
14381 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
14387 # We did not find ourselves, most probably we were run as `sh COMMAND'
14388 # in which case we are not to be found in the path.
14389 if test "x$as_myself" = x
; then
14392 if test ! -f "$as_myself"; then
14393 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14399 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14400 # ----------------------------------------
14401 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14402 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14403 # script with STATUS, using 1 if that was 0.
14406 as_status
=$1; test $as_status -eq 0 && as_status
=1
14408 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
14409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14411 printf "%s\n" "$as_me: error: $2" >&2
14412 as_fn_exit
$as_status
14417 # as_fn_set_status STATUS
14418 # -----------------------
14419 # Set $? to STATUS, without forking.
14420 as_fn_set_status
()
14423 } # as_fn_set_status
14425 # as_fn_exit STATUS
14426 # -----------------
14427 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14431 as_fn_set_status
$1
14437 # Portably unset VAR.
14440 { eval $1=; unset $1;}
14442 as_unset
=as_fn_unset
14444 # as_fn_append VAR VALUE
14445 # ----------------------
14446 # Append the text in VALUE to the end of the definition contained in VAR. Take
14447 # advantage of any shell optimizations that allow amortized linear growth over
14448 # repeated appends, instead of the typical quadratic growth present in naive
14450 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
14452 eval 'as_fn_append ()
14463 # as_fn_arith ARG...
14464 # ------------------
14465 # Perform arithmetic evaluation on the ARGs, and store the result in the
14466 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14467 # must be portable across $(()) and expr.
14468 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
14470 eval 'as_fn_arith ()
14477 as_val
=`expr "$@" || test $? -eq 1`
14482 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14483 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14489 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14490 as_basename
=basename
14495 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
14501 as_me
=`$as_basename -- "$0" ||
14502 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14503 X"$0" : 'X\(//\)$' \| \
14504 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14505 printf "%s\n" X/"$0" |
14506 sed '/^.*\/\([^/][^/]*\)\/*$/{
14520 # Avoid depending upon Character Ranges.
14521 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
14522 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14523 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14524 as_cr_digits
='0123456789'
14525 as_cr_alnum
=$as_cr_Letters$as_cr_digits
14528 # Determine whether it's possible to make 'echo' print without a newline.
14529 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
14530 # for compatibility with existing Makefiles.
14531 ECHO_C
= ECHO_N
= ECHO_T
=
14532 case `echo -n x` in #(((((
14534 case `echo 'xy\c'` in
14535 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14537 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
14544 # For backward compatibility with old third-party macros, we provide
14545 # the shell variables $as_echo and $as_echo_n. New code should use
14546 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
14547 as_echo
='printf %s\n'
14548 as_echo_n
='printf %s'
14550 rm -f conf$$ conf$$.exe conf$$.
file
14551 if test -d conf$$.dir
; then
14552 rm -f conf$$.dir
/conf$$.
file
14555 mkdir conf$$.dir
2>/dev
/null
14557 if (echo >conf$$.
file) 2>/dev
/null
; then
14558 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14560 # ... but there are two gotchas:
14561 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14562 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14563 # In both cases, we have to default to `cp -pR'.
14564 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
14566 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14574 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14575 rmdir conf$$.dir
2>/dev
/null
14580 # Create "$as_dir" as a directory, including parents if necessary.
14585 -*) as_dir
=.
/$as_dir;;
14587 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
14591 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14592 *) as_qdir
=$as_dir;;
14594 as_dirs
="'$as_qdir' $as_dirs"
14595 as_dir
=`$as_dirname -- "$as_dir" ||
14596 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14597 X"$as_dir" : 'X\(//\)[^/]' \| \
14598 X"$as_dir" : 'X\(//\)$' \| \
14599 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14600 printf "%s\n" X"$as_dir" |
14601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14605 /^X\(\/\/\)[^/].*/{
14618 test -d "$as_dir" && break
14620 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
14621 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
14625 if mkdir
-p .
2>/dev
/null
; then
14626 as_mkdir_p
='mkdir -p "$as_dir"'
14628 test -d .
/-p && rmdir .
/-p
14633 # as_fn_executable_p FILE
14634 # -----------------------
14635 # Test if FILE is an executable regular file.
14636 as_fn_executable_p
()
14638 test -f "$1" && test -x "$1"
14639 } # as_fn_executable_p
14640 as_test_x
='test -x'
14641 as_executable_p
=as_fn_executable_p
14643 # Sed expression to map a string onto a valid CPP name.
14644 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14646 # Sed expression to map a string onto a valid variable name.
14647 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14651 ## ----------------------------------- ##
14652 ## Main body of $CONFIG_STATUS script. ##
14653 ## ----------------------------------- ##
14655 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
14657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14658 # Save the log message, to keep $0 and so on meaningful, and to
14659 # report actual input values of CONFIG_FILES etc. instead of their
14660 # values after options handling.
14662 This file was extended by sqlcipher $as_me 3.43.1, which was
14663 generated by GNU Autoconf 2.71. Invocation command line was
14665 CONFIG_FILES = $CONFIG_FILES
14666 CONFIG_HEADERS = $CONFIG_HEADERS
14667 CONFIG_LINKS = $CONFIG_LINKS
14668 CONFIG_COMMANDS = $CONFIG_COMMANDS
14671 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14676 case $ac_config_files in *"
14677 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
14680 case $ac_config_headers in *"
14681 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
14685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14686 # Files that config.status was made for.
14687 config_files="$ac_config_files"
14688 config_headers="$ac_config_headers"
14689 config_commands="$ac_config_commands"
14693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14695 \`$as_me' instantiates files and other configuration actions
14696 from templates according to the current configuration. Unless the files
14697 and actions are specified as TAGs, all are instantiated by default.
14699 Usage: $0 [OPTION]... [TAG]...
14701 -h, --help print this help, then exit
14702 -V, --version print version number and configuration settings, then exit
14703 --config print configuration, then exit
14704 -q, --quiet, --silent
14705 do not print progress messages
14706 -d, --debug don't remove temporary files
14707 --recheck update $as_me by reconfiguring in the same conditions
14708 --file=FILE[:TEMPLATE]
14709 instantiate the configuration file FILE
14710 --header=FILE[:TEMPLATE]
14711 instantiate the configuration header FILE
14713 Configuration files:
14716 Configuration headers:
14719 Configuration commands:
14722 Report bugs to the package provider."
14725 ac_cs_config
=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
14726 ac_cs_config_escaped
=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
14727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14728 ac_cs_config='$ac_cs_config_escaped'
14730 sqlcipher config.status 3.43.1
14731 configured by $0, generated by GNU Autoconf 2.71,
14732 with options \\"\$ac_cs_config\\"
14734 Copyright (C) 2021 Free Software Foundation, Inc.
14735 This config.status script is free software; the Free Software Foundation
14736 gives unlimited permission to copy, distribute and modify it."
14742 test -n "\$AWK" || AWK=awk
14745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14746 # The default lists apply if the user does not specify any file.
14752 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14753 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14757 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14769 # Handling of the options.
14770 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14772 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
14773 printf "%s\n" "$ac_cs_version"; exit ;;
14774 --config |
--confi |
--conf |
--con |
--co |
--c )
14775 printf "%s\n" "$ac_cs_config"; exit ;;
14776 --debug |
--debu |
--deb |
--de |
--d |
-d )
14778 --file |
--fil |
--fi |
--f )
14781 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14782 '') as_fn_error $?
"missing file argument" ;;
14784 as_fn_append CONFIG_FILES
" '$ac_optarg'"
14785 ac_need_defaults
=false
;;
14786 --header |
--heade |
--head |
--hea )
14789 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14791 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
14792 ac_need_defaults
=false
;;
14794 # Conflict between --help and --header
14795 as_fn_error $?
"ambiguous option: \`$1'
14796 Try \`$0 --help' for more information.";;
14797 --help |
--hel |
-h )
14798 printf "%s\n" "$ac_cs_usage"; exit ;;
14799 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14800 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14803 # This is an error.
14804 -*) as_fn_error $?
"unrecognized option: \`$1'
14805 Try \`$0 --help' for more information." ;;
14807 *) as_fn_append ac_config_targets
" $1"
14808 ac_need_defaults
=false
;;
14814 ac_configure_extra_args
=
14816 if $ac_cs_silent; then
14818 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14823 if \$ac_cs_recheck; then
14824 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14826 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
14827 CONFIG_SHELL='$SHELL'
14828 export CONFIG_SHELL
14833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14837 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14838 ## Running $as_me. ##
14840 printf "%s\n" "$ac_log"
14844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14850 # The HP-UX ksh and POSIX shell print the target directory to stdout
14851 # if CDPATH is set.
14852 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14854 sed_quote_subst='$sed_quote_subst'
14855 double_quote_subst='$double_quote_subst'
14856 delay_variable_subst='$delay_variable_subst'
14857 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14858 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14859 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14860 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14861 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14862 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14863 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14864 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14865 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14866 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14867 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14868 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14869 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14870 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14871 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14872 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14873 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14874 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14875 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14876 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14877 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14878 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14879 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14880 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14881 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14882 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14883 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14884 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14885 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14886 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14887 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14888 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14889 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14890 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14891 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14892 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14893 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14894 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14895 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14896 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14897 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14898 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14899 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14900 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14901 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14902 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14903 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14904 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14905 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14906 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14907 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14908 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14909 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14910 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14911 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14912 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14913 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14914 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14915 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"`'
14916 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14917 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14918 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14919 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14920 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14921 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14922 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14923 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14924 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14925 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14926 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14927 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14928 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14929 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14930 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14931 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14932 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14933 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14934 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14935 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14936 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14937 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14938 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14939 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14940 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14941 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14942 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14943 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14944 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14945 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14946 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14947 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14948 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14949 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14950 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14951 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14952 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14953 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14954 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14955 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14956 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14957 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14958 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14959 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14960 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14961 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14962 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14963 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14964 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14965 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14966 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14967 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14968 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14969 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14970 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14971 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14972 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14973 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14974 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14975 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14976 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14977 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14978 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14979 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14980 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14981 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14982 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14983 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14984 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14985 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14986 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14987 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14988 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14989 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14990 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14991 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14994 LTCFLAGS='$LTCFLAGS'
14995 compiler='$compiler_DEFAULT'
14997 # A function that is used when there is no print builtin or printf.
14998 func_fallback_echo ()
15000 eval 'cat <<_LTECHO_EOF
15005 # Quote evaled strings.
15020 deplibs_check_method \
15025 sharedlib_from_linklib_cmd \
15028 archiver_list_spec \
15034 lt_cv_sys_global_symbol_pipe \
15035 lt_cv_sys_global_symbol_to_cdecl \
15036 lt_cv_sys_global_symbol_to_import \
15037 lt_cv_sys_global_symbol_to_c_name_address \
15038 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15039 lt_cv_nm_interface \
15040 nm_file_list_spec \
15041 lt_cv_truncate_bin \
15042 lt_prog_compiler_no_builtin_flag \
15043 lt_prog_compiler_pic \
15044 lt_prog_compiler_wl \
15045 lt_prog_compiler_static \
15046 lt_cv_prog_compiler_c_o \
15055 export_dynamic_flag_spec \
15056 whole_archive_flag_spec \
15057 compiler_needs_object \
15059 allow_undefined_flag \
15060 no_undefined_flag \
15061 hardcode_libdir_flag_spec \
15062 hardcode_libdir_separator \
15066 variables_saved_for_relink \
15068 library_names_spec \
15070 install_override_mode \
15074 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15075 *[\\\\\\\`\\"\\\$]*)
15076 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15079 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15084 # Double-quote double-evaled strings.
15085 for var in reload_cmds \
15086 old_postinstall_cmds \
15087 old_postuninstall_cmds \
15089 extract_expsyms_cmds \
15090 old_archive_from_new_cmds \
15091 old_archive_from_expsyms_cmds \
15093 archive_expsym_cmds \
15095 module_expsym_cmds \
15096 export_symbols_cmds \
15100 postuninstall_cmds \
15102 sys_lib_search_path_spec \
15103 configure_time_dlsearch_path \
15104 configure_time_lt_sys_library_path; do
15105 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15106 *[\\\\\\\`\\"\\\$]*)
15107 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15110 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15115 ac_aux_dir='$ac_aux_dir'
15117 # See if we are running on zsh, and set the options that allow our
15118 # commands through without removal of \ escapes INIT.
15119 if test -n "\${ZSH_VERSION+set}"; then
15120 setopt NO_GLOB_SUBST
15134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15136 # Handling of arguments.
15137 for ac_config_target
in $ac_config_targets
15139 case $ac_config_target in
15140 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
15141 "sqlite_cfg.h") CONFIG_HEADERS
="$CONFIG_HEADERS sqlite_cfg.h" ;;
15142 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15143 "sqlcipher.pc") CONFIG_FILES
="$CONFIG_FILES sqlcipher.pc" ;;
15145 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15150 # If the user did not use the arguments to specify the items to instantiate,
15151 # then the envvar interface is used. Set only those that are not.
15152 # We use the long form for the default assignment because of an extremely
15153 # bizarre bug on SunOS 4.1.3.
15154 if $ac_need_defaults; then
15155 test ${CONFIG_FILES+y} || CONFIG_FILES
=$config_files
15156 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS
=$config_headers
15157 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS
=$config_commands
15160 # Have a temporary directory for convenience. Make it in the build tree
15161 # simply because there is no reason against having it here, and in addition,
15162 # creating and moving files from /tmp can sometimes cause problems.
15163 # Hook for its removal unless debugging.
15164 # Note that there is a small window in which the directory will not be cleaned:
15165 # after its creation but before its name has been assigned to `$tmp'.
15169 trap 'exit_status=$?
15170 : "${ac_tmp:=$tmp}"
15171 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15173 trap 'as_fn_exit 1' 1 2 13 15
15175 # Create a (secure) tmp directory for tmp files.
15178 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15182 tmp
=.
/conf$$
-$RANDOM
15183 (umask 077 && mkdir
"$tmp")
15184 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
15187 # Set up the scripts for CONFIG_FILES section.
15188 # No need to generate them if there are no CONFIG_FILES.
15189 # This happens for instance with `./config.status config.h'.
15190 if test -n "$CONFIG_FILES"; then
15193 ac_cr
=`echo X | tr X '\015'`
15194 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15195 # But we know of no other shell where ac_cr would be empty at this
15196 # point, so we can use a bashism as a fallback.
15197 if test "x$ac_cr" = x
; then
15198 eval ac_cr
=\$
\'\\r
\'
15200 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15201 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15204 ac_cs_awk_cr
=$ac_cr
15207 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15212 echo "cat >conf$$subs.awk <<_ACEOF" &&
15213 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15215 } >conf$$subs.sh ||
15216 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15217 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15219 for ac_last_try in false false false false false :; do
15220 . ./conf$$subs.sh ||
15221 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15223 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15224 if test $ac_delim_n = $ac_delim_num; then
15226 elif $ac_last_try; then
15227 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15229 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15232 rm -f conf$$subs.sh
15234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15235 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
15239 s/^/S["/; s
/!.
*/"]=/
15249 s/\(.\{148\}\)..*/\1/
15251 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15256 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15263 s/\(.\{148\}\)..*/\1/
15265 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15269 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15274 ' <conf$$subs.awk | sed '
15279 ' >>$CONFIG_STATUS || ac_write_fail=1
15280 rm -f conf$$subs.awk
15281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15283 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
15284 for (key in S) S_is_set[key] = 1
15290 nfields = split(line, field, "@
")
15292 len = length(field[1])
15293 for (i = 2; i < nfields; i++) {
15295 keylen = length(key)
15296 if (S_is_set[key]) {
15298 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15299 len += length(value) + length(field[++i])
15310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15311 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15312 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15315 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
15316 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
15319 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15320 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
15321 # trailing colons and then remove the whole line if VPATH becomes empty
15322 # (actually we leave an empty line to preserve line numbers).
15323 if test "x
$srcdir" = x.; then
15324 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15343 fi # test -n "$CONFIG_FILES"
15345 # Set up the scripts for CONFIG_HEADERS section.
15346 # No need to generate them if there are no CONFIG_HEADERS.
15347 # This happens for instance with `./config.status Makefile'.
15348 if test -n "$CONFIG_HEADERS"; then
15349 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
15353 # Transform confdefs.h into an awk script `defines.awk', embedded as
15354 # here-document in config.status, that substitutes the proper values into
15355 # config.h.in to produce config.h.
15357 # Create a delimiter string that does not exist in confdefs.h, to ease
15358 # handling of long lines.
15360 for ac_last_try in false false :; do
15361 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
15362 if test -z "$ac_tt"; then
15364 elif $ac_last_try; then
15365 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
15367 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15371 # For the awk script, D is an array of macro values keyed by name,
15372 # likewise P contains macro parameters if any. Preserve backslash
15373 # newline sequences.
15375 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15377 s/.\{148\}/&'"$ac_delim"'/g
15380 s/^[ ]*#[ ]*define[ ][ ]*/ /
15387 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
15389 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
15393 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
15394 D["\
1"]=" \
3\\\\\\n
"\\/p
15396 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
15401 s/.\{148\}/&'"$ac_delim"'/g
15406 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
15409 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
15411 ' <confdefs.h | sed '
15412 s/'"$ac_delim"'/"\\\
15413 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15416 for (key in D) D_is_set[key] = 1
15419 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15421 split(line, arg, " ")
15422 if (arg[1] == "#") {
15426 defundef
= substr
(arg
[1], 2)
15429 split(mac1
, mac2
, "(") #)
15431 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
15432 if (D_is_set
[macro
]) {
15433 # Preserve the white space surrounding the "#".
15434 print prefix
"define", macro P
[macro
] D
[macro
]
15437 # Replace #undef with comments. This is necessary, for example,
15438 # in the case of _POSIX_SOURCE, which is predefined and required
15439 # on some systems where configure will not decide to define it.
15440 if (defundef
== "undef") {
15441 print
"/*", prefix defundef
, macro
, "*/"
15449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15450 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
15451 fi # test -n "$CONFIG_HEADERS"
15454 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15459 :[FHLC
]) ac_mode
=$ac_tag; continue;;
15461 case $ac_mode$ac_tag in
15463 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
15464 :[FH
]-) ac_tag
=-:-;;
15465 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
15482 -) ac_f
="$ac_tmp/stdin";;
15483 *) # Look for the file first in the build tree, then in the source tree
15484 # (if the path is not absolute). The absolute path cannot be DOS-style,
15485 # because $ac_f cannot contain `:'.
15489 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
15491 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15493 case $ac_f in *\'*) ac_f
=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15494 as_fn_append ac_file_inputs
" '$ac_f'"
15497 # Let's still pretend it is `configure' which instantiates (i.e., don't
15498 # use $as_me), people would be surprised to read:
15499 # /* config.h. Generated by config.status. */
15500 configure_input
='Generated from '`
15501 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15503 if test x
"$ac_file" != x-
; then
15504 configure_input
="$ac_file. $configure_input"
15505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15506 printf "%s\n" "$as_me: creating $ac_file" >&6;}
15508 # Neutralize special characters interpreted by sed in replacement strings.
15509 case $configure_input in #(
15510 *\
&* |
*\|
* |
*\\* )
15511 ac_sed_conf_input
=`printf "%s\n" "$configure_input" |
15512 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15513 *) ac_sed_conf_input
=$configure_input;;
15517 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
15518 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
15523 ac_dir
=`$as_dirname -- "$ac_file" ||
15524 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15525 X"$ac_file" : 'X\(//\)[^/]' \| \
15526 X"$ac_file" : 'X\(//\)$' \| \
15527 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15528 printf "%s\n" X"$ac_file" |
15529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15533 /^X\(\/\/\)[^/].*/{
15546 as_dir
="$ac_dir"; as_fn_mkdir_p
15550 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15552 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15553 # A ".." for each directory in $ac_dir_suffix.
15554 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15555 case $ac_top_builddir_sub in
15556 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15557 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15560 ac_abs_top_builddir
=$ac_pwd
15561 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15562 # for backward compatibility:
15563 ac_top_builddir
=$ac_top_build_prefix
15566 .
) # We are building in place.
15568 ac_top_srcdir
=$ac_top_builddir_sub
15569 ac_abs_top_srcdir
=$ac_pwd ;;
15570 [\\/]* | ?
:[\\/]* ) # Absolute name.
15571 ac_srcdir
=$srcdir$ac_dir_suffix;
15572 ac_top_srcdir
=$srcdir
15573 ac_abs_top_srcdir
=$srcdir ;;
15574 *) # Relative name.
15575 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15576 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15577 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15579 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15589 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15590 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15595 # If the template does not know about datarootdir, expand it.
15596 # FIXME: This hack should be removed a few years after 2.60.
15597 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15608 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15609 *datarootdir
*) ac_datarootdir_seen
=yes;;
15610 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
15611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15612 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15615 ac_datarootdir_hack='
15616 s&@datadir@&$datadir&g
15617 s&@docdir@&$docdir&g
15618 s&@infodir@&$infodir&g
15619 s&@localedir@&$localedir&g
15620 s&@mandir@&$mandir&g
15621 s&\\\${datarootdir}&$datarootdir&g' ;;
15625 # Neutralize VPATH when `$srcdir' = `.'.
15626 # Shell code in configure.ac might set extrasub.
15627 # FIXME: do we really want to maintain this feature?
15628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15629 ac_sed_extra="$ac_vpsub
15632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15634 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15635 s|@configure_input@|
$ac_sed_conf_input|
;t t
15636 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15637 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
15638 s
&@srcdir@
&$ac_srcdir&;t t
15639 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15640 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15641 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15642 s
&@builddir@
&$ac_builddir&;t t
15643 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15644 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15645 s
&@INSTALL@
&$ac_INSTALL&;t t
15646 $ac_datarootdir_hack
15648 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
15649 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
15651 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15652 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
15653 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15654 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
15655 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15656 which seems to be undefined. Please make sure it is defined" >&5
15657 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15658 which seems to be undefined. Please make sure it is defined" >&2;}
15660 rm -f "$ac_tmp/stdin"
15662 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15663 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15665 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15671 if test x"$ac_file" != x-; then
15673 printf "%s\n" "/* $configure_input */" >&1 \
15674 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15675 } >"$ac_tmp/config.h" \
15676 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15677 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15679 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
15682 mv "$ac_tmp/config.h" "$ac_file" \
15683 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15686 printf "%s\n" "/* $configure_input */" >&1 \
15687 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15688 || as_fn_error $? "could not create -" "$LINENO" 5
15692 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15693 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
15698 case $ac_file$ac_mode in
15701 # See if we are running on zsh, and set the options that allow our
15702 # commands through without removal of \ escapes.
15703 if test -n "${ZSH_VERSION+set}"; then
15704 setopt NO_GLOB_SUBST
15708 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15711 cat <<_LT_EOF >> "$cfgfile"
15713 # Generated automatically by $as_me ($PACKAGE) $VERSION
15714 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15716 # Provide generalized library-building support services.
15717 # Written by Gordon Matzigkeit, 1996
15719 # Copyright (C) 2014 Free Software Foundation, Inc.
15720 # This is free software; see the source for copying conditions. There is NO
15721 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15723 # GNU Libtool is free software; you can redistribute it and/or modify
15724 # it under the terms of the GNU General Public License as published by
15725 # the Free Software Foundation; either version 2 of of the License, or
15726 # (at your option) any later version.
15728 # As a special exception to the GNU General Public License, if you
15729 # distribute this file as part of a program or library that is built
15730 # using GNU Libtool, you may include this file under the same
15731 # distribution terms that you use for the rest of that program.
15733 # GNU Libtool is distributed in the hope that it will be useful, but
15734 # WITHOUT ANY WARRANTY; without even the implied warranty of
15735 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15736 # GNU General Public License for more details.
15738 # You should have received a copy of the GNU General Public License
15739 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15742 # The names of the tagged configurations supported by this script.
15745 # Configured defaults for sys_lib_dlsearch_path munging.
15746 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15748 # ### BEGIN LIBTOOL CONFIG
15750 # Which release of libtool.m4 was used?
15751 macro_version=$macro_version
15752 macro_revision=$macro_revision
15754 # Whether or not to build shared libraries.
15755 build_libtool_libs=$enable_shared
15757 # Whether or not to build static libraries.
15758 build_old_libs=$enable_static
15760 # What type of objects to build.
15763 # Whether or not to optimize for fast installation.
15764 fast_install=$enable_fast_install
15766 # Shared archive member basename,for filename based shared library versioning on AIX.
15767 shared_archive_member_spec=$shared_archive_member_spec
15769 # Shell to use when invoking shell scripts.
15772 # An echo program that protects backslashes.
15775 # The PATH separator for the build system.
15776 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15779 host_alias=$host_alias
15783 # The build system.
15784 build_alias=$build_alias
15788 # A sed program that does not truncate output.
15791 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15792 Xsed="\$SED -e 1s/^X//"
15794 # A grep program that handles long lines.
15800 # A literal string matcher.
15803 # A BSD- or MS-compatible name lister.
15806 # Whether we need soft or hard links.
15809 # What is the maximum length of a command?
15810 max_cmd_len=$max_cmd_len
15812 # Object file suffix (normally "o").
15815 # Executable file suffix (normally "").
15818 # whether the shell understands "unset".
15821 # turn spaces into newlines.
15824 # turn newlines into spaces.
15827 # convert \$build file names to \$host format.
15828 to_host_file_cmd=$lt_cv_to_host_file_cmd
15830 # convert \$build files to toolchain format.
15831 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15833 # An object symbol dumper.
15834 OBJDUMP=$lt_OBJDUMP
15836 # Method to check whether dependent libraries are shared objects.
15837 deplibs_check_method=$lt_deplibs_check_method
15839 # Command to use when deplibs_check_method = "file_magic".
15840 file_magic_cmd=$lt_file_magic_cmd
15842 # How to find potential files when deplibs_check_method = "file_magic".
15843 file_magic_glob=$lt_file_magic_glob
15845 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15846 want_nocaseglob=$lt_want_nocaseglob
15848 # DLL creation program.
15849 DLLTOOL=$lt_DLLTOOL
15851 # Command to associate shared and link libraries.
15852 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15857 # Flags to create an archive.
15858 AR_FLAGS=$lt_AR_FLAGS
15860 # How to feed a file listing to the archiver.
15861 archiver_list_spec=$lt_archiver_list_spec
15863 # A symbol stripping program.
15866 # Commands used to install an old-style archive.
15868 old_postinstall_cmds=$lt_old_postinstall_cmds
15869 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15871 # Whether to use a lock for old archive extraction.
15872 lock_old_archive_extraction=$lock_old_archive_extraction
15877 # LTCC compiler flags.
15878 LTCFLAGS=$lt_CFLAGS
15880 # Take the output of nm and produce a listing of raw symbols and C names.
15881 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15883 # Transform the output of nm in a proper C declaration.
15884 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15886 # Transform the output of nm into a list of symbols to manually relocate.
15887 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15889 # Transform the output of nm in a C name address pair.
15890 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15892 # Transform the output of nm in a C name address pair when lib prefix is needed.
15893 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15895 # The name lister interface.
15896 nm_interface=$lt_lt_cv_nm_interface
15898 # Specify filename containing input files for \$NM.
15899 nm_file_list_spec=$lt_nm_file_list_spec
15901 # The root where to search for dependent libraries,and where our libraries should be installed.
15902 lt_sysroot=$lt_sysroot
15904 # Command to truncate a binary pipe.
15905 lt_truncate_bin=$lt_lt_cv_truncate_bin
15907 # The name of the directory that contains temporary libtool files.
15910 # Used to examine libraries when file_magic_cmd begins with "file".
15911 MAGIC_CMD=$MAGIC_CMD
15913 # Must we lock files when doing compilation?
15914 need_locks=$lt_need_locks
15917 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15919 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15920 DSYMUTIL=$lt_DSYMUTIL
15922 # Tool to change global to local symbols on Mac OS X.
15925 # Tool to manipulate fat objects and archives on Mac OS X.
15928 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15931 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15932 OTOOL64=$lt_OTOOL64
15934 # Old archive suffix (normally "a").
15937 # Shared library suffix (normally ".so").
15938 shrext_cmds=$lt_shrext_cmds
15940 # The commands to extract the exported symbol list from a shared archive.
15941 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15943 # Variables whose values should be saved in libtool wrapper scripts and
15944 # restored at link time.
15945 variables_saved_for_relink=$lt_variables_saved_for_relink
15947 # Do we need the "lib" prefix for modules?
15948 need_lib_prefix=$need_lib_prefix
15950 # Do we need a version for libraries?
15951 need_version=$need_version
15953 # Library versioning type.
15954 version_type=$version_type
15956 # Shared library runtime path variable.
15957 runpath_var=$runpath_var
15959 # Shared library path variable.
15960 shlibpath_var=$shlibpath_var
15962 # Is shlibpath searched before the hard-coded library search path?
15963 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15965 # Format of library name prefix.
15966 libname_spec=$lt_libname_spec
15968 # List of archive names. First name is the real one, the rest are links.
15969 # The last name is the one that the linker finds with -lNAME
15970 library_names_spec=$lt_library_names_spec
15972 # The coded name of the library, if different from the real name.
15973 soname_spec=$lt_soname_spec
15975 # Permission mode override for installation of shared libraries.
15976 install_override_mode=$lt_install_override_mode
15978 # Command to use after installation of a shared archive.
15979 postinstall_cmds=$lt_postinstall_cmds
15981 # Command to use after uninstallation of a shared archive.
15982 postuninstall_cmds=$lt_postuninstall_cmds
15984 # Commands used to finish a libtool library installation in a directory.
15985 finish_cmds=$lt_finish_cmds
15987 # As "finish_cmds", except a single script fragment to be evaled but
15989 finish_eval=$lt_finish_eval
15991 # Whether we should hardcode library paths into libraries.
15992 hardcode_into_libs=$hardcode_into_libs
15994 # Compile-time system search path for libraries.
15995 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15997 # Detected run-time system search path for libraries.
15998 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16000 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16001 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16003 # Whether dlopen is supported.
16004 dlopen_support=$enable_dlopen
16006 # Whether dlopen of programs is supported.
16007 dlopen_self=$enable_dlopen_self
16009 # Whether dlopen of statically linked programs is supported.
16010 dlopen_self_static=$enable_dlopen_self_static
16012 # Commands to strip libraries.
16013 old_striplib=$lt_old_striplib
16014 striplib=$lt_striplib
16017 # The linker used to build libraries.
16020 # How to create reloadable object files.
16021 reload_flag=$lt_reload_flag
16022 reload_cmds=$lt_reload_cmds
16024 # Commands used to build an old-style archive.
16025 old_archive_cmds=$lt_old_archive_cmds
16027 # A language specific compiler.
16030 # Is the compiler the GNU compiler?
16033 # Compiler flag to turn off builtin functions.
16034 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16036 # Additional compiler flags for building library objects.
16037 pic_flag=$lt_lt_prog_compiler_pic
16039 # How to pass a linker flag through the compiler.
16040 wl=$lt_lt_prog_compiler_wl
16042 # Compiler flag to prevent dynamic linking.
16043 link_static_flag=$lt_lt_prog_compiler_static
16045 # Does compiler simultaneously support -c and -o options?
16046 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16048 # Whether or not to add -lc for building shared libraries.
16049 build_libtool_need_lc=$archive_cmds_need_lc
16051 # Whether or not to disallow shared libs when runtime libs are static.
16052 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16054 # Compiler flag to allow reflexive dlopens.
16055 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16057 # Compiler flag to generate shared objects directly from archives.
16058 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16060 # Whether the compiler copes with passing no objects directly.
16061 compiler_needs_object=$lt_compiler_needs_object
16063 # Create an old-style archive from a shared archive.
16064 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16066 # Create a temporary old-style archive to link instead of a shared archive.
16067 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16069 # Commands used to build a shared archive.
16070 archive_cmds=$lt_archive_cmds
16071 archive_expsym_cmds=$lt_archive_expsym_cmds
16073 # Commands used to build a loadable module if different from building
16074 # a shared archive.
16075 module_cmds=$lt_module_cmds
16076 module_expsym_cmds=$lt_module_expsym_cmds
16078 # Whether we are building with GNU ld or not.
16079 with_gnu_ld=$lt_with_gnu_ld
16081 # Flag that allows shared libraries with undefined symbols to be built.
16082 allow_undefined_flag=$lt_allow_undefined_flag
16084 # Flag that enforces no undefined symbols.
16085 no_undefined_flag=$lt_no_undefined_flag
16087 # Flag to hardcode \$libdir into a binary during linking.
16088 # This must work even if \$libdir does not exist
16089 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16091 # Whether we need a single "-rpath" flag with a separated argument.
16092 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16094 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16095 # DIR into the resulting binary.
16096 hardcode_direct=$hardcode_direct
16098 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16099 # DIR into the resulting binary and the resulting library dependency is
16100 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16101 # library is relocated.
16102 hardcode_direct_absolute=$hardcode_direct_absolute
16104 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16105 # into the resulting binary.
16106 hardcode_minus_L=$hardcode_minus_L
16108 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16109 # into the resulting binary.
16110 hardcode_shlibpath_var=$hardcode_shlibpath_var
16112 # Set to "yes" if building a shared library automatically hardcodes DIR
16113 # into the library and all subsequent libraries and executables linked
16115 hardcode_automatic=$hardcode_automatic
16117 # Set to yes if linker adds runtime paths of dependent libraries
16118 # to runtime path list.
16119 inherit_rpath=$inherit_rpath
16121 # Whether libtool must link a program against all its dependency libraries.
16122 link_all_deplibs=$link_all_deplibs
16124 # Set to "yes" if exported symbols are required.
16125 always_export_symbols=$always_export_symbols
16127 # The commands to list exported symbols.
16128 export_symbols_cmds=$lt_export_symbols_cmds
16130 # Symbols that should not be listed in the preloaded symbols.
16131 exclude_expsyms=$lt_exclude_expsyms
16133 # Symbols that must always be exported.
16134 include_expsyms=$lt_include_expsyms
16136 # Commands necessary for linking programs (against libraries) with templates.
16137 prelink_cmds=$lt_prelink_cmds
16139 # Commands necessary for finishing linking programs.
16140 postlink_cmds=$lt_postlink_cmds
16142 # Specify filename containing input files.
16143 file_list_spec=$lt_file_list_spec
16145 # How to hardcode a shared library path into an executable.
16146 hardcode_action=$hardcode_action
16148 # ### END LIBTOOL CONFIG
16152 cat <<'_LT_EOF' >> "$cfgfile"
16154 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16156 # func_munge_path_list VARIABLE PATH
16157 # -----------------------------------
16158 # VARIABLE is name of variable containing _space_ separated list of
16159 # directories to be munged by the contents of PATH, which is string
16162 # string "DIR[ DIR]" will be prepended to VARIABLE
16164 # string "DIR[ DIR]" will be appended to VARIABLE
16165 # "DIRP[:DIRP]::[DIRA:]DIRA"
16166 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16167 # "DIRA[ DIRA]" will be appended to VARIABLE
16169 # VARIABLE will be replaced by "DIR[ DIR]"
16170 func_munge_path_list ()
16176 eval $1=\"`$ECHO $2 | $SED 's
/:/ /g
'` \$$1\"
16179 eval $1=\"\$$1 `$ECHO $2 | $SED 's
/:/ /g
'`\"
16182 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's
/.
*:://' -e 's
/:/ /g
'`\"
16183 eval $1=\"`$ECHO $2 | $SED -e 's
/::.
*//' -e 's
/:/ /g
'`\ \$$1\"
16186 eval $1=\"`$ECHO $2 | $SED 's
/:/ /g
'`\"
16192 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16193 func_cc_basename ()
16195 for cc_temp in $*""; do
16197 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16198 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16203 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16207 # ### END FUNCTIONS SHARED WITH CONFIGURE
16213 cat <<\_LT_EOF >> "$cfgfile"
16214 # AIX sometimes has problems with the GCC collect2 program. For some
16215 # reason, if we set the COLLECT_NAMES environment variable, the problems
16216 # vanish in a puff of smoke.
16217 if test set != "${COLLECT_NAMES+set}"; then
16219 export COLLECT_NAMES
16227 ltmain=$ac_aux_dir/ltmain.sh
16230 # We use sed instead of cat because bash on DJGPP gets confused if
16231 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16232 # text mode, it properly converts lines to CR/LF. This bash problem
16233 # is reportedly fixed, but why not run on old versions too?
16234 sed '$q' "$ltmain" >> "$cfgfile" \
16235 || (rm -f "$cfgfile"; exit 1)
16237 mv -f "$cfgfile" "$ofile" ||
16238 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16249 ac_clean_files=$ac_clean_files_save
16251 test $ac_write_fail = 0 ||
16252 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16255 # configure is writing to config.log, and then calls config.status.
16256 # config.status does its own redirection, appending to config.log.
16257 # Unfortunately, on DOS this fails, as config.log is still kept open
16258 # by configure, so config.status won't be able to
write to it
; its
16259 # output is simply discarded. So we exec the FD to /dev/null,
16260 # effectively closing config.log, so it can be properly (re)opened and
16261 # appended to by config.status. When coming back to configure, we
16262 # need to make the FD available again.
16263 if test "$no_create" != yes; then
16265 ac_config_status_args
=
16266 test "$silent" = yes &&
16267 ac_config_status_args
="$ac_config_status_args --quiet"
16269 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16271 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16272 # would make configure fail if this is the last instruction.
16273 $ac_cs_success || as_fn_exit
1
16275 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16277 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}