2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sqlcipher 3.37.2.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
588 PACKAGE_NAME
='sqlcipher'
589 PACKAGE_TARNAME
='sqlcipher'
590 PACKAGE_VERSION
='3.37.2'
591 PACKAGE_STRING
='sqlcipher 3.37.2'
595 # Factoring default headers for most tests.
596 ac_includes_default
="\
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
608 # ifdef HAVE_STDLIB_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
631 ac_subst_vars
='LTLIBOBJS
637 AMALGAMATION_LINE_MACROS
638 amalgamation_line_macros
742 program_transform_name
755 enable_option_checking
767 enable_cross_thread_connections
778 enable_load_extension
793 ac_precious_vars
='build_alias
804 amalgamation_line_macros'
807 # Initialize some variables set by options.
809 ac_init_version
=false
810 ac_unrecognized_opts
=
812 # The variables have the same names as the options, with
813 # dashes changed to underlines.
821 program_transform_name
=s
,x
,x
,
829 # Installation directory options.
830 # These are left unexpanded so users can "make install exec_prefix=/foo"
831 # and all the variables that are supposed to be based on exec_prefix
832 # by default will actually change.
833 # Use braces instead of parens because sh, perl, etc. also accept them.
834 # (The list follows the same order as the GNU Coding Standards.)
835 bindir
='${exec_prefix}/bin'
836 sbindir
='${exec_prefix}/sbin'
837 libexecdir
='${exec_prefix}/libexec'
838 datarootdir
='${prefix}/share'
839 datadir
='${datarootdir}'
840 sysconfdir
='${prefix}/etc'
841 sharedstatedir
='${prefix}/com'
842 localstatedir
='${prefix}/var'
843 runstatedir
='${localstatedir}/run'
844 includedir
='${prefix}/include'
845 oldincludedir
='/usr/include'
846 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
847 infodir
='${datarootdir}/info'
852 libdir
='${exec_prefix}/lib'
853 localedir
='${datarootdir}/locale'
854 mandir
='${datarootdir}/man'
860 # If the previous option needs an argument, assign it.
861 if test -n "$ac_prev"; then
862 eval $ac_prev=\
$ac_option
868 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873 # Accept the important Cygnus configure options, so we can diagnose typos.
875 case $ac_dashdash$ac_option in
879 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
881 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
884 -build |
--build |
--buil |
--bui |
--bu)
885 ac_prev
=build_alias
;;
886 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
887 build_alias
=$ac_optarg ;;
889 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
890 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
891 ac_prev
=cache_file
;;
892 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
893 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
894 cache_file
=$ac_optarg ;;
897 cache_file
=config.cache
;;
899 -datadir |
--datadir |
--datadi |
--datad)
901 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
902 datadir
=$ac_optarg ;;
904 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
905 |
--dataroo |
--dataro |
--datar)
906 ac_prev
=datarootdir
;;
907 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
908 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
909 datarootdir
=$ac_optarg ;;
911 -disable-* |
--disable-*)
912 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
915 as_fn_error $?
"invalid feature name: $ac_useropt"
916 ac_useropt_orig
=$ac_useropt
917 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
922 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
923 ac_unrecognized_sep
=', ';;
925 eval enable_
$ac_useropt=no
;;
927 -docdir |
--docdir |
--docdi |
--doc |
--do)
929 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
932 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
934 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
937 -enable-* |
--enable-*)
938 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
941 as_fn_error $?
"invalid feature name: $ac_useropt"
942 ac_useropt_orig
=$ac_useropt
943 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
948 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
949 ac_unrecognized_sep
=', ';;
951 eval enable_
$ac_useropt=\
$ac_optarg ;;
953 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
954 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
955 |
--exec |
--exe |
--ex)
956 ac_prev
=exec_prefix
;;
957 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
958 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
959 |
--exec=* |
--exe=* |
--ex=*)
960 exec_prefix
=$ac_optarg ;;
962 -gas |
--gas |
--ga |
--g)
963 # Obsolete; use --with-gas.
966 -help |
--help |
--hel |
--he |
-h)
968 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
969 ac_init_help
=recursive
;;
970 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
971 ac_init_help
=short
;;
973 -host |
--host |
--hos |
--ho)
974 ac_prev
=host_alias
;;
975 -host=* |
--host=* |
--hos=* |
--ho=*)
976 host_alias
=$ac_optarg ;;
978 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
980 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
982 htmldir
=$ac_optarg ;;
984 -includedir |
--includedir |
--includedi |
--included |
--include \
985 |
--includ |
--inclu |
--incl |
--inc)
986 ac_prev
=includedir
;;
987 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
988 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
989 includedir
=$ac_optarg ;;
991 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
993 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
994 infodir
=$ac_optarg ;;
996 -libdir |
--libdir |
--libdi |
--libd)
998 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1001 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1002 |
--libexe |
--libex |
--libe)
1003 ac_prev
=libexecdir
;;
1004 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1005 |
--libexe=* |
--libex=* |
--libe=*)
1006 libexecdir
=$ac_optarg ;;
1008 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1009 ac_prev
=localedir
;;
1010 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1011 localedir
=$ac_optarg ;;
1013 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1014 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1015 ac_prev
=localstatedir
;;
1016 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1017 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1018 localstatedir
=$ac_optarg ;;
1020 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1022 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1023 mandir
=$ac_optarg ;;
1025 -nfp |
--nfp |
--nf)
1026 # Obsolete; use --without-fp.
1029 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1030 |
--no-cr |
--no-c |
-n)
1033 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1034 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1037 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1038 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1039 |
--oldin |
--oldi |
--old |
--ol |
--o)
1040 ac_prev
=oldincludedir
;;
1041 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1042 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1043 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1044 oldincludedir
=$ac_optarg ;;
1046 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1048 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1049 prefix
=$ac_optarg ;;
1051 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1052 |
--program-pre |
--program-pr |
--program-p)
1053 ac_prev
=program_prefix
;;
1054 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1055 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1056 program_prefix
=$ac_optarg ;;
1058 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1059 |
--program-suf |
--program-su |
--program-s)
1060 ac_prev
=program_suffix
;;
1061 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1062 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1063 program_suffix
=$ac_optarg ;;
1065 -program-transform-name |
--program-transform-name \
1066 |
--program-transform-nam |
--program-transform-na \
1067 |
--program-transform-n |
--program-transform- \
1068 |
--program-transform |
--program-transfor \
1069 |
--program-transfo |
--program-transf \
1070 |
--program-trans |
--program-tran \
1071 |
--progr-tra |
--program-tr |
--program-t)
1072 ac_prev
=program_transform_name
;;
1073 -program-transform-name=* |
--program-transform-name=* \
1074 |
--program-transform-nam=* |
--program-transform-na=* \
1075 |
--program-transform-n=* |
--program-transform-=* \
1076 |
--program-transform=* |
--program-transfor=* \
1077 |
--program-transfo=* |
--program-transf=* \
1078 |
--program-trans=* |
--program-tran=* \
1079 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1080 program_transform_name
=$ac_optarg ;;
1082 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1084 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1085 pdfdir
=$ac_optarg ;;
1087 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1089 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1092 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1093 |
-silent |
--silent |
--silen |
--sile |
--sil)
1096 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1097 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1098 |
--run |
--ru |
--r)
1099 ac_prev
=runstatedir
;;
1100 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1101 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1102 |
--run=* |
--ru=* |
--r=*)
1103 runstatedir
=$ac_optarg ;;
1105 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1107 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1109 sbindir
=$ac_optarg ;;
1111 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1112 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1113 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1115 ac_prev
=sharedstatedir
;;
1116 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1117 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1118 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1120 sharedstatedir
=$ac_optarg ;;
1122 -site |
--site |
--sit)
1124 -site=* |
--site=* |
--sit=*)
1127 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1129 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1130 srcdir
=$ac_optarg ;;
1132 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1133 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1134 ac_prev
=sysconfdir
;;
1135 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1136 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1137 sysconfdir
=$ac_optarg ;;
1139 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1140 ac_prev
=target_alias
;;
1141 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1142 target_alias
=$ac_optarg ;;
1144 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1147 -version |
--version |
--versio |
--versi |
--vers |
-V)
1148 ac_init_version
=: ;;
1151 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1154 as_fn_error $?
"invalid package name: $ac_useropt"
1155 ac_useropt_orig
=$ac_useropt
1156 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1161 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1162 ac_unrecognized_sep
=', ';;
1164 eval with_
$ac_useropt=\
$ac_optarg ;;
1166 -without-* |
--without-*)
1167 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1170 as_fn_error $?
"invalid package name: $ac_useropt"
1171 ac_useropt_orig
=$ac_useropt
1172 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1177 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1178 ac_unrecognized_sep
=', ';;
1180 eval with_
$ac_useropt=no
;;
1183 # Obsolete; use --with-x.
1186 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1187 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1188 ac_prev
=x_includes
;;
1189 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1190 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1191 x_includes
=$ac_optarg ;;
1193 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1194 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1195 ac_prev
=x_libraries
;;
1196 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1197 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1198 x_libraries
=$ac_optarg ;;
1200 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1201 Try \`$0 --help' for more information"
1205 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1206 # Reject names that are not valid shell variable names.
1207 case $ac_envvar in #(
1208 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1209 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1211 eval $ac_envvar=\
$ac_optarg
1212 export $ac_envvar ;;
1215 # FIXME: should be removed in autoconf 3.0.
1216 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1217 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1218 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1219 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1225 if test -n "$ac_prev"; then
1226 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1227 as_fn_error $?
"missing argument to $ac_option"
1230 if test -n "$ac_unrecognized_opts"; then
1231 case $enable_option_checking in
1233 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1234 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1238 # Check all directory arguments for consistency.
1239 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1240 datadir sysconfdir sharedstatedir localstatedir includedir \
1241 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1242 libdir localedir mandir runstatedir
1244 eval ac_val
=\$
$ac_var
1245 # Remove trailing slashes.
1248 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1249 eval $ac_var=\
$ac_val;;
1251 # Be sure to have absolute directory names.
1253 [\\/$
]* | ?
:[\\/]* ) continue;;
1254 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1256 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1259 # There might be people who depend on the old broken behavior: `$host'
1260 # used to hold the argument of --host etc.
1261 # FIXME: To remove some day.
1264 target
=$target_alias
1266 # FIXME: To remove some day.
1267 if test "x$host_alias" != x
; then
1268 if test "x$build_alias" = x
; then
1269 cross_compiling
=maybe
1270 elif test "x$build_alias" != "x$host_alias"; then
1276 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1278 test "$silent" = yes && exec 6>/dev
/null
1281 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1282 ac_ls_di
=`ls -di .` &&
1283 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1284 as_fn_error $?
"working directory cannot be determined"
1285 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1286 as_fn_error $?
"pwd does not report name of working directory"
1289 # Find the source files, if location was not specified.
1290 if test -z "$srcdir"; then
1291 ac_srcdir_defaulted
=yes
1292 # Try the directory containing this script, then the parent directory.
1293 ac_confdir
=`$as_dirname -- "$as_myself" ||
1294 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295 X"$as_myself" : 'X\(//\)[^/]' \| \
1296 X"$as_myself" : 'X\(//\)$' \| \
1297 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1298 $as_echo X"$as_myself" |
1299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1321 ac_srcdir_defaulted
=no
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1325 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1327 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1329 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1331 # When building in place, set srcdir=.
1332 if test "$ac_abs_confdir" = "$ac_pwd"; then
1335 # Remove unnecessary trailing slashes from srcdir.
1336 # Double slashes in file names in object file debugging info
1337 # mess up M-x gdb in Emacs.
1339 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341 for ac_var
in $ac_precious_vars; do
1342 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1343 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1344 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1345 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1349 # Report the --help message.
1351 if test "$ac_init_help" = "long"; then
1352 # Omit some internal or obsolete options to make the list less imposing.
1353 # This message is too long to be a string in the A/UX 3.1 sh.
1355 \`configure' configures sqlcipher 3.37.2 to adapt to many kinds of systems.
1357 Usage: $0 [OPTION]... [VAR=VALUE]...
1359 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360 VAR=VALUE. See below for descriptions of some of the useful variables.
1362 Defaults for the options are specified in brackets.
1365 -h, --help display this help and exit
1366 --help=short display options specific to this package
1367 --help=recursive display the short help of all the included packages
1368 -V, --version display version information and exit
1369 -q, --quiet, --silent do not print \`checking ...' messages
1370 --cache-file=FILE cache test results in FILE [disabled]
1371 -C, --config-cache alias for \`--cache-file=config.cache'
1372 -n, --no-create do not create output files
1373 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1375 Installation directories:
1376 --prefix=PREFIX install architecture-independent files in PREFIX
1377 [$ac_default_prefix]
1378 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1381 By default, \`make install' will install all the files in
1382 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1383 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384 for instance \`--prefix=\$HOME'.
1386 For better control, use the options below.
1388 Fine tuning of the installation directories:
1389 --bindir=DIR user executables [EPREFIX/bin]
1390 --sbindir=DIR system admin executables [EPREFIX/sbin]
1391 --libexecdir=DIR program executables [EPREFIX/libexec]
1392 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1393 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1394 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1395 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1396 --libdir=DIR object code libraries [EPREFIX/lib]
1397 --includedir=DIR C header files [PREFIX/include]
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
1404 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlcipher]
1405 --htmldir=DIR html documentation [DOCDIR]
1406 --dvidir=DIR dvi documentation [DOCDIR]
1407 --pdfdir=DIR pdf documentation [DOCDIR]
1408 --psdir=DIR ps documentation [DOCDIR]
1414 --build=BUILD configure
for building on BUILD
[guessed
]
1415 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1419 if test -n "$ac_init_help"; then
1420 case $ac_init_help in
1421 short | recursive
) echo "Configuration of sqlcipher 3.37.2:";;
1426 --disable-option-checking ignore unrecognized
--enable/--with options
1427 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1428 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1429 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1430 --enable-static[=PKGS
] build static libraries
[default
=yes]
1431 --enable-fast-install[=PKGS
]
1432 optimize
for fast installation
[default
=yes]
1433 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1434 --disable-largefile omit support
for large files
1435 --disable-threadsafe Disable mutexing
1436 --enable-cross-thread-connections
1437 Allow connection sharing across threads
1438 --enable-releasemode Support libtool link to release mode
1439 --enable-tempstore Use an in-ram database
for temporary tables
1440 (never
,no
,yes,always
)
1441 --disable-tcl do not build TCL extension
1442 --enable-editline enable BSD editline support
1443 --disable-readline disable readline support
1444 --enable-debug enable debugging
& verbose explain
1445 --disable-amalgamation Disable the amalgamation and instead build all files
1447 --disable-load-extension
1448 Disable loading of external extensions
1449 --disable-math Disable math functions
1450 --enable-all Enable FTS4
, FTS5
, Geopoly
, JSON
, RTree
, Sessions
1451 --enable-memsys5 Enable MEMSYS5
1452 --enable-memsys3 Enable MEMSYS3
1453 --enable-fts3 Enable the FTS3 extension
1454 --enable-fts4 Enable the FTS4 extension
1455 --enable-fts5 Enable the FTS5 extension
1456 --enable-json1 Enable the JSON1 extension
1457 --enable-update-limit Enable the UPDATE
/DELETE LIMIT clause
1458 --enable-geopoly Enable the GEOPOLY extension
1459 --enable-rtree Enable the RTREE extension
1460 --enable-session Enable the SESSION extension
1461 --enable-gcov Enable coverage testing using gcov
1464 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1465 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1466 --with-pic[=PKGS
] try to use only PIC
/non-PIC objects
[default
=use
1468 --with-aix-soname=aix|svr4|both
1469 shared library versioning
(aka
"SONAME") variant to
1470 provide on AIX
, [default
=aix
].
1471 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1472 --with-sysroot[=DIR
] Search
for dependent libraries within DIR
(or the
1473 compiler
's sysroot if not specified).
1474 --with-crypto-lib Specify which crypto library to use
1475 --with-tcl=DIR directory containing tcl configuration
1477 --with-readline-lib specify readline library
1478 --with-readline-inc specify readline include paths
1480 Some influential environment variables:
1481 CC C compiler command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484 nonstandard directory <lib dir>
1485 LIBS libraries to pass to the linker, e.g. -l<library>
1486 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1487 you have headers in a nonstandard directory <include dir>
1489 User-defined run-time library search path.
1491 TCLLIBDIR Where to install tcl plugin
1492 amalgamation_line_macros
1495 Use these variables to override the choices made by `configure' or to
help
1496 it to
find libraries and programs with nonstandard names
/locations.
1498 Report bugs to the package provider.
1503 if test "$ac_init_help" = "recursive"; then
1504 # If there are subdirs, report their specific --help.
1505 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1506 test -d "$ac_dir" ||
1507 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1512 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1514 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1515 # A ".." for each directory in $ac_dir_suffix.
1516 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1517 case $ac_top_builddir_sub in
1518 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1519 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1522 ac_abs_top_builddir
=$ac_pwd
1523 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1524 # for backward compatibility:
1525 ac_top_builddir
=$ac_top_build_prefix
1528 .
) # We are building in place.
1530 ac_top_srcdir
=$ac_top_builddir_sub
1531 ac_abs_top_srcdir
=$ac_pwd ;;
1532 [\\/]* | ?
:[\\/]* ) # Absolute name.
1533 ac_srcdir
=$srcdir$ac_dir_suffix;
1534 ac_top_srcdir
=$srcdir
1535 ac_abs_top_srcdir
=$srcdir ;;
1537 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1538 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1539 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1541 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1543 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1544 # Check for guested configure.
1545 if test -f "$ac_srcdir/configure.gnu"; then
1547 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1548 elif test -f "$ac_srcdir/configure"; then
1550 $SHELL "$ac_srcdir/configure" --help=recursive
1552 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1554 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1558 test -n "$ac_init_help" && exit $ac_status
1559 if $ac_init_version; then
1561 sqlcipher configure
3.37.2
1562 generated by GNU Autoconf
2.69
1564 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1565 This configure
script is free software
; the Free Software Foundation
1566 gives unlimited permission to copy
, distribute and modify it.
1571 ## ------------------------ ##
1572 ## Autoconf initialization. ##
1573 ## ------------------------ ##
1575 # ac_fn_c_try_compile LINENO
1576 # --------------------------
1577 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1578 ac_fn_c_try_compile
()
1580 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1581 rm -f conftest.
$ac_objext
1582 if { { ac_try
="$ac_compile"
1584 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_compile") 2>conftest.err
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } && {
1598 test -z "$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1600 } && test -s conftest.$ac_objext; then :
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609 as_fn_set_status $ac_retval
1611 } # ac_fn_c_try_compile
1613 # ac_fn_c_try_link LINENO
1614 # -----------------------
1615 # Try to link conftest.$ac_ext, and return whether this succeeded.
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 rm -f conftest.$ac_objext conftest$ac_exeext
1620 if { { ac_try="$ac_link"
1622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1623 *) ac_try_echo
=$ac_try;;
1625 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_link") 2>conftest.err
1629 if test -s conftest.err
; then
1630 grep -v '^ *+' conftest.err
>conftest.er1
1631 cat conftest.er1
>&5
1632 mv -f conftest.er1 conftest.err
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && {
1636 test -z "$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 } && test -s conftest
$ac_exeext && {
1639 test "$cross_compiling" = yes ||
1640 test -x conftest
$ac_exeext
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.
$ac_ext >&5
1649 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1650 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1651 # interfere with the next link command; also delete a directory that is
1652 # left behind by Apple's compiler. We do this before executing the actions.
1653 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status
$ac_retval
1657 } # ac_fn_c_try_link
1659 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1660 # -------------------------------------------------------
1661 # Tests whether HEADER exists and can be compiled using the include files in
1662 # INCLUDES, setting the cache variable VAR accordingly.
1663 ac_fn_c_check_header_compile
()
1665 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1667 $as_echo_n "checking for $2... " >&6; }
1668 if eval \
${$3+:} false
; then :
1669 $as_echo_n "(cached) " >&6
1671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1672 /* end confdefs.h. */
1676 if ac_fn_c_try_compile
"$LINENO"; then :
1681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1685 $as_echo "$ac_res" >&6; }
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 } # ac_fn_c_check_header_compile
1690 # ac_fn_c_try_cpp LINENO
1691 # ----------------------
1692 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1695 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1696 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1698 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } > conftest.i && {
1712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1727 # ac_fn_c_try_run LINENO
1728 # ----------------------
1729 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1730 # that executables *can* be run.
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 if { { ac_try="$ac_link"
1736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1737 *) ac_try_echo
=$ac_try;;
1739 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_link") 2>&5
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1745 { { case "(($ac_try" in
1746 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_try") 2>&5
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; }; }; then :
1757 $as_echo "$as_me: program exited with status $ac_status" >&5
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1761 ac_retval=$ac_status
1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status $ac_retval
1769 # ac_fn_c_check_func LINENO FUNC VAR
1770 # ----------------------------------
1771 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1772 ac_fn_c_check_func ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if eval \${$3+:} false; then :
1778 $as_echo_n "(cached) " >&6
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1782 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1784 #define $2 innocuous_$2
1786 /* System header to define __stub macros and hopefully few prototypes,
1787 which can conflict with char $2 (); below.
1788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1789 <limits.h> exists even on freestanding compilers. */
1792 # include <limits.h>
1794 # include <assert.h>
1799 /* Override any GCC internal prototype to avoid an error.
1800 Use char because int might match the return type of a GCC
1801 builtin and then its argument prototype would still apply. */
1806 /* The GNU C library defines this for functions which it implements
1807 to always fail with ENOSYS. Some functions are actually named
1808 something starting with __ and the normal name is an alias. */
1809 #if defined __stub_$2 || defined __stub___$2
1821 if ac_fn_c_try_link "$LINENO"; then :
1826 rm -f core conftest.err conftest.$ac_objext \
1827 conftest$ac_exeext conftest.$ac_ext
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 $as_echo "$ac_res" >&6; }
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834 } # ac_fn_c_check_func
1836 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1837 # -------------------------------------------
1838 # Tests whether TYPE exists after having included INCLUDES, setting cache
1839 # variable VAR accordingly.
1840 ac_fn_c_check_type ()
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 $as_echo_n "checking for $2... " >&6; }
1845 if eval \${$3+:} false; then :
1846 $as_echo_n "(cached) " >&6
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1861 if ac_fn_c_try_compile "$LINENO"; then :
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1874 if ac_fn_c_try_compile "$LINENO"; then :
1879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885 $as_echo "$ac_res" >&6; }
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 } # ac_fn_c_check_type
1890 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1891 # -------------------------------------------------------
1892 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1893 # the include files in INCLUDES and setting the cache variable VAR
1895 ac_fn_c_check_header_mongrel ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 if eval \${$3+:} false; then :
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if eval \${$3+:} false; then :
1902 $as_echo_n "(cached) " >&6
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 $as_echo "$ac_res" >&6; }
1908 # Is the header compilable?
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1910 $as_echo_n "checking $2 usability... " >&6; }
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917 ac_header_compiler=yes
1919 ac_header_compiler=no
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1923 $as_echo "$ac_header_compiler" >&6; }
1925 # Is the header present?
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1927 $as_echo_n "checking $2 presence... " >&6; }
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1932 if ac_fn_c_try_cpp "$LINENO"; then :
1933 ac_header_preproc=yes
1935 ac_header_preproc=no
1937 rm -f conftest.err conftest.i conftest.$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1939 $as_echo "$ac_header_preproc" >&6; }
1941 # So? What about this header?
1942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1945 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1947 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1951 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1953 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1955 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1957 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1959 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 $as_echo_n "checking for $2... " >&6; }
1964 if eval \${$3+:} false; then :
1965 $as_echo_n "(cached) " >&6
1967 eval "$3=\$ac_header_compiler"
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975 } # ac_fn_c_check_header_mongrel
1976 cat >config.log <<_ACEOF
1977 This file contains any messages produced by compilers while
1978 running configure, to aid debugging if configure makes a mistake.
1980 It was created by sqlcipher $as_me 3.37.2, which was
1981 generated by GNU Autoconf 2.69. Invocation command line was
1993 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1994 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1995 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1996 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1997 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1999 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2000 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2002 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2003 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2004 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2005 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2006 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2007 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2008 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 test -z "$as_dir" && as_dir=.
2017 $as_echo "PATH: $as_dir"
2033 # Keep a trace of the command line.
2034 # Strip out --no-create and --no-recursion so they do not pile up.
2035 # Strip out --silent because we don't want to record it for future runs.
2036 # Also quote any args containing shell meta-characters.
2037 # Make two passes to allow for proper duplicate-argument suppression.
2041 ac_must_keep_next=false
2047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2049 | -silent | --silent | --silen | --sile | --sil)
2052 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2055 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2057 as_fn_append ac_configure_args1 " '$ac_arg'"
2058 if test $ac_must_keep_next = true; then
2059 ac_must_keep_next=false # Got value, back to normal.
2062 *=* | --config-cache | -C | -disable-* | --disable-* \
2063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2065 | -with-* | --with-* | -without-* | --without-* | --x)
2066 case "$ac_configure_args0 " in
2067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2070 -* ) ac_must_keep_next=true ;;
2073 as_fn_append ac_configure_args " '$ac_arg'"
2078 { ac_configure_args0=; unset ac_configure_args0;}
2079 { ac_configure_args1=; unset ac_configure_args1;}
2081 # When interrupted or exit'd, cleanup temporary files, and complete
2082 # config.log. We remove comments because anyway the quotes in there
2083 # would cause problems or look ugly.
2084 # WARNING: Use '\'' to represent an apostrophe within the trap.
2085 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2086 trap 'exit_status=$?
2087 # Save into config.log some information that might help in debugging.
2091 $as_echo "## ---------------- ##
2092 ## Cache variables. ##
2093 ## ---------------- ##"
2095 # The following way of writing the cache mishandles newlines in values,
2097 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2098 eval ac_val=\$$ac_var
2102 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2103 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2106 _ | IFS | as_nl) ;; #(
2107 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2108 *) { eval $ac_var=; unset $ac_var;} ;;
2113 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2114 *${as_nl}ac_space=\ *)
2116 "s/'\''/'\''\\\\'\'''\''/g;
2117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2120 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2127 $as_echo "## ----------------- ##
2128 ## Output variables. ##
2129 ## ----------------- ##"
2131 for ac_var in $ac_subst_vars
2133 eval ac_val=\$$ac_var
2135 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2137 $as_echo "$ac_var='\''$ac_val'\''"
2141 if test -n "$ac_subst_files"; then
2142 $as_echo "## ------------------- ##
2143 ## File substitutions. ##
2144 ## ------------------- ##"
2146 for ac_var in $ac_subst_files
2148 eval ac_val=\$$ac_var
2150 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2152 $as_echo "$ac_var='\''$ac_val'\''"
2157 if test -s confdefs.h; then
2158 $as_echo "## ----------- ##
2165 test "$ac_signal" != 0 &&
2166 $as_echo "$as_me: caught signal $ac_signal"
2167 $as_echo "$as_me: exit $exit_status"
2169 rm -f core *.core core.conftest.* &&
2170 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2173 for ac_signal in 1 2 13 15; do
2174 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2178 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2179 rm -f -r conftest* confdefs.h
2181 $as_echo "/* confdefs.h */" > confdefs.h
2183 # Predefined preprocessor variables.
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_NAME "$PACKAGE_NAME"
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_STRING "$PACKAGE_STRING"
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_URL "$PACKAGE_URL"
2210 # Let the site file select an alternate cache file if it wants to.
2211 # Prefer an explicitly selected file to automatically selected ones.
2214 if test -n "$CONFIG_SITE"; then
2215 # We do not want a PATH search for config.site.
2216 case $CONFIG_SITE in #((
2217 -*) ac_site_file1=./$CONFIG_SITE;;
2218 */*) ac_site_file1=$CONFIG_SITE;;
2219 *) ac_site_file1=./$CONFIG_SITE;;
2221 elif test "x$prefix" != xNONE; then
2222 ac_site_file1=$prefix/share/config.site
2223 ac_site_file2=$prefix/etc/config.site
2225 ac_site_file1=$ac_default_prefix/share/config.site
2226 ac_site_file2=$ac_default_prefix/etc/config.site
2228 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2230 test "x$ac_site_file" = xNONE && continue
2231 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2233 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2234 sed 's/^/| /' "$ac_site_file" >&5
2236 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2238 as_fn_error $? "failed to load site
script $ac_site_file
2239 See \
`config.log' for more details" "$LINENO" 5; }
2243 if test -r "$cache_file"; then
2244 # Some versions of bash will fail to source /dev/null (special files
2245 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2246 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2248 $as_echo "$as_me: loading cache $cache_file" >&6;}
2250 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2251 *) . "./$cache_file";;
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2256 $as_echo "$as_me: creating cache $cache_file" >&6;}
2260 # Check that the precious variables saved in the cache have kept the same
2262 ac_cache_corrupted=false
2263 for ac_var in $ac_precious_vars; do
2264 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2265 eval ac_new_set=\$ac_env_${ac_var}_set
2266 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2267 eval ac_new_val=\$ac_env_${ac_var}_value
2268 case $ac_old_set,$ac_new_set in
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2271 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2272 ac_cache_corrupted=: ;;
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2275 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2276 ac_cache_corrupted=: ;;
2279 if test "x$ac_old_val" != "x$ac_new_val"; then
2280 # differences in whitespace do not lead to failure.
2281 ac_old_val_w=`echo x
$ac_old_val`
2282 ac_new_val_w=`echo x
$ac_new_val`
2283 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2285 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2286 ac_cache_corrupted=:
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2289 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2290 eval $ac_var=\$ac_old_val
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2293 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2295 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2298 # Pass precious variables to config.status.
2299 if test "$ac_new_set" = set; then
2301 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2302 *) ac_arg=$ac_var=$ac_new_val ;;
2304 case " $ac_configure_args " in
2305 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2306 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2310 if $ac_cache_corrupted; then
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2314 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2315 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2317 ## -------------------- ##
2318 ## Main body of script. ##
2319 ## -------------------- ##
2322 ac_cpp='$CPP $CPPFLAGS'
2323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2329 sqlite_version_sanity_check=`cat $srcdir/VERSION |
tr -d '\n'`
2330 if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2331 as_fn_error $? "configure script is out of date:
2332 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2333 top level VERSION file = $sqlite_version_sanity_check
2334 please regen with autoconf" "$LINENO" 5
2341 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2342 if test -f "$ac_dir/install-sh"; then
2344 ac_install_sh="$ac_aux_dir/install-sh -c"
2346 elif test -f "$ac_dir/install.sh"; then
2348 ac_install_sh="$ac_aux_dir/install.sh -c"
2350 elif test -f "$ac_dir/shtool"; then
2352 ac_install_sh="$ac_aux_dir/shtool install -c"
2356 if test -z "$ac_aux_dir"; then
2357 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2360 # These three variables are undocumented and unsupported,
2361 # and are intended to be withdrawn in a future Autoconf release.
2362 # They can cause serious problems if a builder's source tree is in a directory
2363 # whose full name contains unusual characters.
2364 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2365 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2366 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
2372 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
2377 macro_version='2.4.6'
2378 macro_revision='2.4.6'
2392 ltmain=$ac_aux_dir/ltmain.sh
2394 # Make sure we can run config.sub.
2395 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2396 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2399 $as_echo_n "checking build system type... " >&6; }
2400 if ${ac_cv_build+:} false; then :
2401 $as_echo_n "(cached) " >&6
2403 ac_build_alias=$build_alias
2404 test "x$ac_build_alias" = x &&
2405 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2406 test "x$ac_build_alias" = x &&
2407 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2408 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2409 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2413 $as_echo "$ac_cv_build" >&6; }
2414 case $ac_cv_build in
2416 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2419 ac_save_IFS=$IFS; IFS='-'
2425 # Remember, the first character of IFS is used to create $*,
2426 # except with old shells:
2429 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2433 $as_echo_n "checking host system type... " >&6; }
2434 if ${ac_cv_host+:} false; then :
2435 $as_echo_n "(cached) " >&6
2437 if test "x$host_alias" = x; then
2438 ac_cv_host=$ac_cv_build
2440 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2441 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2446 $as_echo "$ac_cv_host" >&6; }
2449 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2452 ac_save_IFS=$IFS; IFS='-'
2458 # Remember, the first character of IFS is used to create $*,
2459 # except with old shells:
2462 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2465 # Backslashify metacharacters that are still active within
2466 # double-quoted strings.
2467 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
2469 # Same as above, but do not quote variable references.
2470 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
2472 # Sed substitution to delay expansion of an escaped shell variable in a
2473 # double_quote_subst'ed string.
2474 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2476 # Sed substitution to delay expansion of an escaped single quote.
2477 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2479 # Sed substitution to avoid accidental globbing in evaled expressions
2480 no_glob_subst='s/\*/\\\*/g'
2482 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2483 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2484 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print
strings" >&5
2487 $as_echo_n "checking how to print
strings...
" >&6; }
2488 # Test print first, because it will be a builtin if present.
2489 if test "X
`( print -r -- -n ) 2>/dev/null`" = X-n && \
2490 test "X
`print -r -- $ECHO 2>/dev/null`" = "X
$ECHO"; then
2492 elif test "X
`printf %s $ECHO 2>/dev/null`" = "X
$ECHO"; then
2495 # Use this function as a fallback that always works.
2496 func_fallback_echo ()
2498 eval 'cat <<_LTECHO_EOF
2502 ECHO='func_fallback_echo'
2505 # func_echo_all arg...
2506 # Invoke $ECHO with all args, space-separated.
2513 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: printf" >&5
2514 $as_echo "printf" >&6; } ;;
2515 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: print
-r" >&5
2516 $as_echo "print
-r" >&6; } ;;
2517 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: cat" >&5
2518 $as_echo "cat" >&6; } ;;
2535 ac_cpp='$CPP $CPPFLAGS'
2536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2539 if test -n "$ac_tool_prefix"; then
2540 # Extract the first word of "${ac_tool_prefix}gcc
", so it can be a program name with args.
2541 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
2543 $as_echo_n "checking
for $ac_word...
" >&6; }
2544 if ${ac_cv_prog_CC+:} false; then :
2545 $as_echo_n "(cached
) " >&6
2547 if test -n "$CC"; then
2548 ac_cv_prog_CC="$CC" # Let the user override the test.
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554 test -z "$as_dir" && as_dir=.
2555 for ac_exec_ext in '' $ac_executable_extensions; do
2556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2557 ac_cv_prog_CC="${ac_tool_prefix}gcc
"
2558 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
2568 if test -n "$CC"; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC" >&5
2570 $as_echo "$CC" >&6; }
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
2573 $as_echo "no
" >&6; }
2578 if test -z "$ac_cv_prog_CC"; then
2580 # Extract the first word of "gcc
", so it can be a program name with args.
2581 set dummy gcc; ac_word=$2
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
2583 $as_echo_n "checking
for $ac_word...
" >&6; }
2584 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2585 $as_echo_n "(cached
) " >&6
2587 if test -n "$ac_ct_CC"; then
2588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 test -z "$as_dir" && as_dir=.
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2597 ac_cv_prog_ac_ct_CC="gcc
"
2598 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
2607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2608 if test -n "$ac_ct_CC"; then
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_CC" >&5
2610 $as_echo "$ac_ct_CC" >&6; }
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
2613 $as_echo "no
" >&6; }
2616 if test "x
$ac_ct_CC" = x; then
2619 case $cross_compiling:$ac_tool_warned in
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
2622 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
2623 ac_tool_warned=yes ;;
2631 if test -z "$CC"; then
2632 if test -n "$ac_tool_prefix"; then
2633 # Extract the first word of "${ac_tool_prefix}cc
", so it can be a program name with args.
2634 set dummy ${ac_tool_prefix}cc; ac_word=$2
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
2636 $as_echo_n "checking
for $ac_word...
" >&6; }
2637 if ${ac_cv_prog_CC+:} false; then :
2638 $as_echo_n "(cached
) " >&6
2640 if test -n "$CC"; then
2641 ac_cv_prog_CC="$CC" # Let the user override the test.
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2650 ac_cv_prog_CC="${ac_tool_prefix}cc
"
2651 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
2661 if test -n "$CC"; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC" >&5
2663 $as_echo "$CC" >&6; }
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
2666 $as_echo "no
" >&6; }
2672 if test -z "$CC"; then
2673 # Extract the first word of "cc
", so it can be a program name with args.
2674 set dummy cc; ac_word=$2
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
2676 $as_echo_n "checking
for $ac_word...
" >&6; }
2677 if ${ac_cv_prog_CC+:} false; then :
2678 $as_echo_n "(cached
) " >&6
2680 if test -n "$CC"; then
2681 ac_cv_prog_CC="$CC" # Let the user override the test.
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr
/ucb
/cc
"; then
2692 ac_prog_rejected=yes
2696 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
2703 if test $ac_prog_rejected = yes; then
2704 # We found a bogon in the path, so make sure we never use it.
2705 set dummy $ac_cv_prog_CC
2707 if test $# != 0; then
2708 # We chose a different compiler from the bogus one.
2709 # However, it has the same basename, so the bogon will be chosen
2710 # first if we set CC to just the basename; use the full file name.
2712 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@
"
2718 if test -n "$CC"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC" >&5
2720 $as_echo "$CC" >&6; }
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
2723 $as_echo "no
" >&6; }
2728 if test -z "$CC"; then
2729 if test -n "$ac_tool_prefix"; then
2730 for ac_prog in cl.exe
2732 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2733 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
2735 $as_echo_n "checking
for $ac_word...
" >&6; }
2736 if ${ac_cv_prog_CC+:} false; then :
2737 $as_echo_n "(cached
) " >&6
2739 if test -n "$CC"; then
2740 ac_cv_prog_CC="$CC" # Let the user override the test.
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2750 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
2760 if test -n "$CC"; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC" >&5
2762 $as_echo "$CC" >&6; }
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
2765 $as_echo "no
" >&6; }
2769 test -n "$CC" && break
2772 if test -z "$CC"; then
2774 for ac_prog in cl.exe
2776 # Extract the first word of "$ac_prog", so it can be a program name with args.
2777 set dummy $ac_prog; ac_word=$2
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
2779 $as_echo_n "checking
for $ac_word...
" >&6; }
2780 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2781 $as_echo_n "(cached
) " >&6
2783 if test -n "$ac_ct_CC"; then
2784 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2793 ac_cv_prog_ac_ct_CC="$ac_prog"
2794 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
2803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2804 if test -n "$ac_ct_CC"; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_CC" >&5
2806 $as_echo "$ac_ct_CC" >&6; }
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
2809 $as_echo "no
" >&6; }
2813 test -n "$ac_ct_CC" && break
2816 if test "x
$ac_ct_CC" = x; then
2819 case $cross_compiling:$ac_tool_warned in
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
2822 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
2823 ac_tool_warned=yes ;;
2832 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2834 as_fn_error $? "no acceptable C compiler found in \$PATH
2835 See \`config.log' for more details
" "$LINENO" 5; }
2837 # Provide some information about the compiler.
2838 $as_echo "$as_me:${as_lineno-$LINENO}: checking
for C compiler version
" >&5
2841 for ac_option in --version -v -V -qversion; do
2842 { { ac_try="$ac_compiler $ac_option >&5"
2844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845 *) ac_try_echo=$ac_try;;
2847 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2848 $as_echo "$ac_try_echo"; } >&5
2849 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2851 if test -s conftest.err; then
2853 ... rest of stderr output deleted ...
2854 10q' conftest.err >conftest.er1
2855 cat conftest.er1 >&5
2857 rm -f conftest.er1 conftest.err
2858 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
2859 test $ac_status = 0; }
2862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2863 /* end confdefs.h. */
2873 ac_clean_files_save=$ac_clean_files
2874 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out
"
2875 # Try to create an executable without -o first, disregard a.out.
2876 # It will help us diagnose broken compilers, and finding out an intuition
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works
" >&5
2879 $as_echo_n "checking whether the C compiler works...
" >&6; }
2880 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2882 # The possible output files:
2883 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.
*"
2886 for ac_file in $ac_files
2889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2890 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2895 if { { ac_try="$ac_link_default"
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2900 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2901 $as_echo "$ac_try_echo"; } >&5
2902 (eval "$ac_link_default") 2>&5
2904 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
2905 test $ac_status = 0; }; then :
2906 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2907 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2908 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2909 # so that the user can short-circuit this test for compilers unknown to
2911 for ac_file in $ac_files ''
2913 test -f "$ac_file" || continue
2915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2918 # We found the default executable, but exeext='' is most
2922 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2924 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2926 # We set ac_cv_exeext here because the later test for it is not
2927 # safe: cross compilers may not add the suffix if given an `-o'
2928 # argument, so we may need to know it at that point already.
2929 # Even if this section looks crufty: it has the advantage of
2936 test "$ac_cv_exeext" = no && ac_cv_exeext=
2941 if test -z "$ac_file"; then :
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
2943 $as_echo "no
" >&6; }
2944 $as_echo "$as_me: failed program was
:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2949 as_fn_error 77 "C compiler cannot create executables
2950 See \`config.log' for more details
" "$LINENO" 5; }
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
2953 $as_echo "yes" >&6; }
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for C compiler default output
file name
" >&5
2956 $as_echo_n "checking
for C compiler default output
file name...
" >&6; }
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_file" >&5
2958 $as_echo "$ac_file" >&6; }
2959 ac_exeext=$ac_cv_exeext
2961 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2962 ac_clean_files=$ac_clean_files_save
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
2964 $as_echo_n "checking
for suffix of executables...
" >&6; }
2965 if { { ac_try="$ac_link"
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2970 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2971 $as_echo "$ac_try_echo"; } >&5
2972 (eval "$ac_link") 2>&5
2974 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
2975 test $ac_status = 0; }; then :
2976 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2977 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2978 # work properly (i.e., refer to `conftest.exe'), while it won't with
2980 for ac_file in conftest.exe conftest conftest.*; do
2981 test -f "$ac_file" || continue
2983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2984 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2992 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2993 See \`config.log' for more details
" "$LINENO" 5; }
2995 rm -f conftest conftest$ac_cv_exeext
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
2997 $as_echo "$ac_cv_exeext" >&6; }
2999 rm -f conftest.$ac_ext
3000 EXEEXT=$ac_cv_exeext
3002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3003 /* end confdefs.h. */
3008 FILE *f = fopen ("conftest.out
", "w
");
3009 return ferror (f) || fclose (f) != 0;
3015 ac_clean_files="$ac_clean_files conftest.out
"
3016 # Check that the compiler produces executables we can run. If not, either
3017 # the compiler is broken, or we cross compile.
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3019 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3020 if test "$cross_compiling" != yes; then
3021 { { ac_try="$ac_link"
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3026 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3027 $as_echo "$ac_try_echo"; } >&5
3028 (eval "$ac_link") 2>&5
3030 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3031 test $ac_status = 0; }
3032 if { ac_try='./conftest$ac_cv_exeext'
3033 { { case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3037 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3038 $as_echo "$ac_try_echo"; } >&5
3039 (eval "$ac_try") 2>&5
3041 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3042 test $ac_status = 0; }; }; then
3045 if test "$cross_compiling" = maybe; then
3048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3050 as_fn_error $? "cannot run C compiled programs.
3051 If you meant to cross compile, use \`--host'.
3052 See \
`config.log' for more details" "$LINENO" 5; }
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3057 $as_echo "$cross_compiling" >&6; }
3059 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3060 ac_clean_files=$ac_clean_files_save
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3062 $as_echo_n "checking for suffix of object files... " >&6; }
3063 if ${ac_cv_objext+:} false; then :
3064 $as_echo_n "(cached) " >&6
3066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067 /* end confdefs.h. */
3077 rm -f conftest.o conftest.obj
3078 if { { ac_try="$ac_compile"
3080 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3081 *) ac_try_echo
=$ac_try;;
3083 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3084 $as_echo "$ac_try_echo"; } >&5
3085 (eval "$ac_compile") 2>&5
3087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3088 test $ac_status = 0; }; then :
3089 for ac_file
in conftest.o conftest.obj conftest.
*; do
3090 test -f "$ac_file" ||
continue;
3092 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM
) ;;
3093 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3098 $as_echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.
$ac_ext >&5
3101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3103 as_fn_error $?
"cannot compute suffix of object files: cannot compile
3104 See \`config.log' for more details" "$LINENO" 5; }
3106 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3109 $as_echo "$ac_cv_objext" >&6; }
3110 OBJEXT
=$ac_cv_objext
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3113 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3114 if ${ac_cv_c_compiler_gnu+:} false
; then :
3115 $as_echo_n "(cached) " >&6
3117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3118 /* end confdefs.h. */
3131 if ac_fn_c_try_compile
"$LINENO"; then :
3136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3137 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3141 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3142 if test $ac_compiler_gnu = yes; then
3147 ac_test_CFLAGS
=${CFLAGS+set}
3148 ac_save_CFLAGS
=$CFLAGS
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3150 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3151 if ${ac_cv_prog_cc_g+:} false
; then :
3152 $as_echo_n "(cached) " >&6
3154 ac_save_c_werror_flag
=$ac_c_werror_flag
3155 ac_c_werror_flag
=yes
3158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h. */
3169 if ac_fn_c_try_compile
"$LINENO"; then :
3173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3174 /* end confdefs.h. */
3184 if ac_fn_c_try_compile
"$LINENO"; then :
3187 ac_c_werror_flag
=$ac_save_c_werror_flag
3189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3190 /* end confdefs.h. */
3200 if ac_fn_c_try_compile
"$LINENO"; then :
3203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3208 ac_c_werror_flag
=$ac_save_c_werror_flag
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3211 $as_echo "$ac_cv_prog_cc_g" >&6; }
3212 if test "$ac_test_CFLAGS" = set; then
3213 CFLAGS
=$ac_save_CFLAGS
3214 elif test $ac_cv_prog_cc_g = yes; then
3215 if test "$GCC" = yes; then
3221 if test "$GCC" = yes; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3228 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3229 if ${ac_cv_prog_cc_c89+:} false
; then :
3230 $as_echo_n "(cached) " >&6
3232 ac_cv_prog_cc_c89
=no
3234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3235 /* end confdefs.h. */
3239 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3240 struct buf { int x; };
3241 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3242 static char *e (p, i)
3248 static char *f (char * (*g) (char **, int), char **p, ...)
3253 s = g (p, va_arg (v,int));
3258 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3259 function prototypes and stuff, but not '\xHH' hex character constants.
3260 These don't provoke an error unfortunately, instead are silently treated
3261 as 'x'. The following induces an error, until -std is added to get
3262 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3263 array size at least. It's necessary to write '\x00'==0 to get something
3264 that's true only with -std. */
3265 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3267 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3268 inside strings and character constants. */
3270 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3272 int test (int i, double x);
3273 struct s1 {int (*f) (int a);};
3274 struct s2 {int (*f) (double a);};
3275 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3281 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3286 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
3287 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3289 CC
="$ac_save_CC $ac_arg"
3290 if ac_fn_c_try_compile
"$LINENO"; then :
3291 ac_cv_prog_cc_c89
=$ac_arg
3293 rm -f core conftest.err conftest.
$ac_objext
3294 test "x$ac_cv_prog_cc_c89" != "xno" && break
3296 rm -f conftest.
$ac_ext
3301 case "x$ac_cv_prog_cc_c89" in
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3304 $as_echo "none needed" >&6; } ;;
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3307 $as_echo "unsupported" >&6; } ;;
3309 CC
="$CC $ac_cv_prog_cc_c89"
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3311 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3313 if test "x$ac_cv_prog_cc_c89" != xno
; then :
3318 ac_cpp
='$CPP $CPPFLAGS'
3319 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3324 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3325 if ${ac_cv_path_SED+:} false
; then :
3326 $as_echo_n "(cached) " >&6
3328 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
3329 for ac_i
in 1 2 3 4 5 6 7; do
3330 ac_script
="$ac_script$as_nl$ac_script"
3332 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
3333 { ac_script
=; unset ac_script
;}
3334 if test -z "$SED"; then
3335 ac_path_SED_found
=false
3336 # Loop through the user's path and test for each of PROGNAME-LIST
3337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3341 test -z "$as_dir" && as_dir
=.
3342 for ac_prog
in sed gsed
; do
3343 for ac_exec_ext
in '' $ac_executable_extensions; do
3344 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
3345 as_fn_executable_p
"$ac_path_SED" ||
continue
3346 # Check for GNU ac_path_SED and select it if it is found.
3347 # Check for GNU $ac_path_SED
3348 case `"$ac_path_SED" --version 2>&1` in
3350 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
3353 $as_echo_n 0123456789 >"conftest.in"
3356 cat "conftest.in" "conftest.in" >"conftest.tmp"
3357 mv "conftest.tmp" "conftest.in"
3358 cp "conftest.in" "conftest.nl"
3359 $as_echo '' >> "conftest.nl"
3360 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3361 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3362 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3363 if test $ac_count -gt ${ac_path_SED_max-0}; then
3364 # Best one so far, save it but keep looking for a better one
3365 ac_cv_path_SED
="$ac_path_SED"
3366 ac_path_SED_max
=$ac_count
3368 # 10*(2^10) chars as input seems more than enough
3369 test $ac_count -gt 10 && break
3371 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3374 $ac_path_SED_found && break 3
3379 if test -z "$ac_cv_path_SED"; then
3380 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3388 $as_echo "$ac_cv_path_SED" >&6; }
3389 SED
="$ac_cv_path_SED"
3392 test -z "$SED" && SED
=sed
3393 Xsed
="$SED -e 1s/^X//"
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3406 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3407 if ${ac_cv_path_GREP+:} false
; then :
3408 $as_echo_n "(cached) " >&6
3410 if test -z "$GREP"; then
3411 ac_path_GREP_found
=false
3412 # Loop through the user's path and test for each of PROGNAME-LIST
3413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3414 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3417 test -z "$as_dir" && as_dir
=.
3418 for ac_prog
in grep ggrep
; do
3419 for ac_exec_ext
in '' $ac_executable_extensions; do
3420 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3421 as_fn_executable_p
"$ac_path_GREP" ||
continue
3422 # Check for GNU ac_path_GREP and select it if it is found.
3423 # Check for GNU $ac_path_GREP
3424 case `"$ac_path_GREP" --version 2>&1` in
3426 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3429 $as_echo_n 0123456789 >"conftest.in"
3432 cat "conftest.in" "conftest.in" >"conftest.tmp"
3433 mv "conftest.tmp" "conftest.in"
3434 cp "conftest.in" "conftest.nl"
3435 $as_echo 'GREP' >> "conftest.nl"
3436 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3437 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3438 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3439 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3440 # Best one so far, save it but keep looking for a better one
3441 ac_cv_path_GREP
="$ac_path_GREP"
3442 ac_path_GREP_max
=$ac_count
3444 # 10*(2^10) chars as input seems more than enough
3445 test $ac_count -gt 10 && break
3447 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3450 $ac_path_GREP_found && break 3
3455 if test -z "$ac_cv_path_GREP"; then
3456 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3459 ac_cv_path_GREP
=$GREP
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3464 $as_echo "$ac_cv_path_GREP" >&6; }
3465 GREP
="$ac_cv_path_GREP"
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3469 $as_echo_n "checking for egrep... " >&6; }
3470 if ${ac_cv_path_EGREP+:} false
; then :
3471 $as_echo_n "(cached) " >&6
3473 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3474 then ac_cv_path_EGREP
="$GREP -E"
3476 if test -z "$EGREP"; then
3477 ac_path_EGREP_found
=false
3478 # Loop through the user's path and test for each of PROGNAME-LIST
3479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3480 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3483 test -z "$as_dir" && as_dir
=.
3484 for ac_prog
in egrep; do
3485 for ac_exec_ext
in '' $ac_executable_extensions; do
3486 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3487 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3488 # Check for GNU ac_path_EGREP and select it if it is found.
3489 # Check for GNU $ac_path_EGREP
3490 case `"$ac_path_EGREP" --version 2>&1` in
3492 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3495 $as_echo_n 0123456789 >"conftest.in"
3498 cat "conftest.in" "conftest.in" >"conftest.tmp"
3499 mv "conftest.tmp" "conftest.in"
3500 cp "conftest.in" "conftest.nl"
3501 $as_echo 'EGREP' >> "conftest.nl"
3502 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3503 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3504 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3505 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3506 # Best one so far, save it but keep looking for a better one
3507 ac_cv_path_EGREP
="$ac_path_EGREP"
3508 ac_path_EGREP_max
=$ac_count
3510 # 10*(2^10) chars as input seems more than enough
3511 test $ac_count -gt 10 && break
3513 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3516 $ac_path_EGREP_found && break 3
3521 if test -z "$ac_cv_path_EGREP"; then
3522 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3525 ac_cv_path_EGREP
=$EGREP
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3531 $as_echo "$ac_cv_path_EGREP" >&6; }
3532 EGREP
="$ac_cv_path_EGREP"
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3536 $as_echo_n "checking for fgrep... " >&6; }
3537 if ${ac_cv_path_FGREP+:} false
; then :
3538 $as_echo_n "(cached) " >&6
3540 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
3541 then ac_cv_path_FGREP
="$GREP -F"
3543 if test -z "$FGREP"; then
3544 ac_path_FGREP_found
=false
3545 # Loop through the user's path and test for each of PROGNAME-LIST
3546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3547 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3550 test -z "$as_dir" && as_dir
=.
3551 for ac_prog
in fgrep
; do
3552 for ac_exec_ext
in '' $ac_executable_extensions; do
3553 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
3554 as_fn_executable_p
"$ac_path_FGREP" ||
continue
3555 # Check for GNU ac_path_FGREP and select it if it is found.
3556 # Check for GNU $ac_path_FGREP
3557 case `"$ac_path_FGREP" --version 2>&1` in
3559 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
3562 $as_echo_n 0123456789 >"conftest.in"
3565 cat "conftest.in" "conftest.in" >"conftest.tmp"
3566 mv "conftest.tmp" "conftest.in"
3567 cp "conftest.in" "conftest.nl"
3568 $as_echo 'FGREP' >> "conftest.nl"
3569 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3570 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3571 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3572 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3573 # Best one so far, save it but keep looking for a better one
3574 ac_cv_path_FGREP
="$ac_path_FGREP"
3575 ac_path_FGREP_max
=$ac_count
3577 # 10*(2^10) chars as input seems more than enough
3578 test $ac_count -gt 10 && break
3580 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3583 $ac_path_FGREP_found && break 3
3588 if test -z "$ac_cv_path_FGREP"; then
3589 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3592 ac_cv_path_FGREP
=$FGREP
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3598 $as_echo "$ac_cv_path_FGREP" >&6; }
3599 FGREP
="$ac_cv_path_FGREP"
3602 test -z "$GREP" && GREP
=grep
3622 # Check whether --with-gnu-ld was given.
3623 if test "${with_gnu_ld+set}" = set; then :
3624 withval
=$with_gnu_ld; test no
= "$withval" || with_gnu_ld
=yes
3630 if test yes = "$GCC"; then
3631 # Check if gcc -print-prog-name=ld gives a path.
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3633 $as_echo_n "checking for ld used by $CC... " >&6; }
3636 # gcc leaves a trailing carriage return, which upsets mingw
3637 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3639 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
3642 # Accept absolute paths.
3644 re_direlt
='/[^/][^/]*/\.\./'
3645 # Canonicalize the pathname of ld
3646 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3647 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
3648 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3650 test -z "$LD" && LD
=$ac_prog
3653 # If it fails, then pretend we aren't using GCC.
3657 # If it is relative, then search for the first ld in PATH.
3661 elif test yes = "$with_gnu_ld"; then
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3663 $as_echo_n "checking for GNU ld... " >&6; }
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3666 $as_echo_n "checking for non-GNU ld... " >&6; }
3668 if ${lt_cv_path_LD+:} false
; then :
3669 $as_echo_n "(cached) " >&6
3671 if test -z "$LD"; then
3672 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
3673 for ac_dir
in $PATH; do
3675 test -z "$ac_dir" && ac_dir
=.
3676 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
3677 lt_cv_path_LD
=$ac_dir/$ac_prog
3678 # Check to see if the program is GNU ld. I'd rather use --version,
3679 # but apparently some variants of GNU ld only accept -v.
3680 # Break only if it was the GNU/non-GNU ld that we prefer.
3681 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3682 *GNU
* |
*'with BFD'*)
3683 test no
!= "$with_gnu_ld" && break
3686 test yes != "$with_gnu_ld" && break
3693 lt_cv_path_LD
=$LD # Let the user override the test with a path.
3698 if test -n "$LD"; then
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3700 $as_echo "$LD" >&6; }
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3703 $as_echo "no" >&6; }
3705 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3707 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3708 if ${lt_cv_prog_gnu_ld+:} false
; then :
3709 $as_echo_n "(cached) " >&6
3711 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3712 case `$LD -v 2>&1 </dev/null` in
3713 *GNU
* |
*'with BFD'*)
3714 lt_cv_prog_gnu_ld
=yes
3717 lt_cv_prog_gnu_ld
=no
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3722 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3723 with_gnu_ld
=$lt_cv_prog_gnu_ld
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3734 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3735 if ${lt_cv_path_NM+:} false
; then :
3736 $as_echo_n "(cached) " >&6
3738 if test -n "$NM"; then
3739 # Let the user override the test.
3742 lt_nm_to_check
=${ac_tool_prefix}nm
3743 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3744 lt_nm_to_check
="$lt_nm_to_check nm"
3746 for lt_tmp_nm
in $lt_nm_to_check; do
3747 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
3748 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
3750 test -z "$ac_dir" && ac_dir
=.
3751 tmp_nm
=$ac_dir/$lt_tmp_nm
3752 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext"; then
3753 # Check to see if the nm accepts a BSD-compat flag.
3754 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
3755 # nm: unknown option "B" ignored
3756 # Tru64's nm complains that /dev/null is an invalid object file
3757 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
3759 mingw
*) lt_bad_file
=conftest.nm
/nofile
;;
3760 *) lt_bad_file
=/dev
/null
;;
3762 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3763 *$lt_bad_file* |
*'Invalid file or object type'*)
3764 lt_cv_path_NM
="$tmp_nm -B"
3768 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3770 lt_cv_path_NM
="$tmp_nm -p"
3774 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3775 continue # so that we can try to find one that supports BSD flags
3784 : ${lt_cv_path_NM=no}
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3788 $as_echo "$lt_cv_path_NM" >&6; }
3789 if test no
!= "$lt_cv_path_NM"; then
3792 # Didn't find any BSD compatible name lister, look for dumpbin.
3793 if test -n "$DUMPBIN"; then :
3794 # Let the user override the test.
3796 if test -n "$ac_tool_prefix"; then
3797 for ac_prog
in dumpbin
"link -dump"
3799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3800 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802 $as_echo_n "checking for $ac_word... " >&6; }
3803 if ${ac_cv_prog_DUMPBIN+:} false
; then :
3804 $as_echo_n "(cached) " >&6
3806 if test -n "$DUMPBIN"; then
3807 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
3809 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3813 test -z "$as_dir" && as_dir
=.
3814 for ac_exec_ext
in '' $ac_executable_extensions; do
3815 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3816 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
3817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3826 DUMPBIN
=$ac_cv_prog_DUMPBIN
3827 if test -n "$DUMPBIN"; then
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3829 $as_echo "$DUMPBIN" >&6; }
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832 $as_echo "no" >&6; }
3836 test -n "$DUMPBIN" && break
3839 if test -z "$DUMPBIN"; then
3840 ac_ct_DUMPBIN
=$DUMPBIN
3841 for ac_prog
in dumpbin
"link -dump"
3843 # Extract the first word of "$ac_prog", so it can be a program name with args.
3844 set dummy
$ac_prog; ac_word
=$2
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3846 $as_echo_n "checking for $ac_word... " >&6; }
3847 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
3848 $as_echo_n "(cached) " >&6
3850 if test -n "$ac_ct_DUMPBIN"; then
3851 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
3853 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3857 test -z "$as_dir" && as_dir
=.
3858 for ac_exec_ext
in '' $ac_executable_extensions; do
3859 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3860 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
3861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3870 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
3871 if test -n "$ac_ct_DUMPBIN"; then
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3873 $as_echo "$ac_ct_DUMPBIN" >&6; }
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876 $as_echo "no" >&6; }
3880 test -n "$ac_ct_DUMPBIN" && break
3883 if test "x$ac_ct_DUMPBIN" = x
; then
3886 case $cross_compiling:$ac_tool_warned in
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3890 ac_tool_warned
=yes ;;
3892 DUMPBIN
=$ac_ct_DUMPBIN
3896 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
3898 DUMPBIN
="$DUMPBIN -symbols -headers"
3906 if test : != "$DUMPBIN"; then
3910 test -z "$NM" && NM
=nm
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3918 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3919 if ${lt_cv_nm_interface+:} false
; then :
3920 $as_echo_n "(cached) " >&6
3922 lt_cv_nm_interface
="BSD nm"
3923 echo "int some_variable = 0;" > conftest.
$ac_ext
3924 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
3925 (eval "$ac_compile" 2>conftest.err
)
3926 cat conftest.err
>&5
3927 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3928 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
3929 cat conftest.err
>&5
3930 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
3931 cat conftest.out
>&5
3932 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
3933 lt_cv_nm_interface
="MS dumpbin"
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3938 $as_echo "$lt_cv_nm_interface" >&6; }
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3941 $as_echo_n "checking whether ln -s works... " >&6; }
3943 if test "$LN_S" = "ln -s"; then
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3945 $as_echo "yes" >&6; }
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3948 $as_echo "no, using $LN_S" >&6; }
3951 # find the maximum length of command line arguments
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3953 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3954 if ${lt_cv_sys_max_cmd_len+:} false
; then :
3955 $as_echo_n "(cached) " >&6
3962 # On DJGPP, this test can blow up pretty badly due to problems in libc
3963 # (any single argument exceeding 2000 bytes causes a buffer overrun
3964 # during glob expansion). Even if it were fixed, the result of this
3965 # check would be larger than it should be.
3966 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
3970 # Under GNU Hurd, this test is not required because there is
3971 # no limit to the length of command line arguments.
3972 # Libtool will interpret -1 as no limit whatsoever
3973 lt_cv_sys_max_cmd_len
=-1;
3976 cygwin
* | mingw
* | cegcc
*)
3977 # On Win9x/ME, this test blows up -- it succeeds, but takes
3978 # about 5 minutes as the teststring grows exponentially.
3979 # Worse, since 9x/ME are not pre-emptively multitasking,
3980 # you end up with a "frozen" computer, even though with patience
3981 # the test eventually succeeds (with a max line length of 256k).
3982 # Instead, let's just punt: use the minimum linelength reported by
3983 # all of the supported platforms: 8192 (on NT/2K/XP).
3984 lt_cv_sys_max_cmd_len
=8192;
3988 # On MiNT this can take a long time and run out of memory.
3989 lt_cv_sys_max_cmd_len
=8192;
3993 # On AmigaOS with pdksh, this test takes hours, literally.
3994 # So we just punt and use a minimum line length of 8192.
3995 lt_cv_sys_max_cmd_len
=8192;
3998 bitrig
* | darwin
* | dragonfly
* | freebsd
* | netbsd
* | openbsd
*)
3999 # This has been around since 386BSD, at least. Likely further.
4000 if test -x /sbin
/sysctl
; then
4001 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
4002 elif test -x /usr
/sbin
/sysctl
; then
4003 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
4005 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
4007 # And add a safety zone
4008 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4009 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4013 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4014 lt_cv_sys_max_cmd_len
=196608
4018 # The test takes a long time on OS/2.
4019 lt_cv_sys_max_cmd_len
=8192
4023 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4024 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4025 # nice to cause kernel panics so lets avoid the loop below.
4026 # First set a reasonable default.
4027 lt_cv_sys_max_cmd_len
=16384
4029 if test -x /sbin
/sysconfig
; then
4030 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4031 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
4036 lt_cv_sys_max_cmd_len
=102400
4038 sysv5
* | sco5v6
* | sysv4.2uw2
*)
4039 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4040 if test -n "$kargmax"; then
4041 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
4043 lt_cv_sys_max_cmd_len
=32768
4047 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
4048 if test -n "$lt_cv_sys_max_cmd_len" && \
4049 test undefined
!= "$lt_cv_sys_max_cmd_len"; then
4050 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4051 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4053 # Make teststring a little bigger before we do anything with it.
4054 # a 1K string should be a reasonable start.
4055 for i
in 1 2 3 4 5 6 7 8; do
4056 teststring
=$teststring$teststring
4058 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
4059 # If test is not a shell built-in, we'll probably end up computing a
4060 # maximum length that is only half of the actual maximum length, but
4062 while { test X
`env echo "$teststring$teststring" 2>/dev/null` \
4063 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
4064 test 17 != "$i" # 1/2 MB should be enough
4067 teststring
=$teststring$teststring
4069 # Only check the string length outside the loop.
4070 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
4072 # Add a significant safety factor because C++ compilers can tack on
4073 # massive amounts of additional arguments before passing them to the
4074 # linker. It appears as though 1/2 is a usable value.
4075 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
4082 if test -n "$lt_cv_sys_max_cmd_len"; then
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4084 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4087 $as_echo "none" >&6; }
4089 max_cmd_len
=$lt_cv_sys_max_cmd_len
4100 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
4110 # test EBCDIC or ASCII
4111 case `echo X|tr X '\101'` in
4112 A
) # ASCII based system
4113 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4114 lt_SP2NL
='tr \040 \012'
4115 lt_NL2SP
='tr \015\012 \040\040'
4117 *) # EBCDIC based system
4118 lt_SP2NL
='tr \100 \n'
4119 lt_NL2SP
='tr \r\n \100\100'
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4132 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4133 if ${lt_cv_to_host_file_cmd+:} false
; then :
4134 $as_echo_n "(cached) " >&6
4139 *-*-mingw* ) # actually msys
4140 lt_cv_to_host_file_cmd
=func_convert_file_msys_to_w32
4143 lt_cv_to_host_file_cmd
=func_convert_file_cygwin_to_w32
4145 * ) # otherwise, assume *nix
4146 lt_cv_to_host_file_cmd
=func_convert_file_nix_to_w32
4152 *-*-mingw* ) # actually msys
4153 lt_cv_to_host_file_cmd
=func_convert_file_msys_to_cygwin
4156 lt_cv_to_host_file_cmd
=func_convert_file_noop
4158 * ) # otherwise, assume *nix
4159 lt_cv_to_host_file_cmd
=func_convert_file_nix_to_cygwin
4163 * ) # unhandled hosts (and "normal" native builds)
4164 lt_cv_to_host_file_cmd
=func_convert_file_noop
4170 to_host_file_cmd
=$lt_cv_to_host_file_cmd
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4172 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4179 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4180 if ${lt_cv_to_tool_file_cmd+:} false
; then :
4181 $as_echo_n "(cached) " >&6
4183 #assume ordinary cross tools, or native build.
4184 lt_cv_to_tool_file_cmd
=func_convert_file_noop
4188 *-*-mingw* ) # actually msys
4189 lt_cv_to_tool_file_cmd
=func_convert_file_msys_to_w32
4197 to_tool_file_cmd
=$lt_cv_to_tool_file_cmd
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4199 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4206 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4207 if ${lt_cv_ld_reload_flag+:} false
; then :
4208 $as_echo_n "(cached) " >&6
4210 lt_cv_ld_reload_flag
='-r'
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4213 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4214 reload_flag
=$lt_cv_ld_reload_flag
4215 case $reload_flag in
4217 *) reload_flag
=" $reload_flag" ;;
4219 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
4221 cygwin
* | mingw
* | pw32
* | cegcc
*)
4222 if test yes != "$GCC"; then
4227 if test yes = "$GCC"; then
4228 reload_cmds
='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4230 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
4243 if test -n "$ac_tool_prefix"; then
4244 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4245 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4247 $as_echo_n "checking for $ac_word... " >&6; }
4248 if ${ac_cv_prog_OBJDUMP+:} false
; then :
4249 $as_echo_n "(cached) " >&6
4251 if test -n "$OBJDUMP"; then
4252 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
4254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4258 test -z "$as_dir" && as_dir
=.
4259 for ac_exec_ext
in '' $ac_executable_extensions; do
4260 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4261 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
4262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 OBJDUMP
=$ac_cv_prog_OBJDUMP
4272 if test -n "$OBJDUMP"; then
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4274 $as_echo "$OBJDUMP" >&6; }
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277 $as_echo "no" >&6; }
4282 if test -z "$ac_cv_prog_OBJDUMP"; then
4283 ac_ct_OBJDUMP
=$OBJDUMP
4284 # Extract the first word of "objdump", so it can be a program name with args.
4285 set dummy objdump
; ac_word
=$2
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4287 $as_echo_n "checking for $ac_word... " >&6; }
4288 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false
; then :
4289 $as_echo_n "(cached) " >&6
4291 if test -n "$ac_ct_OBJDUMP"; then
4292 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
4294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4298 test -z "$as_dir" && as_dir
=.
4299 for ac_exec_ext
in '' $ac_executable_extensions; do
4300 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4301 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
4302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4311 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
4312 if test -n "$ac_ct_OBJDUMP"; then
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4314 $as_echo "$ac_ct_OBJDUMP" >&6; }
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317 $as_echo "no" >&6; }
4320 if test "x$ac_ct_OBJDUMP" = x
; then
4323 case $cross_compiling:$ac_tool_warned in
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4327 ac_tool_warned
=yes ;;
4329 OBJDUMP
=$ac_ct_OBJDUMP
4332 OBJDUMP
="$ac_cv_prog_OBJDUMP"
4335 test -z "$OBJDUMP" && OBJDUMP
=objdump
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4346 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4347 if ${lt_cv_deplibs_check_method+:} false
; then :
4348 $as_echo_n "(cached) " >&6
4350 lt_cv_file_magic_cmd
='$MAGIC_CMD'
4351 lt_cv_file_magic_test_file
=
4352 lt_cv_deplibs_check_method
='unknown'
4353 # Need to set the preceding variable on all platforms that support
4354 # interlibrary dependencies.
4355 # 'none' -- dependencies not supported.
4356 # 'unknown' -- same as none, but documents that we really don't know.
4357 # 'pass_all' -- all dependencies passed with no checks.
4358 # 'test_compile' -- check by making test program.
4359 # 'file_magic [[regex]]' -- check by looking for files in library path
4360 # that responds to the $file_magic_cmd with a given extended regex.
4361 # If you have 'file' or equivalent on your system and you're not sure
4362 # whether 'pass_all' will *always* work, you probably want this one.
4366 lt_cv_deplibs_check_method
=pass_all
4370 lt_cv_deplibs_check_method
=pass_all
4374 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4375 lt_cv_file_magic_cmd
='/usr/bin/file -L'
4376 lt_cv_file_magic_test_file
=/shlib
/libc.so
4380 # func_win32_libid is a shell function defined in ltmain.sh
4381 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
4382 lt_cv_file_magic_cmd
='func_win32_libid'
4386 # Base MSYS/MinGW do not provide the 'file' command needed by
4387 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4388 # unless we find 'file', for example because we are cross-compiling.
4389 if ( file / ) >/dev
/null
2>&1; then
4390 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
4391 lt_cv_file_magic_cmd
='func_win32_libid'
4393 # Keep this pattern in sync with the one in func_win32_libid.
4394 lt_cv_deplibs_check_method
='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4395 lt_cv_file_magic_cmd
='$OBJDUMP -f'
4400 # use the weaker test based on 'objdump'. See mingw*.
4401 lt_cv_deplibs_check_method
='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4402 lt_cv_file_magic_cmd
='$OBJDUMP -f'
4405 darwin
* | rhapsody
*)
4406 lt_cv_deplibs_check_method
=pass_all
4409 freebsd
* | dragonfly
*)
4410 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
4413 # Not sure whether the presence of OpenBSD here was a mistake.
4414 # Let's accept both of them until this is cleared up.
4415 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4416 lt_cv_file_magic_cmd
=/usr
/bin
/file
4417 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
4421 lt_cv_deplibs_check_method
=pass_all
4426 lt_cv_deplibs_check_method
=pass_all
4429 hpux10.20
* | hpux11
*)
4430 lt_cv_file_magic_cmd
=/usr
/bin
/file
4433 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4434 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
4437 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]'
4438 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
4441 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4442 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
4448 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4449 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
4452 irix5
* | irix6
* | nonstopux
*)
4454 *-32|
*"-32 ") libmagic
=32-bit;;
4455 *-n32|
*"-n32 ") libmagic
=N32
;;
4456 *-64|
*"-64 ") libmagic
=64-bit;;
4457 *) libmagic
=never-match
;;
4459 lt_cv_deplibs_check_method
=pass_all
4462 # This must be glibc/ELF.
4463 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
4464 lt_cv_deplibs_check_method
=pass_all
4467 netbsd
* | netbsdelf
*-gnu)
4468 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
4469 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4471 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4476 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4477 lt_cv_file_magic_cmd
=/usr
/bin
/file
4478 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
4482 lt_cv_deplibs_check_method
=pass_all
4486 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
4487 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4489 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4493 osf3
* | osf4
* | osf5
*)
4494 lt_cv_deplibs_check_method
=pass_all
4498 lt_cv_deplibs_check_method
=pass_all
4502 lt_cv_deplibs_check_method
=pass_all
4505 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
4506 lt_cv_deplibs_check_method
=pass_all
4510 case $host_vendor in
4512 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]'
4513 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
4516 lt_cv_deplibs_check_method
=pass_all
4519 lt_cv_file_magic_cmd
='/bin/file'
4520 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4523 lt_cv_file_magic_cmd
='/bin/file'
4524 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4525 lt_cv_file_magic_test_file
=/lib
/libc.so
4528 lt_cv_deplibs_check_method
=pass_all
4531 lt_cv_deplibs_check_method
=pass_all
4537 lt_cv_deplibs_check_method
=pass_all
4540 lt_cv_deplibs_check_method
=pass_all
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4546 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4550 if test "$build" = "$host"; then
4553 if ( shopt |
grep nocaseglob
) >/dev
/null
2>&1; then
4556 file_magic_glob
=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4562 file_magic_cmd
=$lt_cv_file_magic_cmd
4563 deplibs_check_method
=$lt_cv_deplibs_check_method
4564 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
4587 if test -n "$ac_tool_prefix"; then
4588 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4589 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4591 $as_echo_n "checking for $ac_word... " >&6; }
4592 if ${ac_cv_prog_DLLTOOL+:} false
; then :
4593 $as_echo_n "(cached) " >&6
4595 if test -n "$DLLTOOL"; then
4596 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
4598 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4602 test -z "$as_dir" && as_dir
=.
4603 for ac_exec_ext
in '' $ac_executable_extensions; do
4604 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4605 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
4606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 DLLTOOL
=$ac_cv_prog_DLLTOOL
4616 if test -n "$DLLTOOL"; then
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4618 $as_echo "$DLLTOOL" >&6; }
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621 $as_echo "no" >&6; }
4626 if test -z "$ac_cv_prog_DLLTOOL"; then
4627 ac_ct_DLLTOOL
=$DLLTOOL
4628 # Extract the first word of "dlltool", so it can be a program name with args.
4629 set dummy dlltool
; ac_word
=$2
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4631 $as_echo_n "checking for $ac_word... " >&6; }
4632 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
4633 $as_echo_n "(cached) " >&6
4635 if test -n "$ac_ct_DLLTOOL"; then
4636 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
4638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4642 test -z "$as_dir" && as_dir
=.
4643 for ac_exec_ext
in '' $ac_executable_extensions; do
4644 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4645 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
4646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
4656 if test -n "$ac_ct_DLLTOOL"; then
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4658 $as_echo "$ac_ct_DLLTOOL" >&6; }
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4661 $as_echo "no" >&6; }
4664 if test "x$ac_ct_DLLTOOL" = x
; then
4667 case $cross_compiling:$ac_tool_warned in
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4671 ac_tool_warned
=yes ;;
4673 DLLTOOL
=$ac_ct_DLLTOOL
4676 DLLTOOL
="$ac_cv_prog_DLLTOOL"
4679 test -z "$DLLTOOL" && DLLTOOL
=dlltool
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4691 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4692 if ${lt_cv_sharedlib_from_linklib_cmd+:} false
; then :
4693 $as_echo_n "(cached) " >&6
4695 lt_cv_sharedlib_from_linklib_cmd
='unknown'
4698 cygwin
* | mingw
* | pw32
* | cegcc
*)
4699 # two different shell functions defined in ltmain.sh;
4700 # decide which one to use based on capabilities of $DLLTOOL
4701 case `$DLLTOOL --help 2>&1` in
4702 *--identify-strict*)
4703 lt_cv_sharedlib_from_linklib_cmd
=func_cygming_dll_for_implib
4706 lt_cv_sharedlib_from_linklib_cmd
=func_cygming_dll_for_implib_fallback
4711 # fallback: assume linklib IS sharedlib
4712 lt_cv_sharedlib_from_linklib_cmd
=$ECHO
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4718 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4719 sharedlib_from_linklib_cmd
=$lt_cv_sharedlib_from_linklib_cmd
4720 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd
=$ECHO
4729 if test -n "$ac_tool_prefix"; then
4732 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4733 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4735 $as_echo_n "checking for $ac_word... " >&6; }
4736 if ${ac_cv_prog_AR+:} false
; then :
4737 $as_echo_n "(cached) " >&6
4739 if test -n "$AR"; then
4740 ac_cv_prog_AR
="$AR" # Let the user override the test.
4742 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4746 test -z "$as_dir" && as_dir
=.
4747 for ac_exec_ext
in '' $ac_executable_extensions; do
4748 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4749 ac_cv_prog_AR
="$ac_tool_prefix$ac_prog"
4750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 if test -n "$AR"; then
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4762 $as_echo "$AR" >&6; }
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765 $as_echo "no" >&6; }
4769 test -n "$AR" && break
4772 if test -z "$AR"; then
4776 # Extract the first word of "$ac_prog", so it can be a program name with args.
4777 set dummy
$ac_prog; ac_word
=$2
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779 $as_echo_n "checking for $ac_word... " >&6; }
4780 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
4781 $as_echo_n "(cached) " >&6
4783 if test -n "$ac_ct_AR"; then
4784 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4786 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4790 test -z "$as_dir" && as_dir
=.
4791 for ac_exec_ext
in '' $ac_executable_extensions; do
4792 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4793 ac_cv_prog_ac_ct_AR
="$ac_prog"
4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4804 if test -n "$ac_ct_AR"; then
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4806 $as_echo "$ac_ct_AR" >&6; }
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 $as_echo "no" >&6; }
4813 test -n "$ac_ct_AR" && break
4816 if test "x$ac_ct_AR" = x
; then
4819 case $cross_compiling:$ac_tool_warned in
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4823 ac_tool_warned
=yes ;;
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
4843 $as_echo_n "checking for archiver @FILE support... " >&6; }
4844 if ${lt_cv_ar_at_file+:} false
; then :
4845 $as_echo_n "(cached) " >&6
4848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4859 if ac_fn_c_try_compile
"$LINENO"; then :
4860 echo conftest.
$ac_objext > conftest.lst
4861 lt_ar_try
='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
4862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4863 (eval $lt_ar_try) 2>&5
4865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4866 test $ac_status = 0; }
4867 if test 0 -eq "$ac_status"; then
4868 # Ensure the archiver fails upon bogus file names.
4869 rm -f conftest.
$ac_objext libconftest.a
4870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4871 (eval $lt_ar_try) 2>&5
4873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4874 test $ac_status = 0; }
4875 if test 0 -ne "$ac_status"; then
4879 rm -f conftest.
* libconftest.a
4882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
4886 $as_echo "$lt_cv_ar_at_file" >&6; }
4888 if test no
= "$lt_cv_ar_at_file"; then
4891 archiver_list_spec
=$lt_cv_ar_at_file
4900 if test -n "$ac_tool_prefix"; then
4901 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4902 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904 $as_echo_n "checking for $ac_word... " >&6; }
4905 if ${ac_cv_prog_STRIP+:} false
; then :
4906 $as_echo_n "(cached) " >&6
4908 if test -n "$STRIP"; then
4909 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4911 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4915 test -z "$as_dir" && as_dir
=.
4916 for ac_exec_ext
in '' $ac_executable_extensions; do
4917 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4918 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4928 STRIP
=$ac_cv_prog_STRIP
4929 if test -n "$STRIP"; then
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4931 $as_echo "$STRIP" >&6; }
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934 $as_echo "no" >&6; }
4939 if test -z "$ac_cv_prog_STRIP"; then
4941 # Extract the first word of "strip", so it can be a program name with args.
4942 set dummy strip
; ac_word
=$2
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 $as_echo_n "checking for $ac_word... " >&6; }
4945 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
4946 $as_echo_n "(cached) " >&6
4948 if test -n "$ac_ct_STRIP"; then
4949 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4951 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4955 test -z "$as_dir" && as_dir
=.
4956 for ac_exec_ext
in '' $ac_executable_extensions; do
4957 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4958 ac_cv_prog_ac_ct_STRIP
="strip"
4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4968 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4969 if test -n "$ac_ct_STRIP"; then
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4971 $as_echo "$ac_ct_STRIP" >&6; }
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4977 if test "x$ac_ct_STRIP" = x
; then
4980 case $cross_compiling:$ac_tool_warned in
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4984 ac_tool_warned
=yes ;;
4989 STRIP
="$ac_cv_prog_STRIP"
4992 test -z "$STRIP" && STRIP
=:
4999 if test -n "$ac_tool_prefix"; then
5000 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5001 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if ${ac_cv_prog_RANLIB+:} false
; then :
5005 $as_echo_n "(cached) " >&6
5007 if test -n "$RANLIB"; then
5008 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5014 test -z "$as_dir" && as_dir
=.
5015 for ac_exec_ext
in '' $ac_executable_extensions; do
5016 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5017 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 RANLIB
=$ac_cv_prog_RANLIB
5028 if test -n "$RANLIB"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5030 $as_echo "$RANLIB" >&6; }
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033 $as_echo "no" >&6; }
5038 if test -z "$ac_cv_prog_RANLIB"; then
5039 ac_ct_RANLIB
=$RANLIB
5040 # Extract the first word of "ranlib", so it can be a program name with args.
5041 set dummy ranlib
; ac_word
=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5045 $as_echo_n "(cached) " >&6
5047 if test -n "$ac_ct_RANLIB"; then
5048 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5050 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5054 test -z "$as_dir" && as_dir
=.
5055 for ac_exec_ext
in '' $ac_executable_extensions; do
5056 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5057 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5068 if test -n "$ac_ct_RANLIB"; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5070 $as_echo "$ac_ct_RANLIB" >&6; }
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 $as_echo "no" >&6; }
5076 if test "x$ac_ct_RANLIB" = x
; then
5079 case $cross_compiling:$ac_tool_warned in
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5083 ac_tool_warned
=yes ;;
5085 RANLIB
=$ac_ct_RANLIB
5088 RANLIB
="$ac_cv_prog_RANLIB"
5091 test -z "$RANLIB" && RANLIB
=:
5098 # Determine commands to create old-style static archives.
5099 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
5100 old_postinstall_cmds
='chmod 644 $oldlib'
5101 old_postuninstall_cmds
=
5103 if test -n "$RANLIB"; then
5106 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5109 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5112 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5117 lock_old_archive_extraction
=yes ;;
5119 lock_old_archive_extraction
=no
;;
5142 for ac_prog
in gawk mawk nawk
awk
5144 # Extract the first word of "$ac_prog", so it can be a program name with args.
5145 set dummy
$ac_prog; ac_word
=$2
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if ${ac_cv_prog_AWK+:} false
; then :
5149 $as_echo_n "(cached) " >&6
5151 if test -n "$AWK"; then
5152 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
5154 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5158 test -z "$as_dir" && as_dir
=.
5159 for ac_exec_ext
in '' $ac_executable_extensions; do
5160 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5161 ac_cv_prog_AWK
="$ac_prog"
5162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 if test -n "$AWK"; then
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5174 $as_echo "$AWK" >&6; }
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5181 test -n "$AWK" && break
5202 # If no C compiler was specified, use CC.
5205 # If no C compiler flags were specified, use CFLAGS.
5206 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
5208 # Allow CC to be a program name with arguments.
5212 # Check for command to grab the raw symbol name followed by C symbol from nm.
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5214 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5215 if ${lt_cv_sys_global_symbol_pipe+:} false
; then :
5216 $as_echo_n "(cached) " >&6
5219 # These are sane defaults that work on at least a few old systems.
5220 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5222 # Character class describing NM global symbol codes.
5223 symcode
='[BCDEGRST]'
5225 # Regexp to match symbols that can be accessed directly from C.
5226 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
5228 # Define system-specific variables.
5233 cygwin
* | mingw
* | pw32
* | cegcc
*)
5234 symcode
='[ABCDGISTW]'
5237 if test ia64
= "$host_cpu"; then
5238 symcode
='[ABCDEGRST]'
5242 symcode
='[BCDEGRST]'
5245 symcode
='[BCDEGQRST]'
5256 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
5264 # If we're using GNU nm, then use its standard symbol codes.
5265 case `$NM -V 2>&1` in
5266 *GNU
* |
*'with BFD'*)
5267 symcode
='[ABCDGIRSTW]' ;;
5270 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5271 # Gets list of data symbols to import.
5272 lt_cv_sys_global_symbol_to_import
="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5273 # Adjust the below global symbol transforms to fixup imported variables.
5274 lt_cdecl_hook
=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5275 lt_c_name_hook
=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5276 lt_c_name_lib_hook
="\
5277 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5278 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5280 # Disable hooks by default.
5281 lt_cv_sys_global_symbol_to_import
=
5287 # Transform an extracted symbol line into a proper C declaration.
5288 # Some systems (esp. on ia64) link data and code symbols differently,
5289 # so use this general approach.
5290 lt_cv_sys_global_symbol_to_cdecl
="sed -n"\
5292 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5293 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5295 # Transform an extracted symbol line into symbol name and symbol address
5296 lt_cv_sys_global_symbol_to_c_name_address
="sed -n"\
5298 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5299 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5301 # Transform an extracted symbol line into symbol name with lib prefix and
5303 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
="sed -n"\
5304 $lt_c_name_lib_hook\
5305 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5306 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5307 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5309 # Handle CRLF in mingw tool chain
5313 opt_cr
=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5317 # Try without a prefix underscore, then with it.
5318 for ac_symprfx
in "" "_"; do
5320 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5321 symxfrm
="\\1 $ac_symprfx\\2 \\2"
5323 # Write the raw and C identifiers.
5324 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5325 # Fake it for dumpbin and say T for any non-static function,
5326 # D for any global variable and I for any imported variable.
5327 # Also find C++ and __fastcall symbols from MSVC++,
5328 # which start with @ or ?.
5329 lt_cv_sys_global_symbol_pipe
="$AWK '"\
5330 " {last_section=section; section=\$ 3};"\
5331 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5332 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5333 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5334 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5335 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5336 " \$ 0!~/External *\|/{next};"\
5337 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5338 " {if(hide[section]) next};"\
5339 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5340 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5341 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5342 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5343 " ' prfx=^$ac_symprfx"
5345 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5347 lt_cv_sys_global_symbol_pipe
="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5349 # Check to see that the pipe works correctly.
5353 cat > conftest.
$ac_ext <<_LT_EOF
5358 void nm_test_func(void);
5359 void nm_test_func(void){}
5363 int main(){nm_test_var='a';nm_test_func();return(0);}
5366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5367 (eval $ac_compile) 2>&5
5369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5370 test $ac_status = 0; }; then
5371 # Now try to grab the symbols.
5373 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
5374 if eval "$NM" conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist 2>&5 && test -s "$nlist"; then
5375 # Try sorting and uniquifying the output.
5376 if sort "$nlist" |
uniq > "$nlist"T
; then
5377 mv -f "$nlist"T
"$nlist"
5382 # Make sure that we snagged all the symbols we need.
5383 if $GREP ' nm_test_var$' "$nlist" >/dev
/null
; then
5384 if $GREP ' nm_test_func$' "$nlist" >/dev
/null
; then
5385 cat <<_LT_EOF > conftest.$ac_ext
5386 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5387 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5388 /* DATA imports from DLLs on WIN32 can't be const, because runtime
5389 relocations are performed -- see ld's documentation on pseudo-relocs. */
5390 # define LT_DLSYM_CONST
5391 #elif defined __osf__
5392 /* This system does not cope well with relocations in const data. */
5393 # define LT_DLSYM_CONST
5395 # define LT_DLSYM_CONST const
5403 # Now generate the symbol file.
5404 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5406 cat <<_LT_EOF >> conftest.$ac_ext
5408 /* The mapping between symbol names and symbols. */
5409 LT_DLSYM_CONST struct {
5413 lt__PROGRAM__LTX_preloaded_symbols[] =
5415 { "@PROGRAM@", (void *) 0 },
5417 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" |
$GREP -v main
>> conftest.
$ac_ext
5418 cat <<\_LT_EOF
>> conftest.
$ac_ext
5422 /* This works around a problem
in FreeBSD linker
*/
5423 #ifdef FREEBSD_WORKAROUND
5424 static const void
*lt_preloaded_setup
() {
5425 return lt__PROGRAM__LTX_preloaded_symbols
;
5433 # Now try linking the two files.
5434 mv conftest.
$ac_objext conftstm.
$ac_objext
5435 lt_globsym_save_LIBS
=$LIBS
5436 lt_globsym_save_CFLAGS
=$CFLAGS
5437 LIBS
=conftstm.
$ac_objext
5438 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5440 (eval $ac_link) 2>&5
5442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5443 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
5446 LIBS
=$lt_globsym_save_LIBS
5447 CFLAGS
=$lt_globsym_save_CFLAGS
5449 echo "cannot find nm_test_func in $nlist" >&5
5452 echo "cannot find nm_test_var in $nlist" >&5
5455 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5458 echo "$progname: failed program was:" >&5
5459 cat conftest.
$ac_ext >&5
5461 rm -rf conftest
* conftst
*
5463 # Do not use the global_symbol_pipe unless it works.
5464 if test yes = "$pipe_works"; then
5467 lt_cv_sys_global_symbol_pipe
=
5473 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5474 lt_cv_sys_global_symbol_to_cdecl
=
5476 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5478 $as_echo "failed" >&6; }
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5481 $as_echo "ok" >&6; }
5484 # Response file support.
5485 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5486 nm_file_list_spec
='@'
5487 elif $NM --help 2>/dev
/null |
grep '[@]FILE' >/dev
/null
; then
5488 nm_file_list_spec
='@'
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5528 $as_echo_n "checking for sysroot... " >&6; }
5530 # Check whether --with-sysroot was given.
5531 if test "${with_sysroot+set}" = set; then :
5532 withval
=$with_sysroot;
5539 case $with_sysroot in #(
5541 if test yes = "$GCC"; then
5542 lt_sysroot
=`$CC --print-sysroot 2>/dev/null`
5546 lt_sysroot
=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
5552 $as_echo "$with_sysroot" >&6; }
5553 as_fn_error $?
"The sysroot must be an absolute path." "$LINENO" 5
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5558 $as_echo "${lt_sysroot:-no}" >&6; }
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
5565 $as_echo_n "checking for a working dd... " >&6; }
5566 if ${ac_cv_path_lt_DD+:} false
; then :
5567 $as_echo_n "(cached) " >&6
5569 printf 0123456789abcdef0123456789abcdef
>conftest.i
5570 cat conftest.i conftest.i
>conftest2.i
5572 if test -z "$lt_DD"; then
5573 ac_path_lt_DD_found
=false
5574 # Loop through the user's path and test for each of PROGNAME-LIST
5575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5579 test -z "$as_dir" && as_dir
=.
5580 for ac_prog
in dd; do
5581 for ac_exec_ext
in '' $ac_executable_extensions; do
5582 ac_path_lt_DD
="$as_dir/$ac_prog$ac_exec_ext"
5583 as_fn_executable_p
"$ac_path_lt_DD" ||
continue
5584 if "$ac_path_lt_DD" bs
=32 count
=1 <conftest2.i
>conftest.out
2>/dev
/null
; then
5585 cmp -s conftest.i conftest.out \
5586 && ac_cv_path_lt_DD
="$ac_path_lt_DD" ac_path_lt_DD_found
=:
5588 $ac_path_lt_DD_found && break 3
5593 if test -z "$ac_cv_path_lt_DD"; then
5597 ac_cv_path_lt_DD
=$lt_DD
5600 rm -f conftest.i conftest2.i conftest.out
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
5603 $as_echo "$ac_cv_path_lt_DD" >&6; }
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
5607 $as_echo_n "checking how to truncate binary pipes... " >&6; }
5608 if ${lt_cv_truncate_bin+:} false
; then :
5609 $as_echo_n "(cached) " >&6
5611 printf 0123456789abcdef0123456789abcdef
>conftest.i
5612 cat conftest.i conftest.i
>conftest2.i
5614 if "$ac_cv_path_lt_DD" bs
=32 count
=1 <conftest2.i
>conftest.out
2>/dev
/null
; then
5615 cmp -s conftest.i conftest.out \
5616 && lt_cv_truncate_bin
="$ac_cv_path_lt_DD bs=4096 count=1"
5618 rm -f conftest.i conftest2.i conftest.out
5619 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin
="$SED -e 4q"
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
5622 $as_echo "$lt_cv_truncate_bin" >&6; }
5630 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
5633 for cc_temp
in $
*""; do
5635 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
5636 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
5641 func_cc_basename_result
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
5644 # Check whether --enable-libtool-lock was given.
5645 if test "${enable_libtool_lock+set}" = set; then :
5646 enableval
=$enable_libtool_lock;
5649 test no
= "$enable_libtool_lock" || enable_libtool_lock
=yes
5651 # Some flags need to be propagated to the compiler or linker for good
5655 # Find out what ABI is being produced by ac_compile, and set mode
5656 # options accordingly.
5657 echo 'int i;' > conftest.
$ac_ext
5658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5659 (eval $ac_compile) 2>&5
5661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5662 test $ac_status = 0; }; then
5663 case `/usr/bin/file conftest.$ac_objext` in
5675 # Find out what ABI is being produced by ac_compile, and set linker
5676 # options accordingly.
5677 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
5678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5679 (eval $ac_compile) 2>&5
5681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5682 test $ac_status = 0; }; then
5683 if test yes = "$lt_cv_prog_gnu_ld"; then
5684 case `/usr/bin/file conftest.$ac_objext` in
5686 LD
="${LD-ld} -melf32bsmip"
5689 LD
="${LD-ld} -melf32bmipn32"
5692 LD
="${LD-ld} -melf64bmip"
5696 case `/usr/bin/file conftest.$ac_objext` in
5713 # Find out what ABI is being produced by ac_compile, and set linker
5714 # options accordingly.
5715 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
5716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5717 (eval $ac_compile) 2>&5
5719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5720 test $ac_status = 0; }; then
5722 case `/usr/bin/file conftest.$ac_objext` in
5730 case `/usr/bin/file conftest.$ac_objext` in
5732 emul
="${emul}btsmip"
5735 emul
="${emul}ltsmip"
5738 case `/usr/bin/file conftest.$ac_objext` in
5743 LD
="${LD-ld} -m $emul"
5748 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|powerpc
*-*linux
*| \
5749 s390
*-*linux
*|s390
*-*tpf
*|sparc
*-*linux
*)
5750 # Find out what ABI is being produced by ac_compile, and set linker
5751 # options accordingly. Note that the listed cases only cover the
5752 # situations where additional linker options are needed (such as when
5753 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
5754 # vice versa); the common cases where no linker options are needed do
5755 # not appear in the list.
5756 echo 'int i;' > conftest.
$ac_ext
5757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5758 (eval $ac_compile) 2>&5
5760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5761 test $ac_status = 0; }; then
5762 case `/usr/bin/file conftest.o` in
5765 x86_64-
*kfreebsd
*-gnu)
5766 LD
="${LD-ld} -m elf_i386_fbsd"
5769 case `/usr/bin/file conftest.o` in
5771 LD
="${LD-ld} -m elf32_x86_64"
5774 LD
="${LD-ld} -m elf_i386"
5778 powerpc64le-
*linux
*)
5779 LD
="${LD-ld} -m elf32lppclinux"
5782 LD
="${LD-ld} -m elf32ppclinux"
5785 LD
="${LD-ld} -m elf_s390"
5788 LD
="${LD-ld} -m elf32_sparc"
5794 x86_64-
*kfreebsd
*-gnu)
5795 LD
="${LD-ld} -m elf_x86_64_fbsd"
5798 LD
="${LD-ld} -m elf_x86_64"
5801 LD
="${LD-ld} -m elf64lppc"
5804 LD
="${LD-ld} -m elf64ppc"
5806 s390
*-*linux
*|s390
*-*tpf
*)
5807 LD
="${LD-ld} -m elf64_s390"
5810 LD
="${LD-ld} -m elf64_sparc"
5820 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5822 CFLAGS
="$CFLAGS -belf"
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5824 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5825 if ${lt_cv_cc_needs_belf+:} false
; then :
5826 $as_echo_n "(cached) " >&6
5829 ac_cpp
='$CPP $CPPFLAGS'
5830 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5831 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5832 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5845 if ac_fn_c_try_link
"$LINENO"; then :
5846 lt_cv_cc_needs_belf
=yes
5848 lt_cv_cc_needs_belf
=no
5850 rm -f core conftest.err conftest.
$ac_objext \
5851 conftest
$ac_exeext conftest.
$ac_ext
5853 ac_cpp
='$CPP $CPPFLAGS'
5854 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5855 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5856 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5860 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5861 if test yes != "$lt_cv_cc_needs_belf"; then
5862 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5867 # Find out what ABI is being produced by ac_compile, and set linker
5868 # options accordingly.
5869 echo 'int i;' > conftest.
$ac_ext
5870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5871 (eval $ac_compile) 2>&5
5873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5874 test $ac_status = 0; }; then
5875 case `/usr/bin/file conftest.o` in
5877 case $lt_cv_prog_gnu_ld in
5880 i?
86-*-solaris*|x86_64-
*-solaris*)
5881 LD
="${LD-ld} -m elf_x86_64"
5884 LD
="${LD-ld} -m elf64_sparc"
5887 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
5888 if ${LD-ld} -V |
grep _sol2
>/dev
/null
2>&1; then
5893 if ${LD-ld} -64 -r -o conftest2.o conftest.o
>/dev
/null
2>&1; then
5905 need_locks
=$enable_libtool_lock
5907 if test -n "$ac_tool_prefix"; then
5908 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5909 set dummy
${ac_tool_prefix}mt
; ac_word
=$2
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911 $as_echo_n "checking for $ac_word... " >&6; }
5912 if ${ac_cv_prog_MANIFEST_TOOL+:} false
; then :
5913 $as_echo_n "(cached) " >&6
5915 if test -n "$MANIFEST_TOOL"; then
5916 ac_cv_prog_MANIFEST_TOOL
="$MANIFEST_TOOL" # Let the user override the test.
5918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5922 test -z "$as_dir" && as_dir
=.
5923 for ac_exec_ext
in '' $ac_executable_extensions; do
5924 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5925 ac_cv_prog_MANIFEST_TOOL
="${ac_tool_prefix}mt"
5926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 MANIFEST_TOOL
=$ac_cv_prog_MANIFEST_TOOL
5936 if test -n "$MANIFEST_TOOL"; then
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
5938 $as_echo "$MANIFEST_TOOL" >&6; }
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941 $as_echo "no" >&6; }
5946 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5947 ac_ct_MANIFEST_TOOL
=$MANIFEST_TOOL
5948 # Extract the first word of "mt", so it can be a program name with args.
5949 set dummy mt
; ac_word
=$2
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5951 $as_echo_n "checking for $ac_word... " >&6; }
5952 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false
; then :
5953 $as_echo_n "(cached) " >&6
5955 if test -n "$ac_ct_MANIFEST_TOOL"; then
5956 ac_cv_prog_ac_ct_MANIFEST_TOOL
="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5958 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5962 test -z "$as_dir" && as_dir
=.
5963 for ac_exec_ext
in '' $ac_executable_extensions; do
5964 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5965 ac_cv_prog_ac_ct_MANIFEST_TOOL
="mt"
5966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 ac_ct_MANIFEST_TOOL
=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5976 if test -n "$ac_ct_MANIFEST_TOOL"; then
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
5978 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981 $as_echo "no" >&6; }
5984 if test "x$ac_ct_MANIFEST_TOOL" = x
; then
5987 case $cross_compiling:$ac_tool_warned in
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5991 ac_tool_warned
=yes ;;
5993 MANIFEST_TOOL
=$ac_ct_MANIFEST_TOOL
5996 MANIFEST_TOOL
="$ac_cv_prog_MANIFEST_TOOL"
5999 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL
=mt
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6001 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6002 if ${lt_cv_path_mainfest_tool+:} false
; then :
6003 $as_echo_n "(cached) " >&6
6005 lt_cv_path_mainfest_tool
=no
6006 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6007 $MANIFEST_TOOL '-?' 2>conftest.err
> conftest.out
6008 cat conftest.err
>&5
6009 if $GREP 'Manifest Tool' conftest.out
> /dev
/null
; then
6010 lt_cv_path_mainfest_tool
=yes
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6015 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6016 if test yes != "$lt_cv_path_mainfest_tool"; then
6026 rhapsody
* | darwin
*)
6027 if test -n "$ac_tool_prefix"; then
6028 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6029 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6031 $as_echo_n "checking for $ac_word... " >&6; }
6032 if ${ac_cv_prog_DSYMUTIL+:} false
; then :
6033 $as_echo_n "(cached) " >&6
6035 if test -n "$DSYMUTIL"; then
6036 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
6038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6042 test -z "$as_dir" && as_dir
=.
6043 for ac_exec_ext
in '' $ac_executable_extensions; do
6044 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6045 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
6046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
6056 if test -n "$DSYMUTIL"; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6058 $as_echo "$DSYMUTIL" >&6; }
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061 $as_echo "no" >&6; }
6066 if test -z "$ac_cv_prog_DSYMUTIL"; then
6067 ac_ct_DSYMUTIL
=$DSYMUTIL
6068 # Extract the first word of "dsymutil", so it can be a program name with args.
6069 set dummy dsymutil
; ac_word
=$2
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071 $as_echo_n "checking for $ac_word... " >&6; }
6072 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false
; then :
6073 $as_echo_n "(cached) " >&6
6075 if test -n "$ac_ct_DSYMUTIL"; then
6076 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
6078 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6082 test -z "$as_dir" && as_dir
=.
6083 for ac_exec_ext
in '' $ac_executable_extensions; do
6084 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6085 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
6086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6095 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
6096 if test -n "$ac_ct_DSYMUTIL"; then
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6098 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 $as_echo "no" >&6; }
6104 if test "x$ac_ct_DSYMUTIL" = x
; then
6107 case $cross_compiling:$ac_tool_warned in
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6111 ac_tool_warned
=yes ;;
6113 DSYMUTIL
=$ac_ct_DSYMUTIL
6116 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
6119 if test -n "$ac_tool_prefix"; then
6120 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6121 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6123 $as_echo_n "checking for $ac_word... " >&6; }
6124 if ${ac_cv_prog_NMEDIT+:} false
; then :
6125 $as_echo_n "(cached) " >&6
6127 if test -n "$NMEDIT"; then
6128 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
6130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6134 test -z "$as_dir" && as_dir
=.
6135 for ac_exec_ext
in '' $ac_executable_extensions; do
6136 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6137 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
6138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6147 NMEDIT
=$ac_cv_prog_NMEDIT
6148 if test -n "$NMEDIT"; then
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6150 $as_echo "$NMEDIT" >&6; }
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6153 $as_echo "no" >&6; }
6158 if test -z "$ac_cv_prog_NMEDIT"; then
6159 ac_ct_NMEDIT
=$NMEDIT
6160 # Extract the first word of "nmedit", so it can be a program name with args.
6161 set dummy nmedit
; ac_word
=$2
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6163 $as_echo_n "checking for $ac_word... " >&6; }
6164 if ${ac_cv_prog_ac_ct_NMEDIT+:} false
; then :
6165 $as_echo_n "(cached) " >&6
6167 if test -n "$ac_ct_NMEDIT"; then
6168 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
6170 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6174 test -z "$as_dir" && as_dir
=.
6175 for ac_exec_ext
in '' $ac_executable_extensions; do
6176 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6177 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
6178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
6188 if test -n "$ac_ct_NMEDIT"; then
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6190 $as_echo "$ac_ct_NMEDIT" >&6; }
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6193 $as_echo "no" >&6; }
6196 if test "x$ac_ct_NMEDIT" = x
; then
6199 case $cross_compiling:$ac_tool_warned in
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6203 ac_tool_warned
=yes ;;
6205 NMEDIT
=$ac_ct_NMEDIT
6208 NMEDIT
="$ac_cv_prog_NMEDIT"
6211 if test -n "$ac_tool_prefix"; then
6212 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6213 set dummy
${ac_tool_prefix}lipo
; ac_word
=$2
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6215 $as_echo_n "checking for $ac_word... " >&6; }
6216 if ${ac_cv_prog_LIPO+:} false
; then :
6217 $as_echo_n "(cached) " >&6
6219 if test -n "$LIPO"; then
6220 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
6222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6226 test -z "$as_dir" && as_dir
=.
6227 for ac_exec_ext
in '' $ac_executable_extensions; do
6228 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6229 ac_cv_prog_LIPO
="${ac_tool_prefix}lipo"
6230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6239 LIPO
=$ac_cv_prog_LIPO
6240 if test -n "$LIPO"; then
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6242 $as_echo "$LIPO" >&6; }
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6245 $as_echo "no" >&6; }
6250 if test -z "$ac_cv_prog_LIPO"; then
6252 # Extract the first word of "lipo", so it can be a program name with args.
6253 set dummy lipo
; ac_word
=$2
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6255 $as_echo_n "checking for $ac_word... " >&6; }
6256 if ${ac_cv_prog_ac_ct_LIPO+:} false
; then :
6257 $as_echo_n "(cached) " >&6
6259 if test -n "$ac_ct_LIPO"; then
6260 ac_cv_prog_ac_ct_LIPO
="$ac_ct_LIPO" # Let the user override the test.
6262 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6266 test -z "$as_dir" && as_dir
=.
6267 for ac_exec_ext
in '' $ac_executable_extensions; do
6268 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6269 ac_cv_prog_ac_ct_LIPO
="lipo"
6270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6279 ac_ct_LIPO
=$ac_cv_prog_ac_ct_LIPO
6280 if test -n "$ac_ct_LIPO"; then
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6282 $as_echo "$ac_ct_LIPO" >&6; }
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6285 $as_echo "no" >&6; }
6288 if test "x$ac_ct_LIPO" = x
; then
6291 case $cross_compiling:$ac_tool_warned in
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6295 ac_tool_warned
=yes ;;
6300 LIPO
="$ac_cv_prog_LIPO"
6303 if test -n "$ac_tool_prefix"; then
6304 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6305 set dummy
${ac_tool_prefix}otool
; ac_word
=$2
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6307 $as_echo_n "checking for $ac_word... " >&6; }
6308 if ${ac_cv_prog_OTOOL+:} false
; then :
6309 $as_echo_n "(cached) " >&6
6311 if test -n "$OTOOL"; then
6312 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
6314 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6318 test -z "$as_dir" && as_dir
=.
6319 for ac_exec_ext
in '' $ac_executable_extensions; do
6320 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6321 ac_cv_prog_OTOOL
="${ac_tool_prefix}otool"
6322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 OTOOL
=$ac_cv_prog_OTOOL
6332 if test -n "$OTOOL"; then
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6334 $as_echo "$OTOOL" >&6; }
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6337 $as_echo "no" >&6; }
6342 if test -z "$ac_cv_prog_OTOOL"; then
6344 # Extract the first word of "otool", so it can be a program name with args.
6345 set dummy otool
; ac_word
=$2
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347 $as_echo_n "checking for $ac_word... " >&6; }
6348 if ${ac_cv_prog_ac_ct_OTOOL+:} false
; then :
6349 $as_echo_n "(cached) " >&6
6351 if test -n "$ac_ct_OTOOL"; then
6352 ac_cv_prog_ac_ct_OTOOL
="$ac_ct_OTOOL" # Let the user override the test.
6354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6358 test -z "$as_dir" && as_dir
=.
6359 for ac_exec_ext
in '' $ac_executable_extensions; do
6360 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6361 ac_cv_prog_ac_ct_OTOOL
="otool"
6362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371 ac_ct_OTOOL
=$ac_cv_prog_ac_ct_OTOOL
6372 if test -n "$ac_ct_OTOOL"; then
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6374 $as_echo "$ac_ct_OTOOL" >&6; }
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 $as_echo "no" >&6; }
6380 if test "x$ac_ct_OTOOL" = x
; then
6383 case $cross_compiling:$ac_tool_warned in
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6387 ac_tool_warned
=yes ;;
6392 OTOOL
="$ac_cv_prog_OTOOL"
6395 if test -n "$ac_tool_prefix"; then
6396 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6397 set dummy
${ac_tool_prefix}otool64
; ac_word
=$2
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if ${ac_cv_prog_OTOOL64+:} false
; then :
6401 $as_echo_n "(cached) " >&6
6403 if test -n "$OTOOL64"; then
6404 ac_cv_prog_OTOOL64
="$OTOOL64" # Let the user override the test.
6406 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6410 test -z "$as_dir" && as_dir
=.
6411 for ac_exec_ext
in '' $ac_executable_extensions; do
6412 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6413 ac_cv_prog_OTOOL64
="${ac_tool_prefix}otool64"
6414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 OTOOL64
=$ac_cv_prog_OTOOL64
6424 if test -n "$OTOOL64"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6426 $as_echo "$OTOOL64" >&6; }
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6434 if test -z "$ac_cv_prog_OTOOL64"; then
6435 ac_ct_OTOOL64
=$OTOOL64
6436 # Extract the first word of "otool64", so it can be a program name with args.
6437 set dummy otool64
; ac_word
=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if ${ac_cv_prog_ac_ct_OTOOL64+:} false
; then :
6441 $as_echo_n "(cached) " >&6
6443 if test -n "$ac_ct_OTOOL64"; then
6444 ac_cv_prog_ac_ct_OTOOL64
="$ac_ct_OTOOL64" # Let the user override the test.
6446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6450 test -z "$as_dir" && as_dir
=.
6451 for ac_exec_ext
in '' $ac_executable_extensions; do
6452 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6453 ac_cv_prog_ac_ct_OTOOL64
="otool64"
6454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 ac_ct_OTOOL64
=$ac_cv_prog_ac_ct_OTOOL64
6464 if test -n "$ac_ct_OTOOL64"; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6466 $as_echo "$ac_ct_OTOOL64" >&6; }
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6472 if test "x$ac_ct_OTOOL64" = x
; then
6475 case $cross_compiling:$ac_tool_warned in
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6479 ac_tool_warned
=yes ;;
6481 OTOOL64
=$ac_ct_OTOOL64
6484 OTOOL64
="$ac_cv_prog_OTOOL64"
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6514 $as_echo_n "checking for -single_module linker flag... " >&6; }
6515 if ${lt_cv_apple_cc_single_mod+:} false
; then :
6516 $as_echo_n "(cached) " >&6
6518 lt_cv_apple_cc_single_mod
=no
6519 if test -z "$LT_MULTI_MODULE"; then
6520 # By default we will add the -single_module flag. You can override
6521 # by either setting the environment variable LT_MULTI_MODULE
6522 # non-empty at configure time, or by adding -multi_module to the
6524 rm -rf libconftest.dylib
*
6525 echo "int foo(void){return 1;}" > conftest.c
6526 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6527 -dynamiclib -Wl,-single_module conftest.c" >&5
6528 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6529 -dynamiclib -Wl,-single_module conftest.c
2>conftest.err
6531 # If there is a non-empty error log, and "single_module"
6532 # appears in it, assume the flag caused a linker warning
6533 if test -s conftest.err
&& $GREP single_module conftest.err
; then
6534 cat conftest.err
>&5
6535 # Otherwise, if the output was created with a 0 exit code from
6536 # the compiler, it worked.
6537 elif test -f libconftest.dylib
&& test 0 = "$_lt_result"; then
6538 lt_cv_apple_cc_single_mod
=yes
6540 cat conftest.err
>&5
6542 rm -rf libconftest.dylib
*
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6547 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6550 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6551 if ${lt_cv_ld_exported_symbols_list+:} false
; then :
6552 $as_echo_n "(cached) " >&6
6554 lt_cv_ld_exported_symbols_list
=no
6555 save_LDFLAGS
=$LDFLAGS
6556 echo "_main" > conftest.sym
6557 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6559 /* end confdefs.h. */
6569 if ac_fn_c_try_link
"$LINENO"; then :
6570 lt_cv_ld_exported_symbols_list
=yes
6572 lt_cv_ld_exported_symbols_list
=no
6574 rm -f core conftest.err conftest.
$ac_objext \
6575 conftest
$ac_exeext conftest.
$ac_ext
6576 LDFLAGS
=$save_LDFLAGS
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6580 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6583 $as_echo_n "checking for -force_load linker flag... " >&6; }
6584 if ${lt_cv_ld_force_load+:} false
; then :
6585 $as_echo_n "(cached) " >&6
6587 lt_cv_ld_force_load
=no
6588 cat > conftest.c
<< _LT_EOF
6589 int forced_loaded() { return 2;}
6591 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6592 $LTCC $LTCFLAGS -c -o conftest.o conftest.c
2>&5
6593 echo "$AR cr libconftest.a conftest.o" >&5
6594 $AR cr libconftest.a conftest.o
2>&5
6595 echo "$RANLIB libconftest.a" >&5
6596 $RANLIB libconftest.a
2>&5
6597 cat > conftest.c
<< _LT_EOF
6598 int main() { return 0;}
6600 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6601 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
2>conftest.err
6603 if test -s conftest.err
&& $GREP force_load conftest.err
; then
6604 cat conftest.err
>&5
6605 elif test -f conftest
&& test 0 = "$_lt_result" && $GREP forced_load conftest
>/dev
/null
2>&1; then
6606 lt_cv_ld_force_load
=yes
6608 cat conftest.err
>&5
6610 rm -f conftest.err libconftest.a conftest conftest.c
6611 rm -rf conftest.dSYM
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6615 $as_echo "$lt_cv_ld_force_load" >&6; }
6617 rhapsody
* | darwin1.
[012])
6618 _lt_dar_allow_undefined
='$wl-undefined ${wl}suppress' ;;
6620 _lt_dar_allow_undefined
='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6621 darwin
*) # darwin 5.x on
6622 # if running on 10.5 or later, the deployment target defaults
6623 # to the OS version, if on x86, and 10.4, the deployment
6624 # target defaults to 10.4. Don't you love it?
6625 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6626 10.0,*86*-darwin8*|
10.0,*-darwin[91]*)
6627 _lt_dar_allow_undefined
='$wl-undefined ${wl}dynamic_lookup' ;;
6629 _lt_dar_allow_undefined
='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6631 _lt_dar_allow_undefined
='$wl-undefined ${wl}dynamic_lookup' ;;
6635 if test yes = "$lt_cv_apple_cc_single_mod"; then
6636 _lt_dar_single_mod
='$single_module'
6638 if test yes = "$lt_cv_ld_exported_symbols_list"; then
6639 _lt_dar_export_syms
=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
6641 _lt_dar_export_syms
='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
6643 if test : != "$DSYMUTIL" && test no
= "$lt_cv_ld_force_load"; then
6644 _lt_dsymutil
='~$DSYMUTIL $lib || :'
6651 # func_munge_path_list VARIABLE PATH
6652 # -----------------------------------
6653 # VARIABLE is name of variable containing _space_ separated list of
6654 # directories to be munged by the contents of PATH, which is string
6657 # string "DIR[ DIR]" will be prepended to VARIABLE
6659 # string "DIR[ DIR]" will be appended to VARIABLE
6660 # "DIRP[:DIRP]::[DIRA:]DIRA"
6661 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
6662 # "DIRA[ DIRA]" will be appended to VARIABLE
6664 # VARIABLE will be replaced by "DIR[ DIR]"
6665 func_munge_path_list
()
6671 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$
$1\"
6674 eval $1=\"\$
$1 `$ECHO $2 | $SED 's/:/ /g'`\"
6677 eval $1=\"\$
$1\
`$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
6678 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$
$1\"
6681 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
6687 ac_cpp
='$CPP $CPPFLAGS'
6688 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6689 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6690 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6692 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6693 # On Suns, sometimes $CPP names a directory.
6694 if test -n "$CPP" && test -d "$CPP"; then
6697 if test -z "$CPP"; then
6698 if ${ac_cv_prog_CPP+:} false
; then :
6699 $as_echo_n "(cached) " >&6
6701 # Double quotes because CPP needs to be expanded
6702 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6705 for ac_c_preproc_warn_flag
in '' yes
6707 # Use a header file that comes with gcc, so configuring glibc
6708 # with a fresh cross-compiler works.
6709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6710 # <limits.h> exists even on freestanding compilers.
6711 # On the NeXT, cc -E runs the code through the compiler's parser,
6712 # not just through cpp. "Syntax error" is here to catch this case.
6713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6716 # include <limits.h>
6718 # include <assert.h>
6722 if ac_fn_c_try_cpp
"$LINENO"; then :
6725 # Broken: fails on valid input.
6728 rm -f conftest.err conftest.i conftest.
$ac_ext
6730 # OK, works on sane cases. Now check whether nonexistent headers
6731 # can be detected and how.
6732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6734 #include <ac_nonexistent.h>
6736 if ac_fn_c_try_cpp
"$LINENO"; then :
6737 # Broken: success on invalid input.
6740 # Passes both tests.
6744 rm -f conftest.err conftest.i conftest.
$ac_ext
6747 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6748 rm -f conftest.i conftest.err conftest.
$ac_ext
6749 if $ac_preproc_ok; then :
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6762 $as_echo "$CPP" >&6; }
6764 for ac_c_preproc_warn_flag
in '' yes
6766 # Use a header file that comes with gcc, so configuring glibc
6767 # with a fresh cross-compiler works.
6768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6769 # <limits.h> exists even on freestanding compilers.
6770 # On the NeXT, cc -E runs the code through the compiler's parser,
6771 # not just through cpp. "Syntax error" is here to catch this case.
6772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6773 /* end confdefs.h. */
6775 # include <limits.h>
6777 # include <assert.h>
6781 if ac_fn_c_try_cpp
"$LINENO"; then :
6784 # Broken: fails on valid input.
6787 rm -f conftest.err conftest.i conftest.
$ac_ext
6789 # OK, works on sane cases. Now check whether nonexistent headers
6790 # can be detected and how.
6791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6792 /* end confdefs.h. */
6793 #include <ac_nonexistent.h>
6795 if ac_fn_c_try_cpp
"$LINENO"; then :
6796 # Broken: success on invalid input.
6799 # Passes both tests.
6803 rm -f conftest.err conftest.i conftest.
$ac_ext
6806 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6807 rm -f conftest.i conftest.err conftest.
$ac_ext
6808 if $ac_preproc_ok; then :
6811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6813 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6814 See \`config.log' for more details" "$LINENO" 5; }
6818 ac_cpp
='$CPP $CPPFLAGS'
6819 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6820 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6825 $as_echo_n "checking for ANSI C header files... " >&6; }
6826 if ${ac_cv_header_stdc+:} false
; then :
6827 $as_echo_n "(cached) " >&6
6829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6844 if ac_fn_c_try_compile
"$LINENO"; then :
6845 ac_cv_header_stdc
=yes
6847 ac_cv_header_stdc
=no
6849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6851 if test $ac_cv_header_stdc = yes; then
6852 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h. */
6858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6859 $EGREP "memchr" >/dev
/null
2>&1; then :
6862 ac_cv_header_stdc
=no
6868 if test $ac_cv_header_stdc = yes; then
6869 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6876 $EGREP "free" >/dev
/null
2>&1; then :
6879 ac_cv_header_stdc
=no
6885 if test $ac_cv_header_stdc = yes; then
6886 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6887 if test "$cross_compiling" = yes; then :
6890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h. */
6894 #if ((' ' & 0x0FF) == 0x020)
6895 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6896 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6898 # define ISLOWER(c) \
6899 (('a' <= (c) && (c) <= 'i') \
6900 || ('j' <= (c) && (c) <= 'r') \
6901 || ('s' <= (c) && (c) <= 'z'))
6902 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6905 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6910 for (i = 0; i < 256; i++)
6911 if (XOR (islower (i), ISLOWER (i))
6912 || toupper (i) != TOUPPER (i))
6917 if ac_fn_c_try_run
"$LINENO"; then :
6920 ac_cv_header_stdc
=no
6922 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6923 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6929 $as_echo "$ac_cv_header_stdc" >&6; }
6930 if test $ac_cv_header_stdc = yes; then
6932 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6936 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6937 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6938 inttypes.h stdint.h unistd.h
6940 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6941 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6943 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6944 cat >>confdefs.h
<<_ACEOF
6945 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6953 for ac_header
in dlfcn.h
6955 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6957 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
6958 cat >>confdefs.h
<<_ACEOF
6959 #define HAVE_DLFCN_H 1
6980 # Check whether --enable-shared was given.
6981 if test "${enable_shared+set}" = set; then :
6982 enableval
=$enable_shared; p
=${PACKAGE-default}
6984 yes) enable_shared
=yes ;;
6985 no
) enable_shared
=no
;;
6988 # Look at the argument we got. We use all the common list separators.
6989 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
6990 for pkg
in $enableval; do
6992 if test "X$pkg" = "X$p"; then
7011 # Check whether --enable-static was given.
7012 if test "${enable_static+set}" = set; then :
7013 enableval
=$enable_static; p
=${PACKAGE-default}
7015 yes) enable_static
=yes ;;
7016 no
) enable_static
=no
;;
7019 # Look at the argument we got. We use all the common list separators.
7020 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
7021 for pkg
in $enableval; do
7023 if test "X$pkg" = "X$p"; then
7043 # Check whether --with-pic was given.
7044 if test "${with_pic+set}" = set; then :
7045 withval
=$with_pic; lt_p
=${PACKAGE-default}
7047 yes|no
) pic_mode
=$withval ;;
7050 # Look at the argument we got. We use all the common list separators.
7051 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
7052 for lt_pkg
in $withval; do
7054 if test "X$lt_pkg" = "X$lt_p"; then
7072 # Check whether --enable-fast-install was given.
7073 if test "${enable_fast_install+set}" = set; then :
7074 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7076 yes) enable_fast_install
=yes ;;
7077 no
) enable_fast_install
=no
;;
7079 enable_fast_install
=no
7080 # Look at the argument we got. We use all the common list separators.
7081 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
7082 for pkg
in $enableval; do
7084 if test "X$pkg" = "X$p"; then
7085 enable_fast_install
=yes
7092 enable_fast_install
=yes
7102 shared_archive_member_spec
=
7103 case $host,$enable_shared in
7104 power
*-*-aix[5-9]*,yes)
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7106 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7108 # Check whether --with-aix-soname was given.
7109 if test "${with_aix_soname+set}" = set; then :
7110 withval
=$with_aix_soname; case $withval in
7114 as_fn_error $?
"Unknown argument to --with-aix-soname" "$LINENO" 5
7117 lt_cv_with_aix_soname
=$with_aix_soname
7119 if ${lt_cv_with_aix_soname+:} false
; then :
7120 $as_echo_n "(cached) " >&6
7122 lt_cv_with_aix_soname
=aix
7125 with_aix_soname
=$lt_cv_with_aix_soname
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7129 $as_echo "$with_aix_soname" >&6; }
7130 if test aix
!= "$with_aix_soname"; then
7131 # For the AIX way of multilib, we name the shared archive member
7132 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7133 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7134 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7135 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7136 if test 64 = "${OBJECT_MODE-32}"; then
7137 shared_archive_member_spec
=shr_64
7139 shared_archive_member_spec
=shr
7157 # This can be used to rebuild libtool when needed
7158 LIBTOOL_DEPS
=$ltmain
7160 # Always use our own libtool.
7161 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7192 test -z "$LN_S" && LN_S
="ln -s"
7207 if test -n "${ZSH_VERSION+set}"; then
7208 setopt NO_GLOB_SUBST
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7212 $as_echo_n "checking for objdir... " >&6; }
7213 if ${lt_cv_objdir+:} false
; then :
7214 $as_echo_n "(cached) " >&6
7216 rm -f .libs
2>/dev
/null
7217 mkdir .libs
2>/dev
/null
7218 if test -d .libs
; then
7221 # MS-DOS does not allow filenames that begin with a dot.
7224 rmdir .libs
2>/dev
/null
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7227 $as_echo "$lt_cv_objdir" >&6; }
7228 objdir
=$lt_cv_objdir
7234 cat >>confdefs.h
<<_ACEOF
7235 #define LT_OBJDIR "$lt_cv_objdir/"
7243 # AIX sometimes has problems with the GCC collect2 program. For some
7244 # reason, if we set the COLLECT_NAMES environment variable, the problems
7245 # vanish in a puff of smoke.
7246 if test set != "${COLLECT_NAMES+set}"; then
7248 export COLLECT_NAMES
7255 can_build_shared
=yes
7257 # All known linkers require a '.a' archive for static linking (except MSVC,
7258 # which needs '.lib').
7261 with_gnu_ld
=$lt_cv_prog_gnu_ld
7266 # Set sane defaults for various variables
7267 test -z "$CC" && CC
=cc
7268 test -z "$LTCC" && LTCC
=$CC
7269 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7270 test -z "$LD" && LD
=ld
7271 test -z "$ac_objext" && ac_objext
=o
7273 func_cc_basename
$compiler
7274 cc_basename
=$func_cc_basename_result
7277 # Only perform the check for file, if the check method requires it
7278 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7279 case $deplibs_check_method in
7281 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7283 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7284 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
7285 $as_echo_n "(cached) " >&6
7289 lt_cv_path_MAGIC_CMD
=$MAGIC_CMD # Let the user override the test with a path.
7292 lt_save_MAGIC_CMD
=$MAGIC_CMD
7293 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
7294 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7295 for ac_dir
in $ac_dummy; do
7297 test -z "$ac_dir" && ac_dir
=.
7298 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7299 lt_cv_path_MAGIC_CMD
=$ac_dir/"${ac_tool_prefix}file"
7300 if test -n "$file_magic_test_file"; then
7301 case $deplibs_check_method in
7303 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7304 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
7305 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7306 $EGREP "$file_magic_regex" > /dev
/null
; then
7311 *** Warning: the command libtool uses to detect shared libraries,
7312 *** $file_magic_cmd, produces output that libtool cannot recognize.
7313 *** The result is that libtool may fail to recognize shared libraries
7314 *** as such. This will affect the creation of libtool libraries that
7315 *** depend on shared libraries, but programs linked with such libtool
7316 *** libraries will work regardless of this problem. Nevertheless, you
7317 *** may want to report the problem to your system manager and/or to
7318 *** bug-libtool@gnu.org
7328 MAGIC_CMD
=$lt_save_MAGIC_CMD
7333 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
7334 if test -n "$MAGIC_CMD"; then
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7336 $as_echo "$MAGIC_CMD" >&6; }
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339 $as_echo "no" >&6; }
7346 if test -z "$lt_cv_path_MAGIC_CMD"; then
7347 if test -n "$ac_tool_prefix"; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7349 $as_echo_n "checking for file... " >&6; }
7350 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
7351 $as_echo_n "(cached) " >&6
7355 lt_cv_path_MAGIC_CMD
=$MAGIC_CMD # Let the user override the test with a path.
7358 lt_save_MAGIC_CMD
=$MAGIC_CMD
7359 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
7360 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7361 for ac_dir
in $ac_dummy; do
7363 test -z "$ac_dir" && ac_dir
=.
7364 if test -f "$ac_dir/file"; then
7365 lt_cv_path_MAGIC_CMD
=$ac_dir/"file"
7366 if test -n "$file_magic_test_file"; then
7367 case $deplibs_check_method in
7369 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7370 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
7371 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7372 $EGREP "$file_magic_regex" > /dev
/null
; then
7377 *** Warning: the command libtool uses to detect shared libraries,
7378 *** $file_magic_cmd, produces output that libtool cannot recognize.
7379 *** The result is that libtool may fail to recognize shared libraries
7380 *** as such. This will affect the creation of libtool libraries that
7381 *** depend on shared libraries, but programs linked with such libtool
7382 *** libraries will work regardless of this problem. Nevertheless, you
7383 *** may want to report the problem to your system manager and/or to
7384 *** bug-libtool@gnu.org
7394 MAGIC_CMD
=$lt_save_MAGIC_CMD
7399 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
7400 if test -n "$MAGIC_CMD"; then
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7402 $as_echo "$MAGIC_CMD" >&6; }
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405 $as_echo "no" >&6; }
7418 # Use C for the default configuration in the libtool script
7422 ac_cpp
='$CPP $CPPFLAGS'
7423 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7424 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7425 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7428 # Source file extension for C test sources.
7431 # Object file extension for compiled C test sources.
7435 # Code to be used in simple compile tests
7436 lt_simple_compile_test_code
="int some_variable = 0;"
7438 # Code to be used in simple link tests
7439 lt_simple_link_test_code
='int main(){return(0);}'
7447 # If no C compiler was specified, use CC.
7450 # If no C compiler flags were specified, use CFLAGS.
7451 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7453 # Allow CC to be a program name with arguments.
7456 # Save the default compiler, since it gets overwritten when the other
7457 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7458 compiler_DEFAULT
=$CC
7460 # save warnings/boilerplate of simple test code
7461 ac_outfile
=conftest.
$ac_objext
7462 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
7463 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7464 _lt_compiler_boilerplate
=`cat conftest.err`
7467 ac_outfile
=conftest.
$ac_objext
7468 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
7469 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7470 _lt_linker_boilerplate
=`cat conftest.err`
7474 if test -n "$compiler"; then
7476 lt_prog_compiler_no_builtin_flag
=
7478 if test yes = "$GCC"; then
7479 case $cc_basename in
7481 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
7483 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7487 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7488 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
7489 $as_echo_n "(cached) " >&6
7491 lt_cv_prog_compiler_rtti_exceptions
=no
7492 ac_outfile
=conftest.
$ac_objext
7493 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7494 lt_compiler_flag
="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
7495 # Insert the option either (1) after the last *FLAGS variable, or
7496 # (2) before a word containing "conftest.", or (3) at the end.
7497 # Note that $ac_compile itself does not contain backslashes and begins
7498 # with a dollar sign (not a hyphen), so the echo should work correctly.
7499 # The option is referenced via a variable to avoid confusing sed.
7500 lt_compile
=`echo "$ac_compile" | $SED \
7501 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7503 -e 's:$: $lt_compiler_flag:'`
7504 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7505 (eval "$lt_compile" 2>conftest.err
)
7507 cat conftest.err
>&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 if (exit $ac_status) && test -s "$ac_outfile"; then
7510 # The compiler can only warn and ignore the option if not recognized
7511 # So say no if there are warnings other than the usual output.
7512 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
7513 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7514 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7515 lt_cv_prog_compiler_rtti_exceptions
=yes
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7522 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7524 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7525 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7537 lt_prog_compiler_wl
=
7538 lt_prog_compiler_pic
=
7539 lt_prog_compiler_static
=
7542 if test yes = "$GCC"; then
7543 lt_prog_compiler_wl
='-Wl,'
7544 lt_prog_compiler_static
='-static'
7548 # All AIX code is PIC.
7549 if test ia64
= "$host_cpu"; then
7550 # AIX 5 now supports IA64 processor
7551 lt_prog_compiler_static
='-Bstatic'
7553 lt_prog_compiler_pic
='-fPIC'
7559 # see comment about AmigaOS4 .so support
7560 lt_prog_compiler_pic
='-fPIC'
7563 # FIXME: we need at least 68020 code to build shared libraries, but
7564 # adding the '-m68020' flag to GCC prevents building anything better,
7566 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7571 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7572 # PIC is the default for these OSes.
7575 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
7576 # This hack is so that the source file can tell whether it is being
7577 # built for inclusion in a dll (and should export symbols for example).
7578 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7579 # (--disable-auto-import) libraries
7580 lt_prog_compiler_pic
='-DDLL_EXPORT'
7583 lt_prog_compiler_static
='$wl-static'
7588 darwin
* | rhapsody
*)
7589 # PIC is the default on this platform
7590 # Common symbols not allowed in MH_DYLIB files
7591 lt_prog_compiler_pic
='-fno-common'
7595 # PIC is the default for Haiku.
7596 # The "-static" flag exists, but is broken.
7597 lt_prog_compiler_static
=
7601 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7602 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7603 # sets the default TLS model and affects inlining.
7609 lt_prog_compiler_pic
='-fPIC'
7615 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7616 # Instead, we relocate shared libraries at runtime.
7620 # Just because we use GCC doesn't mean we suddenly get shared libraries
7621 # on systems that don't support them.
7622 lt_prog_compiler_can_build_shared
=no
7627 # QNX uses GNU C++, but need to define -shared option too, otherwise
7629 lt_prog_compiler_pic
='-fPIC -shared'
7633 if test -d /usr
/nec
; then
7634 lt_prog_compiler_pic
=-Kconform_pic
7639 lt_prog_compiler_pic
='-fPIC'
7643 case $cc_basename in
7644 nvcc
*) # Cuda Compiler Driver 2.2
7645 lt_prog_compiler_wl
='-Xlinker '
7646 if test -n "$lt_prog_compiler_pic"; then
7647 lt_prog_compiler_pic
="-Xcompiler $lt_prog_compiler_pic"
7652 # PORTME Check for flag to pass linker flags through the system compiler.
7655 lt_prog_compiler_wl
='-Wl,'
7656 if test ia64
= "$host_cpu"; then
7657 # AIX 5 now supports IA64 processor
7658 lt_prog_compiler_static
='-Bstatic'
7660 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
7664 darwin
* | rhapsody
*)
7665 # PIC is the default on this platform
7666 # Common symbols not allowed in MH_DYLIB files
7667 lt_prog_compiler_pic
='-fno-common'
7668 case $cc_basename in
7670 # NAG Fortran compiler
7671 lt_prog_compiler_wl
='-Wl,-Wl,,'
7672 lt_prog_compiler_pic
='-PIC'
7673 lt_prog_compiler_static
='-Bstatic'
7678 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
7679 # This hack is so that the source file can tell whether it is being
7680 # built for inclusion in a dll (and should export symbols for example).
7681 lt_prog_compiler_pic
='-DDLL_EXPORT'
7684 lt_prog_compiler_static
='$wl-static'
7689 hpux9
* | hpux10
* | hpux11
*)
7690 lt_prog_compiler_wl
='-Wl,'
7691 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7698 lt_prog_compiler_pic
='+Z'
7701 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7702 lt_prog_compiler_static
='$wl-a ${wl}archive'
7705 irix5
* | irix6
* | nonstopux
*)
7706 lt_prog_compiler_wl
='-Wl,'
7707 # PIC (with -KPIC) is the default.
7708 lt_prog_compiler_static
='-non_shared'
7711 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
7712 case $cc_basename in
7713 # old Intel for x86_64, which still supported -KPIC.
7715 lt_prog_compiler_wl
='-Wl,'
7716 lt_prog_compiler_pic
='-KPIC'
7717 lt_prog_compiler_static
='-static'
7719 # flang / f18. f95 an alias for gfortran or flang on Debian
7720 flang
* | f18
* | f95
*)
7721 lt_prog_compiler_wl
='-Wl,'
7722 lt_prog_compiler_pic
='-fPIC'
7723 lt_prog_compiler_static
='-static'
7725 # icc used to be incompatible with GCC.
7726 # ICC 10 doesn't accept -KPIC any more.
7728 lt_prog_compiler_wl
='-Wl,'
7729 lt_prog_compiler_pic
='-fPIC'
7730 lt_prog_compiler_static
='-static'
7732 # Lahey Fortran 8.1.
7734 lt_prog_compiler_wl
='-Wl,'
7735 lt_prog_compiler_pic
='--shared'
7736 lt_prog_compiler_static
='--static'
7739 # NAG Fortran compiler
7740 lt_prog_compiler_wl
='-Wl,-Wl,,'
7741 lt_prog_compiler_pic
='-PIC'
7742 lt_prog_compiler_static
='-Bstatic'
7745 # Fabrice Bellard et al's Tiny C Compiler
7746 lt_prog_compiler_wl
='-Wl,'
7747 lt_prog_compiler_pic
='-fPIC'
7748 lt_prog_compiler_static
='-static'
7750 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
7751 # Portland Group compilers (*not* the Pentium gcc compiler,
7752 # which looks to be a dead project)
7753 lt_prog_compiler_wl
='-Wl,'
7754 lt_prog_compiler_pic
='-fpic'
7755 lt_prog_compiler_static
='-Bstatic'
7758 lt_prog_compiler_wl
='-Wl,'
7759 # All Alpha code is PIC.
7760 lt_prog_compiler_static
='-non_shared'
7762 xl
* | bgxl
* | bgf
* | mpixl
*)
7763 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7764 lt_prog_compiler_wl
='-Wl,'
7765 lt_prog_compiler_pic
='-qpic'
7766 lt_prog_compiler_static
='-qstaticlink'
7769 case `$CC -V 2>&1 | sed 5q` in
7770 *Sun\ Ceres\ Fortran
* |
*Sun
*Fortran
*\
[1-7].
* |
*Sun
*Fortran
*\
8.
[0-3]*)
7771 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7772 lt_prog_compiler_pic
='-KPIC'
7773 lt_prog_compiler_static
='-Bstatic'
7774 lt_prog_compiler_wl
=''
7776 *Sun\ F
* |
*Sun
*Fortran
*)
7777 lt_prog_compiler_pic
='-KPIC'
7778 lt_prog_compiler_static
='-Bstatic'
7779 lt_prog_compiler_wl
='-Qoption ld '
7783 lt_prog_compiler_pic
='-KPIC'
7784 lt_prog_compiler_static
='-Bstatic'
7785 lt_prog_compiler_wl
='-Wl,'
7787 *Intel
*\
[CF
]*Compiler
*)
7788 lt_prog_compiler_wl
='-Wl,'
7789 lt_prog_compiler_pic
='-fPIC'
7790 lt_prog_compiler_static
='-static'
7793 lt_prog_compiler_wl
='-Wl,'
7794 lt_prog_compiler_pic
='-fpic'
7795 lt_prog_compiler_static
='-Bstatic'
7803 lt_prog_compiler_pic
='-KPIC'
7804 lt_prog_compiler_static
='-Bstatic'
7808 # QNX uses GNU C++, but need to define -shared option too, otherwise
7810 lt_prog_compiler_pic
='-fPIC -shared'
7813 osf3
* | osf4
* | osf5
*)
7814 lt_prog_compiler_wl
='-Wl,'
7815 # All OSF/1 code is PIC.
7816 lt_prog_compiler_static
='-non_shared'
7820 lt_prog_compiler_static
='-non_shared'
7824 lt_prog_compiler_pic
='-KPIC'
7825 lt_prog_compiler_static
='-Bstatic'
7826 case $cc_basename in
7827 f77
* | f90
* | f95
* | sunf77
* | sunf90
* | sunf95
*)
7828 lt_prog_compiler_wl
='-Qoption ld ';;
7830 lt_prog_compiler_wl
='-Wl,';;
7835 lt_prog_compiler_wl
='-Qoption ld '
7836 lt_prog_compiler_pic
='-PIC'
7837 lt_prog_compiler_static
='-Bstatic'
7840 sysv4 | sysv4.2uw2
* | sysv4.3
*)
7841 lt_prog_compiler_wl
='-Wl,'
7842 lt_prog_compiler_pic
='-KPIC'
7843 lt_prog_compiler_static
='-Bstatic'
7847 if test -d /usr
/nec
; then
7848 lt_prog_compiler_pic
='-Kconform_pic'
7849 lt_prog_compiler_static
='-Bstatic'
7853 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
7854 lt_prog_compiler_wl
='-Wl,'
7855 lt_prog_compiler_pic
='-KPIC'
7856 lt_prog_compiler_static
='-Bstatic'
7860 lt_prog_compiler_wl
='-Wl,'
7861 lt_prog_compiler_can_build_shared
=no
7865 lt_prog_compiler_pic
='-pic'
7866 lt_prog_compiler_static
='-Bstatic'
7870 lt_prog_compiler_can_build_shared
=no
7876 # For platforms that do not support PIC, -DPIC is meaningless:
7878 lt_prog_compiler_pic
=
7881 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7886 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7887 if ${lt_cv_prog_compiler_pic+:} false
; then :
7888 $as_echo_n "(cached) " >&6
7890 lt_cv_prog_compiler_pic
=$lt_prog_compiler_pic
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7893 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7894 lt_prog_compiler_pic
=$lt_cv_prog_compiler_pic
7897 # Check to make sure the PIC flag actually works.
7899 if test -n "$lt_prog_compiler_pic"; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7901 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7902 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
7903 $as_echo_n "(cached) " >&6
7905 lt_cv_prog_compiler_pic_works
=no
7906 ac_outfile
=conftest.
$ac_objext
7907 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7908 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
7909 # Insert the option either (1) after the last *FLAGS variable, or
7910 # (2) before a word containing "conftest.", or (3) at the end.
7911 # Note that $ac_compile itself does not contain backslashes and begins
7912 # with a dollar sign (not a hyphen), so the echo should work correctly.
7913 # The option is referenced via a variable to avoid confusing sed.
7914 lt_compile
=`echo "$ac_compile" | $SED \
7915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7917 -e 's:$: $lt_compiler_flag:'`
7918 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7919 (eval "$lt_compile" 2>conftest.err
)
7921 cat conftest.err
>&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 if (exit $ac_status) && test -s "$ac_outfile"; then
7924 # The compiler can only warn and ignore the option if not recognized
7925 # So say no if there are warnings other than the usual output.
7926 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
7927 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7928 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7929 lt_cv_prog_compiler_pic_works
=yes
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7936 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7938 if test yes = "$lt_cv_prog_compiler_pic_works"; then
7939 case $lt_prog_compiler_pic in
7941 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
7944 lt_prog_compiler_pic
=
7945 lt_prog_compiler_can_build_shared
=no
7961 # Check to make sure the static flag actually works.
7963 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7965 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7966 if ${lt_cv_prog_compiler_static_works+:} false
; then :
7967 $as_echo_n "(cached) " >&6
7969 lt_cv_prog_compiler_static_works
=no
7970 save_LDFLAGS
=$LDFLAGS
7971 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
7972 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
7973 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
7974 # The linker can only warn and ignore the option if not recognized
7975 # So say no if there are warnings
7976 if test -s conftest.err
; then
7977 # Append any errors to the config.log.
7978 cat conftest.err
1>&5
7979 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
7980 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7981 if diff conftest.exp conftest.er2
>/dev
/null
; then
7982 lt_cv_prog_compiler_static_works
=yes
7985 lt_cv_prog_compiler_static_works
=yes
7989 LDFLAGS
=$save_LDFLAGS
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7993 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7995 if test yes = "$lt_cv_prog_compiler_static_works"; then
7998 lt_prog_compiler_static
=
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8008 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8009 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8010 $as_echo_n "(cached) " >&6
8012 lt_cv_prog_compiler_c_o
=no
8013 $RM -r conftest
2>/dev
/null
8017 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8019 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8020 # Insert the option either (1) after the last *FLAGS variable, or
8021 # (2) before a word containing "conftest.", or (3) at the end.
8022 # Note that $ac_compile itself does not contain backslashes and begins
8023 # with a dollar sign (not a hyphen), so the echo should work correctly.
8024 lt_compile
=`echo "$ac_compile" | $SED \
8025 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8027 -e 's:$: $lt_compiler_flag:'`
8028 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8029 (eval "$lt_compile" 2>out
/conftest.err
)
8031 cat out
/conftest.err
>&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8035 # The compiler can only warn and ignore the option if not recognized
8036 # So say no if there are warnings
8037 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8038 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8039 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8040 lt_cv_prog_compiler_c_o
=yes
8045 # SGI C++ compiler will create directory out/ii_files/ for
8046 # template instantiation
8047 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8048 $RM out
/* && rmdir out
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8055 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8063 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8064 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8065 $as_echo_n "(cached) " >&6
8067 lt_cv_prog_compiler_c_o
=no
8068 $RM -r conftest
2>/dev
/null
8072 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8074 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8075 # Insert the option either (1) after the last *FLAGS variable, or
8076 # (2) before a word containing "conftest.", or (3) at the end.
8077 # Note that $ac_compile itself does not contain backslashes and begins
8078 # with a dollar sign (not a hyphen), so the echo should work correctly.
8079 lt_compile
=`echo "$ac_compile" | $SED \
8080 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8082 -e 's:$: $lt_compiler_flag:'`
8083 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8084 (eval "$lt_compile" 2>out
/conftest.err
)
8086 cat out
/conftest.err
>&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8090 # The compiler can only warn and ignore the option if not recognized
8091 # So say no if there are warnings
8092 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8093 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8094 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8095 lt_cv_prog_compiler_c_o
=yes
8100 # SGI C++ compiler will create directory out/ii_files/ for
8101 # template instantiation
8102 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8103 $RM out
/* && rmdir out
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8110 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8115 hard_links
=nottested
8116 if test no
= "$lt_cv_prog_compiler_c_o" && test no
!= "$need_locks"; then
8117 # do not overwrite the value of need_locks provided by the user
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8119 $as_echo_n "checking if we can lock with hard links... " >&6; }
8122 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8124 ln conftest.a conftest.b
2>&5 || hard_links
=no
8125 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8127 $as_echo "$hard_links" >&6; }
8128 if test no
= "$hard_links"; then
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8130 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8143 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8146 allow_undefined_flag
=
8147 always_export_symbols
=no
8149 archive_expsym_cmds
=
8150 compiler_needs_object
=no
8151 enable_shared_with_static_runtimes
=no
8152 export_dynamic_flag_spec
=
8153 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8154 hardcode_automatic
=no
8156 hardcode_direct_absolute
=no
8157 hardcode_libdir_flag_spec
=
8158 hardcode_libdir_separator
=
8160 hardcode_shlibpath_var
=unsupported
8162 link_all_deplibs
=unknown
8165 old_archive_from_new_cmds
=
8166 old_archive_from_expsyms_cmds
=
8167 thread_safe_flag_spec
=
8168 whole_archive_flag_spec
=
8169 # include_expsyms should be a list of space-separated symbols to be *always*
8170 # included in the symbol list
8172 # exclude_expsyms can be an extended regexp of symbols to exclude
8173 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8174 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8175 # as well as any symbol that contains 'd'.
8176 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8177 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8178 # platforms (ab)use it in PIC code, but their linkers get confused if
8179 # the symbol is explicitly referenced. Since portable code cannot
8180 # rely on this symbol name, it's probably fine to never include it in
8181 # preloaded symbol tables.
8182 # Exclude shared library initialization/finalization symbols.
8183 extract_expsyms_cmds
=
8186 cygwin
* | mingw
* | pw32
* | cegcc
*)
8187 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8188 # When not using gcc, we currently assume that we are using
8189 # Microsoft Visual C++.
8190 if test yes != "$GCC"; then
8195 # we just hope/assume this is gcc and not c89 (= MSVC++)
8201 linux
* | k
*bsd
*-gnu | gnu
*)
8208 # On some targets, GNU ld is compatible enough with the native linker
8209 # that we're better off using the native interface for both.
8210 lt_use_gnu_ld_interface
=no
8211 if test yes = "$with_gnu_ld"; then
8214 # The AIX port of GNU ld has always aspired to compatibility
8215 # with the native linker. However, as the warning in the GNU ld
8216 # block says, versions before 2.19.5* couldn't really create working
8217 # shared libraries, regardless of the interface used.
8218 case `$LD -v 2>&1` in
8219 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
8220 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
8221 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
8223 lt_use_gnu_ld_interface
=yes
8228 lt_use_gnu_ld_interface
=yes
8233 if test yes = "$lt_use_gnu_ld_interface"; then
8234 # If archive_cmds runs LD, not CC, wlarc should be empty
8237 # Set some defaults for GNU ld with shared library support. These
8238 # are reset later if shared libraries are not supported. Putting them
8239 # here allows them to be overridden if necessary.
8240 runpath_var
=LD_RUN_PATH
8241 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
8242 export_dynamic_flag_spec
='$wl--export-dynamic'
8243 # ancient GNU ld didn't support --whole-archive et. al.
8244 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8245 whole_archive_flag_spec
=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8247 whole_archive_flag_spec
=
8249 supports_anon_versioning
=no
8250 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8251 *GNU\ gold
*) supports_anon_versioning
=yes ;;
8252 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8253 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8254 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8255 *\
2.11.
*) ;; # other 2.11 versions
8256 *) supports_anon_versioning
=yes ;;
8259 # See if GNU ld supports shared libraries.
8262 # On AIX/PPC, the GNU linker is very broken
8263 if test ia64
!= "$host_cpu"; then
8267 *** Warning: the GNU linker, at least up to release 2.19, is reported
8268 *** to be unable to reliably create shared libraries on AIX.
8269 *** Therefore, libtool is disabling shared libraries support. If you
8270 *** really care for shared libraries, you may want to install binutils
8271 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8272 *** You will then need to restart the configuration process.
8281 # see comment about AmigaOS4 .so support
8282 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8283 archive_expsym_cmds
=''
8286 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)'
8287 hardcode_libdir_flag_spec
='-L$libdir'
8288 hardcode_minus_L
=yes
8294 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8295 allow_undefined_flag
=unsupported
8296 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8297 # support --undefined. This deserves some investigation. FIXME
8298 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8304 cygwin
* | mingw
* | pw32
* | cegcc
*)
8305 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8306 # as there is no search path for DLLs.
8307 hardcode_libdir_flag_spec
='-L$libdir'
8308 export_dynamic_flag_spec
='$wl--export-all-symbols'
8309 allow_undefined_flag
=unsupported
8310 always_export_symbols
=no
8311 enable_shared_with_static_runtimes
=yes
8312 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'
8313 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8315 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8316 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8317 # If the export-symbols file already is a .def file, use it as
8318 # is; otherwise, prepend EXPORTS...
8319 archive_expsym_cmds
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8320 cp $export_symbols $output_objdir/$soname.def;
8322 echo EXPORTS > $output_objdir/$soname.def;
8323 cat $export_symbols >> $output_objdir/$soname.def;
8325 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8332 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8333 link_all_deplibs
=yes
8337 hardcode_libdir_flag_spec
='-L$libdir'
8338 hardcode_minus_L
=yes
8339 allow_undefined_flag
=unsupported
8341 archive_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8342 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8343 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8344 $ECHO EXPORTS >> $output_objdir/$libname.def~
8345 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8346 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8347 emximp -o $lib $output_objdir/$libname.def'
8348 archive_expsym_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8349 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8350 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8351 $ECHO EXPORTS >> $output_objdir/$libname.def~
8353 if test EXPORTS = "`$SED 1q $export_symbols`"; then
8354 prefix_cmds="$prefix_cmds -e 1d";
8356 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8357 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8358 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8359 emximp -o $lib $output_objdir/$libname.def'
8360 old_archive_From_new_cmds
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8361 enable_shared_with_static_runtimes
=yes
8366 hardcode_shlibpath_var
=no
8367 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
8368 export_dynamic_flag_spec
='$wl-E'
8369 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8370 # Instead, shared libraries are loaded at an image base (0x10000000 by
8371 # default) and relocated if they conflict, which is a slow very memory
8372 # consuming and fragmenting process. To avoid this, we pick a random,
8373 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8374 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8375 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8376 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'
8379 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8381 if test linux-dietlibc
= "$host_os"; then
8382 case $cc_basename in
8383 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8386 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8387 && test no
= "$tmp_diet"
8389 tmp_addflag
=' $pic_flag'
8390 tmp_sharedflag
='-shared'
8391 case $cc_basename,$host_cpu in
8392 pgcc
*) # Portland Group C compiler
8393 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'
8394 tmp_addflag
=' $pic_flag'
8396 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8397 # Portland Group f77 and f90 compilers
8398 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'
8399 tmp_addflag
=' $pic_flag -Mnomain' ;;
8400 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8401 tmp_addflag
=' -i_dynamic' ;;
8402 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8403 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8404 ifc
* | ifort
*) # Intel Fortran compiler
8405 tmp_addflag
=' -nofor_main' ;;
8406 lf95
*) # Lahey Fortran 8.1
8407 whole_archive_flag_spec
=
8408 tmp_sharedflag
='--shared' ;;
8409 nagfor
*) # NAGFOR 5.3
8410 tmp_sharedflag
='-Wl,-shared' ;;
8411 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8412 tmp_sharedflag
='-qmkshrobj'
8414 nvcc
*) # Cuda Compiler Driver 2.2
8415 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'
8416 compiler_needs_object
=yes
8419 case `$CC -V 2>&1 | sed 5q` in
8420 *Sun\ C
*) # Sun C 5.9
8421 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'
8422 compiler_needs_object
=yes
8423 tmp_sharedflag
='-G' ;;
8424 *Sun\ F
*) # Sun Fortran 8.3
8425 tmp_sharedflag
='-G' ;;
8427 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8429 if test yes = "$supports_anon_versioning"; then
8430 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8431 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8432 echo "local: *; };" >> $output_objdir/$libname.ver~
8433 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8436 case $cc_basename in
8438 export_dynamic_flag_spec
='-rdynamic'
8440 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
8441 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8442 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8443 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
8444 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8445 if test yes = "$supports_anon_versioning"; then
8446 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8447 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8448 echo "local: *; };" >> $output_objdir/$libname.ver~
8449 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8458 netbsd
* | netbsdelf
*-gnu)
8459 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8460 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8463 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8464 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8469 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8473 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8474 *** create shared libraries on Solaris systems. Therefore, libtool
8475 *** is disabling shared libraries support. We urge you to upgrade GNU
8476 *** binutils to release 2.9.1 or newer. Another option is to modify
8477 *** your PATH or compiler configuration so that the native linker is
8478 *** used, and then restart.
8481 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8482 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8483 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8489 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8490 case `$LD -v 2>&1` in
8491 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8495 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8496 *** reliably create shared libraries on SCO systems. Therefore, libtool
8497 *** is disabling shared libraries support. We urge you to upgrade GNU
8498 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8499 *** your PATH or compiler configuration so that the native linker is
8500 *** used, and then restart.
8505 # For security reasons, it is highly recommended that you always
8506 # use absolute paths for naming shared libraries, and exclude the
8507 # DT_RUNPATH tag from executables and libraries. But doing so
8508 # requires that you compile everything twice, which is a pain.
8509 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8510 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
8511 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8512 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8521 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8524 hardcode_shlibpath_var
=no
8528 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8529 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8530 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8537 if test no
= "$ld_shlibs"; then
8539 hardcode_libdir_flag_spec
=
8540 export_dynamic_flag_spec
=
8541 whole_archive_flag_spec
=
8544 # PORTME fill in a description of your system's linker (not GNU ld)
8547 allow_undefined_flag
=unsupported
8548 always_export_symbols
=yes
8549 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'
8550 # Note: this linker hardcodes the directories in LIBPATH if there
8551 # are no directories specified by -L.
8552 hardcode_minus_L
=yes
8553 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8554 # Neither direct hardcoding nor static linking is supported with a
8556 hardcode_direct
=unsupported
8561 if test ia64
= "$host_cpu"; then
8562 # On IA64, the linker does run time linking by default, so we don't
8563 # have to do anything special.
8564 aix_use_runtimelinking
=no
8565 exp_sym_flag
='-Bexport'
8568 # If we're using GNU nm, then we don't want the "-C" option.
8569 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
8570 # Without the "-l" option, or with the "-B" option, AIX nm treats
8571 # weak defined symbols like other global defined symbols, whereas
8572 # GNU nm marks them as "W".
8573 # While the 'weak' keyword is ignored in the Export File, we need
8574 # it in the Import File for the 'aix-soname' feature, so we have
8575 # to replace the "-B" option with "-P" for AIX nm.
8576 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
8577 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'
8579 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'
8581 aix_use_runtimelinking
=no
8583 # Test if we are trying to use run time linking or normal
8584 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8585 # have runtime linking enabled, and use it for executables.
8586 # For shared libraries, we enable/disable runtime linking
8587 # depending on the kind of the shared library created -
8588 # when "with_aix_soname,aix_use_runtimelinking" is:
8589 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
8590 # "aix,yes" lib.so shared, rtl:yes, for executables
8591 # lib.a static archive
8592 # "both,no" lib.so.V(shr.o) shared, rtl:yes
8593 # lib.a(lib.so.V) shared, rtl:no, for executables
8594 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
8595 # lib.a(lib.so.V) shared, rtl:no
8596 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
8597 # lib.a static archive
8598 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
8599 for ld_flag
in $LDFLAGS; do
8600 if (test x-brtl
= "x$ld_flag" ||
test x-Wl
,-brtl = "x$ld_flag"); then
8601 aix_use_runtimelinking
=yes
8605 if test svr4
,no
= "$with_aix_soname,$aix_use_runtimelinking"; then
8606 # With aix-soname=svr4, we create the lib.so.V shared archives only,
8607 # so we don't have lib.a shared libs to link our executables.
8608 # We have to force runtime linking in this case.
8609 aix_use_runtimelinking
=yes
8610 LDFLAGS
="$LDFLAGS -Wl,-brtl"
8615 exp_sym_flag
='-bexport'
8616 no_entry_flag
='-bnoentry'
8619 # When large executables or shared objects are built, AIX ld can
8620 # have problems creating the table of contents. If linking a library
8621 # or program results in "error TOC overflow" add -mminimal-toc to
8622 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8623 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8627 hardcode_direct_absolute
=yes
8628 hardcode_libdir_separator
=':'
8629 link_all_deplibs
=yes
8630 file_list_spec
='$wl-f,'
8631 case $with_aix_soname,$aix_use_runtimelinking in
8632 aix
,*) ;; # traditional, no import file
8633 svr4
,* |
*,yes) # use import file
8634 # The Import File defines what to hardcode.
8636 hardcode_direct_absolute
=no
8640 if test yes = "$GCC"; then
8641 case $host_os in aix4.
[012]|aix4.
[012].
*)
8642 # We only want to do this on AIX 4.2 and lower, the check
8643 # below for broken collect2 doesn't work under 4.3+
8644 collect2name
=`$CC -print-prog-name=collect2`
8645 if test -f "$collect2name" &&
8646 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
8648 # We have reworked collect2
8651 # We have old collect2
8652 hardcode_direct
=unsupported
8653 # It fails to find uninstalled libraries when the uninstalled
8654 # path is not listed in the libpath. Setting hardcode_minus_L
8655 # to unsupported forces relinking
8656 hardcode_minus_L
=yes
8657 hardcode_libdir_flag_spec
='-L$libdir'
8658 hardcode_libdir_separator
=
8662 shared_flag
='-shared'
8663 if test yes = "$aix_use_runtimelinking"; then
8664 shared_flag
="$shared_flag "'$wl-G'
8666 # Need to ensure runtime linking is disabled for the traditional
8667 # shared library, or the linker may eventually find shared libraries
8668 # /with/ Import File - we do not want to mix them.
8669 shared_flag_aix
='-shared'
8670 shared_flag_svr4
='-shared $wl-G'
8673 if test ia64
= "$host_cpu"; then
8674 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8675 # chokes on -Wl,-G. The following line is correct:
8678 if test yes = "$aix_use_runtimelinking"; then
8681 shared_flag
='$wl-bM:SRE'
8683 shared_flag_aix
='$wl-bM:SRE'
8684 shared_flag_svr4
='$wl-G'
8688 export_dynamic_flag_spec
='$wl-bexpall'
8689 # It seems that -bexpall does not export symbols beginning with
8690 # underscore (_), so it is better to generate a list of symbols to export.
8691 always_export_symbols
=yes
8692 if test aix
,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
8693 # Warning - without using the other runtime loading flags (-brtl),
8694 # -berok will link without error, but may produce a broken library.
8695 allow_undefined_flag
='-berok'
8696 # Determine the default libpath from the value encoded in an
8698 if test set = "${lt_cv_aix_libpath+set}"; then
8699 aix_libpath
=$lt_cv_aix_libpath
8701 if ${lt_cv_aix_libpath_+:} false
; then :
8702 $as_echo_n "(cached) " >&6
8704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8705 /* end confdefs.h. */
8715 if ac_fn_c_try_link
"$LINENO"; then :
8717 lt_aix_libpath_sed
='
8718 /Import File Strings/,/^$/ {
8720 s/^0 *\([^ ]*\) *$/\1/
8724 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8725 # Check for a 64-bit object if we didn't find anything.
8726 if test -z "$lt_cv_aix_libpath_"; then
8727 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8730 rm -f core conftest.err conftest.
$ac_objext \
8731 conftest
$ac_exeext conftest.
$ac_ext
8732 if test -z "$lt_cv_aix_libpath_"; then
8733 lt_cv_aix_libpath_
=/usr
/lib
:/lib
8738 aix_libpath
=$lt_cv_aix_libpath_
8741 hardcode_libdir_flag_spec
='$wl-blibpath:$libdir:'"$aix_libpath"
8742 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
8744 if test ia64
= "$host_cpu"; then
8745 hardcode_libdir_flag_spec
='$wl-R $libdir:/usr/lib:/lib'
8746 allow_undefined_flag
="-z nodefs"
8747 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"
8749 # Determine the default libpath from the value encoded in an
8751 if test set = "${lt_cv_aix_libpath+set}"; then
8752 aix_libpath
=$lt_cv_aix_libpath
8754 if ${lt_cv_aix_libpath_+:} false
; then :
8755 $as_echo_n "(cached) " >&6
8757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8758 /* end confdefs.h. */
8768 if ac_fn_c_try_link
"$LINENO"; then :
8770 lt_aix_libpath_sed
='
8771 /Import File Strings/,/^$/ {
8773 s/^0 *\([^ ]*\) *$/\1/
8777 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8778 # Check for a 64-bit object if we didn't find anything.
8779 if test -z "$lt_cv_aix_libpath_"; then
8780 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8783 rm -f core conftest.err conftest.
$ac_objext \
8784 conftest
$ac_exeext conftest.
$ac_ext
8785 if test -z "$lt_cv_aix_libpath_"; then
8786 lt_cv_aix_libpath_
=/usr
/lib
:/lib
8791 aix_libpath
=$lt_cv_aix_libpath_
8794 hardcode_libdir_flag_spec
='$wl-blibpath:$libdir:'"$aix_libpath"
8795 # Warning - without using the other run time loading flags,
8796 # -berok will link without error, but may produce a broken library.
8797 no_undefined_flag
=' $wl-bernotok'
8798 allow_undefined_flag
=' $wl-berok'
8799 if test yes = "$with_gnu_ld"; then
8800 # We only use this code for GNU lds that support --whole-archive.
8801 whole_archive_flag_spec
='$wl--whole-archive$convenience $wl--no-whole-archive'
8803 # Exported symbols can be pulled into shared objects from archives
8804 whole_archive_flag_spec
='$convenience'
8806 archive_cmds_need_lc
=yes
8807 archive_expsym_cmds
='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
8808 # -brtl affects multiple linker settings, -berok does not and is overridden later
8809 compiler_flags_filtered
='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
8810 if test svr4
!= "$with_aix_soname"; then
8811 # This is similar to how AIX traditionally builds its shared libraries.
8812 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'
8814 if test aix
!= "$with_aix_soname"; then
8815 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'
8817 # used by -dlpreopen to get the symbols
8818 archive_expsym_cmds
="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
8820 archive_expsym_cmds
="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
8828 # see comment about AmigaOS4 .so support
8829 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8830 archive_expsym_cmds
=''
8833 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)'
8834 hardcode_libdir_flag_spec
='-L$libdir'
8835 hardcode_minus_L
=yes
8841 export_dynamic_flag_spec
=-rdynamic
8844 cygwin
* | mingw
* | pw32
* | cegcc
*)
8845 # When not using gcc, we currently assume that we are using
8846 # Microsoft Visual C++.
8847 # hardcode_libdir_flag_spec is actually meaningless, as there is
8848 # no search path for DLLs.
8849 case $cc_basename in
8852 hardcode_libdir_flag_spec
=' '
8853 allow_undefined_flag
=unsupported
8854 always_export_symbols
=yes
8856 # Tell ltmain to make .lib files, not .a files.
8858 # Tell ltmain to make .dll files, not .so files.
8860 # FIXME: Setting linknames here is a bad hack.
8861 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
8862 archive_expsym_cmds
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8863 cp "$export_symbols" "$output_objdir/$soname.def";
8864 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
8866 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
8868 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8870 # The linker will not automatically build a static lib if we build a DLL.
8871 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8872 enable_shared_with_static_runtimes
=yes
8873 exclude_expsyms
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8874 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8876 old_postinstall_cmds
='chmod 644 $oldlib'
8877 postlink_cmds
='lt_outputfile="@OUTPUT@"~
8878 lt_tool_outputfile="@TOOL_OUTPUT@"~
8879 case $lt_outputfile in
8882 lt_outputfile=$lt_outputfile.exe
8883 lt_tool_outputfile=$lt_tool_outputfile.exe
8886 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
8887 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8888 $RM "$lt_outputfile.manifest";
8892 # Assume MSVC wrapper
8893 hardcode_libdir_flag_spec
=' '
8894 allow_undefined_flag
=unsupported
8895 # Tell ltmain to make .lib files, not .a files.
8897 # Tell ltmain to make .dll files, not .so files.
8899 # FIXME: Setting linknames here is a bad hack.
8900 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8901 # The linker will automatically build a .lib file if we build a DLL.
8902 old_archive_from_new_cmds
='true'
8903 # FIXME: Should let the user specify the lib program.
8904 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
8905 enable_shared_with_static_runtimes
=yes
8910 darwin
* | rhapsody
*)
8913 archive_cmds_need_lc
=no
8915 hardcode_automatic
=yes
8916 hardcode_shlibpath_var
=unsupported
8917 if test yes = "$lt_cv_ld_force_load"; then
8918 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\"`'
8921 whole_archive_flag_spec
=''
8923 link_all_deplibs
=yes
8924 allow_undefined_flag
=$_lt_dar_allow_undefined
8925 case $cc_basename in
8926 ifort
*|nagfor
*) _lt_dar_can_shared
=yes ;;
8927 *) _lt_dar_can_shared
=$GCC ;;
8929 if test yes = "$_lt_dar_can_shared"; then
8930 output_verbose_link_cmd
=func_echo_all
8931 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
8932 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
8933 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"
8934 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"
8943 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8944 hardcode_libdir_flag_spec
='-L$libdir'
8945 hardcode_shlibpath_var
=no
8948 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8949 # support. Future versions do this automatically, but an explicit c++rt0.o
8950 # does not break anything, and helps significantly (at the cost of a little
8953 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8954 hardcode_libdir_flag_spec
='-R$libdir'
8956 hardcode_shlibpath_var
=no
8959 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8961 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8963 hardcode_minus_L
=yes
8964 hardcode_shlibpath_var
=no
8967 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8968 freebsd
* | dragonfly
*)
8969 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8970 hardcode_libdir_flag_spec
='-R$libdir'
8972 hardcode_shlibpath_var
=no
8976 if test yes = "$GCC"; then
8977 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'
8979 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'
8981 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
8982 hardcode_libdir_separator
=:
8985 # hardcode_minus_L: Not really in the search PATH,
8986 # but as the default location of the library.
8987 hardcode_minus_L
=yes
8988 export_dynamic_flag_spec
='$wl-E'
8992 if test yes,no
= "$GCC,$with_gnu_ld"; then
8993 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8995 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8997 if test no
= "$with_gnu_ld"; then
8998 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
8999 hardcode_libdir_separator
=:
9001 hardcode_direct_absolute
=yes
9002 export_dynamic_flag_spec
='$wl-E'
9003 # hardcode_minus_L: Not really in the search PATH,
9004 # but as the default location of the library.
9005 hardcode_minus_L
=yes
9010 if test yes,no
= "$GCC,$with_gnu_ld"; then
9013 archive_cmds
='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9016 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9019 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9025 archive_cmds
='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9028 archive_cmds
='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9032 # Older versions of the 11.00 compiler do not understand -b yet
9033 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9035 $as_echo_n "checking if $CC understands -b... " >&6; }
9036 if ${lt_cv_prog_compiler__b+:} false
; then :
9037 $as_echo_n "(cached) " >&6
9039 lt_cv_prog_compiler__b
=no
9040 save_LDFLAGS
=$LDFLAGS
9041 LDFLAGS
="$LDFLAGS -b"
9042 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9043 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9044 # The linker can only warn and ignore the option if not recognized
9045 # So say no if there are warnings
9046 if test -s conftest.err
; then
9047 # Append any errors to the config.log.
9048 cat conftest.err
1>&5
9049 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9050 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9051 if diff conftest.exp conftest.er2
>/dev
/null
; then
9052 lt_cv_prog_compiler__b
=yes
9055 lt_cv_prog_compiler__b
=yes
9059 LDFLAGS
=$save_LDFLAGS
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9063 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9065 if test yes = "$lt_cv_prog_compiler__b"; then
9066 archive_cmds
='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9068 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9074 if test no
= "$with_gnu_ld"; then
9075 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
9076 hardcode_libdir_separator
=:
9081 hardcode_shlibpath_var
=no
9085 hardcode_direct_absolute
=yes
9086 export_dynamic_flag_spec
='$wl-E'
9088 # hardcode_minus_L: Not really in the search PATH,
9089 # but as the default location of the library.
9090 hardcode_minus_L
=yes
9096 irix5
* | irix6
* | nonstopux
*)
9097 if test yes = "$GCC"; then
9098 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'
9099 # Try to use the -exported_symbol ld option, if it does not
9100 # work, assume that -exports_file does not work either and
9101 # implicitly export all symbols.
9102 # This should be the same for all languages, so no per-tag cache variable.
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9104 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9105 if ${lt_cv_irix_exported_symbol+:} false
; then :
9106 $as_echo_n "(cached) " >&6
9108 save_LDFLAGS
=$LDFLAGS
9109 LDFLAGS
="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9112 int foo (void) { return 0; }
9114 if ac_fn_c_try_link
"$LINENO"; then :
9115 lt_cv_irix_exported_symbol
=yes
9117 lt_cv_irix_exported_symbol
=no
9119 rm -f core conftest.err conftest.
$ac_objext \
9120 conftest
$ac_exeext conftest.
$ac_ext
9121 LDFLAGS
=$save_LDFLAGS
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9124 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9125 if test yes = "$lt_cv_irix_exported_symbol"; then
9126 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'
9130 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'
9131 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'
9133 archive_cmds_need_lc
='no'
9134 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9135 hardcode_libdir_separator
=:
9137 link_all_deplibs
=yes
9141 case $cc_basename in
9143 # Fabrice Bellard et al's Tiny C Compiler
9145 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9150 netbsd
* | netbsdelf
*-gnu)
9151 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9152 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9154 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9156 hardcode_libdir_flag_spec
='-R$libdir'
9158 hardcode_shlibpath_var
=no
9162 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9164 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9165 hardcode_libdir_separator
=:
9166 hardcode_shlibpath_var
=no
9173 if test -f /usr
/libexec
/ld.so
; then
9175 hardcode_shlibpath_var
=no
9176 hardcode_direct_absolute
=yes
9177 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9178 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9179 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9180 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
9181 export_dynamic_flag_spec
='$wl-E'
9183 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9184 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
9192 hardcode_libdir_flag_spec
='-L$libdir'
9193 hardcode_minus_L
=yes
9194 allow_undefined_flag
=unsupported
9196 archive_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9197 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9198 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9199 $ECHO EXPORTS >> $output_objdir/$libname.def~
9200 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9201 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9202 emximp -o $lib $output_objdir/$libname.def'
9203 archive_expsym_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9204 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9205 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9206 $ECHO EXPORTS >> $output_objdir/$libname.def~
9208 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9209 prefix_cmds="$prefix_cmds -e 1d";
9211 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9212 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9213 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9214 emximp -o $lib $output_objdir/$libname.def'
9215 old_archive_From_new_cmds
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9216 enable_shared_with_static_runtimes
=yes
9220 if test yes = "$GCC"; then
9221 allow_undefined_flag
=' $wl-expect_unresolved $wl\*'
9222 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'
9224 allow_undefined_flag
=' -expect_unresolved \*'
9225 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'
9227 archive_cmds_need_lc
='no'
9228 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9229 hardcode_libdir_separator
=:
9232 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9233 if test yes = "$GCC"; then
9234 allow_undefined_flag
=' $wl-expect_unresolved $wl\*'
9235 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'
9236 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9238 allow_undefined_flag
=' -expect_unresolved \*'
9239 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'
9240 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~
9241 $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'
9243 # Both c and cxx compiler support -rpath directly
9244 hardcode_libdir_flag_spec
='-rpath $libdir'
9246 archive_cmds_need_lc
='no'
9247 hardcode_libdir_separator
=:
9251 no_undefined_flag
=' -z defs'
9252 if test yes = "$GCC"; then
9254 archive_cmds
='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9255 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9256 $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'
9258 case `$CC -V 2>&1` in
9261 archive_cmds
='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9262 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9263 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9267 archive_cmds
='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9268 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9269 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9273 hardcode_libdir_flag_spec
='-R$libdir'
9274 hardcode_shlibpath_var
=no
9276 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9278 # The compiler driver will combine and reorder linker options,
9279 # but understands '-z linker_flag'. GCC discards it without '$wl',
9280 # but is careful enough not to reorder.
9281 # Supported since Solaris 2.6 (maybe 2.5.1?)
9282 if test yes = "$GCC"; then
9283 whole_archive_flag_spec
='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9285 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9289 link_all_deplibs
=yes
9293 if test sequent
= "$host_vendor"; then
9294 # Use $CC to link under sequent, because it throws in some extra .o
9295 # files that make .init and .fini sections work.
9296 archive_cmds
='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9298 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9300 hardcode_libdir_flag_spec
='-L$libdir'
9302 hardcode_minus_L
=yes
9303 hardcode_shlibpath_var
=no
9307 case $host_vendor in
9309 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9310 hardcode_direct
=yes # is this really true???
9313 ## LD is ld it makes a PLAMLIB
9314 ## CC just makes a GrossModule.
9315 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9316 reload_cmds
='$CC -r -o $output$reload_objs'
9320 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9321 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9324 runpath_var
='LD_RUN_PATH'
9325 hardcode_shlibpath_var
=no
9329 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9330 hardcode_shlibpath_var
=no
9331 export_dynamic_flag_spec
='-Bexport'
9335 if test -d /usr
/nec
; then
9336 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9337 hardcode_shlibpath_var
=no
9338 runpath_var
=LD_RUN_PATH
9339 hardcode_runpath_var
=yes
9344 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9345 no_undefined_flag
='$wl-z,text'
9346 archive_cmds_need_lc
=no
9347 hardcode_shlibpath_var
=no
9348 runpath_var
='LD_RUN_PATH'
9350 if test yes = "$GCC"; then
9351 archive_cmds
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9352 archive_expsym_cmds
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9354 archive_cmds
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9355 archive_expsym_cmds
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9359 sysv5
* | sco3.2v5
* | sco5v6
*)
9360 # Note: We CANNOT use -z defs as we might desire, because we do not
9361 # link with -lc, and that would cause any symbols used from libc to
9362 # always be unresolved, which means just about no library would
9363 # ever link correctly. If we're not using GNU ld we use -z text
9364 # though, which does catch some bad symbols but isn't as heavy-handed
9366 no_undefined_flag
='$wl-z,text'
9367 allow_undefined_flag
='$wl-z,nodefs'
9368 archive_cmds_need_lc
=no
9369 hardcode_shlibpath_var
=no
9370 hardcode_libdir_flag_spec
='$wl-R,$libdir'
9371 hardcode_libdir_separator
=':'
9372 link_all_deplibs
=yes
9373 export_dynamic_flag_spec
='$wl-Bexport'
9374 runpath_var
='LD_RUN_PATH'
9376 if test yes = "$GCC"; then
9377 archive_cmds
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9378 archive_expsym_cmds
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9380 archive_cmds
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9381 archive_expsym_cmds
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9386 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387 hardcode_libdir_flag_spec
='-L$libdir'
9388 hardcode_shlibpath_var
=no
9396 if test sni
= "$host_vendor"; then
9398 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9399 export_dynamic_flag_spec
='$wl-Blargedynsym'
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9406 $as_echo "$ld_shlibs" >&6; }
9407 test no
= "$ld_shlibs" && can_build_shared
=no
9409 with_gnu_ld
=$with_gnu_ld
9426 # Do we need to explicitly link libc?
9428 case "x$archive_cmds_need_lc" in
9430 # Assume -lc should be added
9431 archive_cmds_need_lc
=yes
9433 if test yes,yes = "$GCC,$enable_shared"; then
9434 case $archive_cmds in
9436 # FIXME: we may have to deal with multi-command sequences.
9439 # Test whether the compiler implicitly links with -lc since on some
9440 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9441 # to ld, don't add -lc before -lgcc.
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9443 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9444 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
9445 $as_echo_n "(cached) " >&6
9448 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9451 (eval $ac_compile) 2>&5
9453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9454 test $ac_status = 0; } 2>conftest.err
; then
9457 libobjs
=conftest.
$ac_objext
9459 wl
=$lt_prog_compiler_wl
9460 pic_flag
=$lt_prog_compiler_pic
9466 lt_save_allow_undefined_flag
=$allow_undefined_flag
9467 allow_undefined_flag
=
9468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9469 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9472 test $ac_status = 0; }
9474 lt_cv_archive_cmds_need_lc
=no
9476 lt_cv_archive_cmds_need_lc
=yes
9478 allow_undefined_flag
=$lt_save_allow_undefined_flag
9480 cat conftest.err
1>&5
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9486 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9487 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9646 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9648 if test yes = "$GCC"; then
9650 darwin
*) lt_awk_arg
='/^libraries:/,/LR/' ;;
9651 *) lt_awk_arg
='/^libraries:/' ;;
9654 mingw
* | cegcc
*) lt_sed_strip_eq
='s|=\([A-Za-z]:\)|\1|g' ;;
9655 *) lt_sed_strip_eq
='s|=/|/|g' ;;
9657 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9658 case $lt_search_path_spec in
9660 # if the path contains ";" then we assume it to be the separator
9661 # otherwise default to the standard path separator (i.e. ":") - it is
9662 # assumed that no part of a normal pathname contains ";" but that should
9663 # okay in the real world where ";" in dirpaths is itself problematic.
9664 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9667 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9670 # Ok, now we have the path, separated by spaces, we can step through it
9671 # and add multilib dir if necessary...
9672 lt_tmp_lt_search_path_spec
=
9673 lt_multi_os_dir
=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9674 # ...but if some path component already ends with the multilib dir we assume
9675 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
9676 case "$lt_multi_os_dir; $lt_search_path_spec " in
9677 "/; "* |
"/.; "* |
"/./; "* |
*"$lt_multi_os_dir "* |
*"$lt_multi_os_dir/ "*)
9681 for lt_sys_path
in $lt_search_path_spec; do
9682 if test -d "$lt_sys_path$lt_multi_os_dir"; then
9683 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
9684 elif test -n "$lt_multi_os_dir"; then
9685 test -d "$lt_sys_path" && \
9686 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9689 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9690 BEGIN {RS = " "; FS = "/|\n";} {
9693 for (lt_i = NF; lt_i > 0; lt_i--) {
9694 if ($lt_i != "" && $lt_i != ".") {
9695 if ($lt_i == "..") {
9698 if (lt_count == 0) {
9699 lt_foo = "/" $lt_i lt_foo;
9706 if (lt_foo != "") { lt_freq[lt_foo]++; }
9707 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9709 # AWK program above erroneously prepends '/' to C:/dos/paths
9712 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
9713 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
9715 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9717 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9720 libname_spec
='lib$name'
9728 shlibpath_overrides_runpath
=unknown
9730 dynamic_linker
="$host_os ld.so"
9731 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9732 need_lib_prefix
=unknown
9733 hardcode_into_libs
=no
9735 # when you set need_version to no, make sure it does not cause -set_version
9736 # flags to be left without arguments
9737 need_version
=unknown
9743 version_type
=linux
# correct to gnu/linux during the next big refactor
9744 library_names_spec
='$libname$release$shared_ext$versuffix $libname.a'
9745 shlibpath_var
=LIBPATH
9747 # AIX 3 has no versioning support, so we append a major version to the name.
9748 soname_spec
='$libname$release$shared_ext$major'
9752 version_type
=linux
# correct to gnu/linux during the next big refactor
9755 hardcode_into_libs
=yes
9756 if test ia64
= "$host_cpu"; then
9757 # AIX 5 supports IA64
9758 library_names_spec
='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
9759 shlibpath_var
=LD_LIBRARY_PATH
9761 # With GCC up to 2.95.x, collect2 would create an import file
9762 # for dependence libraries. The import file would start with
9763 # the line '#! .'. This would cause the generated library to
9764 # depend on '.', always an invalid library. This was fixed in
9765 # development snapshots of GCC prior to 3.0.
9767 aix4 | aix4.
[01] | aix4.
[01].
*)
9768 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9770 echo '#endif'; } |
$CC -E - |
$GREP yes > /dev
/null
; then
9777 # Using Import Files as archive members, it is possible to support
9778 # filename-based versioning of shared library archives on AIX. While
9779 # this would work for both with and without runtime linking, it will
9780 # prevent static linking of such archives. So we do filename-based
9781 # shared library versioning with .so extension only, which is used
9782 # when both runtime linking and shared linking is enabled.
9783 # Unfortunately, runtime linking may impact performance, so we do
9784 # not want this to be the default eventually. Also, we use the
9785 # versioned .so libs for executables only if there is the -brtl
9786 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
9787 # To allow for filename-based versioning support, we need to create
9788 # libNAME.so.V as an archive file, containing:
9789 # *) an Import File, referring to the versioned filename of the
9790 # archive as well as the shared archive member, telling the
9791 # bitwidth (32 or 64) of that shared object, and providing the
9792 # list of exported symbols of that shared object, eventually
9793 # decorated with the 'weak' keyword
9794 # *) the shared object with the F_LOADONLY flag set, to really avoid
9795 # it being seen by the linker.
9796 # At run time we better use the real file rather than another symlink,
9797 # but for link time we create the symlink libNAME.so -> libNAME.so.V
9799 case $with_aix_soname,$aix_use_runtimelinking in
9800 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
9801 # soname into executable. Probably we can add versioning support to
9802 # collect2, so additional links can be useful in future.
9803 aix
,yes) # traditional libtool
9804 dynamic_linker
='AIX unversionable lib.so'
9805 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9806 # instead of lib<name>.a to let people know that these are not
9807 # typical AIX shared libraries.
9808 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9810 aix
,no
) # traditional AIX only
9811 dynamic_linker
='AIX lib.a(lib.so.V)'
9812 # We preserve .a as extension for shared libraries through AIX4.2
9813 # and later when we are not doing run time linking.
9814 library_names_spec
='$libname$release.a $libname.a'
9815 soname_spec
='$libname$release$shared_ext$major'
9817 svr4
,*) # full svr4 only
9818 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o)"
9819 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
9820 # We do not specify a path in Import Files, so LIBPATH fires.
9821 shlibpath_overrides_runpath
=yes
9823 *,yes) # both, prefer svr4
9824 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
9825 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
9826 # unpreferred sharedlib libNAME.a needs extra handling
9827 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"'
9828 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"'
9829 # We do not specify a path in Import Files, so LIBPATH fires.
9830 shlibpath_overrides_runpath
=yes
9832 *,no
) # both, prefer aix
9833 dynamic_linker
="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
9834 library_names_spec
='$libname$release.a $libname.a'
9835 soname_spec
='$libname$release$shared_ext$major'
9836 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
9837 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)'
9838 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"'
9841 shlibpath_var
=LIBPATH
9848 # Since July 2007 AmigaOS4 officially supports .so libraries.
9849 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9850 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9853 library_names_spec
='$libname.ixlibrary $libname.a'
9854 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9855 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9861 library_names_spec
='$libname$shared_ext'
9862 dynamic_linker
="$host_os ld.so"
9863 shlibpath_var
=LIBRARY_PATH
9867 version_type
=linux
# correct to gnu/linux during the next big refactor
9869 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9870 soname_spec
='$libname$release$shared_ext$major'
9871 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9872 shlibpath_var
=LD_LIBRARY_PATH
9873 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9874 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9875 # the default ld.so.conf also contains /usr/contrib/lib and
9876 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9877 # libtool to hard-code these into programs
9880 cygwin
* | mingw
* | pw32
* | cegcc
*)
9881 version_type
=windows
9886 case $GCC,$cc_basename in
9889 library_names_spec
='$libname.dll.a'
9890 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9891 postinstall_cmds
='base_file=`basename \$file`~
9892 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
9893 dldir=$destdir/`dirname \$dlpath`~
9894 test -d \$dldir || mkdir -p \$dldir~
9895 $install_prog $dir/$dlname \$dldir/$dlname~
9896 chmod a+x \$dldir/$dlname~
9897 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9898 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9900 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9901 dlpath=$dir/\$dldll~
9903 shlibpath_overrides_runpath
=yes
9907 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9908 soname_spec
='`echo $libname | sed -e 's
/^lib
/cyg
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
9910 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
9913 # MinGW DLLs use traditional 'lib' prefix
9914 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
9917 # pw32 DLLs use 'pw' prefix rather than 'lib'
9918 library_names_spec
='`echo $libname | sed -e 's
/^lib
/pw
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
9921 dynamic_linker
='Win32 ld.exe'
9926 libname_spec
='$name'
9927 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
9928 library_names_spec
='$libname.dll.lib'
9932 sys_lib_search_path_spec
=
9938 # Let DOS variable expansion print the short 8.3 style file name.
9939 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9940 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
9943 # Convert to MSYS style.
9944 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9947 # Convert to unix form, then to dos form, then back to unix form
9948 # but this time dos style (no spaces!) so that the unix form looks
9949 # like /cygdrive/c/PROGRA~1:/cygdr...
9950 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
9951 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9952 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9955 sys_lib_search_path_spec
=$LIB
9956 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
9957 # It is most probably a Windows format PATH.
9958 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9960 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9962 # FIXME: find the short name or the path components, as spaces are
9963 # common. (e.g. "Program Files" -> "PROGRA~1")
9967 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9968 postinstall_cmds
='base_file=`basename \$file`~
9969 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
9970 dldir=$destdir/`dirname \$dlpath`~
9971 test -d \$dldir || mkdir -p \$dldir~
9972 $install_prog $dir/$dlname \$dldir/$dlname'
9973 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9974 dlpath=$dir/\$dldll~
9976 shlibpath_overrides_runpath
=yes
9977 dynamic_linker
='Win32 link.exe'
9981 # Assume MSVC wrapper
9982 library_names_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext $libname.lib'
9983 dynamic_linker
='Win32 ld.exe'
9986 # FIXME: first we should search . and the directory the executable is in
9990 darwin
* | rhapsody
*)
9991 dynamic_linker
="$host_os dyld"
9995 library_names_spec
='$libname$release$major$shared_ext $libname$shared_ext'
9996 soname_spec
='$libname$release$major$shared_ext'
9997 shlibpath_overrides_runpath
=yes
9998 shlibpath_var
=DYLD_LIBRARY_PATH
9999 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10001 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10002 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10006 version_type
=linux
# correct to gnu/linux during the next big refactor
10009 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10010 soname_spec
='$libname$release$shared_ext$major'
10011 shlibpath_var
=LD_LIBRARY_PATH
10014 freebsd
* | dragonfly
*)
10015 # DragonFly does not have aout. When/if they implement a new
10016 # versioning mechanism, adjust this.
10017 if test -x /usr
/bin
/objformat
; then
10018 objformat
=`/usr/bin/objformat`
10021 freebsd
[23].
*) objformat
=aout
;;
10022 *) objformat
=elf
;;
10025 version_type
=freebsd-
$objformat
10026 case $version_type in
10028 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10029 soname_spec
='$libname$release$shared_ext$major'
10034 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10038 shlibpath_var
=LD_LIBRARY_PATH
10041 shlibpath_overrides_runpath
=yes
10043 freebsd3.
[01]* | freebsdelf3.
[01]*)
10044 shlibpath_overrides_runpath
=yes
10045 hardcode_into_libs
=yes
10047 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10048 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10049 shlibpath_overrides_runpath
=no
10050 hardcode_into_libs
=yes
10052 *) # from 4.6 on, and DragonFly
10053 shlibpath_overrides_runpath
=yes
10054 hardcode_into_libs
=yes
10060 version_type
=linux
# correct to gnu/linux during the next big refactor
10063 dynamic_linker
="$host_os runtime_loader"
10064 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10065 soname_spec
='$libname$release$shared_ext$major'
10066 shlibpath_var
=LIBRARY_PATH
10067 shlibpath_overrides_runpath
=no
10068 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10069 hardcode_into_libs
=yes
10072 hpux9
* | hpux10
* | hpux11
*)
10073 # Give a soname corresponding to the major version so that dld.sl refuses to
10074 # link against other versions.
10081 hardcode_into_libs
=yes
10082 dynamic_linker
="$host_os dld.so"
10083 shlibpath_var
=LD_LIBRARY_PATH
10084 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10085 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10086 soname_spec
='$libname$release$shared_ext$major'
10087 if test 32 = "$HPUX_IA64_MODE"; then
10088 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10089 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux32
10091 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10092 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux64
10097 hardcode_into_libs
=yes
10098 dynamic_linker
="$host_os dld.sl"
10099 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10100 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10101 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10102 soname_spec
='$libname$release$shared_ext$major'
10103 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10104 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10108 dynamic_linker
="$host_os dld.sl"
10109 shlibpath_var
=SHLIB_PATH
10110 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10111 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10112 soname_spec
='$libname$release$shared_ext$major'
10115 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10116 postinstall_cmds
='chmod 555 $lib'
10117 # or fails outright, so override atomically:
10118 install_override_mode
=555
10122 version_type
=linux
# correct to gnu/linux during the next big refactor
10125 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10126 soname_spec
='$libname$release$shared_ext$major'
10127 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10128 shlibpath_var
=LD_LIBRARY_PATH
10129 shlibpath_overrides_runpath
=no
10130 hardcode_into_libs
=yes
10133 irix5
* | irix6
* | nonstopux
*)
10135 nonstopux
*) version_type
=nonstopux
;;
10137 if test yes = "$lt_cv_prog_gnu_ld"; then
10138 version_type
=linux
# correct to gnu/linux during the next big refactor
10145 soname_spec
='$libname$release$shared_ext$major'
10146 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10148 irix5
* | nonstopux
*)
10149 libsuff
= shlibsuff
=
10152 case $LD in # libtool.m4 will add one of these switches to LD
10153 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10154 libsuff
= shlibsuff
= libmagic
=32-bit;;
10155 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10156 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10157 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10158 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10159 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10163 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10164 shlibpath_overrides_runpath
=no
10165 sys_lib_search_path_spec
="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10166 sys_lib_dlsearch_path_spec
="/usr/lib$libsuff /lib$libsuff"
10167 hardcode_into_libs
=yes
10170 # No shared lib support for Linux oldld, aout, or coff.
10171 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10176 version_type
=none
# Android doesn't support versioned libraries.
10179 library_names_spec
='$libname$release$shared_ext'
10180 soname_spec
='$libname$release$shared_ext'
10182 shlibpath_var
=LD_LIBRARY_PATH
10183 shlibpath_overrides_runpath
=yes
10185 # This implies no fast_install, which is unacceptable.
10186 # Some rework will be needed to allow for fast_install
10187 # before this can be enabled.
10188 hardcode_into_libs
=yes
10190 dynamic_linker
='Android linker'
10191 # Don't embed -rpath directories since the linker doesn't support them.
10192 hardcode_libdir_flag_spec
='-L$libdir'
10195 # This must be glibc/ELF.
10196 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
10197 version_type
=linux
# correct to gnu/linux during the next big refactor
10200 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10201 soname_spec
='$libname$release$shared_ext$major'
10202 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10203 shlibpath_var
=LD_LIBRARY_PATH
10204 shlibpath_overrides_runpath
=no
10206 # Some binutils ld are patched to set DT_RUNPATH
10207 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10208 $as_echo_n "(cached) " >&6
10210 lt_cv_shlibpath_overrides_runpath
=no
10211 save_LDFLAGS
=$LDFLAGS
10212 save_libdir
=$libdir
10213 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10214 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10216 /* end confdefs.h. */
10226 if ac_fn_c_try_link
"$LINENO"; then :
10227 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10228 lt_cv_shlibpath_overrides_runpath
=yes
10231 rm -f core conftest.err conftest.
$ac_objext \
10232 conftest
$ac_exeext conftest.
$ac_ext
10233 LDFLAGS
=$save_LDFLAGS
10234 libdir
=$save_libdir
10238 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10240 # This implies no fast_install, which is unacceptable.
10241 # Some rework will be needed to allow for fast_install
10242 # before this can be enabled.
10243 hardcode_into_libs
=yes
10245 # Ideally, we could use ldconfig to report *all* directores which are
10246 # searched for libraries, however this is still not possible. Aside from not
10247 # being certain /sbin/ldconfig is available, command
10248 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10249 # even though it is searched at run-time. Try to do the best guess by
10250 # appending ld.so.conf contents (and includes) to the search path.
10251 if test -f /etc
/ld.so.conf
; then
10252 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' ' '`
10253 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10256 # We used to test for /lib/ld.so.1 and disable shared libraries on
10257 # powerpc, because MkLinux only supported shared libraries with the
10258 # GNU dynamic linker. Since this was broken with cross compilers,
10259 # most powerpc-linux boxes support dynamic linking these days and
10260 # people can always --disable-shared, the test was removed, and we
10261 # assume the GNU/Linux dynamic linker is in use.
10262 dynamic_linker
='GNU/Linux ld.so'
10269 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10270 soname_spec
='${libname}${release}${shared_ext}$major'
10271 shlibpath_var
=LD_LIBRARY_PATH
10272 shlibpath_overrides_runpath
=no
10273 hardcode_into_libs
=yes
10274 dynamic_linker
='NetBSD ld.elf_so'
10281 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10282 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10283 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10284 dynamic_linker
='NetBSD (a.out) ld.so'
10286 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10287 soname_spec
='$libname$release$shared_ext$major'
10288 dynamic_linker
='NetBSD ld.elf_so'
10290 shlibpath_var
=LD_LIBRARY_PATH
10291 shlibpath_overrides_runpath
=yes
10292 hardcode_into_libs
=yes
10296 version_type
=linux
# correct to gnu/linux during the next big refactor
10297 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10298 shlibpath_var
=LD_LIBRARY_PATH
10299 shlibpath_overrides_runpath
=yes
10306 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10307 soname_spec
='$libname$release$shared_ext$major'
10308 shlibpath_var
=LD_LIBRARY_PATH
10309 shlibpath_overrides_runpath
=no
10310 hardcode_into_libs
=yes
10311 dynamic_linker
='ldqnx.so'
10314 openbsd
* | bitrig
*)
10316 sys_lib_dlsearch_path_spec
=/usr
/lib
10318 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10323 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10324 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10325 shlibpath_var
=LD_LIBRARY_PATH
10326 shlibpath_overrides_runpath
=yes
10330 libname_spec
='$name'
10331 version_type
=windows
10335 # OS/2 can only load a DLL with a base name of 8 characters or less.
10336 soname_spec
='`test -n "$os2dllname" && libname="$os2dllname";
10337 v=$($ECHO $release$versuffix | tr -d .-);
10338 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10339 $ECHO $n$v`$shared_ext'
10340 library_names_spec
='${libname}_dll.$libext'
10341 dynamic_linker
='OS/2 ld.exe'
10342 shlibpath_var
=BEGINLIBPATH
10343 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10344 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10345 postinstall_cmds
='base_file=`basename \$file`~
10346 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10347 dldir=$destdir/`dirname \$dlpath`~
10348 test -d \$dldir || mkdir -p \$dldir~
10349 $install_prog $dir/$dlname \$dldir/$dlname~
10350 chmod a+x \$dldir/$dlname~
10351 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10352 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10354 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10355 dlpath=$dir/\$dldll~
10359 osf3
* | osf4
* | osf5
*)
10363 soname_spec
='$libname$release$shared_ext$major'
10364 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10365 shlibpath_var
=LD_LIBRARY_PATH
10366 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10367 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10375 version_type
=linux
# correct to gnu/linux during the next big refactor
10378 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10379 soname_spec
='$libname$release$shared_ext$major'
10380 shlibpath_var
=LD_LIBRARY_PATH
10381 shlibpath_overrides_runpath
=yes
10382 hardcode_into_libs
=yes
10383 # ldd complains unless libraries are executable
10384 postinstall_cmds
='chmod +x $lib'
10389 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10390 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10391 shlibpath_var
=LD_LIBRARY_PATH
10392 shlibpath_overrides_runpath
=yes
10393 if test yes = "$with_gnu_ld"; then
10400 version_type
=linux
# correct to gnu/linux during the next big refactor
10401 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10402 soname_spec
='$libname$release$shared_ext$major'
10403 shlibpath_var
=LD_LIBRARY_PATH
10404 case $host_vendor in
10406 shlibpath_overrides_runpath
=no
10408 runpath_var
=LD_RUN_PATH
10416 shlibpath_overrides_runpath
=no
10417 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10423 if test -d /usr
/nec
; then
10424 version_type
=linux
# correct to gnu/linux during the next big refactor
10425 library_names_spec
='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10426 soname_spec
='$libname$shared_ext.$major'
10427 shlibpath_var
=LD_LIBRARY_PATH
10431 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10435 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10436 soname_spec
='$libname$release$shared_ext$major'
10437 shlibpath_var
=LD_LIBRARY_PATH
10438 shlibpath_overrides_runpath
=yes
10439 hardcode_into_libs
=yes
10440 if test yes = "$with_gnu_ld"; then
10441 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10443 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10446 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10450 sys_lib_dlsearch_path_spec
='/usr/lib'
10454 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10455 version_type
=linux
# correct to gnu/linux during the next big refactor
10458 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10459 shlibpath_var
=LD_LIBRARY_PATH
10460 shlibpath_overrides_runpath
=no
10461 hardcode_into_libs
=yes
10465 version_type
=linux
# correct to gnu/linux during the next big refactor
10466 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10467 soname_spec
='$libname$release$shared_ext$major'
10468 shlibpath_var
=LD_LIBRARY_PATH
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10476 $as_echo "$dynamic_linker" >&6; }
10477 test no
= "$dynamic_linker" && can_build_shared
=no
10479 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10480 if test yes = "$GCC"; then
10481 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10484 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10485 sys_lib_search_path_spec
=$lt_cv_sys_lib_search_path_spec
10488 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10489 sys_lib_dlsearch_path_spec
=$lt_cv_sys_lib_dlsearch_path_spec
10492 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
10493 configure_time_dlsearch_path
=$sys_lib_dlsearch_path_spec
10495 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
10496 func_munge_path_list sys_lib_dlsearch_path_spec
"$LT_SYS_LIBRARY_PATH"
10498 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
10499 configure_time_lt_sys_library_path
=$LT_SYS_LIBRARY_PATH
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10598 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10600 if test -n "$hardcode_libdir_flag_spec" ||
10601 test -n "$runpath_var" ||
10602 test yes = "$hardcode_automatic"; then
10604 # We can hardcode non-existent directories.
10605 if test no
!= "$hardcode_direct" &&
10606 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10607 # have to relink, otherwise we might link with an installed library
10608 # when we should be linking with a yet-to-be-installed one
10609 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
10610 test no
!= "$hardcode_minus_L"; then
10611 # Linking always hardcodes the temporary library directory.
10612 hardcode_action
=relink
10614 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10615 hardcode_action
=immediate
10618 # We cannot hardcode anything, or else we can only hardcode existing
10620 hardcode_action
=unsupported
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10623 $as_echo "$hardcode_action" >&6; }
10625 if test relink
= "$hardcode_action" ||
10626 test yes = "$inherit_rpath"; then
10627 # Fast installation is not supported
10628 enable_fast_install
=no
10629 elif test yes = "$shlibpath_overrides_runpath" ||
10630 test no
= "$enable_shared"; then
10631 # Fast installation is not necessary
10632 enable_fast_install
=needless
10640 if test yes != "$enable_dlopen"; then
10641 enable_dlopen
=unknown
10642 enable_dlopen_self
=unknown
10643 enable_dlopen_self_static
=unknown
10650 lt_cv_dlopen
=load_add_on
10652 lt_cv_dlopen_self
=yes
10655 mingw
* | pw32
* | cegcc
*)
10656 lt_cv_dlopen
=LoadLibrary
10661 lt_cv_dlopen
=dlopen
10666 # if libdl is installed we need to link against it
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10668 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10669 if ${ac_cv_lib_dl_dlopen+:} false
; then :
10670 $as_echo_n "(cached) " >&6
10672 ac_check_lib_save_LIBS
=$LIBS
10674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10677 /* Override any GCC internal prototype to avoid an error.
10678 Use char because int might match the return type of a GCC
10679 builtin and then its argument prototype would still apply. */
10692 if ac_fn_c_try_link
"$LINENO"; then :
10693 ac_cv_lib_dl_dlopen
=yes
10695 ac_cv_lib_dl_dlopen
=no
10697 rm -f core conftest.err conftest.
$ac_objext \
10698 conftest
$ac_exeext conftest.
$ac_ext
10699 LIBS
=$ac_check_lib_save_LIBS
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10702 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10703 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
10704 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-ldl
10709 lt_cv_dlopen_self
=yes
10716 # Don't try to run any link tests for TPF. We know it's impossible
10717 # because TPF is a cross-compiler, and we know how we open DSOs.
10718 lt_cv_dlopen
=dlopen
10720 lt_cv_dlopen_self
=no
10724 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
10725 if test "x$ac_cv_func_shl_load" = xyes
; then :
10726 lt_cv_dlopen
=shl_load
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10729 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10730 if ${ac_cv_lib_dld_shl_load+:} false
; then :
10731 $as_echo_n "(cached) " >&6
10733 ac_check_lib_save_LIBS
=$LIBS
10735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10738 /* Override any GCC internal prototype to avoid an error.
10739 Use char because int might match the return type of a GCC
10740 builtin and then its argument prototype would still apply. */
10748 return shl_load ();
10753 if ac_fn_c_try_link
"$LINENO"; then :
10754 ac_cv_lib_dld_shl_load
=yes
10756 ac_cv_lib_dld_shl_load
=no
10758 rm -f core conftest.err conftest.
$ac_objext \
10759 conftest
$ac_exeext conftest.
$ac_ext
10760 LIBS
=$ac_check_lib_save_LIBS
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10763 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10764 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
10765 lt_cv_dlopen
=shl_load lt_cv_dlopen_libs
=-ldld
10767 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
10768 if test "x$ac_cv_func_dlopen" = xyes
; then :
10769 lt_cv_dlopen
=dlopen
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10772 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10773 if ${ac_cv_lib_dl_dlopen+:} false
; then :
10774 $as_echo_n "(cached) " >&6
10776 ac_check_lib_save_LIBS
=$LIBS
10778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10779 /* end confdefs.h. */
10781 /* Override any GCC internal prototype to avoid an error.
10782 Use char because int might match the return type of a GCC
10783 builtin and then its argument prototype would still apply. */
10796 if ac_fn_c_try_link
"$LINENO"; then :
10797 ac_cv_lib_dl_dlopen
=yes
10799 ac_cv_lib_dl_dlopen
=no
10801 rm -f core conftest.err conftest.
$ac_objext \
10802 conftest
$ac_exeext conftest.
$ac_ext
10803 LIBS
=$ac_check_lib_save_LIBS
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10806 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10807 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
10808 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-ldl
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10811 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10812 if ${ac_cv_lib_svld_dlopen+:} false
; then :
10813 $as_echo_n "(cached) " >&6
10815 ac_check_lib_save_LIBS
=$LIBS
10816 LIBS
="-lsvld $LIBS"
10817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10818 /* end confdefs.h. */
10820 /* Override any GCC internal prototype to avoid an error.
10821 Use char because int might match the return type of a GCC
10822 builtin and then its argument prototype would still apply. */
10835 if ac_fn_c_try_link
"$LINENO"; then :
10836 ac_cv_lib_svld_dlopen
=yes
10838 ac_cv_lib_svld_dlopen
=no
10840 rm -f core conftest.err conftest.
$ac_objext \
10841 conftest
$ac_exeext conftest.
$ac_ext
10842 LIBS
=$ac_check_lib_save_LIBS
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10845 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10846 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
10847 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-lsvld
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10850 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10851 if ${ac_cv_lib_dld_dld_link+:} false
; then :
10852 $as_echo_n "(cached) " >&6
10854 ac_check_lib_save_LIBS
=$LIBS
10856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
10859 /* Override any GCC internal prototype to avoid an error.
10860 Use char because int might match the return type of a GCC
10861 builtin and then its argument prototype would still apply. */
10869 return dld_link ();
10874 if ac_fn_c_try_link
"$LINENO"; then :
10875 ac_cv_lib_dld_dld_link
=yes
10877 ac_cv_lib_dld_dld_link
=no
10879 rm -f core conftest.err conftest.
$ac_objext \
10880 conftest
$ac_exeext conftest.
$ac_ext
10881 LIBS
=$ac_check_lib_save_LIBS
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10884 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10885 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
10886 lt_cv_dlopen
=dld_link lt_cv_dlopen_libs
=-ldld
10907 if test no
= "$lt_cv_dlopen"; then
10913 case $lt_cv_dlopen in
10915 save_CPPFLAGS
=$CPPFLAGS
10916 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
10918 save_LDFLAGS
=$LDFLAGS
10919 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
10922 LIBS
="$lt_cv_dlopen_libs $LIBS"
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10925 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10926 if ${lt_cv_dlopen_self+:} false
; then :
10927 $as_echo_n "(cached) " >&6
10929 if test yes = "$cross_compiling"; then :
10930 lt_cv_dlopen_self
=cross
10932 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
10933 lt_status
=$lt_dlunknown
10934 cat > conftest.
$ac_ext <<_LT_EOF
10935 #line $LINENO "configure"
10936 #include "confdefs.h"
10945 # define LT_DLGLOBAL RTLD_GLOBAL
10948 # define LT_DLGLOBAL DL_GLOBAL
10950 # define LT_DLGLOBAL 0
10954 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10955 find out it does not work in some platform. */
10956 #ifndef LT_DLLAZY_OR_NOW
10958 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10961 # define LT_DLLAZY_OR_NOW DL_LAZY
10964 # define LT_DLLAZY_OR_NOW RTLD_NOW
10967 # define LT_DLLAZY_OR_NOW DL_NOW
10969 # define LT_DLLAZY_OR_NOW 0
10976 /* When -fvisibility=hidden is used, assume the code has been annotated
10977 correspondingly for the symbols needed. */
10978 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10979 int fnord () __attribute__((visibility("default")));
10982 int fnord () { return 42; }
10985 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10986 int status = $lt_dlunknown;
10990 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10993 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10994 else puts (dlerror ());
10996 /* dlclose (self); */
11004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11005 (eval $ac_link) 2>&5
11007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11008 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
11009 (.
/conftest
; exit; ) >&5 2>/dev
/null
11011 case x
$lt_status in
11012 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11013 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11014 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11017 # compilation failed
11018 lt_cv_dlopen_self
=no
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11026 $as_echo "$lt_cv_dlopen_self" >&6; }
11028 if test yes = "$lt_cv_dlopen_self"; then
11029 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11031 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11032 if ${lt_cv_dlopen_self_static+:} false
; then :
11033 $as_echo_n "(cached) " >&6
11035 if test yes = "$cross_compiling"; then :
11036 lt_cv_dlopen_self_static
=cross
11038 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11039 lt_status
=$lt_dlunknown
11040 cat > conftest.
$ac_ext <<_LT_EOF
11041 #line $LINENO "configure"
11042 #include "confdefs.h"
11051 # define LT_DLGLOBAL RTLD_GLOBAL
11054 # define LT_DLGLOBAL DL_GLOBAL
11056 # define LT_DLGLOBAL 0
11060 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11061 find out it does not work in some platform. */
11062 #ifndef LT_DLLAZY_OR_NOW
11064 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11067 # define LT_DLLAZY_OR_NOW DL_LAZY
11070 # define LT_DLLAZY_OR_NOW RTLD_NOW
11073 # define LT_DLLAZY_OR_NOW DL_NOW
11075 # define LT_DLLAZY_OR_NOW 0
11082 /* When -fvisibility=hidden is used, assume the code has been annotated
11083 correspondingly for the symbols needed. */
11084 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11085 int fnord () __attribute__((visibility("default")));
11088 int fnord () { return 42; }
11091 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11092 int status = $lt_dlunknown;
11096 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11099 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11100 else puts (dlerror ());
11102 /* dlclose (self); */
11110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11111 (eval $ac_link) 2>&5
11113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11114 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
11115 (.
/conftest
; exit; ) >&5 2>/dev
/null
11117 case x
$lt_status in
11118 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11119 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11120 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11123 # compilation failed
11124 lt_cv_dlopen_self_static
=no
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11132 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11135 CPPFLAGS
=$save_CPPFLAGS
11136 LDFLAGS
=$save_LDFLAGS
11141 case $lt_cv_dlopen_self in
11142 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11143 *) enable_dlopen_self
=unknown
;;
11146 case $lt_cv_dlopen_self_static in
11147 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11148 *) enable_dlopen_self_static
=unknown
;;
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11171 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11172 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11173 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11174 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11176 $as_echo "yes" >&6; }
11178 # FIXME - insert some real tests, host_os isn't really good enough
11181 if test -n "$STRIP"; then
11182 striplib
="$STRIP -x"
11183 old_striplib
="$STRIP -S"
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11185 $as_echo "yes" >&6; }
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11188 $as_echo "no" >&6; }
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11193 $as_echo "no" >&6; }
11209 # Report what library types will actually be built
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11211 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11213 $as_echo "$can_build_shared" >&6; }
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11216 $as_echo_n "checking whether to build shared libraries... " >&6; }
11217 test no
= "$can_build_shared" && enable_shared
=no
11219 # On AIX, shared libraries and static libraries use the same namespace, and
11220 # are all built from PIC.
11223 test yes = "$enable_shared" && enable_static
=no
11224 if test -n "$RANLIB"; then
11225 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11226 postinstall_cmds
='$RANLIB $lib'
11231 if test ia64
!= "$host_cpu"; then
11232 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11233 yes,aix
,yes) ;; # shared object as lib.so file only
11234 yes,svr4
,*) ;; # shared object as lib.so archive member only
11235 yes,*) enable_static
=no
;; # shared object in lib.a archive as well
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11241 $as_echo "$enable_shared" >&6; }
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11244 $as_echo_n "checking whether to build static libraries... " >&6; }
11245 # Make sure either enable_shared or enable_static is yes.
11246 test yes = "$enable_shared" || enable_static
=yes
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11248 $as_echo "$enable_static" >&6; }
11255 ac_cpp
='$CPP $CPPFLAGS'
11256 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11257 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11258 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11276 ac_config_commands
="$ac_config_commands libtool"
11281 # Only expand once:
11284 # Find a good install program. We prefer a C program (faster),
11285 # so one script is as good as another. But avoid the broken or
11286 # incompatible versions:
11287 # SysV /etc/install, /usr/sbin/install
11288 # SunOS /usr/etc/install
11289 # IRIX /sbin/install
11291 # AmigaOS /C/install, which installs bootblocks on floppy discs
11292 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11293 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11294 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11295 # OS/2's system install, which has a completely different semantic
11296 # ./install, which can be erroneously created by make from ./install.sh.
11297 # Reject install programs that cannot install multiple files.
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11299 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11300 if test -z "$INSTALL"; then
11301 if ${ac_cv_path_install+:} false
; then :
11302 $as_echo_n "(cached) " >&6
11304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11305 for as_dir
in $PATH
11308 test -z "$as_dir" && as_dir
=.
11309 # Account for people who put trailing slashes in PATH elements.
11310 case $as_dir/ in #((
11311 .
/ | .
// |
/[cC
]/* | \
11312 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
11313 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
11316 # OSF1 and SCO ODT 3.0 have their own names for install.
11317 # Don't use installbsd from OSF since it installs stuff as root
11319 for ac_prog
in ginstall scoinst
install; do
11320 for ac_exec_ext
in '' $ac_executable_extensions; do
11321 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
11322 if test $ac_prog = install &&
11323 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
11324 # AIX install. It has an incompatible calling convention.
11326 elif test $ac_prog = install &&
11327 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
11328 # program-specific install script used by HP pwplus--don't use.
11331 rm -rf conftest.one conftest.two conftest.dir
11332 echo one
> conftest.one
11333 echo two
> conftest.two
11335 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
11336 test -s conftest.one
&& test -s conftest.two
&&
11337 test -s conftest.dir
/conftest.one
&&
11338 test -s conftest.dir
/conftest.two
11340 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
11353 rm -rf conftest.one conftest.two conftest.dir
11356 if test "${ac_cv_path_install+set}" = set; then
11357 INSTALL
=$ac_cv_path_install
11359 # As a last resort, use the slow shell script. Don't cache a
11360 # value for INSTALL within a source directory, because that will
11361 # break other packages using the cache if that directory is
11362 # removed, or if the value is a relative name.
11363 INSTALL
=$ac_install_sh
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11367 $as_echo "$INSTALL" >&6; }
11369 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11370 # It thinks the first close brace ends the variable substitution.
11371 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
11373 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
11375 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
11379 # Enable large file support (if special flags are necessary)
11381 # Check whether --enable-largefile was given.
11382 if test "${enable_largefile+set}" = set; then :
11383 enableval
=$enable_largefile;
11386 if test "$enable_largefile" != no
; then
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11389 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11390 if ${ac_cv_sys_largefile_CC+:} false
; then :
11391 $as_echo_n "(cached) " >&6
11393 ac_cv_sys_largefile_CC
=no
11394 if test "$GCC" != yes; then
11397 # IRIX 6.2 and later do not support large files by default,
11398 # so use the C compiler's -n32 option if that helps.
11399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11400 /* end confdefs.h. */
11401 #include <sys/types.h>
11402 /* Check that off_t can represent 2**63 - 1 correctly.
11403 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11404 since some C++ compilers masquerading as C compilers
11405 incorrectly reject 9223372036854775807. */
11406 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11407 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11408 && LARGE_OFF_T % 2147483647 == 1)
11418 if ac_fn_c_try_compile
"$LINENO"; then :
11421 rm -f core conftest.err conftest.
$ac_objext
11423 if ac_fn_c_try_compile
"$LINENO"; then :
11424 ac_cv_sys_largefile_CC
=' -n32'; break
11426 rm -f core conftest.err conftest.
$ac_objext
11430 rm -f conftest.
$ac_ext
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11434 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11435 if test "$ac_cv_sys_largefile_CC" != no
; then
11436 CC
=$CC$ac_cv_sys_largefile_CC
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11440 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11441 if ${ac_cv_sys_file_offset_bits+:} false
; then :
11442 $as_echo_n "(cached) " >&6
11445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11446 /* end confdefs.h. */
11447 #include <sys/types.h>
11448 /* Check that off_t can represent 2**63 - 1 correctly.
11449 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11450 since some C++ compilers masquerading as C compilers
11451 incorrectly reject 9223372036854775807. */
11452 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11453 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11454 && LARGE_OFF_T % 2147483647 == 1)
11464 if ac_fn_c_try_compile
"$LINENO"; then :
11465 ac_cv_sys_file_offset_bits
=no
; break
11467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11469 /* end confdefs.h. */
11470 #define _FILE_OFFSET_BITS 64
11471 #include <sys/types.h>
11472 /* Check that off_t can represent 2**63 - 1 correctly.
11473 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11474 since some C++ compilers masquerading as C compilers
11475 incorrectly reject 9223372036854775807. */
11476 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11477 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11478 && LARGE_OFF_T % 2147483647 == 1)
11488 if ac_fn_c_try_compile
"$LINENO"; then :
11489 ac_cv_sys_file_offset_bits
=64; break
11491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11492 ac_cv_sys_file_offset_bits
=unknown
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11497 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11498 case $ac_cv_sys_file_offset_bits in #(
11501 cat >>confdefs.h
<<_ACEOF
11502 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11507 if test $ac_cv_sys_file_offset_bits = unknown
; then
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11509 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11510 if ${ac_cv_sys_large_files+:} false
; then :
11511 $as_echo_n "(cached) " >&6
11514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11515 /* end confdefs.h. */
11516 #include <sys/types.h>
11517 /* Check that off_t can represent 2**63 - 1 correctly.
11518 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11519 since some C++ compilers masquerading as C compilers
11520 incorrectly reject 9223372036854775807. */
11521 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11522 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11523 && LARGE_OFF_T % 2147483647 == 1)
11533 if ac_fn_c_try_compile
"$LINENO"; then :
11534 ac_cv_sys_large_files
=no
; break
11536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11538 /* end confdefs.h. */
11539 #define _LARGE_FILES 1
11540 #include <sys/types.h>
11541 /* Check that off_t can represent 2**63 - 1 correctly.
11542 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11543 since some C++ compilers masquerading as C compilers
11544 incorrectly reject 9223372036854775807. */
11545 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11546 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11547 && LARGE_OFF_T % 2147483647 == 1)
11557 if ac_fn_c_try_compile
"$LINENO"; then :
11558 ac_cv_sys_large_files
=1; break
11560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11561 ac_cv_sys_large_files
=unknown
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11566 $as_echo "$ac_cv_sys_large_files" >&6; }
11567 case $ac_cv_sys_large_files in #(
11570 cat >>confdefs.h
<<_ACEOF
11571 #define _LARGE_FILES $ac_cv_sys_large_files
11583 # Check for needed/wanted data types
11584 ac_fn_c_check_type
"$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
11585 if test "x$ac_cv_type_int8_t" = xyes
; then :
11587 cat >>confdefs.h
<<_ACEOF
11588 #define HAVE_INT8_T 1
11593 ac_fn_c_check_type
"$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
11594 if test "x$ac_cv_type_int16_t" = xyes
; then :
11596 cat >>confdefs.h
<<_ACEOF
11597 #define HAVE_INT16_T 1
11602 ac_fn_c_check_type
"$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
11603 if test "x$ac_cv_type_int32_t" = xyes
; then :
11605 cat >>confdefs.h
<<_ACEOF
11606 #define HAVE_INT32_T 1
11611 ac_fn_c_check_type
"$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
11612 if test "x$ac_cv_type_int64_t" = xyes
; then :
11614 cat >>confdefs.h
<<_ACEOF
11615 #define HAVE_INT64_T 1
11620 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
11621 if test "x$ac_cv_type_intptr_t" = xyes
; then :
11623 cat >>confdefs.h
<<_ACEOF
11624 #define HAVE_INTPTR_T 1
11629 ac_fn_c_check_type
"$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
11630 if test "x$ac_cv_type_uint8_t" = xyes
; then :
11632 cat >>confdefs.h
<<_ACEOF
11633 #define HAVE_UINT8_T 1
11638 ac_fn_c_check_type
"$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
11639 if test "x$ac_cv_type_uint16_t" = xyes
; then :
11641 cat >>confdefs.h
<<_ACEOF
11642 #define HAVE_UINT16_T 1
11647 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
11648 if test "x$ac_cv_type_uint32_t" = xyes
; then :
11650 cat >>confdefs.h
<<_ACEOF
11651 #define HAVE_UINT32_T 1
11656 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
11657 if test "x$ac_cv_type_uint64_t" = xyes
; then :
11659 cat >>confdefs.h
<<_ACEOF
11660 #define HAVE_UINT64_T 1
11665 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
11666 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
11668 cat >>confdefs.h
<<_ACEOF
11669 #define HAVE_UINTPTR_T 1
11677 # Check for needed/wanted headers
11678 for ac_header
in sys
/types.h stdlib.h stdint.h inttypes.h malloc.h
11680 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11681 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11682 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11683 cat >>confdefs.h
<<_ACEOF
11684 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11693 # Figure out whether or not we have these functions
11695 for ac_func
in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul
usleep utime pread pread64 pwrite pwrite64
11697 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11698 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11699 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11700 cat >>confdefs.h
<<_ACEOF
11701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11709 # By default, we use the amalgamation (this may be changed below...)
11714 # See whether we can run specific tclsh versions known to work well;
11715 # if not, then we fall back to plain tclsh.
11716 # TODO: try other versions before falling back?
11718 for ac_prog
in tclsh8.7 tclsh8.6 tclsh8.5 tclsh
11720 # Extract the first word of "$ac_prog", so it can be a program name with args.
11721 set dummy
$ac_prog; ac_word
=$2
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11723 $as_echo_n "checking for $ac_word... " >&6; }
11724 if ${ac_cv_prog_TCLSH_CMD+:} false
; then :
11725 $as_echo_n "(cached) " >&6
11727 if test -n "$TCLSH_CMD"; then
11728 ac_cv_prog_TCLSH_CMD
="$TCLSH_CMD" # Let the user override the test.
11730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11731 for as_dir
in $PATH
11734 test -z "$as_dir" && as_dir
=.
11735 for ac_exec_ext
in '' $ac_executable_extensions; do
11736 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11737 ac_cv_prog_TCLSH_CMD
="$ac_prog"
11738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11747 TCLSH_CMD
=$ac_cv_prog_TCLSH_CMD
11748 if test -n "$TCLSH_CMD"; then
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
11750 $as_echo "$TCLSH_CMD" >&6; }
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11757 test -n "$TCLSH_CMD" && break
11759 test -n "$TCLSH_CMD" || TCLSH_CMD
="none"
11761 if test "$TCLSH_CMD" = "none"; then
11762 # If we can't find a local tclsh, then building the amalgamation will fail.
11763 # We act as though --disable-amalgamation has been used.
11764 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
11771 if test "x${TCLLIBDIR+set}" != "xset" ; then
11772 TCLLIBDIR
='$(libdir)'
11773 for i
in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
11774 if test -d $i ; then
11779 TCLLIBDIR
="${TCLLIBDIR}/sqlite3"
11783 # Set up an appropriate program prefix
11785 if test "$program_prefix" = "NONE"; then
11790 VERSION
=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
11792 $as_echo "$as_me: Version set to $VERSION" >&6;}
11794 RELEASE
=`cat $srcdir/VERSION`
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
11796 $as_echo "$as_me: Release set to $RELEASE" >&6;}
11800 # Locate a compiler for the build machine. This compiler should
11801 # generate command-line programs that run on the build machine.
11803 if test x
"$cross_compiling" = xno
; then
11805 BUILD_CFLAGS
=$CFLAGS
11807 if test "${BUILD_CC+set}" != set; then
11808 for ac_prog
in gcc cc cl
11810 # Extract the first word of "$ac_prog", so it can be a program name with args.
11811 set dummy
$ac_prog; ac_word
=$2
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11813 $as_echo_n "checking for $ac_word... " >&6; }
11814 if ${ac_cv_prog_BUILD_CC+:} false
; then :
11815 $as_echo_n "(cached) " >&6
11817 if test -n "$BUILD_CC"; then
11818 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
11820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11821 for as_dir
in $PATH
11824 test -z "$as_dir" && as_dir
=.
11825 for ac_exec_ext
in '' $ac_executable_extensions; do
11826 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11827 ac_cv_prog_BUILD_CC
="$ac_prog"
11828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11837 BUILD_CC
=$ac_cv_prog_BUILD_CC
11838 if test -n "$BUILD_CC"; then
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
11840 $as_echo "$BUILD_CC" >&6; }
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843 $as_echo "no" >&6; }
11847 test -n "$BUILD_CC" && break
11851 if test "${BUILD_CFLAGS+set}" != set; then
11858 # Do we want to support multithreaded use of sqlite
11860 # Check whether --enable-threadsafe was given.
11861 if test "${enable_threadsafe+set}" = set; then :
11862 enableval
=$enable_threadsafe;
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
11866 $as_echo_n "checking whether to support threadsafe operation... " >&6; }
11867 if test "$enable_threadsafe" = "no"; then
11868 SQLITE_THREADSAFE
=0
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11870 $as_echo "no" >&6; }
11872 SQLITE_THREADSAFE
=1
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11874 $as_echo "yes" >&6; }
11878 if test "$SQLITE_THREADSAFE" = "1"; then
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
11880 $as_echo_n "checking for library containing pthread_create... " >&6; }
11881 if ${ac_cv_search_pthread_create+:} false
; then :
11882 $as_echo_n "(cached) " >&6
11884 ac_func_search_save_LIBS
=$LIBS
11885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11886 /* end confdefs.h. */
11888 /* Override any GCC internal prototype to avoid an error.
11889 Use char because int might match the return type of a GCC
11890 builtin and then its argument prototype would still apply. */
11894 char pthread_create ();
11898 return pthread_create ();
11903 for ac_lib
in '' pthread
; do
11904 if test -z "$ac_lib"; then
11905 ac_res
="none required"
11908 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11910 if ac_fn_c_try_link
"$LINENO"; then :
11911 ac_cv_search_pthread_create
=$ac_res
11913 rm -f core conftest.err conftest.
$ac_objext \
11915 if ${ac_cv_search_pthread_create+:} false
; then :
11919 if ${ac_cv_search_pthread_create+:} false
; then :
11922 ac_cv_search_pthread_create
=no
11924 rm conftest.
$ac_ext
11925 LIBS
=$ac_func_search_save_LIBS
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
11928 $as_echo "$ac_cv_search_pthread_create" >&6; }
11929 ac_res
=$ac_cv_search_pthread_create
11930 if test "$ac_res" != no
; then :
11931 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
11936 $as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
11937 if ${ac_cv_search_pthread_mutexattr_init+:} false
; then :
11938 $as_echo_n "(cached) " >&6
11940 ac_func_search_save_LIBS
=$LIBS
11941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11942 /* end confdefs.h. */
11944 /* Override any GCC internal prototype to avoid an error.
11945 Use char because int might match the return type of a GCC
11946 builtin and then its argument prototype would still apply. */
11950 char pthread_mutexattr_init ();
11954 return pthread_mutexattr_init ();
11959 for ac_lib
in '' pthread
; do
11960 if test -z "$ac_lib"; then
11961 ac_res
="none required"
11964 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11966 if ac_fn_c_try_link
"$LINENO"; then :
11967 ac_cv_search_pthread_mutexattr_init
=$ac_res
11969 rm -f core conftest.err conftest.
$ac_objext \
11971 if ${ac_cv_search_pthread_mutexattr_init+:} false
; then :
11975 if ${ac_cv_search_pthread_mutexattr_init+:} false
; then :
11978 ac_cv_search_pthread_mutexattr_init
=no
11980 rm conftest.
$ac_ext
11981 LIBS
=$ac_func_search_save_LIBS
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
11984 $as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
11985 ac_res
=$ac_cv_search_pthread_mutexattr_init
11986 if test "$ac_res" != no
; then :
11987 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11994 # Which crypto library do we use
11997 # Check whether --with-crypto-lib was given.
11998 if test "${with_crypto_lib+set}" = set; then :
11999 withval
=$with_crypto_lib; crypto_lib
=$withval
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto library to use" >&5
12003 $as_echo_n "checking for crypto library to use... " >&6; }
12004 if test "$crypto_lib" = "none"; then
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12006 $as_echo "none" >&6; }
12008 if test "$crypto_lib" = "commoncrypto"; then
12009 CFLAGS
="$CFLAGS -DSQLCIPHER_CRYPTO_CC"
12010 BUILD_CFLAGS
="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_CC"
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: commoncrypto" >&5
12012 $as_echo "commoncrypto" >&6; }
12014 if test "$crypto_lib" = "libtomcrypt"; then
12015 CFLAGS
="$CFLAGS -DSQLCIPHER_CRYPTO_LIBTOMCRYPT"
12016 BUILD_CFLAGS
="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_LIBTOMCRYPT"
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libtomcrypt" >&5
12018 $as_echo "libtomcrypt" >&6; }
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for register_cipher in -ltomcrypt" >&5
12020 $as_echo_n "checking for register_cipher in -ltomcrypt... " >&6; }
12021 if ${ac_cv_lib_tomcrypt_register_cipher+:} false
; then :
12022 $as_echo_n "(cached) " >&6
12024 ac_check_lib_save_LIBS
=$LIBS
12025 LIBS
="-ltomcrypt $LIBS"
12026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12027 /* end confdefs.h. */
12029 /* Override any GCC internal prototype to avoid an error.
12030 Use char because int might match the return type of a GCC
12031 builtin and then its argument prototype would still apply. */
12035 char register_cipher ();
12039 return register_cipher ();
12044 if ac_fn_c_try_link
"$LINENO"; then :
12045 ac_cv_lib_tomcrypt_register_cipher
=yes
12047 ac_cv_lib_tomcrypt_register_cipher
=no
12049 rm -f core conftest.err conftest.
$ac_objext \
12050 conftest
$ac_exeext conftest.
$ac_ext
12051 LIBS
=$ac_check_lib_save_LIBS
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tomcrypt_register_cipher" >&5
12054 $as_echo "$ac_cv_lib_tomcrypt_register_cipher" >&6; }
12055 if test "x$ac_cv_lib_tomcrypt_register_cipher" = xyes
; then :
12056 cat >>confdefs.h
<<_ACEOF
12057 #define HAVE_LIBTOMCRYPT 1
12060 LIBS
="-ltomcrypt $LIBS"
12063 as_fn_error $?
"Library crypto not found. Install libtomcrypt!\"" "$LINENO" 5
12067 if test "$crypto_lib" = "nss"; then
12068 CFLAGS
="$CFLAGS -DSQLCIPHER_CRYPTO_NSS"
12069 BUILD_CFLAGS
="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_NSS"
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nss3" >&5
12071 $as_echo "nss3" >&6; }
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PK11_Decrypt in -lnss3" >&5
12073 $as_echo_n "checking for PK11_Decrypt in -lnss3... " >&6; }
12074 if ${ac_cv_lib_nss3_PK11_Decrypt+:} false
; then :
12075 $as_echo_n "(cached) " >&6
12077 ac_check_lib_save_LIBS
=$LIBS
12078 LIBS
="-lnss3 $LIBS"
12079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12080 /* end confdefs.h. */
12082 /* Override any GCC internal prototype to avoid an error.
12083 Use char because int might match the return type of a GCC
12084 builtin and then its argument prototype would still apply. */
12088 char PK11_Decrypt ();
12092 return PK11_Decrypt ();
12097 if ac_fn_c_try_link
"$LINENO"; then :
12098 ac_cv_lib_nss3_PK11_Decrypt
=yes
12100 ac_cv_lib_nss3_PK11_Decrypt
=no
12102 rm -f core conftest.err conftest.
$ac_objext \
12103 conftest
$ac_exeext conftest.
$ac_ext
12104 LIBS
=$ac_check_lib_save_LIBS
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_Decrypt" >&5
12107 $as_echo "$ac_cv_lib_nss3_PK11_Decrypt" >&6; }
12108 if test "x$ac_cv_lib_nss3_PK11_Decrypt" = xyes
; then :
12109 cat >>confdefs.h
<<_ACEOF
12110 #define HAVE_LIBNSS3 1
12113 LIBS
="-lnss3 $LIBS"
12116 as_fn_error $?
"Library crypto not found. Install nss!\"" "$LINENO" 5
12120 CFLAGS
="$CFLAGS -DSQLCIPHER_CRYPTO_OPENSSL"
12121 BUILD_CFLAGS
="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_OPENSSL"
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: openssl" >&5
12123 $as_echo "openssl" >&6; }
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
12125 $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
12126 if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false
; then :
12127 $as_echo_n "(cached) " >&6
12129 ac_check_lib_save_LIBS
=$LIBS
12130 LIBS
="-lcrypto $LIBS"
12131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12132 /* end confdefs.h. */
12134 /* Override any GCC internal prototype to avoid an error.
12135 Use char because int might match the return type of a GCC
12136 builtin and then its argument prototype would still apply. */
12140 char HMAC_Init_ex ();
12144 return HMAC_Init_ex ();
12149 if ac_fn_c_try_link
"$LINENO"; then :
12150 ac_cv_lib_crypto_HMAC_Init_ex
=yes
12152 ac_cv_lib_crypto_HMAC_Init_ex
=no
12154 rm -f core conftest.err conftest.
$ac_objext \
12155 conftest
$ac_exeext conftest.
$ac_ext
12156 LIBS
=$ac_check_lib_save_LIBS
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
12159 $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
12160 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes
; then :
12161 cat >>confdefs.h
<<_ACEOF
12162 #define HAVE_LIBCRYPTO 1
12165 LIBS
="-lcrypto $LIBS"
12168 as_fn_error $?
"Library crypto not found. Install openssl!\"" "$LINENO" 5
12177 # Do we want to allow a connection created in one thread to be used
12178 # in another thread. This does not work on many Linux systems (ex: RedHat 9)
12179 # due to bugs in the threading implementations. This is thus off by default.
12181 # Check whether --enable-cross-thread-connections was given.
12182 if test "${enable_cross_thread_connections+set}" = set; then :
12183 enableval
=$enable_cross_thread_connections;
12185 enable_xthreadconnect
=no
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allow connections to be shared across threads" >&5
12189 $as_echo_n "checking whether to allow connections to be shared across threads... " >&6; }
12190 if test "$enable_xthreadconnect" = "no"; then
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193 $as_echo "no" >&6; }
12195 XTHREADCONNECT
='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12197 $as_echo "yes" >&6; }
12202 # Do we want to support release
12204 # Check whether --enable-releasemode was given.
12205 if test "${enable_releasemode+set}" = set; then :
12206 enableval
=$enable_releasemode;
12208 enable_releasemode
=no
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
12212 $as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
12213 if test "$enable_releasemode" = "no"; then
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216 $as_echo "no" >&6; }
12218 ALLOWRELEASE
="-release `cat $srcdir/VERSION`"
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12220 $as_echo "yes" >&6; }
12225 # Do we want temporary databases in memory
12227 # Check whether --enable-tempstore was given.
12228 if test "${enable_tempstore+set}" = set; then :
12229 enableval
=$enable_tempstore;
12231 enable_tempstore
=no
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
12235 $as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
12236 case "$enable_tempstore" in
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
12240 $as_echo "never" >&6; }
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12245 $as_echo "no" >&6; }
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12250 $as_echo "yes" >&6; }
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
12255 $as_echo "always" >&6; }
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12260 $as_echo "no" >&6; }
12267 # Lots of things are different if we are compiling for Windows using
12268 # the CYGWIN environment. So check for that special case and handle
12269 # things accordingly.
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
12272 $as_echo_n "checking if executables have the .exe suffix... " >&6; }
12273 if test "$config_BUILD_EXEEXT" = ".exe"; then
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12276 $as_echo "yes" >&6; }
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12279 $as_echo "unknown" >&6; }
12281 if test "$CYGWIN" != "yes"; then
12284 *cygwin
* ) CYGWIN
=yes;;
12289 if test "$CYGWIN" = "yes"; then
12292 BUILD_EXEEXT
=$EXEEXT
12294 if test x
"$cross_compiling" = xno
; then
12295 TARGET_EXEEXT
=$BUILD_EXEEXT
12297 TARGET_EXEEXT
=$config_TARGET_EXEEXT
12299 if test "$TARGET_EXEEXT" = ".exe"; then
12302 CFLAGS
="$CFLAGS -DSQLITE_OS_WIN=1"
12306 CFLAGS
="$CFLAGS -DSQLITE_OS_UNIX=1"
12315 # Figure out all the parameters needed to compile against Tcl.
12317 # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
12318 # macros in the in the tcl.m4 file of the standard TCL distribution.
12319 # Those macros could not be used directly since we have to make some
12320 # minor changes to accomodate systems that do not have TCL installed.
12322 # Check whether --enable-tcl was given.
12323 if test "${enable_tcl+set}" = set; then :
12324 enableval
=$enable_tcl; use_tcl
=$enableval
12329 if test "${use_tcl}" = "yes" ; then
12331 # Check whether --with-tcl was given.
12332 if test "${with_tcl+set}" = set; then :
12333 withval
=$with_tcl; with_tclconfig
=${withval}
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
12337 $as_echo_n "checking for Tcl configuration... " >&6; }
12338 if ${ac_cv_c_tclconfig+:} false
; then :
12339 $as_echo_n "(cached) " >&6
12342 # First check to see if --with-tcl was specified.
12343 if test x
"${with_tclconfig}" != x
; then
12344 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12345 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
12347 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
12351 # Start autosearch by asking tclsh
12352 if test x
"${ac_cv_c_tclconfig}" = x
; then
12353 if test x
"$cross_compiling" = xno
; then
12354 for i
in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
12356 if test -f "$i/tclConfig.sh" ; then
12357 ac_cv_c_tclconfig
="$i"
12364 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
12365 # So try again after applying corrections.
12366 if test x
"${ac_cv_c_tclconfig}" = x
; then
12367 if test x
"$cross_compiling" = xno
; then
12368 for i
in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
12370 if test -f "$i/tclConfig.sh" ; then
12371 ac_cv_c_tclconfig
="$i"
12378 # Recent versions of Xcode on Macs hid the tclConfig.sh file
12379 # in a strange place.
12380 if test x
"${ac_cv_c_tclconfig}" = x
; then
12381 if test x
"$cross_compiling" = xno
; then
12382 for i
in /Applications
/Xcode.app
/Contents
/Developer
/Platforms
/MacOSX.platform
/Developer
/SDKs
/MacOSX
*.sdk
/usr
/lib
12384 if test -f "$i/tclConfig.sh" ; then
12385 ac_cv_c_tclconfig
="$i"
12392 # then check for a private Tcl installation
12393 if test x
"${ac_cv_c_tclconfig}" = x
; then
12396 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12397 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12398 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12400 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12401 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12402 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12404 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12405 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12406 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
12408 if test -f "$i/unix/tclConfig.sh" ; then
12409 ac_cv_c_tclconfig
=`(cd $i/unix; pwd)`
12415 # check in a few common install locations
12416 if test x
"${ac_cv_c_tclconfig}" = x
; then
12418 `ls -d ${libdir} 2>/dev/null` \
12419 `ls -d /usr/local/lib 2>/dev/null` \
12420 `ls -d /usr/contrib/lib 2>/dev/null` \
12421 `ls -d /usr/lib 2>/dev/null`
12423 if test -f "$i/tclConfig.sh" ; then
12424 ac_cv_c_tclconfig
=`(cd $i; pwd)`
12430 # check in a few other private locations
12431 if test x
"${ac_cv_c_tclconfig}" = x
; then
12434 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12435 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12436 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
12438 if test -f "$i/unix/tclConfig.sh" ; then
12439 ac_cv_c_tclconfig
=`(cd $i/unix; pwd)`
12448 if test x
"${ac_cv_c_tclconfig}" = x
; then
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
12451 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
12453 $as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
12455 $as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
12457 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
12459 $as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
12462 $as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
12463 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
12465 $as_echo "loading" >&6; }
12466 .
$TCL_BIN_DIR/tclConfig.sh
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
12469 $as_echo "file not found" >&6; }
12473 # If the TCL_BIN_DIR is the build directory (not the install directory),
12474 # then set the common variable name to the value of the build variables.
12475 # For example, the variable TCL_LIB_SPEC will be set to the value
12476 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12477 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12478 # installed and uninstalled version of Tcl.
12481 if test -f $TCL_BIN_DIR/Makefile
; then
12482 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
12483 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
12484 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
12488 # eval is required to do the TCL_DBGX substitution
12491 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12492 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12493 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12495 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12496 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12497 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12514 if test "${use_tcl}" = "no" ; then
12522 # Figure out what C libraries are required to compile programs
12523 # that use "readline()" library.
12525 TARGET_READLINE_LIBS
=""
12526 TARGET_READLINE_INC
=""
12527 TARGET_HAVE_READLINE
=0
12528 TARGET_HAVE_EDITLINE
=0
12529 # Check whether --enable-editline was given.
12530 if test "${enable_editline+set}" = set; then :
12531 enableval
=$enable_editline; with_editline
=$enableval
12536 # Check whether --enable-readline was given.
12537 if test "${enable_readline+set}" = set; then :
12538 enableval
=$enable_readline; with_readline
=$enableval
12544 if test x
"$with_editline" != xno
; then
12547 TARGET_HAVE_EDITLINE
=1
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
12549 $as_echo_n "checking for library containing readline... " >&6; }
12550 if ${ac_cv_search_readline+:} false
; then :
12551 $as_echo_n "(cached) " >&6
12553 ac_func_search_save_LIBS
=$LIBS
12554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12555 /* end confdefs.h. */
12557 /* Override any GCC internal prototype to avoid an error.
12558 Use char because int might match the return type of a GCC
12559 builtin and then its argument prototype would still apply. */
12567 return readline ();
12572 for ac_lib
in '' edit
; do
12573 if test -z "$ac_lib"; then
12574 ac_res
="none required"
12577 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12579 if ac_fn_c_try_link
"$LINENO"; then :
12580 ac_cv_search_readline
=$ac_res
12582 rm -f core conftest.err conftest.
$ac_objext \
12584 if ${ac_cv_search_readline+:} false
; then :
12588 if ${ac_cv_search_readline+:} false
; then :
12591 ac_cv_search_readline
=no
12593 rm conftest.
$ac_ext
12594 LIBS
=$ac_func_search_save_LIBS
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
12597 $as_echo "$ac_cv_search_readline" >&6; }
12598 ac_res
=$ac_cv_search_readline
12599 if test "$ac_res" != no
; then :
12600 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12603 TARGET_HAVE_EDITLINE
=0
12606 TARGET_READLINE_LIBS
=$LIBS
12609 if test x
"$with_readline" != xno
; then
12613 # Check whether --with-readline-lib was given.
12614 if test "${with_readline_lib+set}" = set; then :
12615 withval
=$with_readline_lib; with_readline_lib
=$withval
12617 with_readline_lib
="auto"
12620 if test "x$with_readline_lib" = xauto
; then
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
12624 $as_echo_n "checking for library containing tgetent... " >&6; }
12625 if ${ac_cv_search_tgetent+:} false
; then :
12626 $as_echo_n "(cached) " >&6
12628 ac_func_search_save_LIBS
=$LIBS
12629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12630 /* end confdefs.h. */
12632 /* Override any GCC internal prototype to avoid an error.
12633 Use char because int might match the return type of a GCC
12634 builtin and then its argument prototype would still apply. */
12647 for ac_lib
in '' readline ncurses curses termcap
; do
12648 if test -z "$ac_lib"; then
12649 ac_res
="none required"
12652 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12654 if ac_fn_c_try_link
"$LINENO"; then :
12655 ac_cv_search_tgetent
=$ac_res
12657 rm -f core conftest.err conftest.
$ac_objext \
12659 if ${ac_cv_search_tgetent+:} false
; then :
12663 if ${ac_cv_search_tgetent+:} false
; then :
12666 ac_cv_search_tgetent
=no
12668 rm conftest.
$ac_ext
12669 LIBS
=$ac_func_search_save_LIBS
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
12672 $as_echo "$ac_cv_search_tgetent" >&6; }
12673 ac_res
=$ac_cv_search_tgetent
12674 if test "$ac_res" != no
; then :
12675 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
12682 $as_echo_n "checking for readline in -lreadline... " >&6; }
12683 if ${ac_cv_lib_readline_readline+:} false
; then :
12684 $as_echo_n "(cached) " >&6
12686 ac_check_lib_save_LIBS
=$LIBS
12687 LIBS
="-lreadline $LIBS"
12688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12689 /* end confdefs.h. */
12691 /* Override any GCC internal prototype to avoid an error.
12692 Use char because int might match the return type of a GCC
12693 builtin and then its argument prototype would still apply. */
12701 return readline ();
12706 if ac_fn_c_try_link
"$LINENO"; then :
12707 ac_cv_lib_readline_readline
=yes
12709 ac_cv_lib_readline_readline
=no
12711 rm -f core conftest.err conftest.
$ac_objext \
12712 conftest
$ac_exeext conftest.
$ac_ext
12713 LIBS
=$ac_check_lib_save_LIBS
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
12716 $as_echo "$ac_cv_lib_readline_readline" >&6; }
12717 if test "x$ac_cv_lib_readline_readline" = xyes
; then :
12718 TARGET_READLINE_LIBS
="-lreadline"
12723 TARGET_READLINE_LIBS
="$TARGET_READLINE_LIBS $term_LIBS"
12726 TARGET_READLINE_LIBS
="$with_readline_lib"
12730 # Check whether --with-readline-inc was given.
12731 if test "${with_readline_inc+set}" = set; then :
12732 withval
=$with_readline_inc; with_readline_inc
=$withval
12734 with_readline_inc
="auto"
12737 if test "x$with_readline_inc" = xauto
; then
12738 ac_fn_c_check_header_mongrel
"$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
12739 if test "x$ac_cv_header_readline_h" = xyes
; then :
12744 if test "$cross_compiling" != yes; then
12745 for dir
in /usr
/usr
/local /usr
/local
/readline
/usr
/contrib
/mingw
; do
12746 for subdir
in include include
/readline
; do
12747 as_ac_File
=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
12749 $as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
12750 if eval \
${$as_ac_File+:} false
; then :
12751 $as_echo_n "(cached) " >&6
12753 test "$cross_compiling" = yes &&
12754 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
12755 if test -r "$dir/$subdir/readline.h"; then
12756 eval "$as_ac_File=yes"
12758 eval "$as_ac_File=no"
12761 eval ac_res
=\$
$as_ac_File
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12763 $as_echo "$ac_res" >&6; }
12764 if eval test \"x\$
"$as_ac_File"\" = x
"yes"; then :
12768 if test "$found" = "yes"; then
12769 TARGET_READLINE_INC
="-I$dir/$subdir"
12773 test "$found" = "yes" && break
12781 TARGET_READLINE_INC
="$with_readline_inc"
12784 if test x
"$found" = xno
; then
12785 TARGET_READLINE_LIBS
=""
12786 TARGET_READLINE_INC
=""
12787 TARGET_HAVE_READLINE
=0
12789 TARGET_HAVE_READLINE
=1
12799 # Figure out what C libraries are required to compile programs
12800 # that use "fdatasync()" function.
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
12803 $as_echo_n "checking for library containing fdatasync... " >&6; }
12804 if ${ac_cv_search_fdatasync+:} false
; then :
12805 $as_echo_n "(cached) " >&6
12807 ac_func_search_save_LIBS
=$LIBS
12808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12809 /* end confdefs.h. */
12811 /* Override any GCC internal prototype to avoid an error.
12812 Use char because int might match the return type of a GCC
12813 builtin and then its argument prototype would still apply. */
12821 return fdatasync ();
12826 for ac_lib
in '' rt
; do
12827 if test -z "$ac_lib"; then
12828 ac_res
="none required"
12831 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12833 if ac_fn_c_try_link
"$LINENO"; then :
12834 ac_cv_search_fdatasync
=$ac_res
12836 rm -f core conftest.err conftest.
$ac_objext \
12838 if ${ac_cv_search_fdatasync+:} false
; then :
12842 if ${ac_cv_search_fdatasync+:} false
; then :
12845 ac_cv_search_fdatasync
=no
12847 rm conftest.
$ac_ext
12848 LIBS
=$ac_func_search_save_LIBS
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
12851 $as_echo "$ac_cv_search_fdatasync" >&6; }
12852 ac_res
=$ac_cv_search_fdatasync
12853 if test "$ac_res" != no
; then :
12854 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12860 # check for debug enabled
12861 # Check whether --enable-debug was given.
12862 if test "${enable_debug+set}" = set; then :
12863 enableval
=$enable_debug;
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build type" >&5
12867 $as_echo_n "checking build type... " >&6; }
12868 if test "${enable_debug}" = "yes" ; then
12869 TARGET_DEBUG
="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0"
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
12871 $as_echo "debug" >&6; }
12873 TARGET_DEBUG
="-DNDEBUG"
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5
12875 $as_echo "release" >&6; }
12880 # See whether we should use the amalgamation to build
12881 # Check whether --enable-amalgamation was given.
12882 if test "${enable_amalgamation+set}" = set; then :
12883 enableval
=$enable_amalgamation;
12886 if test "${enable_amalgamation}" = "no" ; then
12892 # By default, amalgamation sqlite3.c will have #line directives.
12893 # This is a build option not shown by ./configure --help
12894 # To control it, use configure option: amalgamation_line_macros=?
12895 # where ? is no to suppress #line directives or yes to create them.
12896 AMALGAMATION_LINE_MACROS
=--linemacros=1
12899 if test "${amalgamation_line_macros+set}" = set; then :
12900 enableval
=$amalgamation_line_macros;
12902 if test "${amalgamation_line_macros}" = "yes" ; then
12903 AMALGAMATION_LINE_MACROS
=--linemacros=1
12905 if test "${amalgamation_line_macros}" = "no" ; then
12906 AMALGAMATION_LINE_MACROS
=--linemacros=0
12910 # Look for zlib. Only needed by extensions and by the sqlite3.exe shell
12911 for ac_header
in zlib.h
12913 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12914 if test "x$ac_cv_header_zlib_h" = xyes
; then :
12915 cat >>confdefs.h
<<_ACEOF
12916 #define HAVE_ZLIB_H 1
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
12924 $as_echo_n "checking for library containing deflate... " >&6; }
12925 if ${ac_cv_search_deflate+:} false
; then :
12926 $as_echo_n "(cached) " >&6
12928 ac_func_search_save_LIBS
=$LIBS
12929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12930 /* end confdefs.h. */
12932 /* Override any GCC internal prototype to avoid an error.
12933 Use char because int might match the return type of a GCC
12934 builtin and then its argument prototype would still apply. */
12947 for ac_lib
in '' z
; do
12948 if test -z "$ac_lib"; then
12949 ac_res
="none required"
12952 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12954 if ac_fn_c_try_link
"$LINENO"; then :
12955 ac_cv_search_deflate
=$ac_res
12957 rm -f core conftest.err conftest.
$ac_objext \
12959 if ${ac_cv_search_deflate+:} false
; then :
12963 if ${ac_cv_search_deflate+:} false
; then :
12966 ac_cv_search_deflate
=no
12968 rm conftest.
$ac_ext
12969 LIBS
=$ac_func_search_save_LIBS
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
12972 $as_echo "$ac_cv_search_deflate" >&6; }
12973 ac_res
=$ac_cv_search_deflate
12974 if test "$ac_res" != no
; then :
12975 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12976 HAVE_ZLIB
="-DSQLITE_HAVE_ZLIB=1"
12984 # See whether we should allow loadable extensions
12985 # Check whether --enable-load-extension was given.
12986 if test "${enable_load_extension+set}" = set; then :
12987 enableval
=$enable_load_extension;
12989 enable_load_extension
=yes
12992 if test "${enable_load_extension}" = "yes" ; then
12993 OPT_FEATURE_FLAGS
=""
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12995 $as_echo_n "checking for library containing dlopen... " >&6; }
12996 if ${ac_cv_search_dlopen+:} false
; then :
12997 $as_echo_n "(cached) " >&6
12999 ac_func_search_save_LIBS
=$LIBS
13000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13001 /* end confdefs.h. */
13003 /* Override any GCC internal prototype to avoid an error.
13004 Use char because int might match the return type of a GCC
13005 builtin and then its argument prototype would still apply. */
13018 for ac_lib
in '' dl
; do
13019 if test -z "$ac_lib"; then
13020 ac_res
="none required"
13023 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13025 if ac_fn_c_try_link
"$LINENO"; then :
13026 ac_cv_search_dlopen
=$ac_res
13028 rm -f core conftest.err conftest.
$ac_objext \
13030 if ${ac_cv_search_dlopen+:} false
; then :
13034 if ${ac_cv_search_dlopen+:} false
; then :
13037 ac_cv_search_dlopen
=no
13039 rm conftest.
$ac_ext
13040 LIBS
=$ac_func_search_save_LIBS
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13043 $as_echo "$ac_cv_search_dlopen" >&6; }
13044 ac_res
=$ac_cv_search_dlopen
13045 if test "$ac_res" != no
; then :
13046 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13051 OPT_FEATURE_FLAGS
="-DSQLITE_OMIT_LOAD_EXTENSION=1"
13055 # Do we want to support math functions
13057 # Check whether --enable-math was given.
13058 if test "${enable_math+set}" = set; then :
13059 enableval
=$enable_math;
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support math functions" >&5
13063 $as_echo_n "checking whether to support math functions... " >&6; }
13064 if test "$enable_math" = "no"; then
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13066 $as_echo "no" >&6; }
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13069 $as_echo "yes" >&6; }
13070 OPT_FEATURE_FLAGS
="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MATH_FUNCTIONS"
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5
13072 $as_echo_n "checking for library containing ceil... " >&6; }
13073 if ${ac_cv_search_ceil+:} false
; then :
13074 $as_echo_n "(cached) " >&6
13076 ac_func_search_save_LIBS
=$LIBS
13077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13080 /* Override any GCC internal prototype to avoid an error.
13081 Use char because int might match the return type of a GCC
13082 builtin and then its argument prototype would still apply. */
13095 for ac_lib
in '' m
; do
13096 if test -z "$ac_lib"; then
13097 ac_res
="none required"
13100 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13102 if ac_fn_c_try_link
"$LINENO"; then :
13103 ac_cv_search_ceil
=$ac_res
13105 rm -f core conftest.err conftest.
$ac_objext \
13107 if ${ac_cv_search_ceil+:} false
; then :
13111 if ${ac_cv_search_ceil+:} false
; then :
13114 ac_cv_search_ceil
=no
13116 rm conftest.
$ac_ext
13117 LIBS
=$ac_func_search_save_LIBS
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5
13120 $as_echo "$ac_cv_search_ceil" >&6; }
13121 ac_res
=$ac_cv_search_ceil
13122 if test "$ac_res" != no
; then :
13123 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13131 # The --enable-all argument is short-hand to enable
13132 # multiple extensions.
13133 # Check whether --enable-all was given.
13134 if test "${enable_all+set}" = set; then :
13135 enableval
=$enable_all;
13140 # Do we want to support memsys3 and/or memsys5
13142 # Check whether --enable-memsys5 was given.
13143 if test "${enable_memsys5+set}" = set; then :
13144 enableval
=$enable_memsys5;
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5
13148 $as_echo_n "checking whether to support MEMSYS5... " >&6; }
13149 if test "${enable_memsys5}" = "yes"; then
13150 OPT_FEATURE_FLAGS
="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5"
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13152 $as_echo "yes" >&6; }
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13155 $as_echo "no" >&6; }
13157 # Check whether --enable-memsys3 was given.
13158 if test "${enable_memsys3+set}" = set; then :
13159 enableval
=$enable_memsys3;
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5
13163 $as_echo_n "checking whether to support MEMSYS3... " >&6; }
13164 if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then
13165 OPT_FEATURE_FLAGS
="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3"
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13167 $as_echo "yes" >&6; }
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13170 $as_echo "no" >&6; }
13174 # See whether we should enable Full Text Search extensions
13175 # Check whether --enable-fts3 was given.
13176 if test "${enable_fts3+set}" = set; then :
13177 enableval
=$enable_fts3;
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS3" >&5
13181 $as_echo_n "checking whether to support FTS3... " >&6; }
13182 if test "${enable_fts3}" = "yes" ; then
13183 OPT_FEATURE_FLAGS
="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3"
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13185 $as_echo "yes" >&6; }
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188 $as_echo "no" >&6; }
13190 # Check whether --enable-fts4 was given.
13191 if test "${enable_fts4+set}" = set; then :
13192 enableval
=$enable_fts4;
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS4" >&5
13196 $as_echo_n "checking whether to support FTS4... " >&6; }
13197 if test "${enable_fts4}" = "yes" -o "${enable_all}" = "yes" ; then
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13199 $as_echo "yes" >&6; }
13200 OPT_FEATURE_FLAGS
="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4"
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
13202 $as_echo_n "checking for library containing log... " >&6; }
13203 if ${ac_cv_search_log+:} false
; then :
13204 $as_echo_n "(cached) " >&6
13206 ac_func_search_save_LIBS
=$LIBS
13207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13208 /* end confdefs.h. */
13210 /* Override any GCC internal prototype to avoid an error.
13211 Use char because int might match the return type of a GCC
13212 builtin and then its argument prototype would still apply. */
13225 for ac_lib
in '' m
; do
13226 if test -z "$ac_lib"; then
13227 ac_res
="none required"
13230 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13232 if ac_fn_c_try_link
"$LINENO"; then :
13233 ac_cv_search_log
=$ac_res
13235 rm -f core conftest.err conftest.
$ac_objext \
13237 if ${ac_cv_search_log+:} false
; then :
13241 if ${ac_cv_search_log+:} false
; then :
13244 ac_cv_search_log
=no
13246 rm conftest.
$ac_ext
13247 LIBS
=$ac_func_search_save_LIBS
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
13250 $as_echo "$ac_cv_search_log" >&6; }
13251 ac_res
=$ac_cv_search_log
13252 if test "$ac_res" != no
; then :
13253 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13259 $as_echo "no" >&6; }
13261 # Check whether --enable-fts5 was given.
13262 if test "${enable_fts5+set}" = set; then :
13263 enableval
=$enable_fts5;
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS5" >&5
13267 $as_echo_n "checking whether to support FTS5... " >&6; }
13268 if test "${enable_fts5}" = "yes" -o "${enable_all}" = "yes" ; then
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13270 $as_echo "yes" >&6; }
13271 OPT_FEATURE_FLAGS
="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5"
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
13273 $as_echo_n "checking for library containing log... " >&6; }
13274 if ${ac_cv_search_log+:} false
; then :
13275 $as_echo_n "(cached) " >&6
13277 ac_func_search_save_LIBS
=$LIBS
13278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h. */
13281 /* Override any GCC internal prototype to avoid an error.
13282 Use char because int might match the return type of a GCC
13283 builtin and then its argument prototype would still apply. */
13296 for ac_lib
in '' m
; do
13297 if test -z "$ac_lib"; then
13298 ac_res
="none required"
13301 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13303 if ac_fn_c_try_link
"$LINENO"; then :
13304 ac_cv_search_log
=$ac_res
13306 rm -f core conftest.err conftest.
$ac_objext \
13308 if ${ac_cv_search_log+:} false
; then :
13312 if ${ac_cv_search_log+:} false
; then :
13315 ac_cv_search_log
=no
13317 rm conftest.
$ac_ext
13318 LIBS
=$ac_func_search_save_LIBS
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
13321 $as_echo "$ac_cv_search_log" >&6; }
13322 ac_res
=$ac_cv_search_log
13323 if test "$ac_res" != no
; then :
13324 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13330 $as_echo "no" >&6; }
13334 # See whether we should enable JSON1
13335 # Check whether --enable-json1 was given.
13336 if test "${enable_json1+set}" = set; then :
13337 enableval
=$enable_json1;
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support JSON" >&5
13341 $as_echo_n "checking whether to support JSON... " >&6; }
13342 if test "${enable_json1}" = "yes" -o "${enable_all}" = "yes" ; then
13343 OPT_FEATURE_FLAGS
="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_JSON1"
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13345 $as_echo "yes" >&6; }
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13348 $as_echo "no" >&6; }
13352 # See whether we should enable the LIMIT clause on UPDATE and DELETE
13354 # Check whether --enable-update-limit was given.
13355 if test "${enable_update_limit+set}" = set; then :
13356 enableval
=$enable_update_limit;
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support LIMIT on UPDATE and DELETE statements" >&5
13360 $as_echo_n "checking whether to support LIMIT on UPDATE and DELETE statements... " >&6; }
13361 if test "${enable_update_limit}" = "yes" ; then
13362 OPT_FEATURE_FLAGS
="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT"
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13364 $as_echo "yes" >&6; }
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13367 $as_echo "no" >&6; }
13371 # See whether we should enable GEOPOLY
13372 # Check whether --enable-geopoly was given.
13373 if test "${enable_geopoly+set}" = set; then :
13374 enableval
=$enable_geopoly; enable_geopoly
=yes
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support GEOPOLY" >&5
13380 $as_echo_n "checking whether to support GEOPOLY... " >&6; }
13381 if test "${enable_geopoly}" = "yes" -o "${enable_all}" = "yes" ; then
13382 OPT_FEATURE_FLAGS
="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_GEOPOLY"
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13385 $as_echo "yes" >&6; }
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13388 $as_echo "no" >&6; }
13392 # See whether we should enable RTREE
13393 # Check whether --enable-rtree was given.
13394 if test "${enable_rtree+set}" = set; then :
13395 enableval
=$enable_rtree;
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support RTREE" >&5
13399 $as_echo_n "checking whether to support RTREE... " >&6; }
13400 if test "${enable_rtree}" = "yes" ; then
13401 OPT_FEATURE_FLAGS
="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE"
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13403 $as_echo "yes" >&6; }
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13406 $as_echo "no" >&6; }
13410 # See whether we should enable the SESSION extension
13411 # Check whether --enable-session was given.
13412 if test "${enable_session+set}" = set; then :
13413 enableval
=$enable_session;
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support SESSION" >&5
13417 $as_echo_n "checking whether to support SESSION... " >&6; }
13418 if test "${enable_session}" = "yes" -o "${enable_all}" = "yes" ; then
13419 OPT_FEATURE_FLAGS
="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION"
13420 OPT_FEATURE_FLAGS
="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK"
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13422 $as_echo "yes" >&6; }
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13425 $as_echo "no" >&6; }
13429 # attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter
13430 for option
in $CFLAGS $CPPFLAGS
13433 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS
="$OPT_FEATURE_FLAGS $option";;
13434 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS
="$OPT_FEATURE_FLAGS $option";;
13440 # attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
13442 for option
in $CFLAGS
13446 -DSQLITE_ENABLE*) ;;
13447 *) ac_temp_CFLAGS
="$ac_temp_CFLAGS $option";;
13450 CFLAGS
=$ac_temp_CFLAGS
13453 # attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
13454 ac_temp_CPPFLAGS
=""
13455 for option
in $CPPFLAGS
13459 -DSQLITE_ENABLE*) ;;
13460 *) ac_temp_CPPFLAGS
="$ac_temp_CPPFLAGS $option";;
13463 CPPFLAGS
=$ac_temp_CPPFLAGS
13466 # attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
13467 ac_temp_BUILD_CFLAGS
=""
13468 for option
in $BUILD_CFLAGS
13472 -DSQLITE_ENABLE*) ;;
13473 *) ac_temp_BUILD_CFLAGS
="$ac_temp_BUILD_CFLAGS $option";;
13476 BUILD_CFLAGS
=$ac_temp_BUILD_CFLAGS
13480 # See whether we should use GCOV
13481 # Check whether --enable-gcov was given.
13482 if test "${enable_gcov+set}" = set; then :
13483 enableval
=$enable_gcov;
13486 if test "${use_gcov}" = "yes" ; then
13494 # Enable/disabled amalagamation line macros
13496 AMALGAMATION_LINE_MACROS
=--linemacros=0
13497 if test "${amalgamation_line_macros}" = "yes" ; then
13498 AMALGAMATION_LINE_MACROS
=--linemacros=1
13500 if test "${amalgamation_line_macros}" = "no" ; then
13501 AMALGAMATION_LINE_MACROS
=--linemacros=0
13506 # Output the config header
13507 ac_config_headers
="$ac_config_headers config.h"
13511 # Generate the output files.
13514 ac_config_files
="$ac_config_files Makefile sqlcipher.pc"
13516 cat >confcache
<<\_ACEOF
13517 # This file is a shell script that caches the results of configure
13518 # tests run on this system so they can be shared between configure
13519 # scripts and configure runs, see configure's option --config-cache.
13520 # It is not useful on other systems. If it contains results you don't
13521 # want to keep, you may remove or edit it.
13523 # config.status only pays attention to the cache file if you give it
13524 # the --recheck option to rerun configure.
13526 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13527 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13528 # following values.
13532 # The following way of writing the cache mishandles newlines in values,
13533 # but we know of no workaround that is simple, portable, and efficient.
13534 # So, we kill variables containing newlines.
13535 # Ultrix sh set writes to stderr and can't be redirected directly,
13536 # and sets the high bit in the cache file unless we assign to the vars.
13538 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13539 eval ac_val
=\$
$ac_var
13543 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13544 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13547 _ | IFS | as_nl
) ;; #(
13548 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
13549 *) { eval $ac_var=; unset $ac_var;} ;;
13555 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13556 *${as_nl}ac_space
=\
*)
13557 # `set' does not quote correctly, so add quotes: double-quote
13558 # substitution turns \\\\ into \\, and sed turns \\ into \.
13561 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13564 # `set' quotes correctly as required by POSIX, so do not add quotes.
13565 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13574 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13576 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13578 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
13579 if test -w "$cache_file"; then
13580 if test "x$cache_file" != "x/dev/null"; then
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13582 $as_echo "$as_me: updating cache $cache_file" >&6;}
13583 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
13584 cat confcache
>"$cache_file"
13586 case $cache_file in #(
13588 mv -f confcache
"$cache_file"$$
&&
13589 mv -f "$cache_file"$$
"$cache_file" ;; #(
13591 mv -f confcache
"$cache_file" ;;
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13597 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13602 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13603 # Let make expand exec_prefix.
13604 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13606 DEFS
=-DHAVE_CONFIG_H
13611 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
13612 # 1. Remove the extension, and $U if already installed.
13613 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
13614 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
13615 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13616 # will be set to the directory where LIBOBJS objects are built.
13617 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13618 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
13620 LIBOBJS
=$ac_libobjs
13622 LTLIBOBJS
=$ac_ltlibobjs
13626 : "${CONFIG_STATUS=./config.status}"
13628 ac_clean_files_save
=$ac_clean_files
13629 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13631 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13633 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13635 # Generated by $as_me.
13636 # Run this file to recreate the current configuration.
13637 # Compiler output produced by configure, useful for debugging
13638 # configure, is in config.log if it exists.
13641 ac_cs_recheck=false
13644 SHELL=\${CONFIG_SHELL-$SHELL}
13647 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
13648 ## -------------------- ##
13649 ## M4sh Initialization. ##
13650 ## -------------------- ##
13652 # Be more Bourne compatible
13653 DUALCASE
=1; export DUALCASE
# for MKS sh
13654 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
13657 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13658 # is contrary to our usage. Disable this feature.
13659 alias -g '${1+"$@"}'='"$@"'
13660 setopt NO_GLOB_SUBST
13662 case `(set -o) 2>/dev/null` in #(
13674 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13675 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13676 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13677 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13678 # Prefer a ksh shell builtin over an external printf program on Solaris,
13679 # but without wasting forks for bash or zsh.
13680 if test -z "$BASH_VERSION$ZSH_VERSION" \
13681 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13682 as_echo='print
-r --'
13683 as_echo_n='print
-rn --'
13684 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13685 as_echo='printf %s
\n'
13686 as_echo_n='printf %s
'
13688 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13689 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
13690 as_echo_n='/usr
/ucb
/echo -n'
13692 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13693 as_echo_n_body='eval
13697 expr "X$arg" : "X\\(.*\\)$as_nl";
13698 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13700 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
13702 export as_echo_n_body
13703 as_echo_n='sh
-c $as_echo_n_body as_echo
'
13705 export as_echo_body
13706 as_echo='sh
-c $as_echo_body as_echo
'
13709 # The user is always right.
13710 if test "${PATH_SEPARATOR+set}" != set; then
13712 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13713 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13720 # We need space, tab and new line, in precisely that order. Quoting is
13721 # there to prevent editors from complaining about space-tab.
13722 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13723 # splitting by setting IFS to empty value.)
13726 # Find who we are. Look in the path if we contain no directory separator.
13729 *[\\/]* ) as_myself=$0 ;;
13730 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13731 for as_dir in $PATH
13734 test -z "$as_dir" && as_dir=.
13735 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13741 # We did not find ourselves, most probably we were run as `sh COMMAND'
13742 # in which case we are not to be found in the path.
13743 if test "x$as_myself" = x
; then
13746 if test ! -f "$as_myself"; then
13747 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13751 # Unset variables that we do not need and which cause bugs (e.g. in
13752 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13753 # suppresses any "Segmentation fault" message there. '((' could
13754 # trigger a bug in pdksh 5.2.14.
13755 for as_var
in BASH_ENV ENV MAIL MAILPATH
13756 do eval test x\
${$as_var+set} = xset \
13757 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
13770 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
13773 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13774 # ----------------------------------------
13775 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13776 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13777 # script with STATUS, using 1 if that was 0.
13780 as_status
=$1; test $as_status -eq 0 && as_status
=1
13782 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
13783 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13785 $as_echo "$as_me: error: $2" >&2
13786 as_fn_exit
$as_status
13790 # as_fn_set_status STATUS
13791 # -----------------------
13792 # Set $? to STATUS, without forking.
13793 as_fn_set_status
()
13796 } # as_fn_set_status
13798 # as_fn_exit STATUS
13799 # -----------------
13800 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13804 as_fn_set_status
$1
13810 # Portably unset VAR.
13813 { eval $1=; unset $1;}
13815 as_unset
=as_fn_unset
13816 # as_fn_append VAR VALUE
13817 # ----------------------
13818 # Append the text in VALUE to the end of the definition contained in VAR. Take
13819 # advantage of any shell optimizations that allow amortized linear growth over
13820 # repeated appends, instead of the typical quadratic growth present in naive
13822 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
13823 eval 'as_fn_append ()
13834 # as_fn_arith ARG...
13835 # ------------------
13836 # Perform arithmetic evaluation on the ARGs, and store the result in the
13837 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13838 # must be portable across $(()) and expr.
13839 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
13840 eval 'as_fn_arith ()
13847 as_val
=`expr "$@" || test $? -eq 1`
13852 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
13853 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
13859 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13860 as_basename
=basename
13865 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
13871 as_me
=`$as_basename -- "$0" ||
13872 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13873 X"$0" : 'X\(//\)$' \| \
13874 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13876 sed '/^.*\/\([^/][^/]*\)\/*$/{
13890 # Avoid depending upon Character Ranges.
13891 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
13892 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13893 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
13894 as_cr_digits
='0123456789'
13895 as_cr_alnum
=$as_cr_Letters$as_cr_digits
13897 ECHO_C
= ECHO_N
= ECHO_T
=
13898 case `echo -n x` in #(((((
13900 case `echo 'xy\c'` in
13901 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
13903 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
13910 rm -f conf$$ conf$$.exe conf$$.
file
13911 if test -d conf$$.dir
; then
13912 rm -f conf$$.dir
/conf$$.
file
13915 mkdir conf$$.dir
2>/dev
/null
13917 if (echo >conf$$.
file) 2>/dev
/null
; then
13918 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
13920 # ... but there are two gotchas:
13921 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13922 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13923 # In both cases, we have to default to `cp -pR'.
13924 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
13926 elif ln conf$$.
file conf$$
2>/dev
/null
; then
13934 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
13935 rmdir conf$$.dir
2>/dev
/null
13940 # Create "$as_dir" as a directory, including parents if necessary.
13945 -*) as_dir
=.
/$as_dir;;
13947 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
13951 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13952 *) as_qdir
=$as_dir;;
13954 as_dirs
="'$as_qdir' $as_dirs"
13955 as_dir
=`$as_dirname -- "$as_dir" ||
13956 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13957 X"$as_dir" : 'X\(//\)[^/]' \| \
13958 X"$as_dir" : 'X\(//\)$' \| \
13959 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13960 $as_echo X"$as_dir" |
13961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13965 /^X\(\/\/\)[^/].*/{
13978 test -d "$as_dir" && break
13980 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
13981 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
13985 if mkdir
-p .
2>/dev
/null
; then
13986 as_mkdir_p
='mkdir -p "$as_dir"'
13988 test -d .
/-p && rmdir .
/-p
13993 # as_fn_executable_p FILE
13994 # -----------------------
13995 # Test if FILE is an executable regular file.
13996 as_fn_executable_p
()
13998 test -f "$1" && test -x "$1"
13999 } # as_fn_executable_p
14000 as_test_x
='test -x'
14001 as_executable_p
=as_fn_executable_p
14003 # Sed expression to map a string onto a valid CPP name.
14004 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14006 # Sed expression to map a string onto a valid variable name.
14007 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14011 ## ----------------------------------- ##
14012 ## Main body of $CONFIG_STATUS script. ##
14013 ## ----------------------------------- ##
14015 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
14017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14018 # Save the log message, to keep $0 and so on meaningful, and to
14019 # report actual input values of CONFIG_FILES etc. instead of their
14020 # values after options handling.
14022 This file was extended by sqlcipher $as_me 3.37.2, which was
14023 generated by GNU Autoconf 2.69. Invocation command line was
14025 CONFIG_FILES = $CONFIG_FILES
14026 CONFIG_HEADERS = $CONFIG_HEADERS
14027 CONFIG_LINKS = $CONFIG_LINKS
14028 CONFIG_COMMANDS = $CONFIG_COMMANDS
14031 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14036 case $ac_config_files in *"
14037 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
14040 case $ac_config_headers in *"
14041 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
14045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14046 # Files that config.status was made for.
14047 config_files="$ac_config_files"
14048 config_headers="$ac_config_headers"
14049 config_commands="$ac_config_commands"
14053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14055 \`$as_me' instantiates files and other configuration actions
14056 from templates according to the current configuration. Unless the files
14057 and actions are specified as TAGs, all are instantiated by default.
14059 Usage: $0 [OPTION]... [TAG]...
14061 -h, --help print this help, then exit
14062 -V, --version print version number and configuration settings, then exit
14063 --config print configuration, then exit
14064 -q, --quiet, --silent
14065 do not print progress messages
14066 -d, --debug don't remove temporary files
14067 --recheck update $as_me by reconfiguring in the same conditions
14068 --file=FILE[:TEMPLATE]
14069 instantiate the configuration file FILE
14070 --header=FILE[:TEMPLATE]
14071 instantiate the configuration header FILE
14073 Configuration files:
14076 Configuration headers:
14079 Configuration commands:
14082 Report bugs to the package provider."
14085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14086 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14088 sqlcipher config.status 3.37.2
14089 configured by $0, generated by GNU Autoconf 2.69,
14090 with options \\"\$ac_cs_config\\"
14092 Copyright (C) 2012 Free Software Foundation, Inc.
14093 This config.status script is free software; the Free Software Foundation
14094 gives unlimited permission to copy, distribute and modify it."
14100 test -n "\$AWK" || AWK=awk
14103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14104 # The default lists apply if the user does not specify any file.
14110 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14111 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14115 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14127 # Handling of the options.
14128 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14130 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
14131 $as_echo "$ac_cs_version"; exit ;;
14132 --config |
--confi |
--conf |
--con |
--co |
--c )
14133 $as_echo "$ac_cs_config"; exit ;;
14134 --debug |
--debu |
--deb |
--de |
--d |
-d )
14136 --file |
--fil |
--fi |
--f )
14139 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14140 '') as_fn_error $?
"missing file argument" ;;
14142 as_fn_append CONFIG_FILES
" '$ac_optarg'"
14143 ac_need_defaults
=false
;;
14144 --header |
--heade |
--head |
--hea )
14147 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14149 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
14150 ac_need_defaults
=false
;;
14152 # Conflict between --help and --header
14153 as_fn_error $?
"ambiguous option: \`$1'
14154 Try \`$0 --help' for more information.";;
14155 --help |
--hel |
-h )
14156 $as_echo "$ac_cs_usage"; exit ;;
14157 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14158 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14161 # This is an error.
14162 -*) as_fn_error $?
"unrecognized option: \`$1'
14163 Try \`$0 --help' for more information." ;;
14165 *) as_fn_append ac_config_targets
" $1"
14166 ac_need_defaults
=false
;;
14172 ac_configure_extra_args
=
14174 if $ac_cs_silent; then
14176 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14181 if \$ac_cs_recheck; then
14182 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14184 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14185 CONFIG_SHELL='$SHELL'
14186 export CONFIG_SHELL
14191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14195 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14196 ## Running $as_me. ##
14202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14208 # The HP-UX ksh and POSIX shell print the target directory to stdout
14209 # if CDPATH is set.
14210 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14212 sed_quote_subst='$sed_quote_subst'
14213 double_quote_subst='$double_quote_subst'
14214 delay_variable_subst='$delay_variable_subst'
14215 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14216 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14217 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14218 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14219 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14220 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14221 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14222 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14223 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14224 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14225 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14226 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14227 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14228 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14229 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14230 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14231 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14232 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14233 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14234 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14235 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14236 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14237 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14238 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14239 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14240 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14241 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14242 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14243 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14244 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14245 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14246 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14247 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14248 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14249 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14250 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14251 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14252 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14253 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14254 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14255 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14256 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14257 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14258 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14259 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14260 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14261 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14262 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14263 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14264 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14265 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14266 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14267 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14268 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14269 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14270 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14271 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14272 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14273 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"`'
14274 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14275 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14276 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14277 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14278 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14279 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14280 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14281 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14282 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14283 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14284 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14285 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14286 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14287 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14288 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14289 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14290 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14291 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14292 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14293 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14294 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14295 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14296 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14297 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14298 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14299 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14300 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14301 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14302 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14303 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14304 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14305 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14306 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14307 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14308 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14309 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14310 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14311 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14312 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14313 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14314 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14315 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14316 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14317 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14318 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14319 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14320 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14321 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14322 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14323 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14324 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14325 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14326 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14327 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14328 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14329 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14330 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14331 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14332 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14333 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14334 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14335 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14336 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14337 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14338 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14339 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14340 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14341 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14342 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14343 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14344 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14345 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14346 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14347 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14348 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14349 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14352 LTCFLAGS='$LTCFLAGS'
14353 compiler='$compiler_DEFAULT'
14355 # A function that is used when there is no print builtin or printf.
14356 func_fallback_echo ()
14358 eval 'cat <<_LTECHO_EOF
14363 # Quote evaled strings.
14378 deplibs_check_method \
14383 sharedlib_from_linklib_cmd \
14386 archiver_list_spec \
14392 lt_cv_sys_global_symbol_pipe \
14393 lt_cv_sys_global_symbol_to_cdecl \
14394 lt_cv_sys_global_symbol_to_import \
14395 lt_cv_sys_global_symbol_to_c_name_address \
14396 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14397 lt_cv_nm_interface \
14398 nm_file_list_spec \
14399 lt_cv_truncate_bin \
14400 lt_prog_compiler_no_builtin_flag \
14401 lt_prog_compiler_pic \
14402 lt_prog_compiler_wl \
14403 lt_prog_compiler_static \
14404 lt_cv_prog_compiler_c_o \
14413 export_dynamic_flag_spec \
14414 whole_archive_flag_spec \
14415 compiler_needs_object \
14417 allow_undefined_flag \
14418 no_undefined_flag \
14419 hardcode_libdir_flag_spec \
14420 hardcode_libdir_separator \
14424 variables_saved_for_relink \
14426 library_names_spec \
14428 install_override_mode \
14432 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14433 *[\\\\\\\`\\"\\\$]*)
14434 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14437 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14442 # Double-quote double-evaled strings.
14443 for var in reload_cmds \
14444 old_postinstall_cmds \
14445 old_postuninstall_cmds \
14447 extract_expsyms_cmds \
14448 old_archive_from_new_cmds \
14449 old_archive_from_expsyms_cmds \
14451 archive_expsym_cmds \
14453 module_expsym_cmds \
14454 export_symbols_cmds \
14458 postuninstall_cmds \
14460 sys_lib_search_path_spec \
14461 configure_time_dlsearch_path \
14462 configure_time_lt_sys_library_path; do
14463 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14464 *[\\\\\\\`\\"\\\$]*)
14465 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14468 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14473 ac_aux_dir='$ac_aux_dir'
14475 # See if we are running on zsh, and set the options that allow our
14476 # commands through without removal of \ escapes INIT.
14477 if test -n "\${ZSH_VERSION+set}"; then
14478 setopt NO_GLOB_SUBST
14492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14494 # Handling of arguments.
14495 for ac_config_target
in $ac_config_targets
14497 case $ac_config_target in
14498 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
14499 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
14500 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14501 "sqlcipher.pc") CONFIG_FILES
="$CONFIG_FILES sqlcipher.pc" ;;
14503 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14508 # If the user did not use the arguments to specify the items to instantiate,
14509 # then the envvar interface is used. Set only those that are not.
14510 # We use the long form for the default assignment because of an extremely
14511 # bizarre bug on SunOS 4.1.3.
14512 if $ac_need_defaults; then
14513 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14514 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14515 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14518 # Have a temporary directory for convenience. Make it in the build tree
14519 # simply because there is no reason against having it here, and in addition,
14520 # creating and moving files from /tmp can sometimes cause problems.
14521 # Hook for its removal unless debugging.
14522 # Note that there is a small window in which the directory will not be cleaned:
14523 # after its creation but before its name has been assigned to `$tmp'.
14527 trap 'exit_status=$?
14528 : "${ac_tmp:=$tmp}"
14529 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14531 trap 'as_fn_exit 1' 1 2 13 15
14533 # Create a (secure) tmp directory for tmp files.
14536 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14540 tmp
=.
/conf$$
-$RANDOM
14541 (umask 077 && mkdir
"$tmp")
14542 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
14545 # Set up the scripts for CONFIG_FILES section.
14546 # No need to generate them if there are no CONFIG_FILES.
14547 # This happens for instance with `./config.status config.h'.
14548 if test -n "$CONFIG_FILES"; then
14551 ac_cr
=`echo X | tr X '\015'`
14552 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14553 # But we know of no other shell where ac_cr would be empty at this
14554 # point, so we can use a bashism as a fallback.
14555 if test "x$ac_cr" = x
; then
14556 eval ac_cr
=\$
\'\\r
\'
14558 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14559 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14562 ac_cs_awk_cr
=$ac_cr
14565 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14570 echo "cat >conf$$subs.awk <<_ACEOF" &&
14571 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14573 } >conf$$subs.sh ||
14574 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
14575 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14577 for ac_last_try in false false false false false :; do
14578 . ./conf$$subs.sh ||
14579 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
14581 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
14582 if test $ac_delim_n = $ac_delim_num; then
14584 elif $ac_last_try; then
14585 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
14587 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14590 rm -f conf$$subs.sh
14592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14593 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
14597 s/^/S["/; s
/!.
*/"]=/
14607 s/\(.\{148\}\)..*/\1/
14609 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
14614 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14621 s/\(.\{148\}\)..*/\1/
14623 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
14627 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14632 ' <conf$$subs.awk | sed '
14637 ' >>$CONFIG_STATUS || ac_write_fail=1
14638 rm -f conf$$subs.awk
14639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14641 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
14642 for (key in S) S_is_set[key] = 1
14648 nfields = split(line, field, "@
")
14650 len = length(field[1])
14651 for (i = 2; i < nfields; i++) {
14653 keylen = length(key)
14654 if (S_is_set[key]) {
14656 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14657 len += length(value) + length(field[++i])
14668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14669 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14670 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
14673 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
14674 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
14677 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14678 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
14679 # trailing colons and then remove the whole line if VPATH becomes empty
14680 # (actually we leave an empty line to preserve line numbers).
14681 if test "x
$srcdir" = x.; then
14682 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14701 fi # test -n "$CONFIG_FILES"
14703 # Set up the scripts for CONFIG_HEADERS section.
14704 # No need to generate them if there are no CONFIG_HEADERS.
14705 # This happens for instance with `./config.status Makefile'.
14706 if test -n "$CONFIG_HEADERS"; then
14707 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
14711 # Transform confdefs.h into an awk script `defines.awk', embedded as
14712 # here-document in config.status, that substitutes the proper values into
14713 # config.h.in to produce config.h.
14715 # Create a delimiter string that does not exist in confdefs.h, to ease
14716 # handling of long lines.
14718 for ac_last_try in false false :; do
14719 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
14720 if test -z "$ac_tt"; then
14722 elif $ac_last_try; then
14723 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
14725 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14729 # For the awk script, D is an array of macro values keyed by name,
14730 # likewise P contains macro parameters if any. Preserve backslash
14731 # newline sequences.
14733 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14735 s/.\{148\}/&'"$ac_delim"'/g
14738 s/^[ ]*#[ ]*define[ ][ ]*/ /
14745 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
14747 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
14751 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
14752 D["\
1"]=" \
3\\\\\\n
"\\/p
14754 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
14759 s/.\{148\}/&'"$ac_delim"'/g
14764 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
14767 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
14769 ' <confdefs.h | sed '
14770 s/'"$ac_delim"'/"\\\
14771 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14774 for (key in D) D_is_set[key] = 1
14777 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14779 split(line, arg, " ")
14780 if (arg[1] == "#") {
14784 defundef
= substr
(arg
[1], 2)
14787 split(mac1
, mac2
, "(") #)
14789 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
14790 if (D_is_set
[macro
]) {
14791 # Preserve the white space surrounding the "#".
14792 print prefix
"define", macro P
[macro
] D
[macro
]
14795 # Replace #undef with comments. This is necessary, for example,
14796 # in the case of _POSIX_SOURCE, which is predefined and required
14797 # on some systems where configure will not decide to define it.
14798 if (defundef
== "undef") {
14799 print
"/*", prefix defundef
, macro
, "*/"
14807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14808 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
14809 fi # test -n "$CONFIG_HEADERS"
14812 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14817 :[FHLC
]) ac_mode
=$ac_tag; continue;;
14819 case $ac_mode$ac_tag in
14821 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
14822 :[FH
]-) ac_tag
=-:-;;
14823 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
14840 -) ac_f
="$ac_tmp/stdin";;
14841 *) # Look for the file first in the build tree, then in the source tree
14842 # (if the path is not absolute). The absolute path cannot be DOS-style,
14843 # because $ac_f cannot contain `:'.
14847 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
14849 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14851 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14852 as_fn_append ac_file_inputs
" '$ac_f'"
14855 # Let's still pretend it is `configure' which instantiates (i.e., don't
14856 # use $as_me), people would be surprised to read:
14857 # /* config.h. Generated by config.status. */
14858 configure_input
='Generated from '`
14859 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14861 if test x
"$ac_file" != x-
; then
14862 configure_input
="$ac_file. $configure_input"
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14864 $as_echo "$as_me: creating $ac_file" >&6;}
14866 # Neutralize special characters interpreted by sed in replacement strings.
14867 case $configure_input in #(
14868 *\
&* |
*\|
* |
*\\* )
14869 ac_sed_conf_input
=`$as_echo "$configure_input" |
14870 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14871 *) ac_sed_conf_input
=$configure_input;;
14875 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
14876 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
14881 ac_dir
=`$as_dirname -- "$ac_file" ||
14882 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14883 X"$ac_file" : 'X\(//\)[^/]' \| \
14884 X"$ac_file" : 'X\(//\)$' \| \
14885 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14886 $as_echo X"$ac_file" |
14887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14891 /^X\(\/\/\)[^/].*/{
14904 as_dir
="$ac_dir"; as_fn_mkdir_p
14908 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14910 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14911 # A ".." for each directory in $ac_dir_suffix.
14912 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14913 case $ac_top_builddir_sub in
14914 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14915 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
14918 ac_abs_top_builddir
=$ac_pwd
14919 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
14920 # for backward compatibility:
14921 ac_top_builddir
=$ac_top_build_prefix
14924 .
) # We are building in place.
14926 ac_top_srcdir
=$ac_top_builddir_sub
14927 ac_abs_top_srcdir
=$ac_pwd ;;
14928 [\\/]* | ?
:[\\/]* ) # Absolute name.
14929 ac_srcdir
=$srcdir$ac_dir_suffix;
14930 ac_top_srcdir
=$srcdir
14931 ac_abs_top_srcdir
=$srcdir ;;
14932 *) # Relative name.
14933 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
14934 ac_top_srcdir
=$ac_top_build_prefix$srcdir
14935 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
14937 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
14947 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
14948 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
14952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14953 # If the template does not know about datarootdir, expand it.
14954 # FIXME: This hack should be removed a few years after 2.60.
14955 ac_datarootdir_hack
=; ac_datarootdir_seen
=
14966 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14967 *datarootdir
*) ac_datarootdir_seen
=yes;;
14968 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14970 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14973 ac_datarootdir_hack='
14974 s&@datadir@&$datadir&g
14975 s&@docdir@&$docdir&g
14976 s&@infodir@&$infodir&g
14977 s&@localedir@&$localedir&g
14978 s&@mandir@&$mandir&g
14979 s&\\\${datarootdir}&$datarootdir&g' ;;
14983 # Neutralize VPATH when `$srcdir' = `.'.
14984 # Shell code in configure.ac might set extrasub.
14985 # FIXME: do we really want to maintain this feature?
14986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14987 ac_sed_extra="$ac_vpsub
14990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14992 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
14993 s|@configure_input@|
$ac_sed_conf_input|
;t t
14994 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
14995 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
14996 s
&@srcdir@
&$ac_srcdir&;t t
14997 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
14998 s
&@top_srcdir@
&$ac_top_srcdir&;t t
14999 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15000 s
&@builddir@
&$ac_builddir&;t t
15001 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15002 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15003 s
&@INSTALL@
&$ac_INSTALL&;t t
15004 $ac_datarootdir_hack
15006 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
15007 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
15009 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15010 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
15011 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15012 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15014 which seems to be undefined. Please make sure it is defined" >&5
15015 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15016 which seems to be undefined. Please make sure it is defined" >&2;}
15018 rm -f "$ac_tmp/stdin"
15020 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15021 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15023 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15029 if test x"$ac_file" != x-; then
15031 $as_echo "/* $configure_input */" \
15032 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15033 } >"$ac_tmp/config.h" \
15034 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15035 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15037 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15040 mv "$ac_tmp/config.h" "$ac_file" \
15041 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15044 $as_echo "/* $configure_input */" \
15045 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15046 || as_fn_error $? "could not create -" "$LINENO" 5
15050 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15051 $as_echo "$as_me: executing $ac_file commands" >&6;}
15056 case $ac_file$ac_mode in
15059 # See if we are running on zsh, and set the options that allow our
15060 # commands through without removal of \ escapes.
15061 if test -n "${ZSH_VERSION+set}"; then
15062 setopt NO_GLOB_SUBST
15066 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15069 cat <<_LT_EOF >> "$cfgfile"
15071 # Generated automatically by $as_me ($PACKAGE) $VERSION
15072 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15074 # Provide generalized library-building support services.
15075 # Written by Gordon Matzigkeit, 1996
15077 # Copyright (C) 2014 Free Software Foundation, Inc.
15078 # This is free software; see the source for copying conditions. There is NO
15079 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15081 # GNU Libtool is free software; you can redistribute it and/or modify
15082 # it under the terms of the GNU General Public License as published by
15083 # the Free Software Foundation; either version 2 of of the License, or
15084 # (at your option) any later version.
15086 # As a special exception to the GNU General Public License, if you
15087 # distribute this file as part of a program or library that is built
15088 # using GNU Libtool, you may include this file under the same
15089 # distribution terms that you use for the rest of that program.
15091 # GNU Libtool is distributed in the hope that it will be useful, but
15092 # WITHOUT ANY WARRANTY; without even the implied warranty of
15093 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15094 # GNU General Public License for more details.
15096 # You should have received a copy of the GNU General Public License
15097 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15100 # The names of the tagged configurations supported by this script.
15103 # Configured defaults for sys_lib_dlsearch_path munging.
15104 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15106 # ### BEGIN LIBTOOL CONFIG
15108 # Which release of libtool.m4 was used?
15109 macro_version=$macro_version
15110 macro_revision=$macro_revision
15112 # Whether or not to build shared libraries.
15113 build_libtool_libs=$enable_shared
15115 # Whether or not to build static libraries.
15116 build_old_libs=$enable_static
15118 # What type of objects to build.
15121 # Whether or not to optimize for fast installation.
15122 fast_install=$enable_fast_install
15124 # Shared archive member basename,for filename based shared library versioning on AIX.
15125 shared_archive_member_spec=$shared_archive_member_spec
15127 # Shell to use when invoking shell scripts.
15130 # An echo program that protects backslashes.
15133 # The PATH separator for the build system.
15134 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15137 host_alias=$host_alias
15141 # The build system.
15142 build_alias=$build_alias
15146 # A sed program that does not truncate output.
15149 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15150 Xsed="\$SED -e 1s/^X//"
15152 # A grep program that handles long lines.
15158 # A literal string matcher.
15161 # A BSD- or MS-compatible name lister.
15164 # Whether we need soft or hard links.
15167 # What is the maximum length of a command?
15168 max_cmd_len=$max_cmd_len
15170 # Object file suffix (normally "o").
15173 # Executable file suffix (normally "").
15176 # whether the shell understands "unset".
15179 # turn spaces into newlines.
15182 # turn newlines into spaces.
15185 # convert \$build file names to \$host format.
15186 to_host_file_cmd=$lt_cv_to_host_file_cmd
15188 # convert \$build files to toolchain format.
15189 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15191 # An object symbol dumper.
15192 OBJDUMP=$lt_OBJDUMP
15194 # Method to check whether dependent libraries are shared objects.
15195 deplibs_check_method=$lt_deplibs_check_method
15197 # Command to use when deplibs_check_method = "file_magic".
15198 file_magic_cmd=$lt_file_magic_cmd
15200 # How to find potential files when deplibs_check_method = "file_magic".
15201 file_magic_glob=$lt_file_magic_glob
15203 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15204 want_nocaseglob=$lt_want_nocaseglob
15206 # DLL creation program.
15207 DLLTOOL=$lt_DLLTOOL
15209 # Command to associate shared and link libraries.
15210 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15215 # Flags to create an archive.
15216 AR_FLAGS=$lt_AR_FLAGS
15218 # How to feed a file listing to the archiver.
15219 archiver_list_spec=$lt_archiver_list_spec
15221 # A symbol stripping program.
15224 # Commands used to install an old-style archive.
15226 old_postinstall_cmds=$lt_old_postinstall_cmds
15227 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15229 # Whether to use a lock for old archive extraction.
15230 lock_old_archive_extraction=$lock_old_archive_extraction
15235 # LTCC compiler flags.
15236 LTCFLAGS=$lt_CFLAGS
15238 # Take the output of nm and produce a listing of raw symbols and C names.
15239 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15241 # Transform the output of nm in a proper C declaration.
15242 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15244 # Transform the output of nm into a list of symbols to manually relocate.
15245 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15247 # Transform the output of nm in a C name address pair.
15248 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15250 # Transform the output of nm in a C name address pair when lib prefix is needed.
15251 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15253 # The name lister interface.
15254 nm_interface=$lt_lt_cv_nm_interface
15256 # Specify filename containing input files for \$NM.
15257 nm_file_list_spec=$lt_nm_file_list_spec
15259 # The root where to search for dependent libraries,and where our libraries should be installed.
15260 lt_sysroot=$lt_sysroot
15262 # Command to truncate a binary pipe.
15263 lt_truncate_bin=$lt_lt_cv_truncate_bin
15265 # The name of the directory that contains temporary libtool files.
15268 # Used to examine libraries when file_magic_cmd begins with "file".
15269 MAGIC_CMD=$MAGIC_CMD
15271 # Must we lock files when doing compilation?
15272 need_locks=$lt_need_locks
15275 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15277 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15278 DSYMUTIL=$lt_DSYMUTIL
15280 # Tool to change global to local symbols on Mac OS X.
15283 # Tool to manipulate fat objects and archives on Mac OS X.
15286 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15289 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15290 OTOOL64=$lt_OTOOL64
15292 # Old archive suffix (normally "a").
15295 # Shared library suffix (normally ".so").
15296 shrext_cmds=$lt_shrext_cmds
15298 # The commands to extract the exported symbol list from a shared archive.
15299 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15301 # Variables whose values should be saved in libtool wrapper scripts and
15302 # restored at link time.
15303 variables_saved_for_relink=$lt_variables_saved_for_relink
15305 # Do we need the "lib" prefix for modules?
15306 need_lib_prefix=$need_lib_prefix
15308 # Do we need a version for libraries?
15309 need_version=$need_version
15311 # Library versioning type.
15312 version_type=$version_type
15314 # Shared library runtime path variable.
15315 runpath_var=$runpath_var
15317 # Shared library path variable.
15318 shlibpath_var=$shlibpath_var
15320 # Is shlibpath searched before the hard-coded library search path?
15321 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15323 # Format of library name prefix.
15324 libname_spec=$lt_libname_spec
15326 # List of archive names. First name is the real one, the rest are links.
15327 # The last name is the one that the linker finds with -lNAME
15328 library_names_spec=$lt_library_names_spec
15330 # The coded name of the library, if different from the real name.
15331 soname_spec=$lt_soname_spec
15333 # Permission mode override for installation of shared libraries.
15334 install_override_mode=$lt_install_override_mode
15336 # Command to use after installation of a shared archive.
15337 postinstall_cmds=$lt_postinstall_cmds
15339 # Command to use after uninstallation of a shared archive.
15340 postuninstall_cmds=$lt_postuninstall_cmds
15342 # Commands used to finish a libtool library installation in a directory.
15343 finish_cmds=$lt_finish_cmds
15345 # As "finish_cmds", except a single script fragment to be evaled but
15347 finish_eval=$lt_finish_eval
15349 # Whether we should hardcode library paths into libraries.
15350 hardcode_into_libs=$hardcode_into_libs
15352 # Compile-time system search path for libraries.
15353 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15355 # Detected run-time system search path for libraries.
15356 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15358 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15359 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15361 # Whether dlopen is supported.
15362 dlopen_support=$enable_dlopen
15364 # Whether dlopen of programs is supported.
15365 dlopen_self=$enable_dlopen_self
15367 # Whether dlopen of statically linked programs is supported.
15368 dlopen_self_static=$enable_dlopen_self_static
15370 # Commands to strip libraries.
15371 old_striplib=$lt_old_striplib
15372 striplib=$lt_striplib
15375 # The linker used to build libraries.
15378 # How to create reloadable object files.
15379 reload_flag=$lt_reload_flag
15380 reload_cmds=$lt_reload_cmds
15382 # Commands used to build an old-style archive.
15383 old_archive_cmds=$lt_old_archive_cmds
15385 # A language specific compiler.
15388 # Is the compiler the GNU compiler?
15391 # Compiler flag to turn off builtin functions.
15392 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15394 # Additional compiler flags for building library objects.
15395 pic_flag=$lt_lt_prog_compiler_pic
15397 # How to pass a linker flag through the compiler.
15398 wl=$lt_lt_prog_compiler_wl
15400 # Compiler flag to prevent dynamic linking.
15401 link_static_flag=$lt_lt_prog_compiler_static
15403 # Does compiler simultaneously support -c and -o options?
15404 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15406 # Whether or not to add -lc for building shared libraries.
15407 build_libtool_need_lc=$archive_cmds_need_lc
15409 # Whether or not to disallow shared libs when runtime libs are static.
15410 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15412 # Compiler flag to allow reflexive dlopens.
15413 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15415 # Compiler flag to generate shared objects directly from archives.
15416 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15418 # Whether the compiler copes with passing no objects directly.
15419 compiler_needs_object=$lt_compiler_needs_object
15421 # Create an old-style archive from a shared archive.
15422 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15424 # Create a temporary old-style archive to link instead of a shared archive.
15425 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15427 # Commands used to build a shared archive.
15428 archive_cmds=$lt_archive_cmds
15429 archive_expsym_cmds=$lt_archive_expsym_cmds
15431 # Commands used to build a loadable module if different from building
15432 # a shared archive.
15433 module_cmds=$lt_module_cmds
15434 module_expsym_cmds=$lt_module_expsym_cmds
15436 # Whether we are building with GNU ld or not.
15437 with_gnu_ld=$lt_with_gnu_ld
15439 # Flag that allows shared libraries with undefined symbols to be built.
15440 allow_undefined_flag=$lt_allow_undefined_flag
15442 # Flag that enforces no undefined symbols.
15443 no_undefined_flag=$lt_no_undefined_flag
15445 # Flag to hardcode \$libdir into a binary during linking.
15446 # This must work even if \$libdir does not exist
15447 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15449 # Whether we need a single "-rpath" flag with a separated argument.
15450 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15452 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15453 # DIR into the resulting binary.
15454 hardcode_direct=$hardcode_direct
15456 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15457 # DIR into the resulting binary and the resulting library dependency is
15458 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15459 # library is relocated.
15460 hardcode_direct_absolute=$hardcode_direct_absolute
15462 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15463 # into the resulting binary.
15464 hardcode_minus_L=$hardcode_minus_L
15466 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15467 # into the resulting binary.
15468 hardcode_shlibpath_var=$hardcode_shlibpath_var
15470 # Set to "yes" if building a shared library automatically hardcodes DIR
15471 # into the library and all subsequent libraries and executables linked
15473 hardcode_automatic=$hardcode_automatic
15475 # Set to yes if linker adds runtime paths of dependent libraries
15476 # to runtime path list.
15477 inherit_rpath=$inherit_rpath
15479 # Whether libtool must link a program against all its dependency libraries.
15480 link_all_deplibs=$link_all_deplibs
15482 # Set to "yes" if exported symbols are required.
15483 always_export_symbols=$always_export_symbols
15485 # The commands to list exported symbols.
15486 export_symbols_cmds=$lt_export_symbols_cmds
15488 # Symbols that should not be listed in the preloaded symbols.
15489 exclude_expsyms=$lt_exclude_expsyms
15491 # Symbols that must always be exported.
15492 include_expsyms=$lt_include_expsyms
15494 # Commands necessary for linking programs (against libraries) with templates.
15495 prelink_cmds=$lt_prelink_cmds
15497 # Commands necessary for finishing linking programs.
15498 postlink_cmds=$lt_postlink_cmds
15500 # Specify filename containing input files.
15501 file_list_spec=$lt_file_list_spec
15503 # How to hardcode a shared library path into an executable.
15504 hardcode_action=$hardcode_action
15506 # ### END LIBTOOL CONFIG
15510 cat <<'_LT_EOF' >> "$cfgfile"
15512 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15514 # func_munge_path_list VARIABLE PATH
15515 # -----------------------------------
15516 # VARIABLE is name of variable containing _space_ separated list of
15517 # directories to be munged by the contents of PATH, which is string
15520 # string "DIR[ DIR]" will be prepended to VARIABLE
15522 # string "DIR[ DIR]" will be appended to VARIABLE
15523 # "DIRP[:DIRP]::[DIRA:]DIRA"
15524 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15525 # "DIRA[ DIRA]" will be appended to VARIABLE
15527 # VARIABLE will be replaced by "DIR[ DIR]"
15528 func_munge_path_list ()
15534 eval $1=\"`$ECHO $2 | $SED 's
/:/ /g
'` \$$1\"
15537 eval $1=\"\$$1 `$ECHO $2 | $SED 's
/:/ /g
'`\"
15540 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's
/.
*:://' -e 's
/:/ /g
'`\"
15541 eval $1=\"`$ECHO $2 | $SED -e 's
/::.
*//' -e 's
/:/ /g
'`\ \$$1\"
15544 eval $1=\"`$ECHO $2 | $SED 's
/:/ /g
'`\"
15550 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15551 func_cc_basename ()
15553 for cc_temp in $*""; do
15555 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15556 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15561 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15565 # ### END FUNCTIONS SHARED WITH CONFIGURE
15571 cat <<\_LT_EOF >> "$cfgfile"
15572 # AIX sometimes has problems with the GCC collect2 program. For some
15573 # reason, if we set the COLLECT_NAMES environment variable, the problems
15574 # vanish in a puff of smoke.
15575 if test set != "${COLLECT_NAMES+set}"; then
15577 export COLLECT_NAMES
15584 ltmain=$ac_aux_dir/ltmain.sh
15587 # We use sed instead of cat because bash on DJGPP gets confused if
15588 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15589 # text mode, it properly converts lines to CR/LF. This bash problem
15590 # is reportedly fixed, but why not run on old versions too?
15591 sed '$q' "$ltmain" >> "$cfgfile" \
15592 || (rm -f "$cfgfile"; exit 1)
15594 mv -f "$cfgfile" "$ofile" ||
15595 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15606 ac_clean_files=$ac_clean_files_save
15608 test $ac_write_fail = 0 ||
15609 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15612 # configure is writing to config.log, and then calls config.status.
15613 # config.status does its own redirection, appending to config.log.
15614 # Unfortunately, on DOS this fails, as config.log is still kept open
15615 # by configure, so config.status won't be able to
write to it
; its
15616 # output is simply discarded. So we exec the FD to /dev/null,
15617 # effectively closing config.log, so it can be properly (re)opened and
15618 # appended to by config.status. When coming back to configure, we
15619 # need to make the FD available again.
15620 if test "$no_create" != yes; then
15622 ac_config_status_args
=
15623 test "$silent" = yes &&
15624 ac_config_status_args
="$ac_config_status_args --quiet"
15626 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15628 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15629 # would make configure fail if this is the last instruction.
15630 $ac_cs_success || as_fn_exit
1
15632 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15634 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}