Merge sqlite-release(3.43.1) into prerelease-integration
[sqlcipher.git] / configure
blob31b7da6fe74f236bb453add7fd743a0f27a4ea44
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for sqlcipher 3.43.1.
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else $as_nop
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
33 esac
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
47 export as_nl
48 IFS=" "" $as_nl"
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150 else \$as_nop
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
156 esac
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
173 else \$as_nop
174 exitcode=1; echo positional parameters were not saved.
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
186 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
187 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 PATH=/empty FPATH=/empty; export PATH FPATH
190 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
191 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
192 test \$(( 1 + 1 )) = 2 || exit 1"
193 if (eval "$as_required") 2>/dev/null
194 then :
195 as_have_required=yes
196 else $as_nop
197 as_have_required=no
199 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
200 then :
202 else $as_nop
203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
204 as_found=false
205 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
207 IFS=$as_save_IFS
208 case $as_dir in #(((
209 '') as_dir=./ ;;
210 */) ;;
211 *) as_dir=$as_dir/ ;;
212 esac
213 as_found=:
214 case $as_dir in #(
216 for as_base in sh bash ksh sh5; do
217 # Try only shells that exist, to save several forks.
218 as_shell=$as_dir$as_base
219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
221 then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
224 then :
225 break 2
228 done;;
229 esac
230 as_found=false
231 done
232 IFS=$as_save_IFS
233 if $as_found
234 then :
236 else $as_nop
237 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
238 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
239 then :
240 CONFIG_SHELL=$SHELL as_have_required=yes
245 if test "x$CONFIG_SHELL" != x
246 then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno
269 then :
270 printf "%s\n" "$0: This script requires a shell more modern than all"
271 printf "%s\n" "$0: the shells that I found on your system."
272 if test ${ZSH_VERSION+y} ; then
273 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
274 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
275 else
276 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
277 $0: including any error possibly output before this
278 $0: message. Then install a modern shell, or manually run
279 $0: the script under such a shell if you do have one."
281 exit 1
285 SHELL=${CONFIG_SHELL-/bin/sh}
286 export SHELL
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
294 # as_fn_unset VAR
295 # ---------------
296 # Portably unset VAR.
297 as_fn_unset ()
299 { eval $1=; unset $1;}
301 as_unset=as_fn_unset
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
309 return $1
310 } # as_fn_set_status
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321 # as_fn_nop
322 # ---------
323 # Do nothing but, unlike ":", preserve the value of $?.
324 as_fn_nop ()
326 return $?
328 as_nop=as_fn_nop
330 # as_fn_mkdir_p
331 # -------------
332 # Create "$as_dir" as a directory, including parents if necessary.
333 as_fn_mkdir_p ()
336 case $as_dir in #(
337 -*) as_dir=./$as_dir;;
338 esac
339 test -d "$as_dir" || eval $as_mkdir_p || {
340 as_dirs=
341 while :; do
342 case $as_dir in #(
343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344 *) as_qdir=$as_dir;;
345 esac
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 s//\1/
357 /^X\(\/\/\)[^/].*/{
358 s//\1/
361 /^X\(\/\/\)$/{
362 s//\1/
365 /^X\(\/\).*/{
366 s//\1/
369 s/.*/./; q'`
370 test -d "$as_dir" && break
371 done
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
376 } # as_fn_mkdir_p
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
390 # implementations.
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392 then :
393 eval 'as_fn_append ()
395 eval $1+=\$2
397 else $as_nop
398 as_fn_append ()
400 eval $1=\$$1\$2
402 fi # as_fn_append
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
413 as_val=$(( $* ))
415 else $as_nop
416 as_fn_arith ()
418 as_val=`expr "$@" || test $? -eq 1`
420 fi # as_fn_arith
422 # as_fn_nop
423 # ---------
424 # Do nothing but, unlike ":", preserve the value of $?.
425 as_fn_nop ()
427 return $?
429 as_nop=as_fn_nop
431 # as_fn_error STATUS ERROR [LINENO LOG_FD]
432 # ----------------------------------------
433 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
434 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
435 # script with STATUS, using 1 if that was 0.
436 as_fn_error ()
438 as_status=$1; test $as_status -eq 0 && as_status=1
439 if test "$4"; then
440 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
443 printf "%s\n" "$as_me: error: $2" >&2
444 as_fn_exit $as_status
445 } # as_fn_error
447 if expr a : '\(a\)' >/dev/null 2>&1 &&
448 test "X`expr 00001 : '.*\(...\)'`" = X001; then
449 as_expr=expr
450 else
451 as_expr=false
454 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455 as_basename=basename
456 else
457 as_basename=false
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_dirname=dirname
462 else
463 as_dirname=false
466 as_me=`$as_basename -- "$0" ||
467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
468 X"$0" : 'X\(//\)$' \| \
469 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
470 printf "%s\n" X/"$0" |
471 sed '/^.*\/\([^/][^/]*\)\/*$/{
472 s//\1/
475 /^X\/\(\/\/\)$/{
476 s//\1/
479 /^X\/\(\/\).*/{
480 s//\1/
483 s/.*/./; q'`
485 # Avoid depending upon Character Ranges.
486 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
487 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
488 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
489 as_cr_digits='0123456789'
490 as_cr_alnum=$as_cr_Letters$as_cr_digits
493 as_lineno_1=$LINENO as_lineno_1a=$LINENO
494 as_lineno_2=$LINENO as_lineno_2a=$LINENO
495 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
496 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
497 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
498 sed -n '
500 /[$]LINENO/=
501 ' <$as_myself |
502 sed '
503 s/[$]LINENO.*/&-/
504 t lineno
506 :lineno
508 :loop
509 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
510 t loop
511 s/-\n.*//
512 ' >$as_me.lineno &&
513 chmod +x "$as_me.lineno" ||
514 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
516 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
517 # already done that, so ensure we don't try to do so again and fall
518 # in an infinite loop. This has already happened in practice.
519 _as_can_reexec=no; export _as_can_reexec
520 # Don't try to exec as it changes $[0], causing all sort of problems
521 # (the dirname of $[0] is not the place where we might find the
522 # original and so on. Autoconf is especially sensitive to this).
523 . "./$as_me.lineno"
524 # Exit status is that of the last command.
525 exit
529 # Determine whether it's possible to make 'echo' print without a newline.
530 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
531 # for compatibility with existing Makefiles.
532 ECHO_C= ECHO_N= ECHO_T=
533 case `echo -n x` in #(((((
534 -n*)
535 case `echo 'xy\c'` in
536 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
537 xy) ECHO_C='\c';;
538 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
539 ECHO_T=' ';;
540 esac;;
542 ECHO_N='-n';;
543 esac
545 # For backward compatibility with old third-party macros, we provide
546 # the shell variables $as_echo and $as_echo_n. New code should use
547 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
548 as_echo='printf %s\n'
549 as_echo_n='printf %s'
552 rm -f conf$$ conf$$.exe conf$$.file
553 if test -d conf$$.dir; then
554 rm -f conf$$.dir/conf$$.file
555 else
556 rm -f conf$$.dir
557 mkdir conf$$.dir 2>/dev/null
559 if (echo >conf$$.file) 2>/dev/null; then
560 if ln -s conf$$.file conf$$ 2>/dev/null; then
561 as_ln_s='ln -s'
562 # ... but there are two gotchas:
563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
565 # In both cases, we have to default to `cp -pR'.
566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
567 as_ln_s='cp -pR'
568 elif ln conf$$.file conf$$ 2>/dev/null; then
569 as_ln_s=ln
570 else
571 as_ln_s='cp -pR'
573 else
574 as_ln_s='cp -pR'
576 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
577 rmdir conf$$.dir 2>/dev/null
579 if mkdir -p . 2>/dev/null; then
580 as_mkdir_p='mkdir -p "$as_dir"'
581 else
582 test -d ./-p && rmdir ./-p
583 as_mkdir_p=false
586 as_test_x='test -x'
587 as_executable_p=as_fn_executable_p
589 # Sed expression to map a string onto a valid CPP name.
590 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
592 # Sed expression to map a string onto a valid variable name.
593 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
595 SHELL=${CONFIG_SHELL-/bin/sh}
598 test -n "$DJDIR" || exec 7<&0 </dev/null
599 exec 6>&1
601 # Name of the host.
602 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
603 # so uname gets run too.
604 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
607 # Initializations.
609 ac_default_prefix=/usr/local
610 ac_clean_files=
611 ac_config_libobj_dir=.
612 LIBOBJS=
613 cross_compiling=no
614 subdirs=
615 MFLAGS=
616 MAKEFLAGS=
618 # Identity of this package.
619 PACKAGE_NAME='sqlcipher'
620 PACKAGE_TARNAME='sqlcipher'
621 PACKAGE_VERSION='3.43.1'
622 PACKAGE_STRING='sqlcipher 3.43.1'
623 PACKAGE_BUGREPORT=''
624 PACKAGE_URL=''
626 # Factoring default headers for most tests.
627 ac_includes_default="\
628 #include <stddef.h>
629 #ifdef HAVE_STDIO_H
630 # include <stdio.h>
631 #endif
632 #ifdef HAVE_STDLIB_H
633 # include <stdlib.h>
634 #endif
635 #ifdef HAVE_STRING_H
636 # include <string.h>
637 #endif
638 #ifdef HAVE_INTTYPES_H
639 # include <inttypes.h>
640 #endif
641 #ifdef HAVE_STDINT_H
642 # include <stdint.h>
643 #endif
644 #ifdef HAVE_STRINGS_H
645 # include <strings.h>
646 #endif
647 #ifdef HAVE_SYS_TYPES_H
648 # include <sys/types.h>
649 #endif
650 #ifdef HAVE_SYS_STAT_H
651 # include <sys/stat.h>
652 #endif
653 #ifdef HAVE_UNISTD_H
654 # include <unistd.h>
655 #endif"
657 ac_header_c_list=
658 ac_subst_vars='LTLIBOBJS
659 LIBOBJS
660 BUILD_CFLAGS
661 USE_GCOV
662 OPT_FEATURE_FLAGS
663 HAVE_ZLIB
664 AMALGAMATION_LINE_MACROS
665 amalgamation_line_macros
666 USE_AMALGAMATION
667 TARGET_DEBUG
668 TARGET_HAVE_EDITLINE
669 TARGET_HAVE_READLINE
670 TARGET_READLINE_INC
671 TARGET_READLINE_LIBS
672 HAVE_TCL
673 TCL_SHLIB_SUFFIX
674 TCL_STUB_LIB_SPEC
675 TCL_STUB_LIB_FLAG
676 TCL_STUB_LIB_FILE
677 TCL_LIB_SPEC
678 TCL_LIB_FLAG
679 TCL_LIB_FILE
680 TCL_INCLUDE_SPEC
681 TCL_SRC_DIR
682 TCL_BIN_DIR
683 TCL_VERSION
684 TARGET_EXEEXT
685 SQLITE_OS_WIN
686 SQLITE_OS_UNIX
687 BUILD_EXEEXT
688 TEMP_STORE
689 ALLOWRELEASE
690 XTHREADCONNECT
691 SQLITE_THREADSAFE
692 BUILD_CC
693 HAVE_WASI_SDK
694 RELEASE
695 VERSION
696 program_prefix
697 TCLLIBDIR
698 TCLSH_CMD
699 INSTALL_DATA
700 INSTALL_SCRIPT
701 INSTALL_PROGRAM
702 LT_SYS_LIBRARY_PATH
703 OTOOL64
704 OTOOL
705 LIPO
706 NMEDIT
707 DSYMUTIL
708 MANIFEST_TOOL
710 RANLIB
711 STRIP
712 ac_ct_AR
714 DLLTOOL
715 OBJDUMP
716 LN_S
718 ac_ct_DUMPBIN
719 DUMPBIN
721 FGREP
722 EGREP
723 GREP
725 OBJEXT
726 EXEEXT
727 ac_ct_CC
728 CPPFLAGS
729 LDFLAGS
730 CFLAGS
732 host_os
733 host_vendor
734 host_cpu
735 host
736 build_os
737 build_vendor
738 build_cpu
739 build
740 LIBTOOL
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 runstatedir
761 localstatedir
762 sharedstatedir
763 sysconfdir
764 datadir
765 datarootdir
766 libexecdir
767 sbindir
768 bindir
769 program_transform_name
770 prefix
771 exec_prefix
772 PACKAGE_URL
773 PACKAGE_BUGREPORT
774 PACKAGE_STRING
775 PACKAGE_VERSION
776 PACKAGE_TARNAME
777 PACKAGE_NAME
778 PATH_SEPARATOR
779 SHELL'
780 ac_subst_files=''
781 ac_user_opts='
782 enable_option_checking
783 enable_shared
784 enable_static
785 with_pic
786 enable_fast_install
787 with_aix_soname
788 with_gnu_ld
789 with_sysroot
790 enable_libtool_lock
791 enable_largefile
792 with_wasi_sdk
793 enable_threadsafe
794 with_crypto_lib
795 enable_cross_thread_connections
796 enable_releasemode
797 enable_tempstore
798 enable_tcl
799 with_tcl
800 enable_editline
801 enable_readline
802 with_readline_lib
803 with_readline_inc
804 enable_debug
805 enable_amalgamation
806 enable_load_extension
807 enable_math
808 enable_json
809 enable_all
810 enable_memsys5
811 enable_memsys3
812 enable_fts3
813 enable_fts4
814 enable_fts5
815 enable_update_limit
816 enable_geopoly
817 enable_rtree
818 enable_session
819 enable_gcov
821 ac_precious_vars='build_alias
822 host_alias
823 target_alias
825 CFLAGS
826 LDFLAGS
827 LIBS
828 CPPFLAGS
829 LT_SYS_LIBRARY_PATH
830 TCLLIBDIR
831 amalgamation_line_macros'
834 # Initialize some variables set by options.
835 ac_init_help=
836 ac_init_version=false
837 ac_unrecognized_opts=
838 ac_unrecognized_sep=
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
841 cache_file=/dev/null
842 exec_prefix=NONE
843 no_create=
844 no_recursion=
845 prefix=NONE
846 program_prefix=NONE
847 program_suffix=NONE
848 program_transform_name=s,x,x,
849 silent=
850 site=
851 srcdir=
852 verbose=
853 x_includes=NONE
854 x_libraries=NONE
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 runstatedir='${localstatedir}/run'
871 includedir='${prefix}/include'
872 oldincludedir='/usr/include'
873 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
874 infodir='${datarootdir}/info'
875 htmldir='${docdir}'
876 dvidir='${docdir}'
877 pdfdir='${docdir}'
878 psdir='${docdir}'
879 libdir='${exec_prefix}/lib'
880 localedir='${datarootdir}/locale'
881 mandir='${datarootdir}/man'
883 ac_prev=
884 ac_dashdash=
885 for ac_option
887 # If the previous option needs an argument, assign it.
888 if test -n "$ac_prev"; then
889 eval $ac_prev=\$ac_option
890 ac_prev=
891 continue
894 case $ac_option in
895 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896 *=) ac_optarg= ;;
897 *) ac_optarg=yes ;;
898 esac
900 case $ac_dashdash$ac_option in
902 ac_dashdash=yes ;;
904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
905 ac_prev=bindir ;;
906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907 bindir=$ac_optarg ;;
909 -build | --build | --buil | --bui | --bu)
910 ac_prev=build_alias ;;
911 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912 build_alias=$ac_optarg ;;
914 -cache-file | --cache-file | --cache-fil | --cache-fi \
915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916 ac_prev=cache_file ;;
917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919 cache_file=$ac_optarg ;;
921 --config-cache | -C)
922 cache_file=config.cache ;;
924 -datadir | --datadir | --datadi | --datad)
925 ac_prev=datadir ;;
926 -datadir=* | --datadir=* | --datadi=* | --datad=*)
927 datadir=$ac_optarg ;;
929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930 | --dataroo | --dataro | --datar)
931 ac_prev=datarootdir ;;
932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934 datarootdir=$ac_optarg ;;
936 -disable-* | --disable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: \`$ac_useropt'"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
945 "enable_$ac_useropt"
946 "*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=no ;;
952 -docdir | --docdir | --docdi | --doc | --do)
953 ac_prev=docdir ;;
954 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955 docdir=$ac_optarg ;;
957 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
958 ac_prev=dvidir ;;
959 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960 dvidir=$ac_optarg ;;
962 -enable-* | --enable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error $? "invalid feature name: \`$ac_useropt'"
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
971 "enable_$ac_useropt"
972 "*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=\$ac_optarg ;;
978 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
979 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
980 | --exec | --exe | --ex)
981 ac_prev=exec_prefix ;;
982 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
983 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
984 | --exec=* | --exe=* | --ex=*)
985 exec_prefix=$ac_optarg ;;
987 -gas | --gas | --ga | --g)
988 # Obsolete; use --with-gas.
989 with_gas=yes ;;
991 -help | --help | --hel | --he | -h)
992 ac_init_help=long ;;
993 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
994 ac_init_help=recursive ;;
995 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
996 ac_init_help=short ;;
998 -host | --host | --hos | --ho)
999 ac_prev=host_alias ;;
1000 -host=* | --host=* | --hos=* | --ho=*)
1001 host_alias=$ac_optarg ;;
1003 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004 ac_prev=htmldir ;;
1005 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006 | --ht=*)
1007 htmldir=$ac_optarg ;;
1009 -includedir | --includedir | --includedi | --included | --include \
1010 | --includ | --inclu | --incl | --inc)
1011 ac_prev=includedir ;;
1012 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1013 | --includ=* | --inclu=* | --incl=* | --inc=*)
1014 includedir=$ac_optarg ;;
1016 -infodir | --infodir | --infodi | --infod | --info | --inf)
1017 ac_prev=infodir ;;
1018 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1019 infodir=$ac_optarg ;;
1021 -libdir | --libdir | --libdi | --libd)
1022 ac_prev=libdir ;;
1023 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1024 libdir=$ac_optarg ;;
1026 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1027 | --libexe | --libex | --libe)
1028 ac_prev=libexecdir ;;
1029 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1030 | --libexe=* | --libex=* | --libe=*)
1031 libexecdir=$ac_optarg ;;
1033 -localedir | --localedir | --localedi | --localed | --locale)
1034 ac_prev=localedir ;;
1035 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1036 localedir=$ac_optarg ;;
1038 -localstatedir | --localstatedir | --localstatedi | --localstated \
1039 | --localstate | --localstat | --localsta | --localst | --locals)
1040 ac_prev=localstatedir ;;
1041 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1042 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1043 localstatedir=$ac_optarg ;;
1045 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046 ac_prev=mandir ;;
1047 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1048 mandir=$ac_optarg ;;
1050 -nfp | --nfp | --nf)
1051 # Obsolete; use --without-fp.
1052 with_fp=no ;;
1054 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1055 | --no-cr | --no-c | -n)
1056 no_create=yes ;;
1058 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1059 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060 no_recursion=yes ;;
1062 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1063 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1064 | --oldin | --oldi | --old | --ol | --o)
1065 ac_prev=oldincludedir ;;
1066 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1067 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1068 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1069 oldincludedir=$ac_optarg ;;
1071 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072 ac_prev=prefix ;;
1073 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1074 prefix=$ac_optarg ;;
1076 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1077 | --program-pre | --program-pr | --program-p)
1078 ac_prev=program_prefix ;;
1079 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1080 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1081 program_prefix=$ac_optarg ;;
1083 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1084 | --program-suf | --program-su | --program-s)
1085 ac_prev=program_suffix ;;
1086 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1087 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1088 program_suffix=$ac_optarg ;;
1090 -program-transform-name | --program-transform-name \
1091 | --program-transform-nam | --program-transform-na \
1092 | --program-transform-n | --program-transform- \
1093 | --program-transform | --program-transfor \
1094 | --program-transfo | --program-transf \
1095 | --program-trans | --program-tran \
1096 | --progr-tra | --program-tr | --program-t)
1097 ac_prev=program_transform_name ;;
1098 -program-transform-name=* | --program-transform-name=* \
1099 | --program-transform-nam=* | --program-transform-na=* \
1100 | --program-transform-n=* | --program-transform-=* \
1101 | --program-transform=* | --program-transfor=* \
1102 | --program-transfo=* | --program-transf=* \
1103 | --program-trans=* | --program-tran=* \
1104 | --progr-tra=* | --program-tr=* | --program-t=*)
1105 program_transform_name=$ac_optarg ;;
1107 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108 ac_prev=pdfdir ;;
1109 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1110 pdfdir=$ac_optarg ;;
1112 -psdir | --psdir | --psdi | --psd | --ps)
1113 ac_prev=psdir ;;
1114 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115 psdir=$ac_optarg ;;
1117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118 | -silent | --silent | --silen | --sile | --sil)
1119 silent=yes ;;
1121 -runstatedir | --runstatedir | --runstatedi | --runstated \
1122 | --runstate | --runstat | --runsta | --runst | --runs \
1123 | --run | --ru | --r)
1124 ac_prev=runstatedir ;;
1125 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1126 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1127 | --run=* | --ru=* | --r=*)
1128 runstatedir=$ac_optarg ;;
1130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131 ac_prev=sbindir ;;
1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133 | --sbi=* | --sb=*)
1134 sbindir=$ac_optarg ;;
1136 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138 | --sharedst | --shareds | --shared | --share | --shar \
1139 | --sha | --sh)
1140 ac_prev=sharedstatedir ;;
1141 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144 | --sha=* | --sh=*)
1145 sharedstatedir=$ac_optarg ;;
1147 -site | --site | --sit)
1148 ac_prev=site ;;
1149 -site=* | --site=* | --sit=*)
1150 site=$ac_optarg ;;
1152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153 ac_prev=srcdir ;;
1154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155 srcdir=$ac_optarg ;;
1157 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158 | --syscon | --sysco | --sysc | --sys | --sy)
1159 ac_prev=sysconfdir ;;
1160 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162 sysconfdir=$ac_optarg ;;
1164 -target | --target | --targe | --targ | --tar | --ta | --t)
1165 ac_prev=target_alias ;;
1166 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167 target_alias=$ac_optarg ;;
1169 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 verbose=yes ;;
1172 -version | --version | --versio | --versi | --vers | -V)
1173 ac_init_version=: ;;
1175 -with-* | --with-*)
1176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 as_fn_error $? "invalid package name: \`$ac_useropt'"
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1184 "with_$ac_useropt"
1185 "*) ;;
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
1188 esac
1189 eval with_$ac_useropt=\$ac_optarg ;;
1191 -without-* | --without-*)
1192 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 as_fn_error $? "invalid package name: \`$ac_useropt'"
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1200 "with_$ac_useropt"
1201 "*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=no ;;
1207 --x)
1208 # Obsolete; use --with-x.
1209 with_x=yes ;;
1211 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212 | --x-incl | --x-inc | --x-in | --x-i)
1213 ac_prev=x_includes ;;
1214 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216 x_includes=$ac_optarg ;;
1218 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220 ac_prev=x_libraries ;;
1221 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223 x_libraries=$ac_optarg ;;
1225 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1226 Try \`$0 --help' for more information"
1229 *=*)
1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
1232 case $ac_envvar in #(
1233 '' | [0-9]* | *[!_$as_cr_alnum]* )
1234 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1235 esac
1236 eval $ac_envvar=\$ac_optarg
1237 export $ac_envvar ;;
1240 # FIXME: should be removed in autoconf 3.0.
1241 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1244 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1247 esac
1248 done
1250 if test -n "$ac_prev"; then
1251 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1252 as_fn_error $? "missing argument to $ac_option"
1255 if test -n "$ac_unrecognized_opts"; then
1256 case $enable_option_checking in
1257 no) ;;
1258 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1259 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1260 esac
1263 # Check all directory arguments for consistency.
1264 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265 datadir sysconfdir sharedstatedir localstatedir includedir \
1266 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267 libdir localedir mandir runstatedir
1269 eval ac_val=\$$ac_var
1270 # Remove trailing slashes.
1271 case $ac_val in
1272 */ )
1273 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274 eval $ac_var=\$ac_val;;
1275 esac
1276 # Be sure to have absolute directory names.
1277 case $ac_val in
1278 [\\/$]* | ?:[\\/]* ) continue;;
1279 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1280 esac
1281 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1282 done
1284 # There might be people who depend on the old broken behavior: `$host'
1285 # used to hold the argument of --host etc.
1286 # FIXME: To remove some day.
1287 build=$build_alias
1288 host=$host_alias
1289 target=$target_alias
1291 # FIXME: To remove some day.
1292 if test "x$host_alias" != x; then
1293 if test "x$build_alias" = x; then
1294 cross_compiling=maybe
1295 elif test "x$build_alias" != "x$host_alias"; then
1296 cross_compiling=yes
1300 ac_tool_prefix=
1301 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1303 test "$silent" = yes && exec 6>/dev/null
1306 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1307 ac_ls_di=`ls -di .` &&
1308 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1309 as_fn_error $? "working directory cannot be determined"
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311 as_fn_error $? "pwd does not report name of working directory"
1314 # Find the source files, if location was not specified.
1315 if test -z "$srcdir"; then
1316 ac_srcdir_defaulted=yes
1317 # Try the directory containing this script, then the parent directory.
1318 ac_confdir=`$as_dirname -- "$as_myself" ||
1319 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320 X"$as_myself" : 'X\(//\)[^/]' \| \
1321 X"$as_myself" : 'X\(//\)$' \| \
1322 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323 printf "%s\n" X"$as_myself" |
1324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325 s//\1/
1328 /^X\(\/\/\)[^/].*/{
1329 s//\1/
1332 /^X\(\/\/\)$/{
1333 s//\1/
1336 /^X\(\/\).*/{
1337 s//\1/
1340 s/.*/./; q'`
1341 srcdir=$ac_confdir
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 srcdir=..
1345 else
1346 ac_srcdir_defaulted=no
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1350 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1352 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353 ac_abs_confdir=`(
1354 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1355 pwd)`
1356 # When building in place, set srcdir=.
1357 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 srcdir=.
1360 # Remove unnecessary trailing slashes from srcdir.
1361 # Double slashes in file names in object file debugging info
1362 # mess up M-x gdb in Emacs.
1363 case $srcdir in
1364 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365 esac
1366 for ac_var in $ac_precious_vars; do
1367 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_env_${ac_var}_value=\$${ac_var}
1369 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1371 done
1374 # Report the --help message.
1376 if test "$ac_init_help" = "long"; then
1377 # Omit some internal or obsolete options to make the list less imposing.
1378 # This message is too long to be a string in the A/UX 3.1 sh.
1379 cat <<_ACEOF
1380 \`configure' configures sqlcipher 3.43.1 to adapt to many kinds of systems.
1382 Usage: $0 [OPTION]... [VAR=VALUE]...
1384 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1385 VAR=VALUE. See below for descriptions of some of the useful variables.
1387 Defaults for the options are specified in brackets.
1389 Configuration:
1390 -h, --help display this help and exit
1391 --help=short display options specific to this package
1392 --help=recursive display the short help of all the included packages
1393 -V, --version display version information and exit
1394 -q, --quiet, --silent do not print \`checking ...' messages
1395 --cache-file=FILE cache test results in FILE [disabled]
1396 -C, --config-cache alias for \`--cache-file=config.cache'
1397 -n, --no-create do not create output files
1398 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1400 Installation directories:
1401 --prefix=PREFIX install architecture-independent files in PREFIX
1402 [$ac_default_prefix]
1403 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1404 [PREFIX]
1406 By default, \`make install' will install all the files in
1407 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1408 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1409 for instance \`--prefix=\$HOME'.
1411 For better control, use the options below.
1413 Fine tuning of the installation directories:
1414 --bindir=DIR user executables [EPREFIX/bin]
1415 --sbindir=DIR system admin executables [EPREFIX/sbin]
1416 --libexecdir=DIR program executables [EPREFIX/libexec]
1417 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1418 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1419 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1420 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1421 --libdir=DIR object code libraries [EPREFIX/lib]
1422 --includedir=DIR C header files [PREFIX/include]
1423 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1426 --infodir=DIR info documentation [DATAROOTDIR/info]
1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1428 --mandir=DIR man documentation [DATAROOTDIR/man]
1429 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlcipher]
1430 --htmldir=DIR html documentation [DOCDIR]
1431 --dvidir=DIR dvi documentation [DOCDIR]
1432 --pdfdir=DIR pdf documentation [DOCDIR]
1433 --psdir=DIR ps documentation [DOCDIR]
1434 _ACEOF
1436 cat <<\_ACEOF
1438 System types:
1439 --build=BUILD configure for building on BUILD [guessed]
1440 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1441 _ACEOF
1444 if test -n "$ac_init_help"; then
1445 case $ac_init_help in
1446 short | recursive ) echo "Configuration of sqlcipher 3.43.1:";;
1447 esac
1448 cat <<\_ACEOF
1450 Optional Features:
1451 --disable-option-checking ignore unrecognized --enable/--with options
1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1454 --enable-shared[=PKGS] build shared libraries [default=yes]
1455 --enable-static[=PKGS] build static libraries [default=yes]
1456 --enable-fast-install[=PKGS]
1457 optimize for fast installation [default=yes]
1458 --disable-libtool-lock avoid locking (might break parallel builds)
1459 --disable-largefile omit support for large files
1460 --disable-threadsafe Disable mutexing
1461 --enable-cross-thread-connections
1462 Allow connection sharing across threads
1463 --enable-releasemode Support libtool link to release mode
1464 --enable-tempstore Use an in-ram database for temporary tables
1465 (never,no,yes,always)
1466 --disable-tcl do not build TCL extension
1467 --enable-editline enable BSD editline support
1468 --disable-readline disable readline support
1469 --enable-debug enable debugging & verbose explain
1470 --disable-amalgamation Disable the amalgamation and instead build all files
1471 separately
1472 --disable-load-extension
1473 Disable loading of external extensions
1474 --disable-math Disable math functions
1475 --disable-json Disable JSON functions
1476 --enable-all Enable FTS4, FTS5, Geopoly, RTree, Sessions
1477 --enable-memsys5 Enable MEMSYS5
1478 --enable-memsys3 Enable MEMSYS3
1479 --enable-fts3 Enable the FTS3 extension
1480 --enable-fts4 Enable the FTS4 extension
1481 --enable-fts5 Enable the FTS5 extension
1482 --enable-update-limit Enable the UPDATE/DELETE LIMIT clause
1483 --enable-geopoly Enable the GEOPOLY extension
1484 --enable-rtree Enable the RTREE extension
1485 --enable-session Enable the SESSION extension
1486 --enable-gcov Enable coverage testing using gcov
1488 Optional Packages:
1489 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1490 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1491 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1492 both]
1493 --with-aix-soname=aix|svr4|both
1494 shared library versioning (aka "SONAME") variant to
1495 provide on AIX, [default=aix].
1496 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1497 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1498 compiler's sysroot if not specified).
1499 --with-wasi-sdk=DIR directory containing the WASI SDK. Triggers
1500 cross-compile to WASM.
1501 --with-crypto-lib Specify which crypto library to use
1502 --with-tcl=DIR directory containing tcl configuration
1503 (tclConfig.sh)
1504 --with-readline-lib specify readline library
1505 --with-readline-inc specify readline include paths
1507 Some influential environment variables:
1508 CC C compiler command
1509 CFLAGS C compiler flags
1510 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1511 nonstandard directory <lib dir>
1512 LIBS libraries to pass to the linker, e.g. -l<library>
1513 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1514 you have headers in a nonstandard directory <include dir>
1515 LT_SYS_LIBRARY_PATH
1516 User-defined run-time library search path.
1517 TCLLIBDIR Where to install tcl plugin
1518 amalgamation_line_macros
1521 Use these variables to override the choices made by `configure' or to help
1522 it to find libraries and programs with nonstandard names/locations.
1524 Report bugs to the package provider.
1525 _ACEOF
1526 ac_status=$?
1529 if test "$ac_init_help" = "recursive"; then
1530 # If there are subdirs, report their specific --help.
1531 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1532 test -d "$ac_dir" ||
1533 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1534 continue
1535 ac_builddir=.
1537 case "$ac_dir" in
1538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1541 # A ".." for each directory in $ac_dir_suffix.
1542 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1543 case $ac_top_builddir_sub in
1544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1546 esac ;;
1547 esac
1548 ac_abs_top_builddir=$ac_pwd
1549 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1550 # for backward compatibility:
1551 ac_top_builddir=$ac_top_build_prefix
1553 case $srcdir in
1554 .) # We are building in place.
1555 ac_srcdir=.
1556 ac_top_srcdir=$ac_top_builddir_sub
1557 ac_abs_top_srcdir=$ac_pwd ;;
1558 [\\/]* | ?:[\\/]* ) # Absolute name.
1559 ac_srcdir=$srcdir$ac_dir_suffix;
1560 ac_top_srcdir=$srcdir
1561 ac_abs_top_srcdir=$srcdir ;;
1562 *) # Relative name.
1563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1564 ac_top_srcdir=$ac_top_build_prefix$srcdir
1565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566 esac
1567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1569 cd "$ac_dir" || { ac_status=$?; continue; }
1570 # Check for configure.gnu first; this name is used for a wrapper for
1571 # Metaconfig's "Configure" on case-insensitive file systems.
1572 if test -f "$ac_srcdir/configure.gnu"; then
1573 echo &&
1574 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1575 elif test -f "$ac_srcdir/configure"; then
1576 echo &&
1577 $SHELL "$ac_srcdir/configure" --help=recursive
1578 else
1579 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1580 fi || ac_status=$?
1581 cd "$ac_pwd" || { ac_status=$?; break; }
1582 done
1585 test -n "$ac_init_help" && exit $ac_status
1586 if $ac_init_version; then
1587 cat <<\_ACEOF
1588 sqlcipher configure 3.43.1
1589 generated by GNU Autoconf 2.71
1591 Copyright (C) 2021 Free Software Foundation, Inc.
1592 This configure script is free software; the Free Software Foundation
1593 gives unlimited permission to copy, distribute and modify it.
1594 _ACEOF
1595 exit
1598 ## ------------------------ ##
1599 ## Autoconf initialization. ##
1600 ## ------------------------ ##
1602 # ac_fn_c_try_compile LINENO
1603 # --------------------------
1604 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_c_try_compile ()
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 rm -f conftest.$ac_objext conftest.beam
1609 if { { ac_try="$ac_compile"
1610 case "(($ac_try" in
1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612 *) ac_try_echo=$ac_try;;
1613 esac
1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615 printf "%s\n" "$ac_try_echo"; } >&5
1616 (eval "$ac_compile") 2>conftest.err
1617 ac_status=$?
1618 if test -s conftest.err; then
1619 grep -v '^ *+' conftest.err >conftest.er1
1620 cat conftest.er1 >&5
1621 mv -f conftest.er1 conftest.err
1623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; } && {
1625 test -z "$ac_c_werror_flag" ||
1626 test ! -s conftest.err
1627 } && test -s conftest.$ac_objext
1628 then :
1629 ac_retval=0
1630 else $as_nop
1631 printf "%s\n" "$as_me: failed program was:" >&5
1632 sed 's/^/| /' conftest.$ac_ext >&5
1634 ac_retval=1
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637 as_fn_set_status $ac_retval
1639 } # ac_fn_c_try_compile
1641 # ac_fn_c_try_link LINENO
1642 # -----------------------
1643 # Try to link conftest.$ac_ext, and return whether this succeeded.
1644 ac_fn_c_try_link ()
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1648 if { { ac_try="$ac_link"
1649 case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 printf "%s\n" "$ac_try_echo"; } >&5
1655 (eval "$ac_link") 2>conftest.err
1656 ac_status=$?
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } && {
1664 test -z "$ac_c_werror_flag" ||
1665 test ! -s conftest.err
1666 } && test -s conftest$ac_exeext && {
1667 test "$cross_compiling" = yes ||
1668 test -x conftest$ac_exeext
1670 then :
1671 ac_retval=0
1672 else $as_nop
1673 printf "%s\n" "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1676 ac_retval=1
1678 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1679 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1680 # interfere with the next link command; also delete a directory that is
1681 # left behind by Apple's compiler. We do this before executing the actions.
1682 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1686 } # ac_fn_c_try_link
1688 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1689 # -------------------------------------------------------
1690 # Tests whether HEADER exists and can be compiled using the include files in
1691 # INCLUDES, setting the cache variable VAR accordingly.
1692 ac_fn_c_check_header_compile ()
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 printf %s "checking for $2... " >&6; }
1697 if eval test \${$3+y}
1698 then :
1699 printf %s "(cached) " >&6
1700 else $as_nop
1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702 /* end confdefs.h. */
1704 #include <$2>
1705 _ACEOF
1706 if ac_fn_c_try_compile "$LINENO"
1707 then :
1708 eval "$3=yes"
1709 else $as_nop
1710 eval "$3=no"
1712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1714 eval ac_res=\$$3
1715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716 printf "%s\n" "$ac_res" >&6; }
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 } # ac_fn_c_check_header_compile
1721 # ac_fn_c_check_func LINENO FUNC VAR
1722 # ----------------------------------
1723 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1724 ac_fn_c_check_func ()
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728 printf %s "checking for $2... " >&6; }
1729 if eval test \${$3+y}
1730 then :
1731 printf %s "(cached) " >&6
1732 else $as_nop
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1735 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1737 #define $2 innocuous_$2
1739 /* System header to define __stub macros and hopefully few prototypes,
1740 which can conflict with char $2 (); below. */
1742 #include <limits.h>
1743 #undef $2
1745 /* Override any GCC internal prototype to avoid an error.
1746 Use char because int might match the return type of a GCC
1747 builtin and then its argument prototype would still apply. */
1748 #ifdef __cplusplus
1749 extern "C"
1750 #endif
1751 char $2 ();
1752 /* The GNU C library defines this for functions which it implements
1753 to always fail with ENOSYS. Some functions are actually named
1754 something starting with __ and the normal name is an alias. */
1755 #if defined __stub_$2 || defined __stub___$2
1756 choke me
1757 #endif
1760 main (void)
1762 return $2 ();
1764 return 0;
1766 _ACEOF
1767 if ac_fn_c_try_link "$LINENO"
1768 then :
1769 eval "$3=yes"
1770 else $as_nop
1771 eval "$3=no"
1773 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1774 conftest$ac_exeext conftest.$ac_ext
1776 eval ac_res=\$$3
1777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 printf "%s\n" "$ac_res" >&6; }
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 } # ac_fn_c_check_func
1783 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1784 # -------------------------------------------
1785 # Tests whether TYPE exists after having included INCLUDES, setting cache
1786 # variable VAR accordingly.
1787 ac_fn_c_check_type ()
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 printf %s "checking for $2... " >&6; }
1792 if eval test \${$3+y}
1793 then :
1794 printf %s "(cached) " >&6
1795 else $as_nop
1796 eval "$3=no"
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h. */
1801 main (void)
1803 if (sizeof ($2))
1804 return 0;
1806 return 0;
1808 _ACEOF
1809 if ac_fn_c_try_compile "$LINENO"
1810 then :
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1815 main (void)
1817 if (sizeof (($2)))
1818 return 0;
1820 return 0;
1822 _ACEOF
1823 if ac_fn_c_try_compile "$LINENO"
1824 then :
1826 else $as_nop
1827 eval "$3=yes"
1829 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1831 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1833 eval ac_res=\$$3
1834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 printf "%s\n" "$ac_res" >&6; }
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 } # ac_fn_c_check_type
1839 ac_configure_args_raw=
1840 for ac_arg
1842 case $ac_arg in
1843 *\'*)
1844 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1845 esac
1846 as_fn_append ac_configure_args_raw " '$ac_arg'"
1847 done
1849 case $ac_configure_args_raw in
1850 *$as_nl*)
1851 ac_safe_unquote= ;;
1853 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1854 ac_unsafe_a="$ac_unsafe_z#~"
1855 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1856 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1857 esac
1859 cat >config.log <<_ACEOF
1860 This file contains any messages produced by compilers while
1861 running configure, to aid debugging if configure makes a mistake.
1863 It was created by sqlcipher $as_me 3.43.1, which was
1864 generated by GNU Autoconf 2.71. Invocation command line was
1866 $ $0$ac_configure_args_raw
1868 _ACEOF
1869 exec 5>>config.log
1871 cat <<_ASUNAME
1872 ## --------- ##
1873 ## Platform. ##
1874 ## --------- ##
1876 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1877 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1878 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1879 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1880 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1882 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1883 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1885 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1886 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1887 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1888 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1889 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1890 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1891 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1893 _ASUNAME
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 for as_dir in $PATH
1898 IFS=$as_save_IFS
1899 case $as_dir in #(((
1900 '') as_dir=./ ;;
1901 */) ;;
1902 *) as_dir=$as_dir/ ;;
1903 esac
1904 printf "%s\n" "PATH: $as_dir"
1905 done
1906 IFS=$as_save_IFS
1908 } >&5
1910 cat >&5 <<_ACEOF
1913 ## ----------- ##
1914 ## Core tests. ##
1915 ## ----------- ##
1917 _ACEOF
1920 # Keep a trace of the command line.
1921 # Strip out --no-create and --no-recursion so they do not pile up.
1922 # Strip out --silent because we don't want to record it for future runs.
1923 # Also quote any args containing shell meta-characters.
1924 # Make two passes to allow for proper duplicate-argument suppression.
1925 ac_configure_args=
1926 ac_configure_args0=
1927 ac_configure_args1=
1928 ac_must_keep_next=false
1929 for ac_pass in 1 2
1931 for ac_arg
1933 case $ac_arg in
1934 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1936 | -silent | --silent | --silen | --sile | --sil)
1937 continue ;;
1938 *\'*)
1939 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1940 esac
1941 case $ac_pass in
1942 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1944 as_fn_append ac_configure_args1 " '$ac_arg'"
1945 if test $ac_must_keep_next = true; then
1946 ac_must_keep_next=false # Got value, back to normal.
1947 else
1948 case $ac_arg in
1949 *=* | --config-cache | -C | -disable-* | --disable-* \
1950 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1951 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1952 | -with-* | --with-* | -without-* | --without-* | --x)
1953 case "$ac_configure_args0 " in
1954 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1955 esac
1957 -* ) ac_must_keep_next=true ;;
1958 esac
1960 as_fn_append ac_configure_args " '$ac_arg'"
1962 esac
1963 done
1964 done
1965 { ac_configure_args0=; unset ac_configure_args0;}
1966 { ac_configure_args1=; unset ac_configure_args1;}
1968 # When interrupted or exit'd, cleanup temporary files, and complete
1969 # config.log. We remove comments because anyway the quotes in there
1970 # would cause problems or look ugly.
1971 # WARNING: Use '\'' to represent an apostrophe within the trap.
1972 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1973 trap 'exit_status=$?
1974 # Sanitize IFS.
1975 IFS=" "" $as_nl"
1976 # Save into config.log some information that might help in debugging.
1978 echo
1980 printf "%s\n" "## ---------------- ##
1981 ## Cache variables. ##
1982 ## ---------------- ##"
1983 echo
1984 # The following way of writing the cache mishandles newlines in values,
1986 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1987 eval ac_val=\$$ac_var
1988 case $ac_val in #(
1989 *${as_nl}*)
1990 case $ac_var in #(
1991 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1992 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1993 esac
1994 case $ac_var in #(
1995 _ | IFS | as_nl) ;; #(
1996 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1997 *) { eval $ac_var=; unset $ac_var;} ;;
1998 esac ;;
1999 esac
2000 done
2001 (set) 2>&1 |
2002 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2003 *${as_nl}ac_space=\ *)
2004 sed -n \
2005 "s/'\''/'\''\\\\'\'''\''/g;
2006 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2007 ;; #(
2009 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2011 esac |
2012 sort
2014 echo
2016 printf "%s\n" "## ----------------- ##
2017 ## Output variables. ##
2018 ## ----------------- ##"
2019 echo
2020 for ac_var in $ac_subst_vars
2022 eval ac_val=\$$ac_var
2023 case $ac_val in
2024 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2025 esac
2026 printf "%s\n" "$ac_var='\''$ac_val'\''"
2027 done | sort
2028 echo
2030 if test -n "$ac_subst_files"; then
2031 printf "%s\n" "## ------------------- ##
2032 ## File substitutions. ##
2033 ## ------------------- ##"
2034 echo
2035 for ac_var in $ac_subst_files
2037 eval ac_val=\$$ac_var
2038 case $ac_val in
2039 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2040 esac
2041 printf "%s\n" "$ac_var='\''$ac_val'\''"
2042 done | sort
2043 echo
2046 if test -s confdefs.h; then
2047 printf "%s\n" "## ----------- ##
2048 ## confdefs.h. ##
2049 ## ----------- ##"
2050 echo
2051 cat confdefs.h
2052 echo
2054 test "$ac_signal" != 0 &&
2055 printf "%s\n" "$as_me: caught signal $ac_signal"
2056 printf "%s\n" "$as_me: exit $exit_status"
2057 } >&5
2058 rm -f core *.core core.conftest.* &&
2059 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2060 exit $exit_status
2062 for ac_signal in 1 2 13 15; do
2063 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2064 done
2065 ac_signal=0
2067 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2068 rm -f -r conftest* confdefs.h
2070 printf "%s\n" "/* confdefs.h */" > confdefs.h
2072 # Predefined preprocessor variables.
2074 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2076 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2078 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2080 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2082 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2084 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2087 # Let the site file select an alternate cache file if it wants to.
2088 # Prefer an explicitly selected file to automatically selected ones.
2089 if test -n "$CONFIG_SITE"; then
2090 ac_site_files="$CONFIG_SITE"
2091 elif test "x$prefix" != xNONE; then
2092 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2093 else
2094 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2097 for ac_site_file in $ac_site_files
2099 case $ac_site_file in #(
2100 */*) :
2101 ;; #(
2102 *) :
2103 ac_site_file=./$ac_site_file ;;
2104 esac
2105 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2107 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2108 sed 's/^/| /' "$ac_site_file" >&5
2109 . "$ac_site_file" \
2110 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2111 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2112 as_fn_error $? "failed to load site script $ac_site_file
2113 See \`config.log' for more details" "$LINENO" 5; }
2115 done
2117 if test -r "$cache_file"; then
2118 # Some versions of bash will fail to source /dev/null (special files
2119 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2120 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2122 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2123 case $cache_file in
2124 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2125 *) . "./$cache_file";;
2126 esac
2128 else
2129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2130 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2131 >$cache_file
2134 # Test code for whether the C compiler supports C89 (global declarations)
2135 ac_c_conftest_c89_globals='
2136 /* Does the compiler advertise C89 conformance?
2137 Do not test the value of __STDC__, because some compilers set it to 0
2138 while being otherwise adequately conformant. */
2139 #if !defined __STDC__
2140 # error "Compiler does not advertise C89 conformance"
2141 #endif
2143 #include <stddef.h>
2144 #include <stdarg.h>
2145 struct stat;
2146 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2147 struct buf { int x; };
2148 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2149 static char *e (p, i)
2150 char **p;
2151 int i;
2153 return p[i];
2155 static char *f (char * (*g) (char **, int), char **p, ...)
2157 char *s;
2158 va_list v;
2159 va_start (v,p);
2160 s = g (p, va_arg (v,int));
2161 va_end (v);
2162 return s;
2165 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2166 function prototypes and stuff, but not \xHH hex character constants.
2167 These do not provoke an error unfortunately, instead are silently treated
2168 as an "x". The following induces an error, until -std is added to get
2169 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2170 array size at least. It is necessary to write \x00 == 0 to get something
2171 that is true only with -std. */
2172 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2174 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2175 inside strings and character constants. */
2176 #define FOO(x) '\''x'\''
2177 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2179 int test (int i, double x);
2180 struct s1 {int (*f) (int a);};
2181 struct s2 {int (*f) (double a);};
2182 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2183 int, int);'
2185 # Test code for whether the C compiler supports C89 (body of main).
2186 ac_c_conftest_c89_main='
2187 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2190 # Test code for whether the C compiler supports C99 (global declarations)
2191 ac_c_conftest_c99_globals='
2192 // Does the compiler advertise C99 conformance?
2193 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2194 # error "Compiler does not advertise C99 conformance"
2195 #endif
2197 #include <stdbool.h>
2198 extern int puts (const char *);
2199 extern int printf (const char *, ...);
2200 extern int dprintf (int, const char *, ...);
2201 extern void *malloc (size_t);
2203 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2204 // dprintf is used instead of fprintf to avoid needing to declare
2205 // FILE and stderr.
2206 #define debug(...) dprintf (2, __VA_ARGS__)
2207 #define showlist(...) puts (#__VA_ARGS__)
2208 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2209 static void
2210 test_varargs_macros (void)
2212 int x = 1234;
2213 int y = 5678;
2214 debug ("Flag");
2215 debug ("X = %d\n", x);
2216 showlist (The first, second, and third items.);
2217 report (x>y, "x is %d but y is %d", x, y);
2220 // Check long long types.
2221 #define BIG64 18446744073709551615ull
2222 #define BIG32 4294967295ul
2223 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2224 #if !BIG_OK
2225 #error "your preprocessor is broken"
2226 #endif
2227 #if BIG_OK
2228 #else
2229 #error "your preprocessor is broken"
2230 #endif
2231 static long long int bignum = -9223372036854775807LL;
2232 static unsigned long long int ubignum = BIG64;
2234 struct incomplete_array
2236 int datasize;
2237 double data[];
2240 struct named_init {
2241 int number;
2242 const wchar_t *name;
2243 double average;
2246 typedef const char *ccp;
2248 static inline int
2249 test_restrict (ccp restrict text)
2251 // See if C++-style comments work.
2252 // Iterate through items via the restricted pointer.
2253 // Also check for declarations in for loops.
2254 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2255 continue;
2256 return 0;
2259 // Check varargs and va_copy.
2260 static bool
2261 test_varargs (const char *format, ...)
2263 va_list args;
2264 va_start (args, format);
2265 va_list args_copy;
2266 va_copy (args_copy, args);
2268 const char *str = "";
2269 int number = 0;
2270 float fnumber = 0;
2272 while (*format)
2274 switch (*format++)
2276 case '\''s'\'': // string
2277 str = va_arg (args_copy, const char *);
2278 break;
2279 case '\''d'\'': // int
2280 number = va_arg (args_copy, int);
2281 break;
2282 case '\''f'\'': // float
2283 fnumber = va_arg (args_copy, double);
2284 break;
2285 default:
2286 break;
2289 va_end (args_copy);
2290 va_end (args);
2292 return *str && number && fnumber;
2296 # Test code for whether the C compiler supports C99 (body of main).
2297 ac_c_conftest_c99_main='
2298 // Check bool.
2299 _Bool success = false;
2300 success |= (argc != 0);
2302 // Check restrict.
2303 if (test_restrict ("String literal") == 0)
2304 success = true;
2305 char *restrict newvar = "Another string";
2307 // Check varargs.
2308 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2309 test_varargs_macros ();
2311 // Check flexible array members.
2312 struct incomplete_array *ia =
2313 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2314 ia->datasize = 10;
2315 for (int i = 0; i < ia->datasize; ++i)
2316 ia->data[i] = i * 1.234;
2318 // Check named initializers.
2319 struct named_init ni = {
2320 .number = 34,
2321 .name = L"Test wide string",
2322 .average = 543.34343,
2325 ni.number = 58;
2327 int dynamic_array[ni.number];
2328 dynamic_array[0] = argv[0][0];
2329 dynamic_array[ni.number - 1] = 543;
2331 // work around unused variable warnings
2332 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2333 || dynamic_array[ni.number - 1] != 543);
2336 # Test code for whether the C compiler supports C11 (global declarations)
2337 ac_c_conftest_c11_globals='
2338 // Does the compiler advertise C11 conformance?
2339 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2340 # error "Compiler does not advertise C11 conformance"
2341 #endif
2343 // Check _Alignas.
2344 char _Alignas (double) aligned_as_double;
2345 char _Alignas (0) no_special_alignment;
2346 extern char aligned_as_int;
2347 char _Alignas (0) _Alignas (int) aligned_as_int;
2349 // Check _Alignof.
2350 enum
2352 int_alignment = _Alignof (int),
2353 int_array_alignment = _Alignof (int[100]),
2354 char_alignment = _Alignof (char)
2356 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2358 // Check _Noreturn.
2359 int _Noreturn does_not_return (void) { for (;;) continue; }
2361 // Check _Static_assert.
2362 struct test_static_assert
2364 int x;
2365 _Static_assert (sizeof (int) <= sizeof (long int),
2366 "_Static_assert does not work in struct");
2367 long int y;
2370 // Check UTF-8 literals.
2371 #define u8 syntax error!
2372 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2374 // Check duplicate typedefs.
2375 typedef long *long_ptr;
2376 typedef long int *long_ptr;
2377 typedef long_ptr long_ptr;
2379 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2380 struct anonymous
2382 union {
2383 struct { int i; int j; };
2384 struct { int k; long int l; } w;
2386 int m;
2387 } v1;
2390 # Test code for whether the C compiler supports C11 (body of main).
2391 ac_c_conftest_c11_main='
2392 _Static_assert ((offsetof (struct anonymous, i)
2393 == offsetof (struct anonymous, w.k)),
2394 "Anonymous union alignment botch");
2395 v1.i = 2;
2396 v1.w.k = 5;
2397 ok |= v1.i != 5;
2400 # Test code for whether the C compiler supports C11 (complete).
2401 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2402 ${ac_c_conftest_c99_globals}
2403 ${ac_c_conftest_c11_globals}
2406 main (int argc, char **argv)
2408 int ok = 0;
2409 ${ac_c_conftest_c89_main}
2410 ${ac_c_conftest_c99_main}
2411 ${ac_c_conftest_c11_main}
2412 return ok;
2416 # Test code for whether the C compiler supports C99 (complete).
2417 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2418 ${ac_c_conftest_c99_globals}
2421 main (int argc, char **argv)
2423 int ok = 0;
2424 ${ac_c_conftest_c89_main}
2425 ${ac_c_conftest_c99_main}
2426 return ok;
2430 # Test code for whether the C compiler supports C89 (complete).
2431 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2434 main (int argc, char **argv)
2436 int ok = 0;
2437 ${ac_c_conftest_c89_main}
2438 return ok;
2442 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2443 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2444 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2445 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2446 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2447 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2448 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2449 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2450 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2452 # Auxiliary files required by this configure script.
2453 ac_aux_files="install-sh config.guess config.sub ltmain.sh"
2455 # Locations in which to look for auxiliary files.
2456 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2458 # Search for a directory containing all of the required auxiliary files,
2459 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2460 # If we don't find one directory that contains all the files we need,
2461 # we report the set of missing files from the *first* directory in
2462 # $ac_aux_dir_candidates and give up.
2463 ac_missing_aux_files=""
2464 ac_first_candidate=:
2465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 as_found=false
2468 for as_dir in $ac_aux_dir_candidates
2470 IFS=$as_save_IFS
2471 case $as_dir in #(((
2472 '') as_dir=./ ;;
2473 */) ;;
2474 *) as_dir=$as_dir/ ;;
2475 esac
2476 as_found=:
2478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2479 ac_aux_dir_found=yes
2480 ac_install_sh=
2481 for ac_aux in $ac_aux_files
2483 # As a special case, if "install-sh" is required, that requirement
2484 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2485 # and $ac_install_sh is set appropriately for whichever one is found.
2486 if test x"$ac_aux" = x"install-sh"
2487 then
2488 if test -f "${as_dir}install-sh"; then
2489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2490 ac_install_sh="${as_dir}install-sh -c"
2491 elif test -f "${as_dir}install.sh"; then
2492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2493 ac_install_sh="${as_dir}install.sh -c"
2494 elif test -f "${as_dir}shtool"; then
2495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2496 ac_install_sh="${as_dir}shtool install -c"
2497 else
2498 ac_aux_dir_found=no
2499 if $ac_first_candidate; then
2500 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2501 else
2502 break
2505 else
2506 if test -f "${as_dir}${ac_aux}"; then
2507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2508 else
2509 ac_aux_dir_found=no
2510 if $ac_first_candidate; then
2511 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2512 else
2513 break
2517 done
2518 if test "$ac_aux_dir_found" = yes; then
2519 ac_aux_dir="$as_dir"
2520 break
2522 ac_first_candidate=false
2524 as_found=false
2525 done
2526 IFS=$as_save_IFS
2527 if $as_found
2528 then :
2530 else $as_nop
2531 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2535 # These three variables are undocumented and unsupported,
2536 # and are intended to be withdrawn in a future Autoconf release.
2537 # They can cause serious problems if a builder's source tree is in a directory
2538 # whose full name contains unusual characters.
2539 if test -f "${ac_aux_dir}config.guess"; then
2540 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2542 if test -f "${ac_aux_dir}config.sub"; then
2543 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2545 if test -f "$ac_aux_dir/configure"; then
2546 ac_configure="$SHELL ${ac_aux_dir}configure"
2549 # Check that the precious variables saved in the cache have kept the same
2550 # value.
2551 ac_cache_corrupted=false
2552 for ac_var in $ac_precious_vars; do
2553 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2554 eval ac_new_set=\$ac_env_${ac_var}_set
2555 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2556 eval ac_new_val=\$ac_env_${ac_var}_value
2557 case $ac_old_set,$ac_new_set in
2558 set,)
2559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2560 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2561 ac_cache_corrupted=: ;;
2562 ,set)
2563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2564 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2565 ac_cache_corrupted=: ;;
2566 ,);;
2568 if test "x$ac_old_val" != "x$ac_new_val"; then
2569 # differences in whitespace do not lead to failure.
2570 ac_old_val_w=`echo x $ac_old_val`
2571 ac_new_val_w=`echo x $ac_new_val`
2572 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2574 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2575 ac_cache_corrupted=:
2576 else
2577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2578 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2579 eval $ac_var=\$ac_old_val
2581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2582 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2584 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2585 fi;;
2586 esac
2587 # Pass precious variables to config.status.
2588 if test "$ac_new_set" = set; then
2589 case $ac_new_val in
2590 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2591 *) ac_arg=$ac_var=$ac_new_val ;;
2592 esac
2593 case " $ac_configure_args " in
2594 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2595 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2596 esac
2598 done
2599 if $ac_cache_corrupted; then
2600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2601 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2603 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2604 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2605 and start over" "$LINENO" 5
2607 ## -------------------- ##
2608 ## Main body of script. ##
2609 ## -------------------- ##
2611 ac_ext=c
2612 ac_cpp='$CPP $CPPFLAGS'
2613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2619 sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
2620 if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2621 as_fn_error $? "configure script is out of date:
2622 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2623 top level VERSION file = $sqlite_version_sanity_check
2624 please regen with autoconf" "$LINENO" 5
2627 #########
2628 # Programs needed
2632 case `pwd` in
2633 *\ * | *\ *)
2634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2635 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2636 esac
2640 macro_version='2.4.6'
2641 macro_revision='2.4.6'
2656 ltmain=$ac_aux_dir/ltmain.sh
2660 # Make sure we can run config.sub.
2661 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2662 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2665 printf %s "checking build system type... " >&6; }
2666 if test ${ac_cv_build+y}
2667 then :
2668 printf %s "(cached) " >&6
2669 else $as_nop
2670 ac_build_alias=$build_alias
2671 test "x$ac_build_alias" = x &&
2672 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2673 test "x$ac_build_alias" = x &&
2674 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2675 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2676 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2680 printf "%s\n" "$ac_cv_build" >&6; }
2681 case $ac_cv_build in
2682 *-*-*) ;;
2683 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2684 esac
2685 build=$ac_cv_build
2686 ac_save_IFS=$IFS; IFS='-'
2687 set x $ac_cv_build
2688 shift
2689 build_cpu=$1
2690 build_vendor=$2
2691 shift; shift
2692 # Remember, the first character of IFS is used to create $*,
2693 # except with old shells:
2694 build_os=$*
2695 IFS=$ac_save_IFS
2696 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2700 printf %s "checking host system type... " >&6; }
2701 if test ${ac_cv_host+y}
2702 then :
2703 printf %s "(cached) " >&6
2704 else $as_nop
2705 if test "x$host_alias" = x; then
2706 ac_cv_host=$ac_cv_build
2707 else
2708 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2709 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2714 printf "%s\n" "$ac_cv_host" >&6; }
2715 case $ac_cv_host in
2716 *-*-*) ;;
2717 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2718 esac
2719 host=$ac_cv_host
2720 ac_save_IFS=$IFS; IFS='-'
2721 set x $ac_cv_host
2722 shift
2723 host_cpu=$1
2724 host_vendor=$2
2725 shift; shift
2726 # Remember, the first character of IFS is used to create $*,
2727 # except with old shells:
2728 host_os=$*
2729 IFS=$ac_save_IFS
2730 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2733 # Backslashify metacharacters that are still active within
2734 # double-quoted strings.
2735 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2737 # Same as above, but do not quote variable references.
2738 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2740 # Sed substitution to delay expansion of an escaped shell variable in a
2741 # double_quote_subst'ed string.
2742 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2744 # Sed substitution to delay expansion of an escaped single quote.
2745 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2747 # Sed substitution to avoid accidental globbing in evaled expressions
2748 no_glob_subst='s/\*/\\\*/g'
2750 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2751 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2752 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2755 printf %s "checking how to print strings... " >&6; }
2756 # Test print first, because it will be a builtin if present.
2757 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2758 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2759 ECHO='print -r --'
2760 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2761 ECHO='printf %s\n'
2762 else
2763 # Use this function as a fallback that always works.
2764 func_fallback_echo ()
2766 eval 'cat <<_LTECHO_EOF
2768 _LTECHO_EOF'
2770 ECHO='func_fallback_echo'
2773 # func_echo_all arg...
2774 # Invoke $ECHO with all args, space-separated.
2775 func_echo_all ()
2777 $ECHO ""
2780 case $ECHO in
2781 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2782 printf "%s\n" "printf" >&6; } ;;
2783 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2784 printf "%s\n" "print -r" >&6; } ;;
2785 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2786 printf "%s\n" "cat" >&6; } ;;
2787 esac
2811 ac_ext=c
2812 ac_cpp='$CPP $CPPFLAGS'
2813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2816 if test -n "$ac_tool_prefix"; then
2817 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2818 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820 printf %s "checking for $ac_word... " >&6; }
2821 if test ${ac_cv_prog_CC+y}
2822 then :
2823 printf %s "(cached) " >&6
2824 else $as_nop
2825 if test -n "$CC"; then
2826 ac_cv_prog_CC="$CC" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2831 IFS=$as_save_IFS
2832 case $as_dir in #(((
2833 '') as_dir=./ ;;
2834 */) ;;
2835 *) as_dir=$as_dir/ ;;
2836 esac
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2839 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2841 break 2
2843 done
2844 done
2845 IFS=$as_save_IFS
2849 CC=$ac_cv_prog_CC
2850 if test -n "$CC"; then
2851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2852 printf "%s\n" "$CC" >&6; }
2853 else
2854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 printf "%s\n" "no" >&6; }
2860 if test -z "$ac_cv_prog_CC"; then
2861 ac_ct_CC=$CC
2862 # Extract the first word of "gcc", so it can be a program name with args.
2863 set dummy gcc; ac_word=$2
2864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 printf %s "checking for $ac_word... " >&6; }
2866 if test ${ac_cv_prog_ac_ct_CC+y}
2867 then :
2868 printf %s "(cached) " >&6
2869 else $as_nop
2870 if test -n "$ac_ct_CC"; then
2871 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2876 IFS=$as_save_IFS
2877 case $as_dir in #(((
2878 '') as_dir=./ ;;
2879 */) ;;
2880 *) as_dir=$as_dir/ ;;
2881 esac
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2884 ac_cv_prog_ac_ct_CC="gcc"
2885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2886 break 2
2888 done
2889 done
2890 IFS=$as_save_IFS
2894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2895 if test -n "$ac_ct_CC"; then
2896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2897 printf "%s\n" "$ac_ct_CC" >&6; }
2898 else
2899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900 printf "%s\n" "no" >&6; }
2903 if test "x$ac_ct_CC" = x; then
2904 CC=""
2905 else
2906 case $cross_compiling:$ac_tool_warned in
2907 yes:)
2908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2909 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2910 ac_tool_warned=yes ;;
2911 esac
2912 CC=$ac_ct_CC
2914 else
2915 CC="$ac_cv_prog_CC"
2918 if test -z "$CC"; then
2919 if test -n "$ac_tool_prefix"; then
2920 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2921 set dummy ${ac_tool_prefix}cc; ac_word=$2
2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 printf %s "checking for $ac_word... " >&6; }
2924 if test ${ac_cv_prog_CC+y}
2925 then :
2926 printf %s "(cached) " >&6
2927 else $as_nop
2928 if test -n "$CC"; then
2929 ac_cv_prog_CC="$CC" # Let the user override the test.
2930 else
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2934 IFS=$as_save_IFS
2935 case $as_dir in #(((
2936 '') as_dir=./ ;;
2937 */) ;;
2938 *) as_dir=$as_dir/ ;;
2939 esac
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2942 ac_cv_prog_CC="${ac_tool_prefix}cc"
2943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2944 break 2
2946 done
2947 done
2948 IFS=$as_save_IFS
2952 CC=$ac_cv_prog_CC
2953 if test -n "$CC"; then
2954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2955 printf "%s\n" "$CC" >&6; }
2956 else
2957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958 printf "%s\n" "no" >&6; }
2964 if test -z "$CC"; then
2965 # Extract the first word of "cc", so it can be a program name with args.
2966 set dummy cc; ac_word=$2
2967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968 printf %s "checking for $ac_word... " >&6; }
2969 if test ${ac_cv_prog_CC+y}
2970 then :
2971 printf %s "(cached) " >&6
2972 else $as_nop
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC="$CC" # Let the user override the test.
2975 else
2976 ac_prog_rejected=no
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2980 IFS=$as_save_IFS
2981 case $as_dir in #(((
2982 '') as_dir=./ ;;
2983 */) ;;
2984 *) as_dir=$as_dir/ ;;
2985 esac
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2988 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2989 ac_prog_rejected=yes
2990 continue
2992 ac_cv_prog_CC="cc"
2993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2994 break 2
2996 done
2997 done
2998 IFS=$as_save_IFS
3000 if test $ac_prog_rejected = yes; then
3001 # We found a bogon in the path, so make sure we never use it.
3002 set dummy $ac_cv_prog_CC
3003 shift
3004 if test $# != 0; then
3005 # We chose a different compiler from the bogus one.
3006 # However, it has the same basename, so the bogon will be chosen
3007 # first if we set CC to just the basename; use the full file name.
3008 shift
3009 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3014 CC=$ac_cv_prog_CC
3015 if test -n "$CC"; then
3016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3017 printf "%s\n" "$CC" >&6; }
3018 else
3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 printf "%s\n" "no" >&6; }
3025 if test -z "$CC"; then
3026 if test -n "$ac_tool_prefix"; then
3027 for ac_prog in cl.exe
3029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032 printf %s "checking for $ac_word... " >&6; }
3033 if test ${ac_cv_prog_CC+y}
3034 then :
3035 printf %s "(cached) " >&6
3036 else $as_nop
3037 if test -n "$CC"; then
3038 ac_cv_prog_CC="$CC" # Let the user override the test.
3039 else
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3043 IFS=$as_save_IFS
3044 case $as_dir in #(((
3045 '') as_dir=./ ;;
3046 */) ;;
3047 *) as_dir=$as_dir/ ;;
3048 esac
3049 for ac_exec_ext in '' $ac_executable_extensions; do
3050 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3051 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3053 break 2
3055 done
3056 done
3057 IFS=$as_save_IFS
3061 CC=$ac_cv_prog_CC
3062 if test -n "$CC"; then
3063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3064 printf "%s\n" "$CC" >&6; }
3065 else
3066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 printf "%s\n" "no" >&6; }
3071 test -n "$CC" && break
3072 done
3074 if test -z "$CC"; then
3075 ac_ct_CC=$CC
3076 for ac_prog in cl.exe
3078 # Extract the first word of "$ac_prog", so it can be a program name with args.
3079 set dummy $ac_prog; ac_word=$2
3080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 printf %s "checking for $ac_word... " >&6; }
3082 if test ${ac_cv_prog_ac_ct_CC+y}
3083 then :
3084 printf %s "(cached) " >&6
3085 else $as_nop
3086 if test -n "$ac_ct_CC"; then
3087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3088 else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3092 IFS=$as_save_IFS
3093 case $as_dir in #(((
3094 '') as_dir=./ ;;
3095 */) ;;
3096 *) as_dir=$as_dir/ ;;
3097 esac
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3100 ac_cv_prog_ac_ct_CC="$ac_prog"
3101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3102 break 2
3104 done
3105 done
3106 IFS=$as_save_IFS
3110 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3111 if test -n "$ac_ct_CC"; then
3112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3113 printf "%s\n" "$ac_ct_CC" >&6; }
3114 else
3115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 printf "%s\n" "no" >&6; }
3120 test -n "$ac_ct_CC" && break
3121 done
3123 if test "x$ac_ct_CC" = x; then
3124 CC=""
3125 else
3126 case $cross_compiling:$ac_tool_warned in
3127 yes:)
3128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3129 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3130 ac_tool_warned=yes ;;
3131 esac
3132 CC=$ac_ct_CC
3137 if test -z "$CC"; then
3138 if test -n "$ac_tool_prefix"; then
3139 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3140 set dummy ${ac_tool_prefix}clang; ac_word=$2
3141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142 printf %s "checking for $ac_word... " >&6; }
3143 if test ${ac_cv_prog_CC+y}
3144 then :
3145 printf %s "(cached) " >&6
3146 else $as_nop
3147 if test -n "$CC"; then
3148 ac_cv_prog_CC="$CC" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3153 IFS=$as_save_IFS
3154 case $as_dir in #(((
3155 '') as_dir=./ ;;
3156 */) ;;
3157 *) as_dir=$as_dir/ ;;
3158 esac
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3161 ac_cv_prog_CC="${ac_tool_prefix}clang"
3162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3163 break 2
3165 done
3166 done
3167 IFS=$as_save_IFS
3171 CC=$ac_cv_prog_CC
3172 if test -n "$CC"; then
3173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3174 printf "%s\n" "$CC" >&6; }
3175 else
3176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 printf "%s\n" "no" >&6; }
3182 if test -z "$ac_cv_prog_CC"; then
3183 ac_ct_CC=$CC
3184 # Extract the first word of "clang", so it can be a program name with args.
3185 set dummy clang; ac_word=$2
3186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 printf %s "checking for $ac_word... " >&6; }
3188 if test ${ac_cv_prog_ac_ct_CC+y}
3189 then :
3190 printf %s "(cached) " >&6
3191 else $as_nop
3192 if test -n "$ac_ct_CC"; then
3193 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3194 else
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH
3198 IFS=$as_save_IFS
3199 case $as_dir in #(((
3200 '') as_dir=./ ;;
3201 */) ;;
3202 *) as_dir=$as_dir/ ;;
3203 esac
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3206 ac_cv_prog_ac_ct_CC="clang"
3207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3208 break 2
3210 done
3211 done
3212 IFS=$as_save_IFS
3216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3217 if test -n "$ac_ct_CC"; then
3218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3219 printf "%s\n" "$ac_ct_CC" >&6; }
3220 else
3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 printf "%s\n" "no" >&6; }
3225 if test "x$ac_ct_CC" = x; then
3226 CC=""
3227 else
3228 case $cross_compiling:$ac_tool_warned in
3229 yes:)
3230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3231 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3232 ac_tool_warned=yes ;;
3233 esac
3234 CC=$ac_ct_CC
3236 else
3237 CC="$ac_cv_prog_CC"
3243 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3245 as_fn_error $? "no acceptable C compiler found in \$PATH
3246 See \`config.log' for more details" "$LINENO" 5; }
3248 # Provide some information about the compiler.
3249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3250 set X $ac_compile
3251 ac_compiler=$2
3252 for ac_option in --version -v -V -qversion -version; do
3253 { { ac_try="$ac_compiler $ac_option >&5"
3254 case "(($ac_try" in
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3257 esac
3258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3259 printf "%s\n" "$ac_try_echo"; } >&5
3260 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3261 ac_status=$?
3262 if test -s conftest.err; then
3263 sed '10a\
3264 ... rest of stderr output deleted ...
3265 10q' conftest.err >conftest.er1
3266 cat conftest.er1 >&5
3268 rm -f conftest.er1 conftest.err
3269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270 test $ac_status = 0; }
3271 done
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h. */
3277 main (void)
3281 return 0;
3283 _ACEOF
3284 ac_clean_files_save=$ac_clean_files
3285 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3286 # Try to create an executable without -o first, disregard a.out.
3287 # It will help us diagnose broken compilers, and finding out an intuition
3288 # of exeext.
3289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3290 printf %s "checking whether the C compiler works... " >&6; }
3291 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3293 # The possible output files:
3294 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3296 ac_rmfiles=
3297 for ac_file in $ac_files
3299 case $ac_file in
3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3301 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3302 esac
3303 done
3304 rm -f $ac_rmfiles
3306 if { { ac_try="$ac_link_default"
3307 case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3310 esac
3311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312 printf "%s\n" "$ac_try_echo"; } >&5
3313 (eval "$ac_link_default") 2>&5
3314 ac_status=$?
3315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3316 test $ac_status = 0; }
3317 then :
3318 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3319 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3320 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3321 # so that the user can short-circuit this test for compilers unknown to
3322 # Autoconf.
3323 for ac_file in $ac_files ''
3325 test -f "$ac_file" || continue
3326 case $ac_file in
3327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3329 [ab].out )
3330 # We found the default executable, but exeext='' is most
3331 # certainly right.
3332 break;;
3333 *.* )
3334 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3335 then :; else
3336 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3338 # We set ac_cv_exeext here because the later test for it is not
3339 # safe: cross compilers may not add the suffix if given an `-o'
3340 # argument, so we may need to know it at that point already.
3341 # Even if this section looks crufty: it has the advantage of
3342 # actually working.
3343 break;;
3345 break;;
3346 esac
3347 done
3348 test "$ac_cv_exeext" = no && ac_cv_exeext=
3350 else $as_nop
3351 ac_file=''
3353 if test -z "$ac_file"
3354 then :
3355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356 printf "%s\n" "no" >&6; }
3357 printf "%s\n" "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3360 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3362 as_fn_error 77 "C compiler cannot create executables
3363 See \`config.log' for more details" "$LINENO" 5; }
3364 else $as_nop
3365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3366 printf "%s\n" "yes" >&6; }
3368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3369 printf %s "checking for C compiler default output file name... " >&6; }
3370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3371 printf "%s\n" "$ac_file" >&6; }
3372 ac_exeext=$ac_cv_exeext
3374 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3375 ac_clean_files=$ac_clean_files_save
3376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3377 printf %s "checking for suffix of executables... " >&6; }
3378 if { { ac_try="$ac_link"
3379 case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382 esac
3383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384 printf "%s\n" "$ac_try_echo"; } >&5
3385 (eval "$ac_link") 2>&5
3386 ac_status=$?
3387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3388 test $ac_status = 0; }
3389 then :
3390 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3391 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3392 # work properly (i.e., refer to `conftest.exe'), while it won't with
3393 # `rm'.
3394 for ac_file in conftest.exe conftest conftest.*; do
3395 test -f "$ac_file" || continue
3396 case $ac_file in
3397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3398 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3399 break;;
3400 * ) break;;
3401 esac
3402 done
3403 else $as_nop
3404 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3405 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3406 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3407 See \`config.log' for more details" "$LINENO" 5; }
3409 rm -f conftest conftest$ac_cv_exeext
3410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3411 printf "%s\n" "$ac_cv_exeext" >&6; }
3413 rm -f conftest.$ac_ext
3414 EXEEXT=$ac_cv_exeext
3415 ac_exeext=$EXEEXT
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3418 #include <stdio.h>
3420 main (void)
3422 FILE *f = fopen ("conftest.out", "w");
3423 return ferror (f) || fclose (f) != 0;
3426 return 0;
3428 _ACEOF
3429 ac_clean_files="$ac_clean_files conftest.out"
3430 # Check that the compiler produces executables we can run. If not, either
3431 # the compiler is broken, or we cross compile.
3432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3433 printf %s "checking whether we are cross compiling... " >&6; }
3434 if test "$cross_compiling" != yes; then
3435 { { ac_try="$ac_link"
3436 case "(($ac_try" in
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3439 esac
3440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441 printf "%s\n" "$ac_try_echo"; } >&5
3442 (eval "$ac_link") 2>&5
3443 ac_status=$?
3444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445 test $ac_status = 0; }
3446 if { ac_try='./conftest$ac_cv_exeext'
3447 { { case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450 esac
3451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452 printf "%s\n" "$ac_try_echo"; } >&5
3453 (eval "$ac_try") 2>&5
3454 ac_status=$?
3455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456 test $ac_status = 0; }; }; then
3457 cross_compiling=no
3458 else
3459 if test "$cross_compiling" = maybe; then
3460 cross_compiling=yes
3461 else
3462 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3464 as_fn_error 77 "cannot run C compiled programs.
3465 If you meant to cross compile, use \`--host'.
3466 See \`config.log' for more details" "$LINENO" 5; }
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3471 printf "%s\n" "$cross_compiling" >&6; }
3473 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3474 ac_clean_files=$ac_clean_files_save
3475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3476 printf %s "checking for suffix of object files... " >&6; }
3477 if test ${ac_cv_objext+y}
3478 then :
3479 printf %s "(cached) " >&6
3480 else $as_nop
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3485 main (void)
3489 return 0;
3491 _ACEOF
3492 rm -f conftest.o conftest.obj
3493 if { { ac_try="$ac_compile"
3494 case "(($ac_try" in
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3497 esac
3498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499 printf "%s\n" "$ac_try_echo"; } >&5
3500 (eval "$ac_compile") 2>&5
3501 ac_status=$?
3502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503 test $ac_status = 0; }
3504 then :
3505 for ac_file in conftest.o conftest.obj conftest.*; do
3506 test -f "$ac_file" || continue;
3507 case $ac_file in
3508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3509 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3510 break;;
3511 esac
3512 done
3513 else $as_nop
3514 printf "%s\n" "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3518 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3519 as_fn_error $? "cannot compute suffix of object files: cannot compile
3520 See \`config.log' for more details" "$LINENO" 5; }
3522 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3525 printf "%s\n" "$ac_cv_objext" >&6; }
3526 OBJEXT=$ac_cv_objext
3527 ac_objext=$OBJEXT
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3529 printf %s "checking whether the compiler supports GNU C... " >&6; }
3530 if test ${ac_cv_c_compiler_gnu+y}
3531 then :
3532 printf %s "(cached) " >&6
3533 else $as_nop
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3538 main (void)
3540 #ifndef __GNUC__
3541 choke me
3542 #endif
3545 return 0;
3547 _ACEOF
3548 if ac_fn_c_try_compile "$LINENO"
3549 then :
3550 ac_compiler_gnu=yes
3551 else $as_nop
3552 ac_compiler_gnu=no
3554 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3555 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3559 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3562 if test $ac_compiler_gnu = yes; then
3563 GCC=yes
3564 else
3565 GCC=
3567 ac_test_CFLAGS=${CFLAGS+y}
3568 ac_save_CFLAGS=$CFLAGS
3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3570 printf %s "checking whether $CC accepts -g... " >&6; }
3571 if test ${ac_cv_prog_cc_g+y}
3572 then :
3573 printf %s "(cached) " >&6
3574 else $as_nop
3575 ac_save_c_werror_flag=$ac_c_werror_flag
3576 ac_c_werror_flag=yes
3577 ac_cv_prog_cc_g=no
3578 CFLAGS="-g"
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h. */
3583 main (void)
3587 return 0;
3589 _ACEOF
3590 if ac_fn_c_try_compile "$LINENO"
3591 then :
3592 ac_cv_prog_cc_g=yes
3593 else $as_nop
3594 CFLAGS=""
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h. */
3599 main (void)
3603 return 0;
3605 _ACEOF
3606 if ac_fn_c_try_compile "$LINENO"
3607 then :
3609 else $as_nop
3610 ac_c_werror_flag=$ac_save_c_werror_flag
3611 CFLAGS="-g"
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3616 main (void)
3620 return 0;
3622 _ACEOF
3623 if ac_fn_c_try_compile "$LINENO"
3624 then :
3625 ac_cv_prog_cc_g=yes
3627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3632 ac_c_werror_flag=$ac_save_c_werror_flag
3634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3635 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3636 if test $ac_test_CFLAGS; then
3637 CFLAGS=$ac_save_CFLAGS
3638 elif test $ac_cv_prog_cc_g = yes; then
3639 if test "$GCC" = yes; then
3640 CFLAGS="-g -O2"
3641 else
3642 CFLAGS="-g"
3644 else
3645 if test "$GCC" = yes; then
3646 CFLAGS="-O2"
3647 else
3648 CFLAGS=
3651 ac_prog_cc_stdc=no
3652 if test x$ac_prog_cc_stdc = xno
3653 then :
3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3655 printf %s "checking for $CC option to enable C11 features... " >&6; }
3656 if test ${ac_cv_prog_cc_c11+y}
3657 then :
3658 printf %s "(cached) " >&6
3659 else $as_nop
3660 ac_cv_prog_cc_c11=no
3661 ac_save_CC=$CC
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663 /* end confdefs.h. */
3664 $ac_c_conftest_c11_program
3665 _ACEOF
3666 for ac_arg in '' -std=gnu11
3668 CC="$ac_save_CC $ac_arg"
3669 if ac_fn_c_try_compile "$LINENO"
3670 then :
3671 ac_cv_prog_cc_c11=$ac_arg
3673 rm -f core conftest.err conftest.$ac_objext conftest.beam
3674 test "x$ac_cv_prog_cc_c11" != "xno" && break
3675 done
3676 rm -f conftest.$ac_ext
3677 CC=$ac_save_CC
3680 if test "x$ac_cv_prog_cc_c11" = xno
3681 then :
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3683 printf "%s\n" "unsupported" >&6; }
3684 else $as_nop
3685 if test "x$ac_cv_prog_cc_c11" = x
3686 then :
3687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3688 printf "%s\n" "none needed" >&6; }
3689 else $as_nop
3690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3691 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3692 CC="$CC $ac_cv_prog_cc_c11"
3694 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3695 ac_prog_cc_stdc=c11
3698 if test x$ac_prog_cc_stdc = xno
3699 then :
3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3701 printf %s "checking for $CC option to enable C99 features... " >&6; }
3702 if test ${ac_cv_prog_cc_c99+y}
3703 then :
3704 printf %s "(cached) " >&6
3705 else $as_nop
3706 ac_cv_prog_cc_c99=no
3707 ac_save_CC=$CC
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3710 $ac_c_conftest_c99_program
3711 _ACEOF
3712 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3714 CC="$ac_save_CC $ac_arg"
3715 if ac_fn_c_try_compile "$LINENO"
3716 then :
3717 ac_cv_prog_cc_c99=$ac_arg
3719 rm -f core conftest.err conftest.$ac_objext conftest.beam
3720 test "x$ac_cv_prog_cc_c99" != "xno" && break
3721 done
3722 rm -f conftest.$ac_ext
3723 CC=$ac_save_CC
3726 if test "x$ac_cv_prog_cc_c99" = xno
3727 then :
3728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3729 printf "%s\n" "unsupported" >&6; }
3730 else $as_nop
3731 if test "x$ac_cv_prog_cc_c99" = x
3732 then :
3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3734 printf "%s\n" "none needed" >&6; }
3735 else $as_nop
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3737 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3738 CC="$CC $ac_cv_prog_cc_c99"
3740 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3741 ac_prog_cc_stdc=c99
3744 if test x$ac_prog_cc_stdc = xno
3745 then :
3746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3747 printf %s "checking for $CC option to enable C89 features... " >&6; }
3748 if test ${ac_cv_prog_cc_c89+y}
3749 then :
3750 printf %s "(cached) " >&6
3751 else $as_nop
3752 ac_cv_prog_cc_c89=no
3753 ac_save_CC=$CC
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3756 $ac_c_conftest_c89_program
3757 _ACEOF
3758 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3760 CC="$ac_save_CC $ac_arg"
3761 if ac_fn_c_try_compile "$LINENO"
3762 then :
3763 ac_cv_prog_cc_c89=$ac_arg
3765 rm -f core conftest.err conftest.$ac_objext conftest.beam
3766 test "x$ac_cv_prog_cc_c89" != "xno" && break
3767 done
3768 rm -f conftest.$ac_ext
3769 CC=$ac_save_CC
3772 if test "x$ac_cv_prog_cc_c89" = xno
3773 then :
3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3775 printf "%s\n" "unsupported" >&6; }
3776 else $as_nop
3777 if test "x$ac_cv_prog_cc_c89" = x
3778 then :
3779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3780 printf "%s\n" "none needed" >&6; }
3781 else $as_nop
3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3783 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3784 CC="$CC $ac_cv_prog_cc_c89"
3786 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3787 ac_prog_cc_stdc=c89
3791 ac_ext=c
3792 ac_cpp='$CPP $CPPFLAGS'
3793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3798 printf %s "checking for a sed that does not truncate output... " >&6; }
3799 if test ${ac_cv_path_SED+y}
3800 then :
3801 printf %s "(cached) " >&6
3802 else $as_nop
3803 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3804 for ac_i in 1 2 3 4 5 6 7; do
3805 ac_script="$ac_script$as_nl$ac_script"
3806 done
3807 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3808 { ac_script=; unset ac_script;}
3809 if test -z "$SED"; then
3810 ac_path_SED_found=false
3811 # Loop through the user's path and test for each of PROGNAME-LIST
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 for as_dir in $PATH
3815 IFS=$as_save_IFS
3816 case $as_dir in #(((
3817 '') as_dir=./ ;;
3818 */) ;;
3819 *) as_dir=$as_dir/ ;;
3820 esac
3821 for ac_prog in sed gsed
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
3825 as_fn_executable_p "$ac_path_SED" || continue
3826 # Check for GNU ac_path_SED and select it if it is found.
3827 # Check for GNU $ac_path_SED
3828 case `"$ac_path_SED" --version 2>&1` in
3829 *GNU*)
3830 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3832 ac_count=0
3833 printf %s 0123456789 >"conftest.in"
3834 while :
3836 cat "conftest.in" "conftest.in" >"conftest.tmp"
3837 mv "conftest.tmp" "conftest.in"
3838 cp "conftest.in" "conftest.nl"
3839 printf "%s\n" '' >> "conftest.nl"
3840 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3841 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3842 as_fn_arith $ac_count + 1 && ac_count=$as_val
3843 if test $ac_count -gt ${ac_path_SED_max-0}; then
3844 # Best one so far, save it but keep looking for a better one
3845 ac_cv_path_SED="$ac_path_SED"
3846 ac_path_SED_max=$ac_count
3848 # 10*(2^10) chars as input seems more than enough
3849 test $ac_count -gt 10 && break
3850 done
3851 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3852 esac
3854 $ac_path_SED_found && break 3
3855 done
3856 done
3857 done
3858 IFS=$as_save_IFS
3859 if test -z "$ac_cv_path_SED"; then
3860 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3862 else
3863 ac_cv_path_SED=$SED
3867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3868 printf "%s\n" "$ac_cv_path_SED" >&6; }
3869 SED="$ac_cv_path_SED"
3870 rm -f conftest.sed
3872 test -z "$SED" && SED=sed
3873 Xsed="$SED -e 1s/^X//"
3885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3886 printf %s "checking for grep that handles long lines and -e... " >&6; }
3887 if test ${ac_cv_path_GREP+y}
3888 then :
3889 printf %s "(cached) " >&6
3890 else $as_nop
3891 if test -z "$GREP"; then
3892 ac_path_GREP_found=false
3893 # Loop through the user's path and test for each of PROGNAME-LIST
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3897 IFS=$as_save_IFS
3898 case $as_dir in #(((
3899 '') as_dir=./ ;;
3900 */) ;;
3901 *) as_dir=$as_dir/ ;;
3902 esac
3903 for ac_prog in grep ggrep
3905 for ac_exec_ext in '' $ac_executable_extensions; do
3906 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
3907 as_fn_executable_p "$ac_path_GREP" || continue
3908 # Check for GNU ac_path_GREP and select it if it is found.
3909 # Check for GNU $ac_path_GREP
3910 case `"$ac_path_GREP" --version 2>&1` in
3911 *GNU*)
3912 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3914 ac_count=0
3915 printf %s 0123456789 >"conftest.in"
3916 while :
3918 cat "conftest.in" "conftest.in" >"conftest.tmp"
3919 mv "conftest.tmp" "conftest.in"
3920 cp "conftest.in" "conftest.nl"
3921 printf "%s\n" 'GREP' >> "conftest.nl"
3922 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3923 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3924 as_fn_arith $ac_count + 1 && ac_count=$as_val
3925 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3926 # Best one so far, save it but keep looking for a better one
3927 ac_cv_path_GREP="$ac_path_GREP"
3928 ac_path_GREP_max=$ac_count
3930 # 10*(2^10) chars as input seems more than enough
3931 test $ac_count -gt 10 && break
3932 done
3933 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3934 esac
3936 $ac_path_GREP_found && break 3
3937 done
3938 done
3939 done
3940 IFS=$as_save_IFS
3941 if test -z "$ac_cv_path_GREP"; then
3942 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3944 else
3945 ac_cv_path_GREP=$GREP
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3950 printf "%s\n" "$ac_cv_path_GREP" >&6; }
3951 GREP="$ac_cv_path_GREP"
3954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3955 printf %s "checking for egrep... " >&6; }
3956 if test ${ac_cv_path_EGREP+y}
3957 then :
3958 printf %s "(cached) " >&6
3959 else $as_nop
3960 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3961 then ac_cv_path_EGREP="$GREP -E"
3962 else
3963 if test -z "$EGREP"; then
3964 ac_path_EGREP_found=false
3965 # Loop through the user's path and test for each of PROGNAME-LIST
3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3969 IFS=$as_save_IFS
3970 case $as_dir in #(((
3971 '') as_dir=./ ;;
3972 */) ;;
3973 *) as_dir=$as_dir/ ;;
3974 esac
3975 for ac_prog in egrep
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
3979 as_fn_executable_p "$ac_path_EGREP" || continue
3980 # Check for GNU ac_path_EGREP and select it if it is found.
3981 # Check for GNU $ac_path_EGREP
3982 case `"$ac_path_EGREP" --version 2>&1` in
3983 *GNU*)
3984 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3986 ac_count=0
3987 printf %s 0123456789 >"conftest.in"
3988 while :
3990 cat "conftest.in" "conftest.in" >"conftest.tmp"
3991 mv "conftest.tmp" "conftest.in"
3992 cp "conftest.in" "conftest.nl"
3993 printf "%s\n" 'EGREP' >> "conftest.nl"
3994 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3995 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3996 as_fn_arith $ac_count + 1 && ac_count=$as_val
3997 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3998 # Best one so far, save it but keep looking for a better one
3999 ac_cv_path_EGREP="$ac_path_EGREP"
4000 ac_path_EGREP_max=$ac_count
4002 # 10*(2^10) chars as input seems more than enough
4003 test $ac_count -gt 10 && break
4004 done
4005 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4006 esac
4008 $ac_path_EGREP_found && break 3
4009 done
4010 done
4011 done
4012 IFS=$as_save_IFS
4013 if test -z "$ac_cv_path_EGREP"; then
4014 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4016 else
4017 ac_cv_path_EGREP=$EGREP
4022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4023 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4024 EGREP="$ac_cv_path_EGREP"
4027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4028 printf %s "checking for fgrep... " >&6; }
4029 if test ${ac_cv_path_FGREP+y}
4030 then :
4031 printf %s "(cached) " >&6
4032 else $as_nop
4033 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4034 then ac_cv_path_FGREP="$GREP -F"
4035 else
4036 if test -z "$FGREP"; then
4037 ac_path_FGREP_found=false
4038 # Loop through the user's path and test for each of PROGNAME-LIST
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4042 IFS=$as_save_IFS
4043 case $as_dir in #(((
4044 '') as_dir=./ ;;
4045 */) ;;
4046 *) as_dir=$as_dir/ ;;
4047 esac
4048 for ac_prog in fgrep
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4052 as_fn_executable_p "$ac_path_FGREP" || continue
4053 # Check for GNU ac_path_FGREP and select it if it is found.
4054 # Check for GNU $ac_path_FGREP
4055 case `"$ac_path_FGREP" --version 2>&1` in
4056 *GNU*)
4057 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4059 ac_count=0
4060 printf %s 0123456789 >"conftest.in"
4061 while :
4063 cat "conftest.in" "conftest.in" >"conftest.tmp"
4064 mv "conftest.tmp" "conftest.in"
4065 cp "conftest.in" "conftest.nl"
4066 printf "%s\n" 'FGREP' >> "conftest.nl"
4067 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4068 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4069 as_fn_arith $ac_count + 1 && ac_count=$as_val
4070 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4071 # Best one so far, save it but keep looking for a better one
4072 ac_cv_path_FGREP="$ac_path_FGREP"
4073 ac_path_FGREP_max=$ac_count
4075 # 10*(2^10) chars as input seems more than enough
4076 test $ac_count -gt 10 && break
4077 done
4078 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4079 esac
4081 $ac_path_FGREP_found && break 3
4082 done
4083 done
4084 done
4085 IFS=$as_save_IFS
4086 if test -z "$ac_cv_path_FGREP"; then
4087 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4089 else
4090 ac_cv_path_FGREP=$FGREP
4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4096 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4097 FGREP="$ac_cv_path_FGREP"
4100 test -z "$GREP" && GREP=grep
4120 # Check whether --with-gnu-ld was given.
4121 if test ${with_gnu_ld+y}
4122 then :
4123 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4124 else $as_nop
4125 with_gnu_ld=no
4128 ac_prog=ld
4129 if test yes = "$GCC"; then
4130 # Check if gcc -print-prog-name=ld gives a path.
4131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4132 printf %s "checking for ld used by $CC... " >&6; }
4133 case $host in
4134 *-*-mingw*)
4135 # gcc leaves a trailing carriage return, which upsets mingw
4136 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4138 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4139 esac
4140 case $ac_prog in
4141 # Accept absolute paths.
4142 [\\/]* | ?:[\\/]*)
4143 re_direlt='/[^/][^/]*/\.\./'
4144 # Canonicalize the pathname of ld
4145 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4146 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4147 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4148 done
4149 test -z "$LD" && LD=$ac_prog
4152 # If it fails, then pretend we aren't using GCC.
4153 ac_prog=ld
4156 # If it is relative, then search for the first ld in PATH.
4157 with_gnu_ld=unknown
4159 esac
4160 elif test yes = "$with_gnu_ld"; then
4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4162 printf %s "checking for GNU ld... " >&6; }
4163 else
4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4165 printf %s "checking for non-GNU ld... " >&6; }
4167 if test ${lt_cv_path_LD+y}
4168 then :
4169 printf %s "(cached) " >&6
4170 else $as_nop
4171 if test -z "$LD"; then
4172 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4173 for ac_dir in $PATH; do
4174 IFS=$lt_save_ifs
4175 test -z "$ac_dir" && ac_dir=.
4176 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4177 lt_cv_path_LD=$ac_dir/$ac_prog
4178 # Check to see if the program is GNU ld. I'd rather use --version,
4179 # but apparently some variants of GNU ld only accept -v.
4180 # Break only if it was the GNU/non-GNU ld that we prefer.
4181 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4182 *GNU* | *'with BFD'*)
4183 test no != "$with_gnu_ld" && break
4186 test yes != "$with_gnu_ld" && break
4188 esac
4190 done
4191 IFS=$lt_save_ifs
4192 else
4193 lt_cv_path_LD=$LD # Let the user override the test with a path.
4197 LD=$lt_cv_path_LD
4198 if test -n "$LD"; then
4199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4200 printf "%s\n" "$LD" >&6; }
4201 else
4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 printf "%s\n" "no" >&6; }
4205 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4207 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
4208 if test ${lt_cv_prog_gnu_ld+y}
4209 then :
4210 printf %s "(cached) " >&6
4211 else $as_nop
4212 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4213 case `$LD -v 2>&1 </dev/null` in
4214 *GNU* | *'with BFD'*)
4215 lt_cv_prog_gnu_ld=yes
4218 lt_cv_prog_gnu_ld=no
4220 esac
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4223 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
4224 with_gnu_ld=$lt_cv_prog_gnu_ld
4234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4235 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4236 if test ${lt_cv_path_NM+y}
4237 then :
4238 printf %s "(cached) " >&6
4239 else $as_nop
4240 if test -n "$NM"; then
4241 # Let the user override the test.
4242 lt_cv_path_NM=$NM
4243 else
4244 lt_nm_to_check=${ac_tool_prefix}nm
4245 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4246 lt_nm_to_check="$lt_nm_to_check nm"
4248 for lt_tmp_nm in $lt_nm_to_check; do
4249 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4250 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4251 IFS=$lt_save_ifs
4252 test -z "$ac_dir" && ac_dir=.
4253 tmp_nm=$ac_dir/$lt_tmp_nm
4254 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4255 # Check to see if the nm accepts a BSD-compat flag.
4256 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4257 # nm: unknown option "B" ignored
4258 # Tru64's nm complains that /dev/null is an invalid object file
4259 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4260 case $build_os in
4261 mingw*) lt_bad_file=conftest.nm/nofile ;;
4262 *) lt_bad_file=/dev/null ;;
4263 esac
4264 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4265 *$lt_bad_file* | *'Invalid file or object type'*)
4266 lt_cv_path_NM="$tmp_nm -B"
4267 break 2
4270 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4271 */dev/null*)
4272 lt_cv_path_NM="$tmp_nm -p"
4273 break 2
4276 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4277 continue # so that we can try to find one that supports BSD flags
4279 esac
4281 esac
4283 done
4284 IFS=$lt_save_ifs
4285 done
4286 : ${lt_cv_path_NM=no}
4289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4290 printf "%s\n" "$lt_cv_path_NM" >&6; }
4291 if test no != "$lt_cv_path_NM"; then
4292 NM=$lt_cv_path_NM
4293 else
4294 # Didn't find any BSD compatible name lister, look for dumpbin.
4295 if test -n "$DUMPBIN"; then :
4296 # Let the user override the test.
4297 else
4298 if test -n "$ac_tool_prefix"; then
4299 for ac_prog in dumpbin "link -dump"
4301 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4302 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4304 printf %s "checking for $ac_word... " >&6; }
4305 if test ${ac_cv_prog_DUMPBIN+y}
4306 then :
4307 printf %s "(cached) " >&6
4308 else $as_nop
4309 if test -n "$DUMPBIN"; then
4310 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4311 else
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH
4315 IFS=$as_save_IFS
4316 case $as_dir in #(((
4317 '') as_dir=./ ;;
4318 */) ;;
4319 *) as_dir=$as_dir/ ;;
4320 esac
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4323 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4325 break 2
4327 done
4328 done
4329 IFS=$as_save_IFS
4333 DUMPBIN=$ac_cv_prog_DUMPBIN
4334 if test -n "$DUMPBIN"; then
4335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4336 printf "%s\n" "$DUMPBIN" >&6; }
4337 else
4338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 printf "%s\n" "no" >&6; }
4343 test -n "$DUMPBIN" && break
4344 done
4346 if test -z "$DUMPBIN"; then
4347 ac_ct_DUMPBIN=$DUMPBIN
4348 for ac_prog in dumpbin "link -dump"
4350 # Extract the first word of "$ac_prog", so it can be a program name with args.
4351 set dummy $ac_prog; ac_word=$2
4352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 printf %s "checking for $ac_word... " >&6; }
4354 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
4355 then :
4356 printf %s "(cached) " >&6
4357 else $as_nop
4358 if test -n "$ac_ct_DUMPBIN"; then
4359 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4360 else
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 for as_dir in $PATH
4364 IFS=$as_save_IFS
4365 case $as_dir in #(((
4366 '') as_dir=./ ;;
4367 */) ;;
4368 *) as_dir=$as_dir/ ;;
4369 esac
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4372 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4374 break 2
4376 done
4377 done
4378 IFS=$as_save_IFS
4382 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4383 if test -n "$ac_ct_DUMPBIN"; then
4384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4385 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
4386 else
4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 printf "%s\n" "no" >&6; }
4392 test -n "$ac_ct_DUMPBIN" && break
4393 done
4395 if test "x$ac_ct_DUMPBIN" = x; then
4396 DUMPBIN=":"
4397 else
4398 case $cross_compiling:$ac_tool_warned in
4399 yes:)
4400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4401 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4402 ac_tool_warned=yes ;;
4403 esac
4404 DUMPBIN=$ac_ct_DUMPBIN
4408 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4409 *COFF*)
4410 DUMPBIN="$DUMPBIN -symbols -headers"
4413 DUMPBIN=:
4415 esac
4418 if test : != "$DUMPBIN"; then
4419 NM=$DUMPBIN
4422 test -z "$NM" && NM=nm
4429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4430 printf %s "checking the name lister ($NM) interface... " >&6; }
4431 if test ${lt_cv_nm_interface+y}
4432 then :
4433 printf %s "(cached) " >&6
4434 else $as_nop
4435 lt_cv_nm_interface="BSD nm"
4436 echo "int some_variable = 0;" > conftest.$ac_ext
4437 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4438 (eval "$ac_compile" 2>conftest.err)
4439 cat conftest.err >&5
4440 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4441 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4442 cat conftest.err >&5
4443 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4444 cat conftest.out >&5
4445 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4446 lt_cv_nm_interface="MS dumpbin"
4448 rm -f conftest*
4450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4451 printf "%s\n" "$lt_cv_nm_interface" >&6; }
4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4454 printf %s "checking whether ln -s works... " >&6; }
4455 LN_S=$as_ln_s
4456 if test "$LN_S" = "ln -s"; then
4457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4458 printf "%s\n" "yes" >&6; }
4459 else
4460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4461 printf "%s\n" "no, using $LN_S" >&6; }
4464 # find the maximum length of command line arguments
4465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4466 printf %s "checking the maximum length of command line arguments... " >&6; }
4467 if test ${lt_cv_sys_max_cmd_len+y}
4468 then :
4469 printf %s "(cached) " >&6
4470 else $as_nop
4472 teststring=ABCD
4474 case $build_os in
4475 msdosdjgpp*)
4476 # On DJGPP, this test can blow up pretty badly due to problems in libc
4477 # (any single argument exceeding 2000 bytes causes a buffer overrun
4478 # during glob expansion). Even if it were fixed, the result of this
4479 # check would be larger than it should be.
4480 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4483 gnu*)
4484 # Under GNU Hurd, this test is not required because there is
4485 # no limit to the length of command line arguments.
4486 # Libtool will interpret -1 as no limit whatsoever
4487 lt_cv_sys_max_cmd_len=-1;
4490 cygwin* | mingw* | cegcc*)
4491 # On Win9x/ME, this test blows up -- it succeeds, but takes
4492 # about 5 minutes as the teststring grows exponentially.
4493 # Worse, since 9x/ME are not pre-emptively multitasking,
4494 # you end up with a "frozen" computer, even though with patience
4495 # the test eventually succeeds (with a max line length of 256k).
4496 # Instead, let's just punt: use the minimum linelength reported by
4497 # all of the supported platforms: 8192 (on NT/2K/XP).
4498 lt_cv_sys_max_cmd_len=8192;
4501 mint*)
4502 # On MiNT this can take a long time and run out of memory.
4503 lt_cv_sys_max_cmd_len=8192;
4506 amigaos*)
4507 # On AmigaOS with pdksh, this test takes hours, literally.
4508 # So we just punt and use a minimum line length of 8192.
4509 lt_cv_sys_max_cmd_len=8192;
4512 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4513 # This has been around since 386BSD, at least. Likely further.
4514 if test -x /sbin/sysctl; then
4515 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4516 elif test -x /usr/sbin/sysctl; then
4517 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4518 else
4519 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4521 # And add a safety zone
4522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4523 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4526 interix*)
4527 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4528 lt_cv_sys_max_cmd_len=196608
4531 os2*)
4532 # The test takes a long time on OS/2.
4533 lt_cv_sys_max_cmd_len=8192
4536 osf*)
4537 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4538 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4539 # nice to cause kernel panics so lets avoid the loop below.
4540 # First set a reasonable default.
4541 lt_cv_sys_max_cmd_len=16384
4543 if test -x /sbin/sysconfig; then
4544 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4545 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4546 esac
4549 sco3.2v5*)
4550 lt_cv_sys_max_cmd_len=102400
4552 sysv5* | sco5v6* | sysv4.2uw2*)
4553 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4554 if test -n "$kargmax"; then
4555 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4556 else
4557 lt_cv_sys_max_cmd_len=32768
4561 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4562 if test -n "$lt_cv_sys_max_cmd_len" && \
4563 test undefined != "$lt_cv_sys_max_cmd_len"; then
4564 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4565 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4566 else
4567 # Make teststring a little bigger before we do anything with it.
4568 # a 1K string should be a reasonable start.
4569 for i in 1 2 3 4 5 6 7 8; do
4570 teststring=$teststring$teststring
4571 done
4572 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4573 # If test is not a shell built-in, we'll probably end up computing a
4574 # maximum length that is only half of the actual maximum length, but
4575 # we can't tell.
4576 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4577 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4578 test 17 != "$i" # 1/2 MB should be enough
4580 i=`expr $i + 1`
4581 teststring=$teststring$teststring
4582 done
4583 # Only check the string length outside the loop.
4584 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4585 teststring=
4586 # Add a significant safety factor because C++ compilers can tack on
4587 # massive amounts of additional arguments before passing them to the
4588 # linker. It appears as though 1/2 is a usable value.
4589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4592 esac
4596 if test -n "$lt_cv_sys_max_cmd_len"; then
4597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4598 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
4599 else
4600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
4601 printf "%s\n" "none" >&6; }
4603 max_cmd_len=$lt_cv_sys_max_cmd_len
4610 : ${CP="cp -f"}
4611 : ${MV="mv -f"}
4612 : ${RM="rm -f"}
4614 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4615 lt_unset=unset
4616 else
4617 lt_unset=false
4624 # test EBCDIC or ASCII
4625 case `echo X|tr X '\101'` in
4626 A) # ASCII based system
4627 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4628 lt_SP2NL='tr \040 \012'
4629 lt_NL2SP='tr \015\012 \040\040'
4631 *) # EBCDIC based system
4632 lt_SP2NL='tr \100 \n'
4633 lt_NL2SP='tr \r\n \100\100'
4635 esac
4645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4646 printf %s "checking how to convert $build file names to $host format... " >&6; }
4647 if test ${lt_cv_to_host_file_cmd+y}
4648 then :
4649 printf %s "(cached) " >&6
4650 else $as_nop
4651 case $host in
4652 *-*-mingw* )
4653 case $build in
4654 *-*-mingw* ) # actually msys
4655 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4657 *-*-cygwin* )
4658 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4660 * ) # otherwise, assume *nix
4661 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4663 esac
4665 *-*-cygwin* )
4666 case $build in
4667 *-*-mingw* ) # actually msys
4668 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4670 *-*-cygwin* )
4671 lt_cv_to_host_file_cmd=func_convert_file_noop
4673 * ) # otherwise, assume *nix
4674 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4676 esac
4678 * ) # unhandled hosts (and "normal" native builds)
4679 lt_cv_to_host_file_cmd=func_convert_file_noop
4681 esac
4685 to_host_file_cmd=$lt_cv_to_host_file_cmd
4686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4687 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
4693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4694 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
4695 if test ${lt_cv_to_tool_file_cmd+y}
4696 then :
4697 printf %s "(cached) " >&6
4698 else $as_nop
4699 #assume ordinary cross tools, or native build.
4700 lt_cv_to_tool_file_cmd=func_convert_file_noop
4701 case $host in
4702 *-*-mingw* )
4703 case $build in
4704 *-*-mingw* ) # actually msys
4705 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4707 esac
4709 esac
4713 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4715 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
4721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4722 printf %s "checking for $LD option to reload object files... " >&6; }
4723 if test ${lt_cv_ld_reload_flag+y}
4724 then :
4725 printf %s "(cached) " >&6
4726 else $as_nop
4727 lt_cv_ld_reload_flag='-r'
4729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4730 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
4731 reload_flag=$lt_cv_ld_reload_flag
4732 case $reload_flag in
4733 "" | " "*) ;;
4734 *) reload_flag=" $reload_flag" ;;
4735 esac
4736 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4737 case $host_os in
4738 cygwin* | mingw* | pw32* | cegcc*)
4739 if test yes != "$GCC"; then
4740 reload_cmds=false
4743 darwin*)
4744 if test yes = "$GCC"; then
4745 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4746 else
4747 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4750 esac
4760 if test -n "$ac_tool_prefix"; then
4761 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4762 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764 printf %s "checking for $ac_word... " >&6; }
4765 if test ${ac_cv_prog_OBJDUMP+y}
4766 then :
4767 printf %s "(cached) " >&6
4768 else $as_nop
4769 if test -n "$OBJDUMP"; then
4770 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4771 else
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4775 IFS=$as_save_IFS
4776 case $as_dir in #(((
4777 '') as_dir=./ ;;
4778 */) ;;
4779 *) as_dir=$as_dir/ ;;
4780 esac
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4783 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4785 break 2
4787 done
4788 done
4789 IFS=$as_save_IFS
4793 OBJDUMP=$ac_cv_prog_OBJDUMP
4794 if test -n "$OBJDUMP"; then
4795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4796 printf "%s\n" "$OBJDUMP" >&6; }
4797 else
4798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4799 printf "%s\n" "no" >&6; }
4804 if test -z "$ac_cv_prog_OBJDUMP"; then
4805 ac_ct_OBJDUMP=$OBJDUMP
4806 # Extract the first word of "objdump", so it can be a program name with args.
4807 set dummy objdump; ac_word=$2
4808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4809 printf %s "checking for $ac_word... " >&6; }
4810 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
4811 then :
4812 printf %s "(cached) " >&6
4813 else $as_nop
4814 if test -n "$ac_ct_OBJDUMP"; then
4815 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4816 else
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 for as_dir in $PATH
4820 IFS=$as_save_IFS
4821 case $as_dir in #(((
4822 '') as_dir=./ ;;
4823 */) ;;
4824 *) as_dir=$as_dir/ ;;
4825 esac
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4828 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4830 break 2
4832 done
4833 done
4834 IFS=$as_save_IFS
4838 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4839 if test -n "$ac_ct_OBJDUMP"; then
4840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4841 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
4842 else
4843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 printf "%s\n" "no" >&6; }
4847 if test "x$ac_ct_OBJDUMP" = x; then
4848 OBJDUMP="false"
4849 else
4850 case $cross_compiling:$ac_tool_warned in
4851 yes:)
4852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4853 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4854 ac_tool_warned=yes ;;
4855 esac
4856 OBJDUMP=$ac_ct_OBJDUMP
4858 else
4859 OBJDUMP="$ac_cv_prog_OBJDUMP"
4862 test -z "$OBJDUMP" && OBJDUMP=objdump
4872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4873 printf %s "checking how to recognize dependent libraries... " >&6; }
4874 if test ${lt_cv_deplibs_check_method+y}
4875 then :
4876 printf %s "(cached) " >&6
4877 else $as_nop
4878 lt_cv_file_magic_cmd='$MAGIC_CMD'
4879 lt_cv_file_magic_test_file=
4880 lt_cv_deplibs_check_method='unknown'
4881 # Need to set the preceding variable on all platforms that support
4882 # interlibrary dependencies.
4883 # 'none' -- dependencies not supported.
4884 # 'unknown' -- same as none, but documents that we really don't know.
4885 # 'pass_all' -- all dependencies passed with no checks.
4886 # 'test_compile' -- check by making test program.
4887 # 'file_magic [[regex]]' -- check by looking for files in library path
4888 # that responds to the $file_magic_cmd with a given extended regex.
4889 # If you have 'file' or equivalent on your system and you're not sure
4890 # whether 'pass_all' will *always* work, you probably want this one.
4892 case $host_os in
4893 aix[4-9]*)
4894 lt_cv_deplibs_check_method=pass_all
4897 beos*)
4898 lt_cv_deplibs_check_method=pass_all
4901 bsdi[45]*)
4902 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4903 lt_cv_file_magic_cmd='/usr/bin/file -L'
4904 lt_cv_file_magic_test_file=/shlib/libc.so
4907 cygwin*)
4908 # func_win32_libid is a shell function defined in ltmain.sh
4909 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4910 lt_cv_file_magic_cmd='func_win32_libid'
4913 mingw* | pw32*)
4914 # Base MSYS/MinGW do not provide the 'file' command needed by
4915 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4916 # unless we find 'file', for example because we are cross-compiling.
4917 if ( file / ) >/dev/null 2>&1; then
4918 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4919 lt_cv_file_magic_cmd='func_win32_libid'
4920 else
4921 # Keep this pattern in sync with the one in func_win32_libid.
4922 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4923 lt_cv_file_magic_cmd='$OBJDUMP -f'
4927 cegcc*)
4928 # use the weaker test based on 'objdump'. See mingw*.
4929 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4930 lt_cv_file_magic_cmd='$OBJDUMP -f'
4933 darwin* | rhapsody*)
4934 lt_cv_deplibs_check_method=pass_all
4937 freebsd* | dragonfly*)
4938 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4939 case $host_cpu in
4940 i*86 )
4941 # Not sure whether the presence of OpenBSD here was a mistake.
4942 # Let's accept both of them until this is cleared up.
4943 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4944 lt_cv_file_magic_cmd=/usr/bin/file
4945 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4947 esac
4948 else
4949 lt_cv_deplibs_check_method=pass_all
4953 haiku*)
4954 lt_cv_deplibs_check_method=pass_all
4957 hpux10.20* | hpux11*)
4958 lt_cv_file_magic_cmd=/usr/bin/file
4959 case $host_cpu in
4960 ia64*)
4961 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4962 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4964 hppa*64*)
4965 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
4966 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4969 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4970 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4972 esac
4975 interix[3-9]*)
4976 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4977 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4980 irix5* | irix6* | nonstopux*)
4981 case $LD in
4982 *-32|*"-32 ") libmagic=32-bit;;
4983 *-n32|*"-n32 ") libmagic=N32;;
4984 *-64|*"-64 ") libmagic=64-bit;;
4985 *) libmagic=never-match;;
4986 esac
4987 lt_cv_deplibs_check_method=pass_all
4990 # This must be glibc/ELF.
4991 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4992 lt_cv_deplibs_check_method=pass_all
4995 netbsd* | netbsdelf*-gnu)
4996 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4997 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4998 else
4999 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5003 newos6*)
5004 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5005 lt_cv_file_magic_cmd=/usr/bin/file
5006 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5009 *nto* | *qnx*)
5010 lt_cv_deplibs_check_method=pass_all
5013 openbsd* | bitrig*)
5014 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5015 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5016 else
5017 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5021 osf3* | osf4* | osf5*)
5022 lt_cv_deplibs_check_method=pass_all
5025 rdos*)
5026 lt_cv_deplibs_check_method=pass_all
5029 solaris*)
5030 lt_cv_deplibs_check_method=pass_all
5033 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5034 lt_cv_deplibs_check_method=pass_all
5037 sysv4 | sysv4.3*)
5038 case $host_vendor in
5039 motorola)
5040 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5041 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5043 ncr)
5044 lt_cv_deplibs_check_method=pass_all
5046 sequent)
5047 lt_cv_file_magic_cmd='/bin/file'
5048 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5050 sni)
5051 lt_cv_file_magic_cmd='/bin/file'
5052 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5053 lt_cv_file_magic_test_file=/lib/libc.so
5055 siemens)
5056 lt_cv_deplibs_check_method=pass_all
5059 lt_cv_deplibs_check_method=pass_all
5061 esac
5064 tpf*)
5065 lt_cv_deplibs_check_method=pass_all
5067 os2*)
5068 lt_cv_deplibs_check_method=pass_all
5070 esac
5073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5074 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
5076 file_magic_glob=
5077 want_nocaseglob=no
5078 if test "$build" = "$host"; then
5079 case $host_os in
5080 mingw* | pw32*)
5081 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5082 want_nocaseglob=yes
5083 else
5084 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5087 esac
5090 file_magic_cmd=$lt_cv_file_magic_cmd
5091 deplibs_check_method=$lt_cv_deplibs_check_method
5092 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5115 if test -n "$ac_tool_prefix"; then
5116 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5117 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5119 printf %s "checking for $ac_word... " >&6; }
5120 if test ${ac_cv_prog_DLLTOOL+y}
5121 then :
5122 printf %s "(cached) " >&6
5123 else $as_nop
5124 if test -n "$DLLTOOL"; then
5125 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5126 else
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH
5130 IFS=$as_save_IFS
5131 case $as_dir in #(((
5132 '') as_dir=./ ;;
5133 */) ;;
5134 *) as_dir=$as_dir/ ;;
5135 esac
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5138 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5140 break 2
5142 done
5143 done
5144 IFS=$as_save_IFS
5148 DLLTOOL=$ac_cv_prog_DLLTOOL
5149 if test -n "$DLLTOOL"; then
5150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5151 printf "%s\n" "$DLLTOOL" >&6; }
5152 else
5153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154 printf "%s\n" "no" >&6; }
5159 if test -z "$ac_cv_prog_DLLTOOL"; then
5160 ac_ct_DLLTOOL=$DLLTOOL
5161 # Extract the first word of "dlltool", so it can be a program name with args.
5162 set dummy dlltool; ac_word=$2
5163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5164 printf %s "checking for $ac_word... " >&6; }
5165 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
5166 then :
5167 printf %s "(cached) " >&6
5168 else $as_nop
5169 if test -n "$ac_ct_DLLTOOL"; then
5170 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5171 else
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 for as_dir in $PATH
5175 IFS=$as_save_IFS
5176 case $as_dir in #(((
5177 '') as_dir=./ ;;
5178 */) ;;
5179 *) as_dir=$as_dir/ ;;
5180 esac
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5183 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5185 break 2
5187 done
5188 done
5189 IFS=$as_save_IFS
5193 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5194 if test -n "$ac_ct_DLLTOOL"; then
5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5196 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
5197 else
5198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 printf "%s\n" "no" >&6; }
5202 if test "x$ac_ct_DLLTOOL" = x; then
5203 DLLTOOL="false"
5204 else
5205 case $cross_compiling:$ac_tool_warned in
5206 yes:)
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5208 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5209 ac_tool_warned=yes ;;
5210 esac
5211 DLLTOOL=$ac_ct_DLLTOOL
5213 else
5214 DLLTOOL="$ac_cv_prog_DLLTOOL"
5217 test -z "$DLLTOOL" && DLLTOOL=dlltool
5228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5229 printf %s "checking how to associate runtime and link libraries... " >&6; }
5230 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
5231 then :
5232 printf %s "(cached) " >&6
5233 else $as_nop
5234 lt_cv_sharedlib_from_linklib_cmd='unknown'
5236 case $host_os in
5237 cygwin* | mingw* | pw32* | cegcc*)
5238 # two different shell functions defined in ltmain.sh;
5239 # decide which one to use based on capabilities of $DLLTOOL
5240 case `$DLLTOOL --help 2>&1` in
5241 *--identify-strict*)
5242 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5245 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5247 esac
5250 # fallback: assume linklib IS sharedlib
5251 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5253 esac
5256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5257 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5258 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5259 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5268 if test -n "$ac_tool_prefix"; then
5269 for ac_prog in ar
5271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5272 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5274 printf %s "checking for $ac_word... " >&6; }
5275 if test ${ac_cv_prog_AR+y}
5276 then :
5277 printf %s "(cached) " >&6
5278 else $as_nop
5279 if test -n "$AR"; then
5280 ac_cv_prog_AR="$AR" # Let the user override the test.
5281 else
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 for as_dir in $PATH
5285 IFS=$as_save_IFS
5286 case $as_dir in #(((
5287 '') as_dir=./ ;;
5288 */) ;;
5289 *) as_dir=$as_dir/ ;;
5290 esac
5291 for ac_exec_ext in '' $ac_executable_extensions; do
5292 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5293 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5295 break 2
5297 done
5298 done
5299 IFS=$as_save_IFS
5303 AR=$ac_cv_prog_AR
5304 if test -n "$AR"; then
5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5306 printf "%s\n" "$AR" >&6; }
5307 else
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309 printf "%s\n" "no" >&6; }
5313 test -n "$AR" && break
5314 done
5316 if test -z "$AR"; then
5317 ac_ct_AR=$AR
5318 for ac_prog in ar
5320 # Extract the first word of "$ac_prog", so it can be a program name with args.
5321 set dummy $ac_prog; ac_word=$2
5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5323 printf %s "checking for $ac_word... " >&6; }
5324 if test ${ac_cv_prog_ac_ct_AR+y}
5325 then :
5326 printf %s "(cached) " >&6
5327 else $as_nop
5328 if test -n "$ac_ct_AR"; then
5329 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5330 else
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 for as_dir in $PATH
5334 IFS=$as_save_IFS
5335 case $as_dir in #(((
5336 '') as_dir=./ ;;
5337 */) ;;
5338 *) as_dir=$as_dir/ ;;
5339 esac
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5342 ac_cv_prog_ac_ct_AR="$ac_prog"
5343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5344 break 2
5346 done
5347 done
5348 IFS=$as_save_IFS
5352 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5353 if test -n "$ac_ct_AR"; then
5354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5355 printf "%s\n" "$ac_ct_AR" >&6; }
5356 else
5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 printf "%s\n" "no" >&6; }
5362 test -n "$ac_ct_AR" && break
5363 done
5365 if test "x$ac_ct_AR" = x; then
5366 AR="false"
5367 else
5368 case $cross_compiling:$ac_tool_warned in
5369 yes:)
5370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5371 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5372 ac_tool_warned=yes ;;
5373 esac
5374 AR=$ac_ct_AR
5378 : ${AR=ar}
5379 : ${AR_FLAGS=cr}
5391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5392 printf %s "checking for archiver @FILE support... " >&6; }
5393 if test ${lt_cv_ar_at_file+y}
5394 then :
5395 printf %s "(cached) " >&6
5396 else $as_nop
5397 lt_cv_ar_at_file=no
5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399 /* end confdefs.h. */
5402 main (void)
5406 return 0;
5408 _ACEOF
5409 if ac_fn_c_try_compile "$LINENO"
5410 then :
5411 echo conftest.$ac_objext > conftest.lst
5412 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5414 (eval $lt_ar_try) 2>&5
5415 ac_status=$?
5416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5417 test $ac_status = 0; }
5418 if test 0 -eq "$ac_status"; then
5419 # Ensure the archiver fails upon bogus file names.
5420 rm -f conftest.$ac_objext libconftest.a
5421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5422 (eval $lt_ar_try) 2>&5
5423 ac_status=$?
5424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5425 test $ac_status = 0; }
5426 if test 0 -ne "$ac_status"; then
5427 lt_cv_ar_at_file=@
5430 rm -f conftest.* libconftest.a
5433 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5437 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
5439 if test no = "$lt_cv_ar_at_file"; then
5440 archiver_list_spec=
5441 else
5442 archiver_list_spec=$lt_cv_ar_at_file
5451 if test -n "$ac_tool_prefix"; then
5452 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5453 set dummy ${ac_tool_prefix}strip; ac_word=$2
5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455 printf %s "checking for $ac_word... " >&6; }
5456 if test ${ac_cv_prog_STRIP+y}
5457 then :
5458 printf %s "(cached) " >&6
5459 else $as_nop
5460 if test -n "$STRIP"; then
5461 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5462 else
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5466 IFS=$as_save_IFS
5467 case $as_dir in #(((
5468 '') as_dir=./ ;;
5469 */) ;;
5470 *) as_dir=$as_dir/ ;;
5471 esac
5472 for ac_exec_ext in '' $ac_executable_extensions; do
5473 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5474 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5476 break 2
5478 done
5479 done
5480 IFS=$as_save_IFS
5484 STRIP=$ac_cv_prog_STRIP
5485 if test -n "$STRIP"; then
5486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5487 printf "%s\n" "$STRIP" >&6; }
5488 else
5489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490 printf "%s\n" "no" >&6; }
5495 if test -z "$ac_cv_prog_STRIP"; then
5496 ac_ct_STRIP=$STRIP
5497 # Extract the first word of "strip", so it can be a program name with args.
5498 set dummy strip; ac_word=$2
5499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500 printf %s "checking for $ac_word... " >&6; }
5501 if test ${ac_cv_prog_ac_ct_STRIP+y}
5502 then :
5503 printf %s "(cached) " >&6
5504 else $as_nop
5505 if test -n "$ac_ct_STRIP"; then
5506 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5507 else
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 for as_dir in $PATH
5511 IFS=$as_save_IFS
5512 case $as_dir in #(((
5513 '') as_dir=./ ;;
5514 */) ;;
5515 *) as_dir=$as_dir/ ;;
5516 esac
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5519 ac_cv_prog_ac_ct_STRIP="strip"
5520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5521 break 2
5523 done
5524 done
5525 IFS=$as_save_IFS
5529 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5530 if test -n "$ac_ct_STRIP"; then
5531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5532 printf "%s\n" "$ac_ct_STRIP" >&6; }
5533 else
5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535 printf "%s\n" "no" >&6; }
5538 if test "x$ac_ct_STRIP" = x; then
5539 STRIP=":"
5540 else
5541 case $cross_compiling:$ac_tool_warned in
5542 yes:)
5543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5544 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5545 ac_tool_warned=yes ;;
5546 esac
5547 STRIP=$ac_ct_STRIP
5549 else
5550 STRIP="$ac_cv_prog_STRIP"
5553 test -z "$STRIP" && STRIP=:
5560 if test -n "$ac_tool_prefix"; then
5561 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5562 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564 printf %s "checking for $ac_word... " >&6; }
5565 if test ${ac_cv_prog_RANLIB+y}
5566 then :
5567 printf %s "(cached) " >&6
5568 else $as_nop
5569 if test -n "$RANLIB"; then
5570 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5571 else
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH
5575 IFS=$as_save_IFS
5576 case $as_dir in #(((
5577 '') as_dir=./ ;;
5578 */) ;;
5579 *) as_dir=$as_dir/ ;;
5580 esac
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5583 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5585 break 2
5587 done
5588 done
5589 IFS=$as_save_IFS
5593 RANLIB=$ac_cv_prog_RANLIB
5594 if test -n "$RANLIB"; then
5595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5596 printf "%s\n" "$RANLIB" >&6; }
5597 else
5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 printf "%s\n" "no" >&6; }
5604 if test -z "$ac_cv_prog_RANLIB"; then
5605 ac_ct_RANLIB=$RANLIB
5606 # Extract the first word of "ranlib", so it can be a program name with args.
5607 set dummy ranlib; ac_word=$2
5608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609 printf %s "checking for $ac_word... " >&6; }
5610 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5611 then :
5612 printf %s "(cached) " >&6
5613 else $as_nop
5614 if test -n "$ac_ct_RANLIB"; then
5615 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5616 else
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH
5620 IFS=$as_save_IFS
5621 case $as_dir in #(((
5622 '') as_dir=./ ;;
5623 */) ;;
5624 *) as_dir=$as_dir/ ;;
5625 esac
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5628 ac_cv_prog_ac_ct_RANLIB="ranlib"
5629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5630 break 2
5632 done
5633 done
5634 IFS=$as_save_IFS
5638 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5639 if test -n "$ac_ct_RANLIB"; then
5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5641 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5642 else
5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644 printf "%s\n" "no" >&6; }
5647 if test "x$ac_ct_RANLIB" = x; then
5648 RANLIB=":"
5649 else
5650 case $cross_compiling:$ac_tool_warned in
5651 yes:)
5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5653 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5654 ac_tool_warned=yes ;;
5655 esac
5656 RANLIB=$ac_ct_RANLIB
5658 else
5659 RANLIB="$ac_cv_prog_RANLIB"
5662 test -z "$RANLIB" && RANLIB=:
5669 # Determine commands to create old-style static archives.
5670 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5671 old_postinstall_cmds='chmod 644 $oldlib'
5672 old_postuninstall_cmds=
5674 if test -n "$RANLIB"; then
5675 case $host_os in
5676 bitrig* | openbsd*)
5677 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5680 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5682 esac
5683 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5686 case $host_os in
5687 darwin*)
5688 lock_old_archive_extraction=yes ;;
5690 lock_old_archive_extraction=no ;;
5691 esac
5713 for ac_prog in gawk mawk nawk awk
5715 # Extract the first word of "$ac_prog", so it can be a program name with args.
5716 set dummy $ac_prog; ac_word=$2
5717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718 printf %s "checking for $ac_word... " >&6; }
5719 if test ${ac_cv_prog_AWK+y}
5720 then :
5721 printf %s "(cached) " >&6
5722 else $as_nop
5723 if test -n "$AWK"; then
5724 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5725 else
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH
5729 IFS=$as_save_IFS
5730 case $as_dir in #(((
5731 '') as_dir=./ ;;
5732 */) ;;
5733 *) as_dir=$as_dir/ ;;
5734 esac
5735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5737 ac_cv_prog_AWK="$ac_prog"
5738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5739 break 2
5741 done
5742 done
5743 IFS=$as_save_IFS
5747 AWK=$ac_cv_prog_AWK
5748 if test -n "$AWK"; then
5749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5750 printf "%s\n" "$AWK" >&6; }
5751 else
5752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753 printf "%s\n" "no" >&6; }
5757 test -n "$AWK" && break
5758 done
5778 # If no C compiler was specified, use CC.
5779 LTCC=${LTCC-"$CC"}
5781 # If no C compiler flags were specified, use CFLAGS.
5782 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5784 # Allow CC to be a program name with arguments.
5785 compiler=$CC
5788 # Check for command to grab the raw symbol name followed by C symbol from nm.
5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5790 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
5791 if test ${lt_cv_sys_global_symbol_pipe+y}
5792 then :
5793 printf %s "(cached) " >&6
5794 else $as_nop
5796 # These are sane defaults that work on at least a few old systems.
5797 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5799 # Character class describing NM global symbol codes.
5800 symcode='[BCDEGRST]'
5802 # Regexp to match symbols that can be accessed directly from C.
5803 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5805 # Define system-specific variables.
5806 case $host_os in
5807 aix*)
5808 symcode='[BCDT]'
5810 cygwin* | mingw* | pw32* | cegcc*)
5811 symcode='[ABCDGISTW]'
5813 hpux*)
5814 if test ia64 = "$host_cpu"; then
5815 symcode='[ABCDEGRST]'
5818 irix* | nonstopux*)
5819 symcode='[BCDEGRST]'
5821 osf*)
5822 symcode='[BCDEGQRST]'
5824 solaris*)
5825 symcode='[BDRT]'
5827 sco3.2v5*)
5828 symcode='[DT]'
5830 sysv4.2uw2*)
5831 symcode='[DT]'
5833 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5834 symcode='[ABDT]'
5836 sysv4)
5837 symcode='[DFNSTU]'
5839 esac
5841 # If we're using GNU nm, then use its standard symbol codes.
5842 case `$NM -V 2>&1` in
5843 *GNU* | *'with BFD'*)
5844 symcode='[ABCDGIRSTW]' ;;
5845 esac
5847 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5848 # Gets list of data symbols to import.
5849 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5850 # Adjust the below global symbol transforms to fixup imported variables.
5851 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5852 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5853 lt_c_name_lib_hook="\
5854 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5855 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5856 else
5857 # Disable hooks by default.
5858 lt_cv_sys_global_symbol_to_import=
5859 lt_cdecl_hook=
5860 lt_c_name_hook=
5861 lt_c_name_lib_hook=
5864 # Transform an extracted symbol line into a proper C declaration.
5865 # Some systems (esp. on ia64) link data and code symbols differently,
5866 # so use this general approach.
5867 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5868 $lt_cdecl_hook\
5869 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5870 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5872 # Transform an extracted symbol line into symbol name and symbol address
5873 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5874 $lt_c_name_hook\
5875 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5876 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5878 # Transform an extracted symbol line into symbol name with lib prefix and
5879 # symbol address.
5880 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5881 $lt_c_name_lib_hook\
5882 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5883 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5884 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5886 # Handle CRLF in mingw tool chain
5887 opt_cr=
5888 case $build_os in
5889 mingw*)
5890 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5892 esac
5894 # Try without a prefix underscore, then with it.
5895 for ac_symprfx in "" "_"; do
5897 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5898 symxfrm="\\1 $ac_symprfx\\2 \\2"
5900 # Write the raw and C identifiers.
5901 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5902 # Fake it for dumpbin and say T for any non-static function,
5903 # D for any global variable and I for any imported variable.
5904 # Also find C++ and __fastcall symbols from MSVC++,
5905 # which start with @ or ?.
5906 lt_cv_sys_global_symbol_pipe="$AWK '"\
5907 " {last_section=section; section=\$ 3};"\
5908 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5909 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5910 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5911 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5912 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5913 " \$ 0!~/External *\|/{next};"\
5914 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5915 " {if(hide[section]) next};"\
5916 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5917 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5918 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5919 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5920 " ' prfx=^$ac_symprfx"
5921 else
5922 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5924 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5926 # Check to see that the pipe works correctly.
5927 pipe_works=no
5929 rm -f conftest*
5930 cat > conftest.$ac_ext <<_LT_EOF
5931 #ifdef __cplusplus
5932 extern "C" {
5933 #endif
5934 char nm_test_var;
5935 void nm_test_func(void);
5936 void nm_test_func(void){}
5937 #ifdef __cplusplus
5939 #endif
5940 int main(){nm_test_var='a';nm_test_func();return(0);}
5941 _LT_EOF
5943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5944 (eval $ac_compile) 2>&5
5945 ac_status=$?
5946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5947 test $ac_status = 0; }; then
5948 # Now try to grab the symbols.
5949 nlist=conftest.nm
5950 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
5951 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
5952 # Try sorting and uniquifying the output.
5953 if sort "$nlist" | uniq > "$nlist"T; then
5954 mv -f "$nlist"T "$nlist"
5955 else
5956 rm -f "$nlist"T
5959 # Make sure that we snagged all the symbols we need.
5960 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5961 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5962 cat <<_LT_EOF > conftest.$ac_ext
5963 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5964 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5965 /* DATA imports from DLLs on WIN32 can't be const, because runtime
5966 relocations are performed -- see ld's documentation on pseudo-relocs. */
5967 # define LT_DLSYM_CONST
5968 #elif defined __osf__
5969 /* This system does not cope well with relocations in const data. */
5970 # define LT_DLSYM_CONST
5971 #else
5972 # define LT_DLSYM_CONST const
5973 #endif
5975 #ifdef __cplusplus
5976 extern "C" {
5977 #endif
5979 _LT_EOF
5980 # Now generate the symbol file.
5981 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5983 cat <<_LT_EOF >> conftest.$ac_ext
5985 /* The mapping between symbol names and symbols. */
5986 LT_DLSYM_CONST struct {
5987 const char *name;
5988 void *address;
5990 lt__PROGRAM__LTX_preloaded_symbols[] =
5992 { "@PROGRAM@", (void *) 0 },
5993 _LT_EOF
5994 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5995 cat <<\_LT_EOF >> conftest.$ac_ext
5996 {0, (void *) 0}
5999 /* This works around a problem in FreeBSD linker */
6000 #ifdef FREEBSD_WORKAROUND
6001 static const void *lt_preloaded_setup() {
6002 return lt__PROGRAM__LTX_preloaded_symbols;
6004 #endif
6006 #ifdef __cplusplus
6008 #endif
6009 _LT_EOF
6010 # Now try linking the two files.
6011 mv conftest.$ac_objext conftstm.$ac_objext
6012 lt_globsym_save_LIBS=$LIBS
6013 lt_globsym_save_CFLAGS=$CFLAGS
6014 LIBS=conftstm.$ac_objext
6015 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6017 (eval $ac_link) 2>&5
6018 ac_status=$?
6019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6020 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6021 pipe_works=yes
6023 LIBS=$lt_globsym_save_LIBS
6024 CFLAGS=$lt_globsym_save_CFLAGS
6025 else
6026 echo "cannot find nm_test_func in $nlist" >&5
6028 else
6029 echo "cannot find nm_test_var in $nlist" >&5
6031 else
6032 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6034 else
6035 echo "$progname: failed program was:" >&5
6036 cat conftest.$ac_ext >&5
6038 rm -rf conftest* conftst*
6040 # Do not use the global_symbol_pipe unless it works.
6041 if test yes = "$pipe_works"; then
6042 break
6043 else
6044 lt_cv_sys_global_symbol_pipe=
6046 done
6050 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6051 lt_cv_sys_global_symbol_to_cdecl=
6053 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6055 printf "%s\n" "failed" >&6; }
6056 else
6057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6058 printf "%s\n" "ok" >&6; }
6061 # Response file support.
6062 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6063 nm_file_list_spec='@'
6064 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6065 nm_file_list_spec='@'
6104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6105 printf %s "checking for sysroot... " >&6; }
6107 # Check whether --with-sysroot was given.
6108 if test ${with_sysroot+y}
6109 then :
6110 withval=$with_sysroot;
6111 else $as_nop
6112 with_sysroot=no
6116 lt_sysroot=
6117 case $with_sysroot in #(
6118 yes)
6119 if test yes = "$GCC"; then
6120 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6122 ;; #(
6124 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6125 ;; #(
6126 no|'')
6127 ;; #(
6129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6130 printf "%s\n" "$with_sysroot" >&6; }
6131 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6133 esac
6135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6136 printf "%s\n" "${lt_sysroot:-no}" >&6; }
6142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6143 printf %s "checking for a working dd... " >&6; }
6144 if test ${ac_cv_path_lt_DD+y}
6145 then :
6146 printf %s "(cached) " >&6
6147 else $as_nop
6148 printf 0123456789abcdef0123456789abcdef >conftest.i
6149 cat conftest.i conftest.i >conftest2.i
6150 : ${lt_DD:=$DD}
6151 if test -z "$lt_DD"; then
6152 ac_path_lt_DD_found=false
6153 # Loop through the user's path and test for each of PROGNAME-LIST
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 for as_dir in $PATH
6157 IFS=$as_save_IFS
6158 case $as_dir in #(((
6159 '') as_dir=./ ;;
6160 */) ;;
6161 *) as_dir=$as_dir/ ;;
6162 esac
6163 for ac_prog in dd
6165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
6167 as_fn_executable_p "$ac_path_lt_DD" || continue
6168 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6169 cmp -s conftest.i conftest.out \
6170 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6172 $ac_path_lt_DD_found && break 3
6173 done
6174 done
6175 done
6176 IFS=$as_save_IFS
6177 if test -z "$ac_cv_path_lt_DD"; then
6180 else
6181 ac_cv_path_lt_DD=$lt_DD
6184 rm -f conftest.i conftest2.i conftest.out
6186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6187 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6191 printf %s "checking how to truncate binary pipes... " >&6; }
6192 if test ${lt_cv_truncate_bin+y}
6193 then :
6194 printf %s "(cached) " >&6
6195 else $as_nop
6196 printf 0123456789abcdef0123456789abcdef >conftest.i
6197 cat conftest.i conftest.i >conftest2.i
6198 lt_cv_truncate_bin=
6199 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6200 cmp -s conftest.i conftest.out \
6201 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6203 rm -f conftest.i conftest2.i conftest.out
6204 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6207 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
6215 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6216 func_cc_basename ()
6218 for cc_temp in $*""; do
6219 case $cc_temp in
6220 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6221 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6222 \-*) ;;
6223 *) break;;
6224 esac
6225 done
6226 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6229 # Check whether --enable-libtool-lock was given.
6230 if test ${enable_libtool_lock+y}
6231 then :
6232 enableval=$enable_libtool_lock;
6235 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6237 # Some flags need to be propagated to the compiler or linker for good
6238 # libtool support.
6239 case $host in
6240 ia64-*-hpux*)
6241 # Find out what ABI is being produced by ac_compile, and set mode
6242 # options accordingly.
6243 echo 'int i;' > conftest.$ac_ext
6244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6245 (eval $ac_compile) 2>&5
6246 ac_status=$?
6247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6248 test $ac_status = 0; }; then
6249 case `/usr/bin/file conftest.$ac_objext` in
6250 *ELF-32*)
6251 HPUX_IA64_MODE=32
6253 *ELF-64*)
6254 HPUX_IA64_MODE=64
6256 esac
6258 rm -rf conftest*
6260 *-*-irix6*)
6261 # Find out what ABI is being produced by ac_compile, and set linker
6262 # options accordingly.
6263 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6265 (eval $ac_compile) 2>&5
6266 ac_status=$?
6267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6268 test $ac_status = 0; }; then
6269 if test yes = "$lt_cv_prog_gnu_ld"; then
6270 case `/usr/bin/file conftest.$ac_objext` in
6271 *32-bit*)
6272 LD="${LD-ld} -melf32bsmip"
6274 *N32*)
6275 LD="${LD-ld} -melf32bmipn32"
6277 *64-bit*)
6278 LD="${LD-ld} -melf64bmip"
6280 esac
6281 else
6282 case `/usr/bin/file conftest.$ac_objext` in
6283 *32-bit*)
6284 LD="${LD-ld} -32"
6286 *N32*)
6287 LD="${LD-ld} -n32"
6289 *64-bit*)
6290 LD="${LD-ld} -64"
6292 esac
6295 rm -rf conftest*
6298 mips64*-*linux*)
6299 # Find out what ABI is being produced by ac_compile, and set linker
6300 # options accordingly.
6301 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6303 (eval $ac_compile) 2>&5
6304 ac_status=$?
6305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6306 test $ac_status = 0; }; then
6307 emul=elf
6308 case `/usr/bin/file conftest.$ac_objext` in
6309 *32-bit*)
6310 emul="${emul}32"
6312 *64-bit*)
6313 emul="${emul}64"
6315 esac
6316 case `/usr/bin/file conftest.$ac_objext` in
6317 *MSB*)
6318 emul="${emul}btsmip"
6320 *LSB*)
6321 emul="${emul}ltsmip"
6323 esac
6324 case `/usr/bin/file conftest.$ac_objext` in
6325 *N32*)
6326 emul="${emul}n32"
6328 esac
6329 LD="${LD-ld} -m $emul"
6331 rm -rf conftest*
6334 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6335 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6336 # Find out what ABI is being produced by ac_compile, and set linker
6337 # options accordingly. Note that the listed cases only cover the
6338 # situations where additional linker options are needed (such as when
6339 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6340 # vice versa); the common cases where no linker options are needed do
6341 # not appear in the list.
6342 echo 'int i;' > conftest.$ac_ext
6343 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6344 (eval $ac_compile) 2>&5
6345 ac_status=$?
6346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6347 test $ac_status = 0; }; then
6348 case `/usr/bin/file conftest.o` in
6349 *32-bit*)
6350 case $host in
6351 x86_64-*kfreebsd*-gnu)
6352 LD="${LD-ld} -m elf_i386_fbsd"
6354 x86_64-*linux*)
6355 case `/usr/bin/file conftest.o` in
6356 *x86-64*)
6357 LD="${LD-ld} -m elf32_x86_64"
6360 LD="${LD-ld} -m elf_i386"
6362 esac
6364 powerpc64le-*linux*)
6365 LD="${LD-ld} -m elf32lppclinux"
6367 powerpc64-*linux*)
6368 LD="${LD-ld} -m elf32ppclinux"
6370 s390x-*linux*)
6371 LD="${LD-ld} -m elf_s390"
6373 sparc64-*linux*)
6374 LD="${LD-ld} -m elf32_sparc"
6376 esac
6378 *64-bit*)
6379 case $host in
6380 x86_64-*kfreebsd*-gnu)
6381 LD="${LD-ld} -m elf_x86_64_fbsd"
6383 x86_64-*linux*)
6384 LD="${LD-ld} -m elf_x86_64"
6386 powerpcle-*linux*)
6387 LD="${LD-ld} -m elf64lppc"
6389 powerpc-*linux*)
6390 LD="${LD-ld} -m elf64ppc"
6392 s390*-*linux*|s390*-*tpf*)
6393 LD="${LD-ld} -m elf64_s390"
6395 sparc*-*linux*)
6396 LD="${LD-ld} -m elf64_sparc"
6398 esac
6400 esac
6402 rm -rf conftest*
6405 *-*-sco3.2v5*)
6406 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6407 SAVE_CFLAGS=$CFLAGS
6408 CFLAGS="$CFLAGS -belf"
6409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6410 printf %s "checking whether the C compiler needs -belf... " >&6; }
6411 if test ${lt_cv_cc_needs_belf+y}
6412 then :
6413 printf %s "(cached) " >&6
6414 else $as_nop
6415 ac_ext=c
6416 ac_cpp='$CPP $CPPFLAGS'
6417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6425 main (void)
6429 return 0;
6431 _ACEOF
6432 if ac_fn_c_try_link "$LINENO"
6433 then :
6434 lt_cv_cc_needs_belf=yes
6435 else $as_nop
6436 lt_cv_cc_needs_belf=no
6438 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6439 conftest$ac_exeext conftest.$ac_ext
6440 ac_ext=c
6441 ac_cpp='$CPP $CPPFLAGS'
6442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6448 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
6449 if test yes != "$lt_cv_cc_needs_belf"; then
6450 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6451 CFLAGS=$SAVE_CFLAGS
6454 *-*solaris*)
6455 # Find out what ABI is being produced by ac_compile, and set linker
6456 # options accordingly.
6457 echo 'int i;' > conftest.$ac_ext
6458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6459 (eval $ac_compile) 2>&5
6460 ac_status=$?
6461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6462 test $ac_status = 0; }; then
6463 case `/usr/bin/file conftest.o` in
6464 *64-bit*)
6465 case $lt_cv_prog_gnu_ld in
6466 yes*)
6467 case $host in
6468 i?86-*-solaris*|x86_64-*-solaris*)
6469 LD="${LD-ld} -m elf_x86_64"
6471 sparc*-*-solaris*)
6472 LD="${LD-ld} -m elf64_sparc"
6474 esac
6475 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6476 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6477 LD=${LD-ld}_sol2
6481 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6482 LD="${LD-ld} -64"
6485 esac
6487 esac
6489 rm -rf conftest*
6491 esac
6493 need_locks=$enable_libtool_lock
6495 if test -n "$ac_tool_prefix"; then
6496 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6497 set dummy ${ac_tool_prefix}mt; ac_word=$2
6498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499 printf %s "checking for $ac_word... " >&6; }
6500 if test ${ac_cv_prog_MANIFEST_TOOL+y}
6501 then :
6502 printf %s "(cached) " >&6
6503 else $as_nop
6504 if test -n "$MANIFEST_TOOL"; then
6505 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6506 else
6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 for as_dir in $PATH
6510 IFS=$as_save_IFS
6511 case $as_dir in #(((
6512 '') as_dir=./ ;;
6513 */) ;;
6514 *) as_dir=$as_dir/ ;;
6515 esac
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6518 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6520 break 2
6522 done
6523 done
6524 IFS=$as_save_IFS
6528 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6529 if test -n "$MANIFEST_TOOL"; then
6530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6531 printf "%s\n" "$MANIFEST_TOOL" >&6; }
6532 else
6533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6534 printf "%s\n" "no" >&6; }
6539 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6540 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6541 # Extract the first word of "mt", so it can be a program name with args.
6542 set dummy mt; ac_word=$2
6543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544 printf %s "checking for $ac_word... " >&6; }
6545 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
6546 then :
6547 printf %s "(cached) " >&6
6548 else $as_nop
6549 if test -n "$ac_ct_MANIFEST_TOOL"; then
6550 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6551 else
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6555 IFS=$as_save_IFS
6556 case $as_dir in #(((
6557 '') as_dir=./ ;;
6558 */) ;;
6559 *) as_dir=$as_dir/ ;;
6560 esac
6561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6563 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6565 break 2
6567 done
6568 done
6569 IFS=$as_save_IFS
6573 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6574 if test -n "$ac_ct_MANIFEST_TOOL"; then
6575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6576 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
6577 else
6578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579 printf "%s\n" "no" >&6; }
6582 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6583 MANIFEST_TOOL=":"
6584 else
6585 case $cross_compiling:$ac_tool_warned in
6586 yes:)
6587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6588 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6589 ac_tool_warned=yes ;;
6590 esac
6591 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6593 else
6594 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6597 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6599 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6600 if test ${lt_cv_path_mainfest_tool+y}
6601 then :
6602 printf %s "(cached) " >&6
6603 else $as_nop
6604 lt_cv_path_mainfest_tool=no
6605 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6606 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6607 cat conftest.err >&5
6608 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6609 lt_cv_path_mainfest_tool=yes
6611 rm -f conftest*
6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6614 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
6615 if test yes != "$lt_cv_path_mainfest_tool"; then
6616 MANIFEST_TOOL=:
6624 case $host_os in
6625 rhapsody* | darwin*)
6626 if test -n "$ac_tool_prefix"; then
6627 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6628 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 printf %s "checking for $ac_word... " >&6; }
6631 if test ${ac_cv_prog_DSYMUTIL+y}
6632 then :
6633 printf %s "(cached) " >&6
6634 else $as_nop
6635 if test -n "$DSYMUTIL"; then
6636 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6637 else
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in $PATH
6641 IFS=$as_save_IFS
6642 case $as_dir in #(((
6643 '') as_dir=./ ;;
6644 */) ;;
6645 *) as_dir=$as_dir/ ;;
6646 esac
6647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6649 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6651 break 2
6653 done
6654 done
6655 IFS=$as_save_IFS
6659 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6660 if test -n "$DSYMUTIL"; then
6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6662 printf "%s\n" "$DSYMUTIL" >&6; }
6663 else
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665 printf "%s\n" "no" >&6; }
6670 if test -z "$ac_cv_prog_DSYMUTIL"; then
6671 ac_ct_DSYMUTIL=$DSYMUTIL
6672 # Extract the first word of "dsymutil", so it can be a program name with args.
6673 set dummy dsymutil; ac_word=$2
6674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675 printf %s "checking for $ac_word... " >&6; }
6676 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
6677 then :
6678 printf %s "(cached) " >&6
6679 else $as_nop
6680 if test -n "$ac_ct_DSYMUTIL"; then
6681 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6686 IFS=$as_save_IFS
6687 case $as_dir in #(((
6688 '') as_dir=./ ;;
6689 */) ;;
6690 *) as_dir=$as_dir/ ;;
6691 esac
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6694 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6696 break 2
6698 done
6699 done
6700 IFS=$as_save_IFS
6704 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6705 if test -n "$ac_ct_DSYMUTIL"; then
6706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6707 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
6708 else
6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710 printf "%s\n" "no" >&6; }
6713 if test "x$ac_ct_DSYMUTIL" = x; then
6714 DSYMUTIL=":"
6715 else
6716 case $cross_compiling:$ac_tool_warned in
6717 yes:)
6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6719 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6720 ac_tool_warned=yes ;;
6721 esac
6722 DSYMUTIL=$ac_ct_DSYMUTIL
6724 else
6725 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6728 if test -n "$ac_tool_prefix"; then
6729 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6730 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6732 printf %s "checking for $ac_word... " >&6; }
6733 if test ${ac_cv_prog_NMEDIT+y}
6734 then :
6735 printf %s "(cached) " >&6
6736 else $as_nop
6737 if test -n "$NMEDIT"; then
6738 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6739 else
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6743 IFS=$as_save_IFS
6744 case $as_dir in #(((
6745 '') as_dir=./ ;;
6746 */) ;;
6747 *) as_dir=$as_dir/ ;;
6748 esac
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6751 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6753 break 2
6755 done
6756 done
6757 IFS=$as_save_IFS
6761 NMEDIT=$ac_cv_prog_NMEDIT
6762 if test -n "$NMEDIT"; then
6763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6764 printf "%s\n" "$NMEDIT" >&6; }
6765 else
6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767 printf "%s\n" "no" >&6; }
6772 if test -z "$ac_cv_prog_NMEDIT"; then
6773 ac_ct_NMEDIT=$NMEDIT
6774 # Extract the first word of "nmedit", so it can be a program name with args.
6775 set dummy nmedit; ac_word=$2
6776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777 printf %s "checking for $ac_word... " >&6; }
6778 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
6779 then :
6780 printf %s "(cached) " >&6
6781 else $as_nop
6782 if test -n "$ac_ct_NMEDIT"; then
6783 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6784 else
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 for as_dir in $PATH
6788 IFS=$as_save_IFS
6789 case $as_dir in #(((
6790 '') as_dir=./ ;;
6791 */) ;;
6792 *) as_dir=$as_dir/ ;;
6793 esac
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6796 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6798 break 2
6800 done
6801 done
6802 IFS=$as_save_IFS
6806 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6807 if test -n "$ac_ct_NMEDIT"; then
6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6809 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
6810 else
6811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 printf "%s\n" "no" >&6; }
6815 if test "x$ac_ct_NMEDIT" = x; then
6816 NMEDIT=":"
6817 else
6818 case $cross_compiling:$ac_tool_warned in
6819 yes:)
6820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6821 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6822 ac_tool_warned=yes ;;
6823 esac
6824 NMEDIT=$ac_ct_NMEDIT
6826 else
6827 NMEDIT="$ac_cv_prog_NMEDIT"
6830 if test -n "$ac_tool_prefix"; then
6831 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6832 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834 printf %s "checking for $ac_word... " >&6; }
6835 if test ${ac_cv_prog_LIPO+y}
6836 then :
6837 printf %s "(cached) " >&6
6838 else $as_nop
6839 if test -n "$LIPO"; then
6840 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6841 else
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 for as_dir in $PATH
6845 IFS=$as_save_IFS
6846 case $as_dir in #(((
6847 '') as_dir=./ ;;
6848 */) ;;
6849 *) as_dir=$as_dir/ ;;
6850 esac
6851 for ac_exec_ext in '' $ac_executable_extensions; do
6852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6853 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6855 break 2
6857 done
6858 done
6859 IFS=$as_save_IFS
6863 LIPO=$ac_cv_prog_LIPO
6864 if test -n "$LIPO"; then
6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6866 printf "%s\n" "$LIPO" >&6; }
6867 else
6868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 printf "%s\n" "no" >&6; }
6874 if test -z "$ac_cv_prog_LIPO"; then
6875 ac_ct_LIPO=$LIPO
6876 # Extract the first word of "lipo", so it can be a program name with args.
6877 set dummy lipo; ac_word=$2
6878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879 printf %s "checking for $ac_word... " >&6; }
6880 if test ${ac_cv_prog_ac_ct_LIPO+y}
6881 then :
6882 printf %s "(cached) " >&6
6883 else $as_nop
6884 if test -n "$ac_ct_LIPO"; then
6885 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6886 else
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 for as_dir in $PATH
6890 IFS=$as_save_IFS
6891 case $as_dir in #(((
6892 '') as_dir=./ ;;
6893 */) ;;
6894 *) as_dir=$as_dir/ ;;
6895 esac
6896 for ac_exec_ext in '' $ac_executable_extensions; do
6897 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6898 ac_cv_prog_ac_ct_LIPO="lipo"
6899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6900 break 2
6902 done
6903 done
6904 IFS=$as_save_IFS
6908 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6909 if test -n "$ac_ct_LIPO"; then
6910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6911 printf "%s\n" "$ac_ct_LIPO" >&6; }
6912 else
6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914 printf "%s\n" "no" >&6; }
6917 if test "x$ac_ct_LIPO" = x; then
6918 LIPO=":"
6919 else
6920 case $cross_compiling:$ac_tool_warned in
6921 yes:)
6922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6923 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6924 ac_tool_warned=yes ;;
6925 esac
6926 LIPO=$ac_ct_LIPO
6928 else
6929 LIPO="$ac_cv_prog_LIPO"
6932 if test -n "$ac_tool_prefix"; then
6933 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6934 set dummy ${ac_tool_prefix}otool; ac_word=$2
6935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936 printf %s "checking for $ac_word... " >&6; }
6937 if test ${ac_cv_prog_OTOOL+y}
6938 then :
6939 printf %s "(cached) " >&6
6940 else $as_nop
6941 if test -n "$OTOOL"; then
6942 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6943 else
6944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945 for as_dir in $PATH
6947 IFS=$as_save_IFS
6948 case $as_dir in #(((
6949 '') as_dir=./ ;;
6950 */) ;;
6951 *) as_dir=$as_dir/ ;;
6952 esac
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6955 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6957 break 2
6959 done
6960 done
6961 IFS=$as_save_IFS
6965 OTOOL=$ac_cv_prog_OTOOL
6966 if test -n "$OTOOL"; then
6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6968 printf "%s\n" "$OTOOL" >&6; }
6969 else
6970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 printf "%s\n" "no" >&6; }
6976 if test -z "$ac_cv_prog_OTOOL"; then
6977 ac_ct_OTOOL=$OTOOL
6978 # Extract the first word of "otool", so it can be a program name with args.
6979 set dummy otool; ac_word=$2
6980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981 printf %s "checking for $ac_word... " >&6; }
6982 if test ${ac_cv_prog_ac_ct_OTOOL+y}
6983 then :
6984 printf %s "(cached) " >&6
6985 else $as_nop
6986 if test -n "$ac_ct_OTOOL"; then
6987 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6988 else
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6992 IFS=$as_save_IFS
6993 case $as_dir in #(((
6994 '') as_dir=./ ;;
6995 */) ;;
6996 *) as_dir=$as_dir/ ;;
6997 esac
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7000 ac_cv_prog_ac_ct_OTOOL="otool"
7001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7002 break 2
7004 done
7005 done
7006 IFS=$as_save_IFS
7010 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7011 if test -n "$ac_ct_OTOOL"; then
7012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7013 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7014 else
7015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7016 printf "%s\n" "no" >&6; }
7019 if test "x$ac_ct_OTOOL" = x; then
7020 OTOOL=":"
7021 else
7022 case $cross_compiling:$ac_tool_warned in
7023 yes:)
7024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7025 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7026 ac_tool_warned=yes ;;
7027 esac
7028 OTOOL=$ac_ct_OTOOL
7030 else
7031 OTOOL="$ac_cv_prog_OTOOL"
7034 if test -n "$ac_tool_prefix"; then
7035 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7036 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7038 printf %s "checking for $ac_word... " >&6; }
7039 if test ${ac_cv_prog_OTOOL64+y}
7040 then :
7041 printf %s "(cached) " >&6
7042 else $as_nop
7043 if test -n "$OTOOL64"; then
7044 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7045 else
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7049 IFS=$as_save_IFS
7050 case $as_dir in #(((
7051 '') as_dir=./ ;;
7052 */) ;;
7053 *) as_dir=$as_dir/ ;;
7054 esac
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7057 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7059 break 2
7061 done
7062 done
7063 IFS=$as_save_IFS
7067 OTOOL64=$ac_cv_prog_OTOOL64
7068 if test -n "$OTOOL64"; then
7069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7070 printf "%s\n" "$OTOOL64" >&6; }
7071 else
7072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073 printf "%s\n" "no" >&6; }
7078 if test -z "$ac_cv_prog_OTOOL64"; then
7079 ac_ct_OTOOL64=$OTOOL64
7080 # Extract the first word of "otool64", so it can be a program name with args.
7081 set dummy otool64; ac_word=$2
7082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7083 printf %s "checking for $ac_word... " >&6; }
7084 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
7085 then :
7086 printf %s "(cached) " >&6
7087 else $as_nop
7088 if test -n "$ac_ct_OTOOL64"; then
7089 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7090 else
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 for as_dir in $PATH
7094 IFS=$as_save_IFS
7095 case $as_dir in #(((
7096 '') as_dir=./ ;;
7097 */) ;;
7098 *) as_dir=$as_dir/ ;;
7099 esac
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7102 ac_cv_prog_ac_ct_OTOOL64="otool64"
7103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7104 break 2
7106 done
7107 done
7108 IFS=$as_save_IFS
7112 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7113 if test -n "$ac_ct_OTOOL64"; then
7114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7115 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
7116 else
7117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118 printf "%s\n" "no" >&6; }
7121 if test "x$ac_ct_OTOOL64" = x; then
7122 OTOOL64=":"
7123 else
7124 case $cross_compiling:$ac_tool_warned in
7125 yes:)
7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7127 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7128 ac_tool_warned=yes ;;
7129 esac
7130 OTOOL64=$ac_ct_OTOOL64
7132 else
7133 OTOOL64="$ac_cv_prog_OTOOL64"
7162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7163 printf %s "checking for -single_module linker flag... " >&6; }
7164 if test ${lt_cv_apple_cc_single_mod+y}
7165 then :
7166 printf %s "(cached) " >&6
7167 else $as_nop
7168 lt_cv_apple_cc_single_mod=no
7169 if test -z "$LT_MULTI_MODULE"; then
7170 # By default we will add the -single_module flag. You can override
7171 # by either setting the environment variable LT_MULTI_MODULE
7172 # non-empty at configure time, or by adding -multi_module to the
7173 # link flags.
7174 rm -rf libconftest.dylib*
7175 echo "int foo(void){return 1;}" > conftest.c
7176 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7177 -dynamiclib -Wl,-single_module conftest.c" >&5
7178 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7179 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7180 _lt_result=$?
7181 # If there is a non-empty error log, and "single_module"
7182 # appears in it, assume the flag caused a linker warning
7183 if test -s conftest.err && $GREP single_module conftest.err; then
7184 cat conftest.err >&5
7185 # Otherwise, if the output was created with a 0 exit code from
7186 # the compiler, it worked.
7187 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7188 lt_cv_apple_cc_single_mod=yes
7189 else
7190 cat conftest.err >&5
7192 rm -rf libconftest.dylib*
7193 rm -f conftest.*
7196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7197 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
7199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7200 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
7201 if test ${lt_cv_ld_exported_symbols_list+y}
7202 then :
7203 printf %s "(cached) " >&6
7204 else $as_nop
7205 lt_cv_ld_exported_symbols_list=no
7206 save_LDFLAGS=$LDFLAGS
7207 echo "_main" > conftest.sym
7208 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210 /* end confdefs.h. */
7213 main (void)
7217 return 0;
7219 _ACEOF
7220 if ac_fn_c_try_link "$LINENO"
7221 then :
7222 lt_cv_ld_exported_symbols_list=yes
7223 else $as_nop
7224 lt_cv_ld_exported_symbols_list=no
7226 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7227 conftest$ac_exeext conftest.$ac_ext
7228 LDFLAGS=$save_LDFLAGS
7231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7232 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
7234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7235 printf %s "checking for -force_load linker flag... " >&6; }
7236 if test ${lt_cv_ld_force_load+y}
7237 then :
7238 printf %s "(cached) " >&6
7239 else $as_nop
7240 lt_cv_ld_force_load=no
7241 cat > conftest.c << _LT_EOF
7242 int forced_loaded() { return 2;}
7243 _LT_EOF
7244 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7245 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7246 echo "$AR cr libconftest.a conftest.o" >&5
7247 $AR cr libconftest.a conftest.o 2>&5
7248 echo "$RANLIB libconftest.a" >&5
7249 $RANLIB libconftest.a 2>&5
7250 cat > conftest.c << _LT_EOF
7251 int main() { return 0;}
7252 _LT_EOF
7253 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7254 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7255 _lt_result=$?
7256 if test -s conftest.err && $GREP force_load conftest.err; then
7257 cat conftest.err >&5
7258 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7259 lt_cv_ld_force_load=yes
7260 else
7261 cat conftest.err >&5
7263 rm -f conftest.err libconftest.a conftest conftest.c
7264 rm -rf conftest.dSYM
7267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7268 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
7269 case $host_os in
7270 rhapsody* | darwin1.[012])
7271 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7272 darwin1.*)
7273 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7274 darwin*) # darwin 5.x on
7275 # if running on 10.5 or later, the deployment target defaults
7276 # to the OS version, if on x86, and 10.4, the deployment
7277 # target defaults to 10.4. Don't you love it?
7278 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7279 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
7280 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7281 10.[012][,.]*)
7282 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7283 10.*|11.*)
7284 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7285 esac
7287 esac
7288 if test yes = "$lt_cv_apple_cc_single_mod"; then
7289 _lt_dar_single_mod='$single_module'
7291 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7292 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7293 else
7294 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7296 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7297 _lt_dsymutil='~$DSYMUTIL $lib || :'
7298 else
7299 _lt_dsymutil=
7302 esac
7304 # func_munge_path_list VARIABLE PATH
7305 # -----------------------------------
7306 # VARIABLE is name of variable containing _space_ separated list of
7307 # directories to be munged by the contents of PATH, which is string
7308 # having a format:
7309 # "DIR[:DIR]:"
7310 # string "DIR[ DIR]" will be prepended to VARIABLE
7311 # ":DIR[:DIR]"
7312 # string "DIR[ DIR]" will be appended to VARIABLE
7313 # "DIRP[:DIRP]::[DIRA:]DIRA"
7314 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7315 # "DIRA[ DIRA]" will be appended to VARIABLE
7316 # "DIR[:DIR]"
7317 # VARIABLE will be replaced by "DIR[ DIR]"
7318 func_munge_path_list ()
7320 case x$2 in
7324 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7326 x:*)
7327 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7329 *::*)
7330 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7331 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7334 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7336 esac
7339 ac_header= ac_cache=
7340 for ac_item in $ac_header_c_list
7342 if test $ac_cache; then
7343 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
7344 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
7345 printf "%s\n" "#define $ac_item 1" >> confdefs.h
7347 ac_header= ac_cache=
7348 elif test $ac_header; then
7349 ac_cache=$ac_item
7350 else
7351 ac_header=$ac_item
7353 done
7362 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
7363 then :
7365 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
7368 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7370 if test "x$ac_cv_header_dlfcn_h" = xyes
7371 then :
7372 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
7380 # Set options
7384 enable_dlopen=no
7387 enable_win32_dll=no
7390 # Check whether --enable-shared was given.
7391 if test ${enable_shared+y}
7392 then :
7393 enableval=$enable_shared; p=${PACKAGE-default}
7394 case $enableval in
7395 yes) enable_shared=yes ;;
7396 no) enable_shared=no ;;
7398 enable_shared=no
7399 # Look at the argument we got. We use all the common list separators.
7400 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7401 for pkg in $enableval; do
7402 IFS=$lt_save_ifs
7403 if test "X$pkg" = "X$p"; then
7404 enable_shared=yes
7406 done
7407 IFS=$lt_save_ifs
7409 esac
7410 else $as_nop
7411 enable_shared=yes
7422 # Check whether --enable-static was given.
7423 if test ${enable_static+y}
7424 then :
7425 enableval=$enable_static; p=${PACKAGE-default}
7426 case $enableval in
7427 yes) enable_static=yes ;;
7428 no) enable_static=no ;;
7430 enable_static=no
7431 # Look at the argument we got. We use all the common list separators.
7432 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7433 for pkg in $enableval; do
7434 IFS=$lt_save_ifs
7435 if test "X$pkg" = "X$p"; then
7436 enable_static=yes
7438 done
7439 IFS=$lt_save_ifs
7441 esac
7442 else $as_nop
7443 enable_static=yes
7455 # Check whether --with-pic was given.
7456 if test ${with_pic+y}
7457 then :
7458 withval=$with_pic; lt_p=${PACKAGE-default}
7459 case $withval in
7460 yes|no) pic_mode=$withval ;;
7462 pic_mode=default
7463 # Look at the argument we got. We use all the common list separators.
7464 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7465 for lt_pkg in $withval; do
7466 IFS=$lt_save_ifs
7467 if test "X$lt_pkg" = "X$lt_p"; then
7468 pic_mode=yes
7470 done
7471 IFS=$lt_save_ifs
7473 esac
7474 else $as_nop
7475 pic_mode=default
7485 # Check whether --enable-fast-install was given.
7486 if test ${enable_fast_install+y}
7487 then :
7488 enableval=$enable_fast_install; p=${PACKAGE-default}
7489 case $enableval in
7490 yes) enable_fast_install=yes ;;
7491 no) enable_fast_install=no ;;
7493 enable_fast_install=no
7494 # Look at the argument we got. We use all the common list separators.
7495 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7496 for pkg in $enableval; do
7497 IFS=$lt_save_ifs
7498 if test "X$pkg" = "X$p"; then
7499 enable_fast_install=yes
7501 done
7502 IFS=$lt_save_ifs
7504 esac
7505 else $as_nop
7506 enable_fast_install=yes
7516 shared_archive_member_spec=
7517 case $host,$enable_shared in
7518 power*-*-aix[5-9]*,yes)
7519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7520 printf %s "checking which variant of shared library versioning to provide... " >&6; }
7522 # Check whether --with-aix-soname was given.
7523 if test ${with_aix_soname+y}
7524 then :
7525 withval=$with_aix_soname; case $withval in
7526 aix|svr4|both)
7529 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7531 esac
7532 lt_cv_with_aix_soname=$with_aix_soname
7533 else $as_nop
7534 if test ${lt_cv_with_aix_soname+y}
7535 then :
7536 printf %s "(cached) " >&6
7537 else $as_nop
7538 lt_cv_with_aix_soname=aix
7541 with_aix_soname=$lt_cv_with_aix_soname
7544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7545 printf "%s\n" "$with_aix_soname" >&6; }
7546 if test aix != "$with_aix_soname"; then
7547 # For the AIX way of multilib, we name the shared archive member
7548 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7549 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7550 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7551 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7552 if test 64 = "${OBJECT_MODE-32}"; then
7553 shared_archive_member_spec=shr_64
7554 else
7555 shared_archive_member_spec=shr
7560 with_aix_soname=aix
7562 esac
7573 # This can be used to rebuild libtool when needed
7574 LIBTOOL_DEPS=$ltmain
7576 # Always use our own libtool.
7577 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7608 test -z "$LN_S" && LN_S="ln -s"
7623 if test -n "${ZSH_VERSION+set}"; then
7624 setopt NO_GLOB_SUBST
7627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7628 printf %s "checking for objdir... " >&6; }
7629 if test ${lt_cv_objdir+y}
7630 then :
7631 printf %s "(cached) " >&6
7632 else $as_nop
7633 rm -f .libs 2>/dev/null
7634 mkdir .libs 2>/dev/null
7635 if test -d .libs; then
7636 lt_cv_objdir=.libs
7637 else
7638 # MS-DOS does not allow filenames that begin with a dot.
7639 lt_cv_objdir=_libs
7641 rmdir .libs 2>/dev/null
7643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7644 printf "%s\n" "$lt_cv_objdir" >&6; }
7645 objdir=$lt_cv_objdir
7651 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
7656 case $host_os in
7657 aix3*)
7658 # AIX sometimes has problems with the GCC collect2 program. For some
7659 # reason, if we set the COLLECT_NAMES environment variable, the problems
7660 # vanish in a puff of smoke.
7661 if test set != "${COLLECT_NAMES+set}"; then
7662 COLLECT_NAMES=
7663 export COLLECT_NAMES
7666 esac
7668 # Global variables:
7669 ofile=libtool
7670 can_build_shared=yes
7672 # All known linkers require a '.a' archive for static linking (except MSVC,
7673 # which needs '.lib').
7674 libext=a
7676 with_gnu_ld=$lt_cv_prog_gnu_ld
7678 old_CC=$CC
7679 old_CFLAGS=$CFLAGS
7681 # Set sane defaults for various variables
7682 test -z "$CC" && CC=cc
7683 test -z "$LTCC" && LTCC=$CC
7684 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7685 test -z "$LD" && LD=ld
7686 test -z "$ac_objext" && ac_objext=o
7688 func_cc_basename $compiler
7689 cc_basename=$func_cc_basename_result
7692 # Only perform the check for file, if the check method requires it
7693 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7694 case $deplibs_check_method in
7695 file_magic*)
7696 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7698 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
7699 if test ${lt_cv_path_MAGIC_CMD+y}
7700 then :
7701 printf %s "(cached) " >&6
7702 else $as_nop
7703 case $MAGIC_CMD in
7704 [\\/*] | ?:[\\/]*)
7705 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7708 lt_save_MAGIC_CMD=$MAGIC_CMD
7709 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7710 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7711 for ac_dir in $ac_dummy; do
7712 IFS=$lt_save_ifs
7713 test -z "$ac_dir" && ac_dir=.
7714 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7715 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7716 if test -n "$file_magic_test_file"; then
7717 case $deplibs_check_method in
7718 "file_magic "*)
7719 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7720 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7721 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7722 $EGREP "$file_magic_regex" > /dev/null; then
7724 else
7725 cat <<_LT_EOF 1>&2
7727 *** Warning: the command libtool uses to detect shared libraries,
7728 *** $file_magic_cmd, produces output that libtool cannot recognize.
7729 *** The result is that libtool may fail to recognize shared libraries
7730 *** as such. This will affect the creation of libtool libraries that
7731 *** depend on shared libraries, but programs linked with such libtool
7732 *** libraries will work regardless of this problem. Nevertheless, you
7733 *** may want to report the problem to your system manager and/or to
7734 *** bug-libtool@gnu.org
7736 _LT_EOF
7737 fi ;;
7738 esac
7740 break
7742 done
7743 IFS=$lt_save_ifs
7744 MAGIC_CMD=$lt_save_MAGIC_CMD
7746 esac
7749 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7750 if test -n "$MAGIC_CMD"; then
7751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7752 printf "%s\n" "$MAGIC_CMD" >&6; }
7753 else
7754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755 printf "%s\n" "no" >&6; }
7762 if test -z "$lt_cv_path_MAGIC_CMD"; then
7763 if test -n "$ac_tool_prefix"; then
7764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7765 printf %s "checking for file... " >&6; }
7766 if test ${lt_cv_path_MAGIC_CMD+y}
7767 then :
7768 printf %s "(cached) " >&6
7769 else $as_nop
7770 case $MAGIC_CMD in
7771 [\\/*] | ?:[\\/]*)
7772 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7775 lt_save_MAGIC_CMD=$MAGIC_CMD
7776 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7777 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7778 for ac_dir in $ac_dummy; do
7779 IFS=$lt_save_ifs
7780 test -z "$ac_dir" && ac_dir=.
7781 if test -f "$ac_dir/file"; then
7782 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7783 if test -n "$file_magic_test_file"; then
7784 case $deplibs_check_method in
7785 "file_magic "*)
7786 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7787 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7788 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7789 $EGREP "$file_magic_regex" > /dev/null; then
7791 else
7792 cat <<_LT_EOF 1>&2
7794 *** Warning: the command libtool uses to detect shared libraries,
7795 *** $file_magic_cmd, produces output that libtool cannot recognize.
7796 *** The result is that libtool may fail to recognize shared libraries
7797 *** as such. This will affect the creation of libtool libraries that
7798 *** depend on shared libraries, but programs linked with such libtool
7799 *** libraries will work regardless of this problem. Nevertheless, you
7800 *** may want to report the problem to your system manager and/or to
7801 *** bug-libtool@gnu.org
7803 _LT_EOF
7804 fi ;;
7805 esac
7807 break
7809 done
7810 IFS=$lt_save_ifs
7811 MAGIC_CMD=$lt_save_MAGIC_CMD
7813 esac
7816 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7817 if test -n "$MAGIC_CMD"; then
7818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7819 printf "%s\n" "$MAGIC_CMD" >&6; }
7820 else
7821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 printf "%s\n" "no" >&6; }
7826 else
7827 MAGIC_CMD=:
7833 esac
7835 # Use C for the default configuration in the libtool script
7837 lt_save_CC=$CC
7838 ac_ext=c
7839 ac_cpp='$CPP $CPPFLAGS'
7840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7845 # Source file extension for C test sources.
7846 ac_ext=c
7848 # Object file extension for compiled C test sources.
7849 objext=o
7850 objext=$objext
7852 # Code to be used in simple compile tests
7853 lt_simple_compile_test_code="int some_variable = 0;"
7855 # Code to be used in simple link tests
7856 lt_simple_link_test_code='int main(){return(0);}'
7864 # If no C compiler was specified, use CC.
7865 LTCC=${LTCC-"$CC"}
7867 # If no C compiler flags were specified, use CFLAGS.
7868 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7870 # Allow CC to be a program name with arguments.
7871 compiler=$CC
7873 # Save the default compiler, since it gets overwritten when the other
7874 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7875 compiler_DEFAULT=$CC
7877 # save warnings/boilerplate of simple test code
7878 ac_outfile=conftest.$ac_objext
7879 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7880 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7881 _lt_compiler_boilerplate=`cat conftest.err`
7882 $RM conftest*
7884 ac_outfile=conftest.$ac_objext
7885 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7886 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7887 _lt_linker_boilerplate=`cat conftest.err`
7888 $RM -r conftest*
7891 if test -n "$compiler"; then
7893 lt_prog_compiler_no_builtin_flag=
7895 if test yes = "$GCC"; then
7896 case $cc_basename in
7897 nvcc*)
7898 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7900 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7901 esac
7903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7904 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7905 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
7906 then :
7907 printf %s "(cached) " >&6
7908 else $as_nop
7909 lt_cv_prog_compiler_rtti_exceptions=no
7910 ac_outfile=conftest.$ac_objext
7911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7912 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
7913 # Insert the option either (1) after the last *FLAGS variable, or
7914 # (2) before a word containing "conftest.", or (3) at the end.
7915 # Note that $ac_compile itself does not contain backslashes and begins
7916 # with a dollar sign (not a hyphen), so the echo should work correctly.
7917 # The option is referenced via a variable to avoid confusing sed.
7918 lt_compile=`echo "$ac_compile" | $SED \
7919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7921 -e 's:$: $lt_compiler_flag:'`
7922 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7923 (eval "$lt_compile" 2>conftest.err)
7924 ac_status=$?
7925 cat conftest.err >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 if (exit $ac_status) && test -s "$ac_outfile"; then
7928 # The compiler can only warn and ignore the option if not recognized
7929 # So say no if there are warnings other than the usual output.
7930 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7932 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7933 lt_cv_prog_compiler_rtti_exceptions=yes
7936 $RM conftest*
7939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7940 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7942 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7943 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7944 else
7955 lt_prog_compiler_wl=
7956 lt_prog_compiler_pic=
7957 lt_prog_compiler_static=
7960 if test yes = "$GCC"; then
7961 lt_prog_compiler_wl='-Wl,'
7962 lt_prog_compiler_static='-static'
7964 case $host_os in
7965 aix*)
7966 # All AIX code is PIC.
7967 if test ia64 = "$host_cpu"; then
7968 # AIX 5 now supports IA64 processor
7969 lt_prog_compiler_static='-Bstatic'
7971 lt_prog_compiler_pic='-fPIC'
7974 amigaos*)
7975 case $host_cpu in
7976 powerpc)
7977 # see comment about AmigaOS4 .so support
7978 lt_prog_compiler_pic='-fPIC'
7980 m68k)
7981 # FIXME: we need at least 68020 code to build shared libraries, but
7982 # adding the '-m68020' flag to GCC prevents building anything better,
7983 # like '-m68040'.
7984 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7986 esac
7989 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7990 # PIC is the default for these OSes.
7993 mingw* | cygwin* | pw32* | os2* | cegcc*)
7994 # This hack is so that the source file can tell whether it is being
7995 # built for inclusion in a dll (and should export symbols for example).
7996 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7997 # (--disable-auto-import) libraries
7998 lt_prog_compiler_pic='-DDLL_EXPORT'
7999 case $host_os in
8000 os2*)
8001 lt_prog_compiler_static='$wl-static'
8003 esac
8006 darwin* | rhapsody*)
8007 # PIC is the default on this platform
8008 # Common symbols not allowed in MH_DYLIB files
8009 lt_prog_compiler_pic='-fno-common'
8012 haiku*)
8013 # PIC is the default for Haiku.
8014 # The "-static" flag exists, but is broken.
8015 lt_prog_compiler_static=
8018 hpux*)
8019 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8020 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8021 # sets the default TLS model and affects inlining.
8022 case $host_cpu in
8023 hppa*64*)
8024 # +Z the default
8027 lt_prog_compiler_pic='-fPIC'
8029 esac
8032 interix[3-9]*)
8033 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8034 # Instead, we relocate shared libraries at runtime.
8037 msdosdjgpp*)
8038 # Just because we use GCC doesn't mean we suddenly get shared libraries
8039 # on systems that don't support them.
8040 lt_prog_compiler_can_build_shared=no
8041 enable_shared=no
8044 *nto* | *qnx*)
8045 # QNX uses GNU C++, but need to define -shared option too, otherwise
8046 # it will coredump.
8047 lt_prog_compiler_pic='-fPIC -shared'
8050 sysv4*MP*)
8051 if test -d /usr/nec; then
8052 lt_prog_compiler_pic=-Kconform_pic
8057 lt_prog_compiler_pic='-fPIC'
8059 esac
8061 case $cc_basename in
8062 nvcc*) # Cuda Compiler Driver 2.2
8063 lt_prog_compiler_wl='-Xlinker '
8064 if test -n "$lt_prog_compiler_pic"; then
8065 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8068 esac
8069 else
8070 # PORTME Check for flag to pass linker flags through the system compiler.
8071 case $host_os in
8072 aix*)
8073 lt_prog_compiler_wl='-Wl,'
8074 if test ia64 = "$host_cpu"; then
8075 # AIX 5 now supports IA64 processor
8076 lt_prog_compiler_static='-Bstatic'
8077 else
8078 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8082 darwin* | rhapsody*)
8083 # PIC is the default on this platform
8084 # Common symbols not allowed in MH_DYLIB files
8085 lt_prog_compiler_pic='-fno-common'
8086 case $cc_basename in
8087 nagfor*)
8088 # NAG Fortran compiler
8089 lt_prog_compiler_wl='-Wl,-Wl,,'
8090 lt_prog_compiler_pic='-PIC'
8091 lt_prog_compiler_static='-Bstatic'
8093 esac
8096 mingw* | cygwin* | pw32* | os2* | cegcc*)
8097 # This hack is so that the source file can tell whether it is being
8098 # built for inclusion in a dll (and should export symbols for example).
8099 lt_prog_compiler_pic='-DDLL_EXPORT'
8100 case $host_os in
8101 os2*)
8102 lt_prog_compiler_static='$wl-static'
8104 esac
8107 hpux9* | hpux10* | hpux11*)
8108 lt_prog_compiler_wl='-Wl,'
8109 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8110 # not for PA HP-UX.
8111 case $host_cpu in
8112 hppa*64*|ia64*)
8113 # +Z the default
8116 lt_prog_compiler_pic='+Z'
8118 esac
8119 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8120 lt_prog_compiler_static='$wl-a ${wl}archive'
8123 irix5* | irix6* | nonstopux*)
8124 lt_prog_compiler_wl='-Wl,'
8125 # PIC (with -KPIC) is the default.
8126 lt_prog_compiler_static='-non_shared'
8129 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8130 case $cc_basename in
8131 # old Intel for x86_64, which still supported -KPIC.
8132 ecc*)
8133 lt_prog_compiler_wl='-Wl,'
8134 lt_prog_compiler_pic='-KPIC'
8135 lt_prog_compiler_static='-static'
8137 # flang / f18. f95 an alias for gfortran or flang on Debian
8138 flang* | f18* | f95*)
8139 lt_prog_compiler_wl='-Wl,'
8140 lt_prog_compiler_pic='-fPIC'
8141 lt_prog_compiler_static='-static'
8143 # icc used to be incompatible with GCC.
8144 # ICC 10 doesn't accept -KPIC any more.
8145 icc* | ifort*)
8146 lt_prog_compiler_wl='-Wl,'
8147 lt_prog_compiler_pic='-fPIC'
8148 lt_prog_compiler_static='-static'
8150 # Lahey Fortran 8.1.
8151 lf95*)
8152 lt_prog_compiler_wl='-Wl,'
8153 lt_prog_compiler_pic='--shared'
8154 lt_prog_compiler_static='--static'
8156 nagfor*)
8157 # NAG Fortran compiler
8158 lt_prog_compiler_wl='-Wl,-Wl,,'
8159 lt_prog_compiler_pic='-PIC'
8160 lt_prog_compiler_static='-Bstatic'
8162 tcc*)
8163 # Fabrice Bellard et al's Tiny C Compiler
8164 lt_prog_compiler_wl='-Wl,'
8165 lt_prog_compiler_pic='-fPIC'
8166 lt_prog_compiler_static='-static'
8168 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8169 # Portland Group compilers (*not* the Pentium gcc compiler,
8170 # which looks to be a dead project)
8171 lt_prog_compiler_wl='-Wl,'
8172 lt_prog_compiler_pic='-fpic'
8173 lt_prog_compiler_static='-Bstatic'
8175 ccc*)
8176 lt_prog_compiler_wl='-Wl,'
8177 # All Alpha code is PIC.
8178 lt_prog_compiler_static='-non_shared'
8180 xl* | bgxl* | bgf* | mpixl*)
8181 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8182 lt_prog_compiler_wl='-Wl,'
8183 lt_prog_compiler_pic='-qpic'
8184 lt_prog_compiler_static='-qstaticlink'
8187 case `$CC -V 2>&1 | sed 5q` in
8188 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8189 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8190 lt_prog_compiler_pic='-KPIC'
8191 lt_prog_compiler_static='-Bstatic'
8192 lt_prog_compiler_wl=''
8194 *Sun\ F* | *Sun*Fortran*)
8195 lt_prog_compiler_pic='-KPIC'
8196 lt_prog_compiler_static='-Bstatic'
8197 lt_prog_compiler_wl='-Qoption ld '
8199 *Sun\ C*)
8200 # Sun C 5.9
8201 lt_prog_compiler_pic='-KPIC'
8202 lt_prog_compiler_static='-Bstatic'
8203 lt_prog_compiler_wl='-Wl,'
8205 *Intel*\ [CF]*Compiler*)
8206 lt_prog_compiler_wl='-Wl,'
8207 lt_prog_compiler_pic='-fPIC'
8208 lt_prog_compiler_static='-static'
8210 *Portland\ Group*)
8211 lt_prog_compiler_wl='-Wl,'
8212 lt_prog_compiler_pic='-fpic'
8213 lt_prog_compiler_static='-Bstatic'
8215 esac
8217 esac
8220 newsos6)
8221 lt_prog_compiler_pic='-KPIC'
8222 lt_prog_compiler_static='-Bstatic'
8225 *nto* | *qnx*)
8226 # QNX uses GNU C++, but need to define -shared option too, otherwise
8227 # it will coredump.
8228 lt_prog_compiler_pic='-fPIC -shared'
8231 osf3* | osf4* | osf5*)
8232 lt_prog_compiler_wl='-Wl,'
8233 # All OSF/1 code is PIC.
8234 lt_prog_compiler_static='-non_shared'
8237 rdos*)
8238 lt_prog_compiler_static='-non_shared'
8241 solaris*)
8242 lt_prog_compiler_pic='-KPIC'
8243 lt_prog_compiler_static='-Bstatic'
8244 case $cc_basename in
8245 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8246 lt_prog_compiler_wl='-Qoption ld ';;
8248 lt_prog_compiler_wl='-Wl,';;
8249 esac
8252 sunos4*)
8253 lt_prog_compiler_wl='-Qoption ld '
8254 lt_prog_compiler_pic='-PIC'
8255 lt_prog_compiler_static='-Bstatic'
8258 sysv4 | sysv4.2uw2* | sysv4.3*)
8259 lt_prog_compiler_wl='-Wl,'
8260 lt_prog_compiler_pic='-KPIC'
8261 lt_prog_compiler_static='-Bstatic'
8264 sysv4*MP*)
8265 if test -d /usr/nec; then
8266 lt_prog_compiler_pic='-Kconform_pic'
8267 lt_prog_compiler_static='-Bstatic'
8271 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8272 lt_prog_compiler_wl='-Wl,'
8273 lt_prog_compiler_pic='-KPIC'
8274 lt_prog_compiler_static='-Bstatic'
8277 unicos*)
8278 lt_prog_compiler_wl='-Wl,'
8279 lt_prog_compiler_can_build_shared=no
8282 uts4*)
8283 lt_prog_compiler_pic='-pic'
8284 lt_prog_compiler_static='-Bstatic'
8288 lt_prog_compiler_can_build_shared=no
8290 esac
8293 case $host_os in
8294 # For platforms that do not support PIC, -DPIC is meaningless:
8295 *djgpp*)
8296 lt_prog_compiler_pic=
8299 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8301 esac
8303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8304 printf %s "checking for $compiler option to produce PIC... " >&6; }
8305 if test ${lt_cv_prog_compiler_pic+y}
8306 then :
8307 printf %s "(cached) " >&6
8308 else $as_nop
8309 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8312 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
8313 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8316 # Check to make sure the PIC flag actually works.
8318 if test -n "$lt_prog_compiler_pic"; then
8319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8320 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8321 if test ${lt_cv_prog_compiler_pic_works+y}
8322 then :
8323 printf %s "(cached) " >&6
8324 else $as_nop
8325 lt_cv_prog_compiler_pic_works=no
8326 ac_outfile=conftest.$ac_objext
8327 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8328 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8329 # Insert the option either (1) after the last *FLAGS variable, or
8330 # (2) before a word containing "conftest.", or (3) at the end.
8331 # Note that $ac_compile itself does not contain backslashes and begins
8332 # with a dollar sign (not a hyphen), so the echo should work correctly.
8333 # The option is referenced via a variable to avoid confusing sed.
8334 lt_compile=`echo "$ac_compile" | $SED \
8335 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8336 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8337 -e 's:$: $lt_compiler_flag:'`
8338 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8339 (eval "$lt_compile" 2>conftest.err)
8340 ac_status=$?
8341 cat conftest.err >&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 if (exit $ac_status) && test -s "$ac_outfile"; then
8344 # The compiler can only warn and ignore the option if not recognized
8345 # So say no if there are warnings other than the usual output.
8346 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8347 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8348 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8349 lt_cv_prog_compiler_pic_works=yes
8352 $RM conftest*
8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8356 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
8358 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8359 case $lt_prog_compiler_pic in
8360 "" | " "*) ;;
8361 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8362 esac
8363 else
8364 lt_prog_compiler_pic=
8365 lt_prog_compiler_can_build_shared=no
8381 # Check to make sure the static flag actually works.
8383 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8385 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8386 if test ${lt_cv_prog_compiler_static_works+y}
8387 then :
8388 printf %s "(cached) " >&6
8389 else $as_nop
8390 lt_cv_prog_compiler_static_works=no
8391 save_LDFLAGS=$LDFLAGS
8392 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8393 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8394 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8395 # The linker can only warn and ignore the option if not recognized
8396 # So say no if there are warnings
8397 if test -s conftest.err; then
8398 # Append any errors to the config.log.
8399 cat conftest.err 1>&5
8400 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8401 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8402 if diff conftest.exp conftest.er2 >/dev/null; then
8403 lt_cv_prog_compiler_static_works=yes
8405 else
8406 lt_cv_prog_compiler_static_works=yes
8409 $RM -r conftest*
8410 LDFLAGS=$save_LDFLAGS
8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8414 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
8416 if test yes = "$lt_cv_prog_compiler_static_works"; then
8418 else
8419 lt_prog_compiler_static=
8428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8429 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8430 if test ${lt_cv_prog_compiler_c_o+y}
8431 then :
8432 printf %s "(cached) " >&6
8433 else $as_nop
8434 lt_cv_prog_compiler_c_o=no
8435 $RM -r conftest 2>/dev/null
8436 mkdir conftest
8437 cd conftest
8438 mkdir out
8439 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8441 lt_compiler_flag="-o out/conftest2.$ac_objext"
8442 # Insert the option either (1) after the last *FLAGS variable, or
8443 # (2) before a word containing "conftest.", or (3) at the end.
8444 # Note that $ac_compile itself does not contain backslashes and begins
8445 # with a dollar sign (not a hyphen), so the echo should work correctly.
8446 lt_compile=`echo "$ac_compile" | $SED \
8447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8449 -e 's:$: $lt_compiler_flag:'`
8450 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8451 (eval "$lt_compile" 2>out/conftest.err)
8452 ac_status=$?
8453 cat out/conftest.err >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8456 then
8457 # The compiler can only warn and ignore the option if not recognized
8458 # So say no if there are warnings
8459 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8460 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8461 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8462 lt_cv_prog_compiler_c_o=yes
8465 chmod u+w . 2>&5
8466 $RM conftest*
8467 # SGI C++ compiler will create directory out/ii_files/ for
8468 # template instantiation
8469 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8470 $RM out/* && rmdir out
8471 cd ..
8472 $RM -r conftest
8473 $RM conftest*
8476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8477 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
8484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8485 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8486 if test ${lt_cv_prog_compiler_c_o+y}
8487 then :
8488 printf %s "(cached) " >&6
8489 else $as_nop
8490 lt_cv_prog_compiler_c_o=no
8491 $RM -r conftest 2>/dev/null
8492 mkdir conftest
8493 cd conftest
8494 mkdir out
8495 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8497 lt_compiler_flag="-o out/conftest2.$ac_objext"
8498 # Insert the option either (1) after the last *FLAGS variable, or
8499 # (2) before a word containing "conftest.", or (3) at the end.
8500 # Note that $ac_compile itself does not contain backslashes and begins
8501 # with a dollar sign (not a hyphen), so the echo should work correctly.
8502 lt_compile=`echo "$ac_compile" | $SED \
8503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8505 -e 's:$: $lt_compiler_flag:'`
8506 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8507 (eval "$lt_compile" 2>out/conftest.err)
8508 ac_status=$?
8509 cat out/conftest.err >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8512 then
8513 # The compiler can only warn and ignore the option if not recognized
8514 # So say no if there are warnings
8515 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8516 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8517 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8518 lt_cv_prog_compiler_c_o=yes
8521 chmod u+w . 2>&5
8522 $RM conftest*
8523 # SGI C++ compiler will create directory out/ii_files/ for
8524 # template instantiation
8525 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8526 $RM out/* && rmdir out
8527 cd ..
8528 $RM -r conftest
8529 $RM conftest*
8532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8533 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
8538 hard_links=nottested
8539 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8540 # do not overwrite the value of need_locks provided by the user
8541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8542 printf %s "checking if we can lock with hard links... " >&6; }
8543 hard_links=yes
8544 $RM conftest*
8545 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8546 touch conftest.a
8547 ln conftest.a conftest.b 2>&5 || hard_links=no
8548 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8550 printf "%s\n" "$hard_links" >&6; }
8551 if test no = "$hard_links"; then
8552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8553 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8554 need_locks=warn
8556 else
8557 need_locks=no
8565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8566 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8568 runpath_var=
8569 allow_undefined_flag=
8570 always_export_symbols=no
8571 archive_cmds=
8572 archive_expsym_cmds=
8573 compiler_needs_object=no
8574 enable_shared_with_static_runtimes=no
8575 export_dynamic_flag_spec=
8576 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8577 hardcode_automatic=no
8578 hardcode_direct=no
8579 hardcode_direct_absolute=no
8580 hardcode_libdir_flag_spec=
8581 hardcode_libdir_separator=
8582 hardcode_minus_L=no
8583 hardcode_shlibpath_var=unsupported
8584 inherit_rpath=no
8585 link_all_deplibs=unknown
8586 module_cmds=
8587 module_expsym_cmds=
8588 old_archive_from_new_cmds=
8589 old_archive_from_expsyms_cmds=
8590 thread_safe_flag_spec=
8591 whole_archive_flag_spec=
8592 # include_expsyms should be a list of space-separated symbols to be *always*
8593 # included in the symbol list
8594 include_expsyms=
8595 # exclude_expsyms can be an extended regexp of symbols to exclude
8596 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8597 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8598 # as well as any symbol that contains 'd'.
8599 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8600 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8601 # platforms (ab)use it in PIC code, but their linkers get confused if
8602 # the symbol is explicitly referenced. Since portable code cannot
8603 # rely on this symbol name, it's probably fine to never include it in
8604 # preloaded symbol tables.
8605 # Exclude shared library initialization/finalization symbols.
8606 extract_expsyms_cmds=
8608 case $host_os in
8609 cygwin* | mingw* | pw32* | cegcc*)
8610 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8611 # When not using gcc, we currently assume that we are using
8612 # Microsoft Visual C++.
8613 if test yes != "$GCC"; then
8614 with_gnu_ld=no
8617 interix*)
8618 # we just hope/assume this is gcc and not c89 (= MSVC++)
8619 with_gnu_ld=yes
8621 openbsd* | bitrig*)
8622 with_gnu_ld=no
8624 linux* | k*bsd*-gnu | gnu*)
8625 link_all_deplibs=no
8627 esac
8629 ld_shlibs=yes
8631 # On some targets, GNU ld is compatible enough with the native linker
8632 # that we're better off using the native interface for both.
8633 lt_use_gnu_ld_interface=no
8634 if test yes = "$with_gnu_ld"; then
8635 case $host_os in
8636 aix*)
8637 # The AIX port of GNU ld has always aspired to compatibility
8638 # with the native linker. However, as the warning in the GNU ld
8639 # block says, versions before 2.19.5* couldn't really create working
8640 # shared libraries, regardless of the interface used.
8641 case `$LD -v 2>&1` in
8642 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8643 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8644 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8646 lt_use_gnu_ld_interface=yes
8648 esac
8651 lt_use_gnu_ld_interface=yes
8653 esac
8656 if test yes = "$lt_use_gnu_ld_interface"; then
8657 # If archive_cmds runs LD, not CC, wlarc should be empty
8658 wlarc='$wl'
8660 # Set some defaults for GNU ld with shared library support. These
8661 # are reset later if shared libraries are not supported. Putting them
8662 # here allows them to be overridden if necessary.
8663 runpath_var=LD_RUN_PATH
8664 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8665 export_dynamic_flag_spec='$wl--export-dynamic'
8666 # ancient GNU ld didn't support --whole-archive et. al.
8667 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8668 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8669 else
8670 whole_archive_flag_spec=
8672 supports_anon_versioning=no
8673 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8674 *GNU\ gold*) supports_anon_versioning=yes ;;
8675 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8676 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8677 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8678 *\ 2.11.*) ;; # other 2.11 versions
8679 *) supports_anon_versioning=yes ;;
8680 esac
8682 # See if GNU ld supports shared libraries.
8683 case $host_os in
8684 aix[3-9]*)
8685 # On AIX/PPC, the GNU linker is very broken
8686 if test ia64 != "$host_cpu"; then
8687 ld_shlibs=no
8688 cat <<_LT_EOF 1>&2
8690 *** Warning: the GNU linker, at least up to release 2.19, is reported
8691 *** to be unable to reliably create shared libraries on AIX.
8692 *** Therefore, libtool is disabling shared libraries support. If you
8693 *** really care for shared libraries, you may want to install binutils
8694 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8695 *** You will then need to restart the configuration process.
8697 _LT_EOF
8701 amigaos*)
8702 case $host_cpu in
8703 powerpc)
8704 # see comment about AmigaOS4 .so support
8705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8706 archive_expsym_cmds=''
8708 m68k)
8709 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8710 hardcode_libdir_flag_spec='-L$libdir'
8711 hardcode_minus_L=yes
8713 esac
8716 beos*)
8717 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8718 allow_undefined_flag=unsupported
8719 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8720 # support --undefined. This deserves some investigation. FIXME
8721 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8722 else
8723 ld_shlibs=no
8727 cygwin* | mingw* | pw32* | cegcc*)
8728 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8729 # as there is no search path for DLLs.
8730 hardcode_libdir_flag_spec='-L$libdir'
8731 export_dynamic_flag_spec='$wl--export-all-symbols'
8732 allow_undefined_flag=unsupported
8733 always_export_symbols=no
8734 enable_shared_with_static_runtimes=yes
8735 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8736 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8738 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8740 # If the export-symbols file already is a .def file, use it as
8741 # is; otherwise, prepend EXPORTS...
8742 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8743 cp $export_symbols $output_objdir/$soname.def;
8744 else
8745 echo EXPORTS > $output_objdir/$soname.def;
8746 cat $export_symbols >> $output_objdir/$soname.def;
8748 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8749 else
8750 ld_shlibs=no
8754 haiku*)
8755 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8756 link_all_deplibs=yes
8759 os2*)
8760 hardcode_libdir_flag_spec='-L$libdir'
8761 hardcode_minus_L=yes
8762 allow_undefined_flag=unsupported
8763 shrext_cmds=.dll
8764 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8765 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8766 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8767 $ECHO EXPORTS >> $output_objdir/$libname.def~
8768 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8769 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8770 emximp -o $lib $output_objdir/$libname.def'
8771 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8772 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8773 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8774 $ECHO EXPORTS >> $output_objdir/$libname.def~
8775 prefix_cmds="$SED"~
8776 if test EXPORTS = "`$SED 1q $export_symbols`"; then
8777 prefix_cmds="$prefix_cmds -e 1d";
8779 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8780 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8781 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8782 emximp -o $lib $output_objdir/$libname.def'
8783 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8784 enable_shared_with_static_runtimes=yes
8787 interix[3-9]*)
8788 hardcode_direct=no
8789 hardcode_shlibpath_var=no
8790 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8791 export_dynamic_flag_spec='$wl-E'
8792 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8793 # Instead, shared libraries are loaded at an image base (0x10000000 by
8794 # default) and relocated if they conflict, which is a slow very memory
8795 # consuming and fragmenting process. To avoid this, we pick a random,
8796 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8797 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8798 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8799 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8802 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8803 tmp_diet=no
8804 if test linux-dietlibc = "$host_os"; then
8805 case $cc_basename in
8806 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8807 esac
8809 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8810 && test no = "$tmp_diet"
8811 then
8812 tmp_addflag=' $pic_flag'
8813 tmp_sharedflag='-shared'
8814 case $cc_basename,$host_cpu in
8815 pgcc*) # Portland Group C compiler
8816 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8817 tmp_addflag=' $pic_flag'
8819 pgf77* | pgf90* | pgf95* | pgfortran*)
8820 # Portland Group f77 and f90 compilers
8821 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8822 tmp_addflag=' $pic_flag -Mnomain' ;;
8823 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8824 tmp_addflag=' -i_dynamic' ;;
8825 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8826 tmp_addflag=' -i_dynamic -nofor_main' ;;
8827 ifc* | ifort*) # Intel Fortran compiler
8828 tmp_addflag=' -nofor_main' ;;
8829 lf95*) # Lahey Fortran 8.1
8830 whole_archive_flag_spec=
8831 tmp_sharedflag='--shared' ;;
8832 nagfor*) # NAGFOR 5.3
8833 tmp_sharedflag='-Wl,-shared' ;;
8834 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8835 tmp_sharedflag='-qmkshrobj'
8836 tmp_addflag= ;;
8837 nvcc*) # Cuda Compiler Driver 2.2
8838 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8839 compiler_needs_object=yes
8841 esac
8842 case `$CC -V 2>&1 | sed 5q` in
8843 *Sun\ C*) # Sun C 5.9
8844 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8845 compiler_needs_object=yes
8846 tmp_sharedflag='-G' ;;
8847 *Sun\ F*) # Sun Fortran 8.3
8848 tmp_sharedflag='-G' ;;
8849 esac
8850 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8852 if test yes = "$supports_anon_versioning"; then
8853 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8854 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8855 echo "local: *; };" >> $output_objdir/$libname.ver~
8856 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8859 case $cc_basename in
8860 tcc*)
8861 export_dynamic_flag_spec='-rdynamic'
8863 xlf* | bgf* | bgxlf* | mpixlf*)
8864 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8865 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8866 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8867 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8868 if test yes = "$supports_anon_versioning"; then
8869 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8870 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8871 echo "local: *; };" >> $output_objdir/$libname.ver~
8872 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8875 esac
8876 else
8877 ld_shlibs=no
8881 netbsd* | netbsdelf*-gnu)
8882 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8883 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8884 wlarc=
8885 else
8886 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8887 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8891 solaris*)
8892 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8893 ld_shlibs=no
8894 cat <<_LT_EOF 1>&2
8896 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8897 *** create shared libraries on Solaris systems. Therefore, libtool
8898 *** is disabling shared libraries support. We urge you to upgrade GNU
8899 *** binutils to release 2.9.1 or newer. Another option is to modify
8900 *** your PATH or compiler configuration so that the native linker is
8901 *** used, and then restart.
8903 _LT_EOF
8904 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8905 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8906 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8907 else
8908 ld_shlibs=no
8912 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8913 case `$LD -v 2>&1` in
8914 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8915 ld_shlibs=no
8916 cat <<_LT_EOF 1>&2
8918 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8919 *** reliably create shared libraries on SCO systems. Therefore, libtool
8920 *** is disabling shared libraries support. We urge you to upgrade GNU
8921 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8922 *** your PATH or compiler configuration so that the native linker is
8923 *** used, and then restart.
8925 _LT_EOF
8928 # For security reasons, it is highly recommended that you always
8929 # use absolute paths for naming shared libraries, and exclude the
8930 # DT_RUNPATH tag from executables and libraries. But doing so
8931 # requires that you compile everything twice, which is a pain.
8932 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8933 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8934 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8935 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8936 else
8937 ld_shlibs=no
8940 esac
8943 sunos4*)
8944 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8945 wlarc=
8946 hardcode_direct=yes
8947 hardcode_shlibpath_var=no
8951 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8952 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8953 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8954 else
8955 ld_shlibs=no
8958 esac
8960 if test no = "$ld_shlibs"; then
8961 runpath_var=
8962 hardcode_libdir_flag_spec=
8963 export_dynamic_flag_spec=
8964 whole_archive_flag_spec=
8966 else
8967 # PORTME fill in a description of your system's linker (not GNU ld)
8968 case $host_os in
8969 aix3*)
8970 allow_undefined_flag=unsupported
8971 always_export_symbols=yes
8972 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8973 # Note: this linker hardcodes the directories in LIBPATH if there
8974 # are no directories specified by -L.
8975 hardcode_minus_L=yes
8976 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8977 # Neither direct hardcoding nor static linking is supported with a
8978 # broken collect2.
8979 hardcode_direct=unsupported
8983 aix[4-9]*)
8984 if test ia64 = "$host_cpu"; then
8985 # On IA64, the linker does run time linking by default, so we don't
8986 # have to do anything special.
8987 aix_use_runtimelinking=no
8988 exp_sym_flag='-Bexport'
8989 no_entry_flag=
8990 else
8991 # If we're using GNU nm, then we don't want the "-C" option.
8992 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
8993 # Without the "-l" option, or with the "-B" option, AIX nm treats
8994 # weak defined symbols like other global defined symbols, whereas
8995 # GNU nm marks them as "W".
8996 # While the 'weak' keyword is ignored in the Export File, we need
8997 # it in the Import File for the 'aix-soname' feature, so we have
8998 # to replace the "-B" option with "-P" for AIX nm.
8999 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9000 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9001 else
9002 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9004 aix_use_runtimelinking=no
9006 # Test if we are trying to use run time linking or normal
9007 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9008 # have runtime linking enabled, and use it for executables.
9009 # For shared libraries, we enable/disable runtime linking
9010 # depending on the kind of the shared library created -
9011 # when "with_aix_soname,aix_use_runtimelinking" is:
9012 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9013 # "aix,yes" lib.so shared, rtl:yes, for executables
9014 # lib.a static archive
9015 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9016 # lib.a(lib.so.V) shared, rtl:no, for executables
9017 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9018 # lib.a(lib.so.V) shared, rtl:no
9019 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9020 # lib.a static archive
9021 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9022 for ld_flag in $LDFLAGS; do
9023 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9024 aix_use_runtimelinking=yes
9025 break
9027 done
9028 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9029 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9030 # so we don't have lib.a shared libs to link our executables.
9031 # We have to force runtime linking in this case.
9032 aix_use_runtimelinking=yes
9033 LDFLAGS="$LDFLAGS -Wl,-brtl"
9036 esac
9038 exp_sym_flag='-bexport'
9039 no_entry_flag='-bnoentry'
9042 # When large executables or shared objects are built, AIX ld can
9043 # have problems creating the table of contents. If linking a library
9044 # or program results in "error TOC overflow" add -mminimal-toc to
9045 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9046 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9048 archive_cmds=''
9049 hardcode_direct=yes
9050 hardcode_direct_absolute=yes
9051 hardcode_libdir_separator=':'
9052 link_all_deplibs=yes
9053 file_list_spec='$wl-f,'
9054 case $with_aix_soname,$aix_use_runtimelinking in
9055 aix,*) ;; # traditional, no import file
9056 svr4,* | *,yes) # use import file
9057 # The Import File defines what to hardcode.
9058 hardcode_direct=no
9059 hardcode_direct_absolute=no
9061 esac
9063 if test yes = "$GCC"; then
9064 case $host_os in aix4.[012]|aix4.[012].*)
9065 # We only want to do this on AIX 4.2 and lower, the check
9066 # below for broken collect2 doesn't work under 4.3+
9067 collect2name=`$CC -print-prog-name=collect2`
9068 if test -f "$collect2name" &&
9069 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9070 then
9071 # We have reworked collect2
9073 else
9074 # We have old collect2
9075 hardcode_direct=unsupported
9076 # It fails to find uninstalled libraries when the uninstalled
9077 # path is not listed in the libpath. Setting hardcode_minus_L
9078 # to unsupported forces relinking
9079 hardcode_minus_L=yes
9080 hardcode_libdir_flag_spec='-L$libdir'
9081 hardcode_libdir_separator=
9084 esac
9085 shared_flag='-shared'
9086 if test yes = "$aix_use_runtimelinking"; then
9087 shared_flag="$shared_flag "'$wl-G'
9089 # Need to ensure runtime linking is disabled for the traditional
9090 # shared library, or the linker may eventually find shared libraries
9091 # /with/ Import File - we do not want to mix them.
9092 shared_flag_aix='-shared'
9093 shared_flag_svr4='-shared $wl-G'
9094 else
9095 # not using gcc
9096 if test ia64 = "$host_cpu"; then
9097 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9098 # chokes on -Wl,-G. The following line is correct:
9099 shared_flag='-G'
9100 else
9101 if test yes = "$aix_use_runtimelinking"; then
9102 shared_flag='$wl-G'
9103 else
9104 shared_flag='$wl-bM:SRE'
9106 shared_flag_aix='$wl-bM:SRE'
9107 shared_flag_svr4='$wl-G'
9111 export_dynamic_flag_spec='$wl-bexpall'
9112 # It seems that -bexpall does not export symbols beginning with
9113 # underscore (_), so it is better to generate a list of symbols to export.
9114 always_export_symbols=yes
9115 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9116 # Warning - without using the other runtime loading flags (-brtl),
9117 # -berok will link without error, but may produce a broken library.
9118 allow_undefined_flag='-berok'
9119 # Determine the default libpath from the value encoded in an
9120 # empty executable.
9121 if test set = "${lt_cv_aix_libpath+set}"; then
9122 aix_libpath=$lt_cv_aix_libpath
9123 else
9124 if test ${lt_cv_aix_libpath_+y}
9125 then :
9126 printf %s "(cached) " >&6
9127 else $as_nop
9128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h. */
9132 main (void)
9136 return 0;
9138 _ACEOF
9139 if ac_fn_c_try_link "$LINENO"
9140 then :
9142 lt_aix_libpath_sed='
9143 /Import File Strings/,/^$/ {
9144 /^0/ {
9145 s/^0 *\([^ ]*\) *$/\1/
9149 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9150 # Check for a 64-bit object if we didn't find anything.
9151 if test -z "$lt_cv_aix_libpath_"; then
9152 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9155 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9156 conftest$ac_exeext conftest.$ac_ext
9157 if test -z "$lt_cv_aix_libpath_"; then
9158 lt_cv_aix_libpath_=/usr/lib:/lib
9163 aix_libpath=$lt_cv_aix_libpath_
9166 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9167 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9168 else
9169 if test ia64 = "$host_cpu"; then
9170 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9171 allow_undefined_flag="-z nodefs"
9172 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
9173 else
9174 # Determine the default libpath from the value encoded in an
9175 # empty executable.
9176 if test set = "${lt_cv_aix_libpath+set}"; then
9177 aix_libpath=$lt_cv_aix_libpath
9178 else
9179 if test ${lt_cv_aix_libpath_+y}
9180 then :
9181 printf %s "(cached) " >&6
9182 else $as_nop
9183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184 /* end confdefs.h. */
9187 main (void)
9191 return 0;
9193 _ACEOF
9194 if ac_fn_c_try_link "$LINENO"
9195 then :
9197 lt_aix_libpath_sed='
9198 /Import File Strings/,/^$/ {
9199 /^0/ {
9200 s/^0 *\([^ ]*\) *$/\1/
9204 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9205 # Check for a 64-bit object if we didn't find anything.
9206 if test -z "$lt_cv_aix_libpath_"; then
9207 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9210 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9211 conftest$ac_exeext conftest.$ac_ext
9212 if test -z "$lt_cv_aix_libpath_"; then
9213 lt_cv_aix_libpath_=/usr/lib:/lib
9218 aix_libpath=$lt_cv_aix_libpath_
9221 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9222 # Warning - without using the other run time loading flags,
9223 # -berok will link without error, but may produce a broken library.
9224 no_undefined_flag=' $wl-bernotok'
9225 allow_undefined_flag=' $wl-berok'
9226 if test yes = "$with_gnu_ld"; then
9227 # We only use this code for GNU lds that support --whole-archive.
9228 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9229 else
9230 # Exported symbols can be pulled into shared objects from archives
9231 whole_archive_flag_spec='$convenience'
9233 archive_cmds_need_lc=yes
9234 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9235 # -brtl affects multiple linker settings, -berok does not and is overridden later
9236 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9237 if test svr4 != "$with_aix_soname"; then
9238 # This is similar to how AIX traditionally builds its shared libraries.
9239 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9241 if test aix != "$with_aix_soname"; then
9242 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9243 else
9244 # used by -dlpreopen to get the symbols
9245 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9247 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9252 amigaos*)
9253 case $host_cpu in
9254 powerpc)
9255 # see comment about AmigaOS4 .so support
9256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9257 archive_expsym_cmds=''
9259 m68k)
9260 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9261 hardcode_libdir_flag_spec='-L$libdir'
9262 hardcode_minus_L=yes
9264 esac
9267 bsdi[45]*)
9268 export_dynamic_flag_spec=-rdynamic
9271 cygwin* | mingw* | pw32* | cegcc*)
9272 # When not using gcc, we currently assume that we are using
9273 # Microsoft Visual C++.
9274 # hardcode_libdir_flag_spec is actually meaningless, as there is
9275 # no search path for DLLs.
9276 case $cc_basename in
9277 cl*)
9278 # Native MSVC
9279 hardcode_libdir_flag_spec=' '
9280 allow_undefined_flag=unsupported
9281 always_export_symbols=yes
9282 file_list_spec='@'
9283 # Tell ltmain to make .lib files, not .a files.
9284 libext=lib
9285 # Tell ltmain to make .dll files, not .so files.
9286 shrext_cmds=.dll
9287 # FIXME: Setting linknames here is a bad hack.
9288 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9289 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9290 cp "$export_symbols" "$output_objdir/$soname.def";
9291 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9292 else
9293 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9295 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9296 linknames='
9297 # The linker will not automatically build a static lib if we build a DLL.
9298 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9299 enable_shared_with_static_runtimes=yes
9300 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9301 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9302 # Don't use ranlib
9303 old_postinstall_cmds='chmod 644 $oldlib'
9304 postlink_cmds='lt_outputfile="@OUTPUT@"~
9305 lt_tool_outputfile="@TOOL_OUTPUT@"~
9306 case $lt_outputfile in
9307 *.exe|*.EXE) ;;
9309 lt_outputfile=$lt_outputfile.exe
9310 lt_tool_outputfile=$lt_tool_outputfile.exe
9312 esac~
9313 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9314 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9315 $RM "$lt_outputfile.manifest";
9319 # Assume MSVC wrapper
9320 hardcode_libdir_flag_spec=' '
9321 allow_undefined_flag=unsupported
9322 # Tell ltmain to make .lib files, not .a files.
9323 libext=lib
9324 # Tell ltmain to make .dll files, not .so files.
9325 shrext_cmds=.dll
9326 # FIXME: Setting linknames here is a bad hack.
9327 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9328 # The linker will automatically build a .lib file if we build a DLL.
9329 old_archive_from_new_cmds='true'
9330 # FIXME: Should let the user specify the lib program.
9331 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9332 enable_shared_with_static_runtimes=yes
9334 esac
9337 darwin* | rhapsody*)
9340 archive_cmds_need_lc=no
9341 hardcode_direct=no
9342 hardcode_automatic=yes
9343 hardcode_shlibpath_var=unsupported
9344 if test yes = "$lt_cv_ld_force_load"; then
9345 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9347 else
9348 whole_archive_flag_spec=''
9350 link_all_deplibs=yes
9351 allow_undefined_flag=$_lt_dar_allow_undefined
9352 case $cc_basename in
9353 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9354 *) _lt_dar_can_shared=$GCC ;;
9355 esac
9356 if test yes = "$_lt_dar_can_shared"; then
9357 output_verbose_link_cmd=func_echo_all
9358 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9359 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9360 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
9361 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
9363 else
9364 ld_shlibs=no
9369 dgux*)
9370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9371 hardcode_libdir_flag_spec='-L$libdir'
9372 hardcode_shlibpath_var=no
9375 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9376 # support. Future versions do this automatically, but an explicit c++rt0.o
9377 # does not break anything, and helps significantly (at the cost of a little
9378 # extra space).
9379 freebsd2.2*)
9380 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9381 hardcode_libdir_flag_spec='-R$libdir'
9382 hardcode_direct=yes
9383 hardcode_shlibpath_var=no
9386 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9387 freebsd2.*)
9388 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9389 hardcode_direct=yes
9390 hardcode_minus_L=yes
9391 hardcode_shlibpath_var=no
9394 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9395 freebsd* | dragonfly*)
9396 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9397 hardcode_libdir_flag_spec='-R$libdir'
9398 hardcode_direct=yes
9399 hardcode_shlibpath_var=no
9402 hpux9*)
9403 if test yes = "$GCC"; then
9404 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9405 else
9406 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9408 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9409 hardcode_libdir_separator=:
9410 hardcode_direct=yes
9412 # hardcode_minus_L: Not really in the search PATH,
9413 # but as the default location of the library.
9414 hardcode_minus_L=yes
9415 export_dynamic_flag_spec='$wl-E'
9418 hpux10*)
9419 if test yes,no = "$GCC,$with_gnu_ld"; then
9420 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9421 else
9422 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9424 if test no = "$with_gnu_ld"; then
9425 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9426 hardcode_libdir_separator=:
9427 hardcode_direct=yes
9428 hardcode_direct_absolute=yes
9429 export_dynamic_flag_spec='$wl-E'
9430 # hardcode_minus_L: Not really in the search PATH,
9431 # but as the default location of the library.
9432 hardcode_minus_L=yes
9436 hpux11*)
9437 if test yes,no = "$GCC,$with_gnu_ld"; then
9438 case $host_cpu in
9439 hppa*64*)
9440 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9442 ia64*)
9443 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9446 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9448 esac
9449 else
9450 case $host_cpu in
9451 hppa*64*)
9452 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9454 ia64*)
9455 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9459 # Older versions of the 11.00 compiler do not understand -b yet
9460 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9462 printf %s "checking if $CC understands -b... " >&6; }
9463 if test ${lt_cv_prog_compiler__b+y}
9464 then :
9465 printf %s "(cached) " >&6
9466 else $as_nop
9467 lt_cv_prog_compiler__b=no
9468 save_LDFLAGS=$LDFLAGS
9469 LDFLAGS="$LDFLAGS -b"
9470 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9471 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9472 # The linker can only warn and ignore the option if not recognized
9473 # So say no if there are warnings
9474 if test -s conftest.err; then
9475 # Append any errors to the config.log.
9476 cat conftest.err 1>&5
9477 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9478 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9479 if diff conftest.exp conftest.er2 >/dev/null; then
9480 lt_cv_prog_compiler__b=yes
9482 else
9483 lt_cv_prog_compiler__b=yes
9486 $RM -r conftest*
9487 LDFLAGS=$save_LDFLAGS
9490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9491 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
9493 if test yes = "$lt_cv_prog_compiler__b"; then
9494 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9495 else
9496 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9500 esac
9502 if test no = "$with_gnu_ld"; then
9503 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9504 hardcode_libdir_separator=:
9506 case $host_cpu in
9507 hppa*64*|ia64*)
9508 hardcode_direct=no
9509 hardcode_shlibpath_var=no
9512 hardcode_direct=yes
9513 hardcode_direct_absolute=yes
9514 export_dynamic_flag_spec='$wl-E'
9516 # hardcode_minus_L: Not really in the search PATH,
9517 # but as the default location of the library.
9518 hardcode_minus_L=yes
9520 esac
9524 irix5* | irix6* | nonstopux*)
9525 if test yes = "$GCC"; then
9526 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9527 # Try to use the -exported_symbol ld option, if it does not
9528 # work, assume that -exports_file does not work either and
9529 # implicitly export all symbols.
9530 # This should be the same for all languages, so no per-tag cache variable.
9531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9532 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9533 if test ${lt_cv_irix_exported_symbol+y}
9534 then :
9535 printf %s "(cached) " >&6
9536 else $as_nop
9537 save_LDFLAGS=$LDFLAGS
9538 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540 /* end confdefs.h. */
9541 int foo (void) { return 0; }
9542 _ACEOF
9543 if ac_fn_c_try_link "$LINENO"
9544 then :
9545 lt_cv_irix_exported_symbol=yes
9546 else $as_nop
9547 lt_cv_irix_exported_symbol=no
9549 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9550 conftest$ac_exeext conftest.$ac_ext
9551 LDFLAGS=$save_LDFLAGS
9553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9554 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
9555 if test yes = "$lt_cv_irix_exported_symbol"; then
9556 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
9558 link_all_deplibs=no
9559 else
9560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9561 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
9563 archive_cmds_need_lc='no'
9564 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9565 hardcode_libdir_separator=:
9566 inherit_rpath=yes
9567 link_all_deplibs=yes
9570 linux*)
9571 case $cc_basename in
9572 tcc*)
9573 # Fabrice Bellard et al's Tiny C Compiler
9574 ld_shlibs=yes
9575 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9577 esac
9580 netbsd* | netbsdelf*-gnu)
9581 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9582 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9583 else
9584 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9586 hardcode_libdir_flag_spec='-R$libdir'
9587 hardcode_direct=yes
9588 hardcode_shlibpath_var=no
9591 newsos6)
9592 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9593 hardcode_direct=yes
9594 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9595 hardcode_libdir_separator=:
9596 hardcode_shlibpath_var=no
9599 *nto* | *qnx*)
9602 openbsd* | bitrig*)
9603 if test -f /usr/libexec/ld.so; then
9604 hardcode_direct=yes
9605 hardcode_shlibpath_var=no
9606 hardcode_direct_absolute=yes
9607 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9608 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9609 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9610 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9611 export_dynamic_flag_spec='$wl-E'
9612 else
9613 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9614 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9616 else
9617 ld_shlibs=no
9621 os2*)
9622 hardcode_libdir_flag_spec='-L$libdir'
9623 hardcode_minus_L=yes
9624 allow_undefined_flag=unsupported
9625 shrext_cmds=.dll
9626 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9627 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9628 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9629 $ECHO EXPORTS >> $output_objdir/$libname.def~
9630 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9631 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9632 emximp -o $lib $output_objdir/$libname.def'
9633 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9634 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9635 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9636 $ECHO EXPORTS >> $output_objdir/$libname.def~
9637 prefix_cmds="$SED"~
9638 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9639 prefix_cmds="$prefix_cmds -e 1d";
9641 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9642 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9643 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9644 emximp -o $lib $output_objdir/$libname.def'
9645 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9646 enable_shared_with_static_runtimes=yes
9649 osf3*)
9650 if test yes = "$GCC"; then
9651 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9652 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9653 else
9654 allow_undefined_flag=' -expect_unresolved \*'
9655 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9657 archive_cmds_need_lc='no'
9658 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9659 hardcode_libdir_separator=:
9662 osf4* | osf5*) # as osf3* with the addition of -msym flag
9663 if test yes = "$GCC"; then
9664 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9665 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9666 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9667 else
9668 allow_undefined_flag=' -expect_unresolved \*'
9669 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9670 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9671 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
9673 # Both c and cxx compiler support -rpath directly
9674 hardcode_libdir_flag_spec='-rpath $libdir'
9676 archive_cmds_need_lc='no'
9677 hardcode_libdir_separator=:
9680 solaris*)
9681 no_undefined_flag=' -z defs'
9682 if test yes = "$GCC"; then
9683 wlarc='$wl'
9684 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9685 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9686 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9687 else
9688 case `$CC -V 2>&1` in
9689 *"Compilers 5.0"*)
9690 wlarc=''
9691 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9692 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9693 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9696 wlarc='$wl'
9697 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9698 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9699 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9701 esac
9703 hardcode_libdir_flag_spec='-R$libdir'
9704 hardcode_shlibpath_var=no
9705 case $host_os in
9706 solaris2.[0-5] | solaris2.[0-5].*) ;;
9708 # The compiler driver will combine and reorder linker options,
9709 # but understands '-z linker_flag'. GCC discards it without '$wl',
9710 # but is careful enough not to reorder.
9711 # Supported since Solaris 2.6 (maybe 2.5.1?)
9712 if test yes = "$GCC"; then
9713 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9714 else
9715 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9718 esac
9719 link_all_deplibs=yes
9722 sunos4*)
9723 if test sequent = "$host_vendor"; then
9724 # Use $CC to link under sequent, because it throws in some extra .o
9725 # files that make .init and .fini sections work.
9726 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9727 else
9728 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9730 hardcode_libdir_flag_spec='-L$libdir'
9731 hardcode_direct=yes
9732 hardcode_minus_L=yes
9733 hardcode_shlibpath_var=no
9736 sysv4)
9737 case $host_vendor in
9738 sni)
9739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9740 hardcode_direct=yes # is this really true???
9742 siemens)
9743 ## LD is ld it makes a PLAMLIB
9744 ## CC just makes a GrossModule.
9745 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9746 reload_cmds='$CC -r -o $output$reload_objs'
9747 hardcode_direct=no
9749 motorola)
9750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9751 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9753 esac
9754 runpath_var='LD_RUN_PATH'
9755 hardcode_shlibpath_var=no
9758 sysv4.3*)
9759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9760 hardcode_shlibpath_var=no
9761 export_dynamic_flag_spec='-Bexport'
9764 sysv4*MP*)
9765 if test -d /usr/nec; then
9766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9767 hardcode_shlibpath_var=no
9768 runpath_var=LD_RUN_PATH
9769 hardcode_runpath_var=yes
9770 ld_shlibs=yes
9774 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9775 no_undefined_flag='$wl-z,text'
9776 archive_cmds_need_lc=no
9777 hardcode_shlibpath_var=no
9778 runpath_var='LD_RUN_PATH'
9780 if test yes = "$GCC"; then
9781 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9782 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9783 else
9784 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9785 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9789 sysv5* | sco3.2v5* | sco5v6*)
9790 # Note: We CANNOT use -z defs as we might desire, because we do not
9791 # link with -lc, and that would cause any symbols used from libc to
9792 # always be unresolved, which means just about no library would
9793 # ever link correctly. If we're not using GNU ld we use -z text
9794 # though, which does catch some bad symbols but isn't as heavy-handed
9795 # as -z defs.
9796 no_undefined_flag='$wl-z,text'
9797 allow_undefined_flag='$wl-z,nodefs'
9798 archive_cmds_need_lc=no
9799 hardcode_shlibpath_var=no
9800 hardcode_libdir_flag_spec='$wl-R,$libdir'
9801 hardcode_libdir_separator=':'
9802 link_all_deplibs=yes
9803 export_dynamic_flag_spec='$wl-Bexport'
9804 runpath_var='LD_RUN_PATH'
9806 if test yes = "$GCC"; then
9807 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9808 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9809 else
9810 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9811 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9815 uts4*)
9816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9817 hardcode_libdir_flag_spec='-L$libdir'
9818 hardcode_shlibpath_var=no
9822 ld_shlibs=no
9824 esac
9826 if test sni = "$host_vendor"; then
9827 case $host in
9828 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9829 export_dynamic_flag_spec='$wl-Blargedynsym'
9831 esac
9835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9836 printf "%s\n" "$ld_shlibs" >&6; }
9837 test no = "$ld_shlibs" && can_build_shared=no
9839 with_gnu_ld=$with_gnu_ld
9856 # Do we need to explicitly link libc?
9858 case "x$archive_cmds_need_lc" in
9859 x|xyes)
9860 # Assume -lc should be added
9861 archive_cmds_need_lc=yes
9863 if test yes,yes = "$GCC,$enable_shared"; then
9864 case $archive_cmds in
9865 *'~'*)
9866 # FIXME: we may have to deal with multi-command sequences.
9868 '$CC '*)
9869 # Test whether the compiler implicitly links with -lc since on some
9870 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9871 # to ld, don't add -lc before -lgcc.
9872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9873 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
9874 if test ${lt_cv_archive_cmds_need_lc+y}
9875 then :
9876 printf %s "(cached) " >&6
9877 else $as_nop
9878 $RM conftest*
9879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9882 (eval $ac_compile) 2>&5
9883 ac_status=$?
9884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9885 test $ac_status = 0; } 2>conftest.err; then
9886 soname=conftest
9887 lib=conftest
9888 libobjs=conftest.$ac_objext
9889 deplibs=
9890 wl=$lt_prog_compiler_wl
9891 pic_flag=$lt_prog_compiler_pic
9892 compiler_flags=-v
9893 linker_flags=-v
9894 verstring=
9895 output_objdir=.
9896 libname=conftest
9897 lt_save_allow_undefined_flag=$allow_undefined_flag
9898 allow_undefined_flag=
9899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9900 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9901 ac_status=$?
9902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9903 test $ac_status = 0; }
9904 then
9905 lt_cv_archive_cmds_need_lc=no
9906 else
9907 lt_cv_archive_cmds_need_lc=yes
9909 allow_undefined_flag=$lt_save_allow_undefined_flag
9910 else
9911 cat conftest.err 1>&5
9913 $RM conftest*
9916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9917 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
9918 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9920 esac
9923 esac
10076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10077 printf %s "checking dynamic linker characteristics... " >&6; }
10079 if test yes = "$GCC"; then
10080 case $host_os in
10081 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10082 *) lt_awk_arg='/^libraries:/' ;;
10083 esac
10084 case $host_os in
10085 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10086 *) lt_sed_strip_eq='s|=/|/|g' ;;
10087 esac
10088 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10089 case $lt_search_path_spec in
10090 *\;*)
10091 # if the path contains ";" then we assume it to be the separator
10092 # otherwise default to the standard path separator (i.e. ":") - it is
10093 # assumed that no part of a normal pathname contains ";" but that should
10094 # okay in the real world where ";" in dirpaths is itself problematic.
10095 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10098 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10100 esac
10101 # Ok, now we have the path, separated by spaces, we can step through it
10102 # and add multilib dir if necessary...
10103 lt_tmp_lt_search_path_spec=
10104 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10105 # ...but if some path component already ends with the multilib dir we assume
10106 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10107 case "$lt_multi_os_dir; $lt_search_path_spec " in
10108 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10109 lt_multi_os_dir=
10111 esac
10112 for lt_sys_path in $lt_search_path_spec; do
10113 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10114 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10115 elif test -n "$lt_multi_os_dir"; then
10116 test -d "$lt_sys_path" && \
10117 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10119 done
10120 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10121 BEGIN {RS = " "; FS = "/|\n";} {
10122 lt_foo = "";
10123 lt_count = 0;
10124 for (lt_i = NF; lt_i > 0; lt_i--) {
10125 if ($lt_i != "" && $lt_i != ".") {
10126 if ($lt_i == "..") {
10127 lt_count++;
10128 } else {
10129 if (lt_count == 0) {
10130 lt_foo = "/" $lt_i lt_foo;
10131 } else {
10132 lt_count--;
10137 if (lt_foo != "") { lt_freq[lt_foo]++; }
10138 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10140 # AWK program above erroneously prepends '/' to C:/dos/paths
10141 # for these hosts.
10142 case $host_os in
10143 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10144 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10145 esac
10146 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10147 else
10148 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10150 library_names_spec=
10151 libname_spec='lib$name'
10152 soname_spec=
10153 shrext_cmds=.so
10154 postinstall_cmds=
10155 postuninstall_cmds=
10156 finish_cmds=
10157 finish_eval=
10158 shlibpath_var=
10159 shlibpath_overrides_runpath=unknown
10160 version_type=none
10161 dynamic_linker="$host_os ld.so"
10162 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10163 need_lib_prefix=unknown
10164 hardcode_into_libs=no
10166 # when you set need_version to no, make sure it does not cause -set_version
10167 # flags to be left without arguments
10168 need_version=unknown
10172 case $host_os in
10173 aix3*)
10174 version_type=linux # correct to gnu/linux during the next big refactor
10175 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10176 shlibpath_var=LIBPATH
10178 # AIX 3 has no versioning support, so we append a major version to the name.
10179 soname_spec='$libname$release$shared_ext$major'
10182 aix[4-9]*)
10183 version_type=linux # correct to gnu/linux during the next big refactor
10184 need_lib_prefix=no
10185 need_version=no
10186 hardcode_into_libs=yes
10187 if test ia64 = "$host_cpu"; then
10188 # AIX 5 supports IA64
10189 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10190 shlibpath_var=LD_LIBRARY_PATH
10191 else
10192 # With GCC up to 2.95.x, collect2 would create an import file
10193 # for dependence libraries. The import file would start with
10194 # the line '#! .'. This would cause the generated library to
10195 # depend on '.', always an invalid library. This was fixed in
10196 # development snapshots of GCC prior to 3.0.
10197 case $host_os in
10198 aix4 | aix4.[01] | aix4.[01].*)
10199 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10200 echo ' yes '
10201 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10203 else
10204 can_build_shared=no
10207 esac
10208 # Using Import Files as archive members, it is possible to support
10209 # filename-based versioning of shared library archives on AIX. While
10210 # this would work for both with and without runtime linking, it will
10211 # prevent static linking of such archives. So we do filename-based
10212 # shared library versioning with .so extension only, which is used
10213 # when both runtime linking and shared linking is enabled.
10214 # Unfortunately, runtime linking may impact performance, so we do
10215 # not want this to be the default eventually. Also, we use the
10216 # versioned .so libs for executables only if there is the -brtl
10217 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10218 # To allow for filename-based versioning support, we need to create
10219 # libNAME.so.V as an archive file, containing:
10220 # *) an Import File, referring to the versioned filename of the
10221 # archive as well as the shared archive member, telling the
10222 # bitwidth (32 or 64) of that shared object, and providing the
10223 # list of exported symbols of that shared object, eventually
10224 # decorated with the 'weak' keyword
10225 # *) the shared object with the F_LOADONLY flag set, to really avoid
10226 # it being seen by the linker.
10227 # At run time we better use the real file rather than another symlink,
10228 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10230 case $with_aix_soname,$aix_use_runtimelinking in
10231 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10232 # soname into executable. Probably we can add versioning support to
10233 # collect2, so additional links can be useful in future.
10234 aix,yes) # traditional libtool
10235 dynamic_linker='AIX unversionable lib.so'
10236 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10237 # instead of lib<name>.a to let people know that these are not
10238 # typical AIX shared libraries.
10239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10241 aix,no) # traditional AIX only
10242 dynamic_linker='AIX lib.a(lib.so.V)'
10243 # We preserve .a as extension for shared libraries through AIX4.2
10244 # and later when we are not doing run time linking.
10245 library_names_spec='$libname$release.a $libname.a'
10246 soname_spec='$libname$release$shared_ext$major'
10248 svr4,*) # full svr4 only
10249 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10250 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10251 # We do not specify a path in Import Files, so LIBPATH fires.
10252 shlibpath_overrides_runpath=yes
10254 *,yes) # both, prefer svr4
10255 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10256 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10257 # unpreferred sharedlib libNAME.a needs extra handling
10258 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10259 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10260 # We do not specify a path in Import Files, so LIBPATH fires.
10261 shlibpath_overrides_runpath=yes
10263 *,no) # both, prefer aix
10264 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10265 library_names_spec='$libname$release.a $libname.a'
10266 soname_spec='$libname$release$shared_ext$major'
10267 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10268 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10269 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10271 esac
10272 shlibpath_var=LIBPATH
10276 amigaos*)
10277 case $host_cpu in
10278 powerpc)
10279 # Since July 2007 AmigaOS4 officially supports .so libraries.
10280 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10283 m68k)
10284 library_names_spec='$libname.ixlibrary $libname.a'
10285 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10286 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10288 esac
10291 beos*)
10292 library_names_spec='$libname$shared_ext'
10293 dynamic_linker="$host_os ld.so"
10294 shlibpath_var=LIBRARY_PATH
10297 bsdi[45]*)
10298 version_type=linux # correct to gnu/linux during the next big refactor
10299 need_version=no
10300 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10301 soname_spec='$libname$release$shared_ext$major'
10302 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10303 shlibpath_var=LD_LIBRARY_PATH
10304 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10305 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10306 # the default ld.so.conf also contains /usr/contrib/lib and
10307 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10308 # libtool to hard-code these into programs
10311 cygwin* | mingw* | pw32* | cegcc*)
10312 version_type=windows
10313 shrext_cmds=.dll
10314 need_version=no
10315 need_lib_prefix=no
10317 case $GCC,$cc_basename in
10318 yes,*)
10319 # gcc
10320 library_names_spec='$libname.dll.a'
10321 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10322 postinstall_cmds='base_file=`basename \$file`~
10323 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10324 dldir=$destdir/`dirname \$dlpath`~
10325 test -d \$dldir || mkdir -p \$dldir~
10326 $install_prog $dir/$dlname \$dldir/$dlname~
10327 chmod a+x \$dldir/$dlname~
10328 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10329 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10331 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10332 dlpath=$dir/\$dldll~
10333 $RM \$dlpath'
10334 shlibpath_overrides_runpath=yes
10336 case $host_os in
10337 cygwin*)
10338 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10339 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10341 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10343 mingw* | cegcc*)
10344 # MinGW DLLs use traditional 'lib' prefix
10345 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10347 pw32*)
10348 # pw32 DLLs use 'pw' prefix rather than 'lib'
10349 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10351 esac
10352 dynamic_linker='Win32 ld.exe'
10355 *,cl*)
10356 # Native MSVC
10357 libname_spec='$name'
10358 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10359 library_names_spec='$libname.dll.lib'
10361 case $build_os in
10362 mingw*)
10363 sys_lib_search_path_spec=
10364 lt_save_ifs=$IFS
10365 IFS=';'
10366 for lt_path in $LIB
10368 IFS=$lt_save_ifs
10369 # Let DOS variable expansion print the short 8.3 style file name.
10370 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10371 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10372 done
10373 IFS=$lt_save_ifs
10374 # Convert to MSYS style.
10375 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10377 cygwin*)
10378 # Convert to unix form, then to dos form, then back to unix form
10379 # but this time dos style (no spaces!) so that the unix form looks
10380 # like /cygdrive/c/PROGRA~1:/cygdr...
10381 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10382 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10383 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10386 sys_lib_search_path_spec=$LIB
10387 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10388 # It is most probably a Windows format PATH.
10389 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10390 else
10391 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10393 # FIXME: find the short name or the path components, as spaces are
10394 # common. (e.g. "Program Files" -> "PROGRA~1")
10396 esac
10398 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10399 postinstall_cmds='base_file=`basename \$file`~
10400 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10401 dldir=$destdir/`dirname \$dlpath`~
10402 test -d \$dldir || mkdir -p \$dldir~
10403 $install_prog $dir/$dlname \$dldir/$dlname'
10404 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10405 dlpath=$dir/\$dldll~
10406 $RM \$dlpath'
10407 shlibpath_overrides_runpath=yes
10408 dynamic_linker='Win32 link.exe'
10412 # Assume MSVC wrapper
10413 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10414 dynamic_linker='Win32 ld.exe'
10416 esac
10417 # FIXME: first we should search . and the directory the executable is in
10418 shlibpath_var=PATH
10421 darwin* | rhapsody*)
10422 dynamic_linker="$host_os dyld"
10423 version_type=darwin
10424 need_lib_prefix=no
10425 need_version=no
10426 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10427 soname_spec='$libname$release$major$shared_ext'
10428 shlibpath_overrides_runpath=yes
10429 shlibpath_var=DYLD_LIBRARY_PATH
10430 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10432 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10433 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10436 dgux*)
10437 version_type=linux # correct to gnu/linux during the next big refactor
10438 need_lib_prefix=no
10439 need_version=no
10440 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10441 soname_spec='$libname$release$shared_ext$major'
10442 shlibpath_var=LD_LIBRARY_PATH
10445 freebsd* | dragonfly*)
10446 # DragonFly does not have aout. When/if they implement a new
10447 # versioning mechanism, adjust this.
10448 if test -x /usr/bin/objformat; then
10449 objformat=`/usr/bin/objformat`
10450 else
10451 case $host_os in
10452 freebsd[23].*) objformat=aout ;;
10453 *) objformat=elf ;;
10454 esac
10456 version_type=freebsd-$objformat
10457 case $version_type in
10458 freebsd-elf*)
10459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10460 soname_spec='$libname$release$shared_ext$major'
10461 need_version=no
10462 need_lib_prefix=no
10464 freebsd-*)
10465 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10466 need_version=yes
10468 esac
10469 shlibpath_var=LD_LIBRARY_PATH
10470 case $host_os in
10471 freebsd2.*)
10472 shlibpath_overrides_runpath=yes
10474 freebsd3.[01]* | freebsdelf3.[01]*)
10475 shlibpath_overrides_runpath=yes
10476 hardcode_into_libs=yes
10478 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10479 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10480 shlibpath_overrides_runpath=no
10481 hardcode_into_libs=yes
10483 *) # from 4.6 on, and DragonFly
10484 shlibpath_overrides_runpath=yes
10485 hardcode_into_libs=yes
10487 esac
10490 haiku*)
10491 version_type=linux # correct to gnu/linux during the next big refactor
10492 need_lib_prefix=no
10493 need_version=no
10494 dynamic_linker="$host_os runtime_loader"
10495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10496 soname_spec='$libname$release$shared_ext$major'
10497 shlibpath_var=LIBRARY_PATH
10498 shlibpath_overrides_runpath=no
10499 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10500 hardcode_into_libs=yes
10503 hpux9* | hpux10* | hpux11*)
10504 # Give a soname corresponding to the major version so that dld.sl refuses to
10505 # link against other versions.
10506 version_type=sunos
10507 need_lib_prefix=no
10508 need_version=no
10509 case $host_cpu in
10510 ia64*)
10511 shrext_cmds='.so'
10512 hardcode_into_libs=yes
10513 dynamic_linker="$host_os dld.so"
10514 shlibpath_var=LD_LIBRARY_PATH
10515 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10517 soname_spec='$libname$release$shared_ext$major'
10518 if test 32 = "$HPUX_IA64_MODE"; then
10519 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10520 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10521 else
10522 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10523 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10526 hppa*64*)
10527 shrext_cmds='.sl'
10528 hardcode_into_libs=yes
10529 dynamic_linker="$host_os dld.sl"
10530 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10531 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10533 soname_spec='$libname$release$shared_ext$major'
10534 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10535 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10538 shrext_cmds='.sl'
10539 dynamic_linker="$host_os dld.sl"
10540 shlibpath_var=SHLIB_PATH
10541 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10542 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10543 soname_spec='$libname$release$shared_ext$major'
10545 esac
10546 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10547 postinstall_cmds='chmod 555 $lib'
10548 # or fails outright, so override atomically:
10549 install_override_mode=555
10552 interix[3-9]*)
10553 version_type=linux # correct to gnu/linux during the next big refactor
10554 need_lib_prefix=no
10555 need_version=no
10556 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10557 soname_spec='$libname$release$shared_ext$major'
10558 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10559 shlibpath_var=LD_LIBRARY_PATH
10560 shlibpath_overrides_runpath=no
10561 hardcode_into_libs=yes
10564 irix5* | irix6* | nonstopux*)
10565 case $host_os in
10566 nonstopux*) version_type=nonstopux ;;
10568 if test yes = "$lt_cv_prog_gnu_ld"; then
10569 version_type=linux # correct to gnu/linux during the next big refactor
10570 else
10571 version_type=irix
10572 fi ;;
10573 esac
10574 need_lib_prefix=no
10575 need_version=no
10576 soname_spec='$libname$release$shared_ext$major'
10577 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10578 case $host_os in
10579 irix5* | nonstopux*)
10580 libsuff= shlibsuff=
10583 case $LD in # libtool.m4 will add one of these switches to LD
10584 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10585 libsuff= shlibsuff= libmagic=32-bit;;
10586 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10587 libsuff=32 shlibsuff=N32 libmagic=N32;;
10588 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10589 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10590 *) libsuff= shlibsuff= libmagic=never-match;;
10591 esac
10593 esac
10594 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10595 shlibpath_overrides_runpath=no
10596 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10597 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10598 hardcode_into_libs=yes
10601 # No shared lib support for Linux oldld, aout, or coff.
10602 linux*oldld* | linux*aout* | linux*coff*)
10603 dynamic_linker=no
10606 linux*android*)
10607 version_type=none # Android doesn't support versioned libraries.
10608 need_lib_prefix=no
10609 need_version=no
10610 library_names_spec='$libname$release$shared_ext'
10611 soname_spec='$libname$release$shared_ext'
10612 finish_cmds=
10613 shlibpath_var=LD_LIBRARY_PATH
10614 shlibpath_overrides_runpath=yes
10616 # This implies no fast_install, which is unacceptable.
10617 # Some rework will be needed to allow for fast_install
10618 # before this can be enabled.
10619 hardcode_into_libs=yes
10621 dynamic_linker='Android linker'
10622 # Don't embed -rpath directories since the linker doesn't support them.
10623 hardcode_libdir_flag_spec='-L$libdir'
10626 # This must be glibc/ELF.
10627 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10628 version_type=linux # correct to gnu/linux during the next big refactor
10629 need_lib_prefix=no
10630 need_version=no
10631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10632 soname_spec='$libname$release$shared_ext$major'
10633 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10634 shlibpath_var=LD_LIBRARY_PATH
10635 shlibpath_overrides_runpath=no
10637 # Some binutils ld are patched to set DT_RUNPATH
10638 if test ${lt_cv_shlibpath_overrides_runpath+y}
10639 then :
10640 printf %s "(cached) " >&6
10641 else $as_nop
10642 lt_cv_shlibpath_overrides_runpath=no
10643 save_LDFLAGS=$LDFLAGS
10644 save_libdir=$libdir
10645 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10646 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10651 main (void)
10655 return 0;
10657 _ACEOF
10658 if ac_fn_c_try_link "$LINENO"
10659 then :
10660 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
10661 then :
10662 lt_cv_shlibpath_overrides_runpath=yes
10665 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10666 conftest$ac_exeext conftest.$ac_ext
10667 LDFLAGS=$save_LDFLAGS
10668 libdir=$save_libdir
10672 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10674 # This implies no fast_install, which is unacceptable.
10675 # Some rework will be needed to allow for fast_install
10676 # before this can be enabled.
10677 hardcode_into_libs=yes
10679 # Ideally, we could use ldconfig to report *all* directores which are
10680 # searched for libraries, however this is still not possible. Aside from not
10681 # being certain /sbin/ldconfig is available, command
10682 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10683 # even though it is searched at run-time. Try to do the best guess by
10684 # appending ld.so.conf contents (and includes) to the search path.
10685 if test -f /etc/ld.so.conf; then
10686 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10687 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10690 # We used to test for /lib/ld.so.1 and disable shared libraries on
10691 # powerpc, because MkLinux only supported shared libraries with the
10692 # GNU dynamic linker. Since this was broken with cross compilers,
10693 # most powerpc-linux boxes support dynamic linking these days and
10694 # people can always --disable-shared, the test was removed, and we
10695 # assume the GNU/Linux dynamic linker is in use.
10696 dynamic_linker='GNU/Linux ld.so'
10699 netbsdelf*-gnu)
10700 version_type=linux
10701 need_lib_prefix=no
10702 need_version=no
10703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10704 soname_spec='${libname}${release}${shared_ext}$major'
10705 shlibpath_var=LD_LIBRARY_PATH
10706 shlibpath_overrides_runpath=no
10707 hardcode_into_libs=yes
10708 dynamic_linker='NetBSD ld.elf_so'
10711 netbsd*)
10712 version_type=sunos
10713 need_lib_prefix=no
10714 need_version=no
10715 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10716 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10717 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10718 dynamic_linker='NetBSD (a.out) ld.so'
10719 else
10720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10721 soname_spec='$libname$release$shared_ext$major'
10722 dynamic_linker='NetBSD ld.elf_so'
10724 shlibpath_var=LD_LIBRARY_PATH
10725 shlibpath_overrides_runpath=yes
10726 hardcode_into_libs=yes
10729 newsos6)
10730 version_type=linux # correct to gnu/linux during the next big refactor
10731 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10732 shlibpath_var=LD_LIBRARY_PATH
10733 shlibpath_overrides_runpath=yes
10736 *nto* | *qnx*)
10737 version_type=qnx
10738 need_lib_prefix=no
10739 need_version=no
10740 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10741 soname_spec='$libname$release$shared_ext$major'
10742 shlibpath_var=LD_LIBRARY_PATH
10743 shlibpath_overrides_runpath=no
10744 hardcode_into_libs=yes
10745 dynamic_linker='ldqnx.so'
10748 openbsd* | bitrig*)
10749 version_type=sunos
10750 sys_lib_dlsearch_path_spec=/usr/lib
10751 need_lib_prefix=no
10752 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10753 need_version=no
10754 else
10755 need_version=yes
10757 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10758 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10759 shlibpath_var=LD_LIBRARY_PATH
10760 shlibpath_overrides_runpath=yes
10763 os2*)
10764 libname_spec='$name'
10765 version_type=windows
10766 shrext_cmds=.dll
10767 need_version=no
10768 need_lib_prefix=no
10769 # OS/2 can only load a DLL with a base name of 8 characters or less.
10770 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10771 v=$($ECHO $release$versuffix | tr -d .-);
10772 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10773 $ECHO $n$v`$shared_ext'
10774 library_names_spec='${libname}_dll.$libext'
10775 dynamic_linker='OS/2 ld.exe'
10776 shlibpath_var=BEGINLIBPATH
10777 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10778 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10779 postinstall_cmds='base_file=`basename \$file`~
10780 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10781 dldir=$destdir/`dirname \$dlpath`~
10782 test -d \$dldir || mkdir -p \$dldir~
10783 $install_prog $dir/$dlname \$dldir/$dlname~
10784 chmod a+x \$dldir/$dlname~
10785 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10786 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10788 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10789 dlpath=$dir/\$dldll~
10790 $RM \$dlpath'
10793 osf3* | osf4* | osf5*)
10794 version_type=osf
10795 need_lib_prefix=no
10796 need_version=no
10797 soname_spec='$libname$release$shared_ext$major'
10798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10799 shlibpath_var=LD_LIBRARY_PATH
10800 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10804 rdos*)
10805 dynamic_linker=no
10808 solaris*)
10809 version_type=linux # correct to gnu/linux during the next big refactor
10810 need_lib_prefix=no
10811 need_version=no
10812 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10813 soname_spec='$libname$release$shared_ext$major'
10814 shlibpath_var=LD_LIBRARY_PATH
10815 shlibpath_overrides_runpath=yes
10816 hardcode_into_libs=yes
10817 # ldd complains unless libraries are executable
10818 postinstall_cmds='chmod +x $lib'
10821 sunos4*)
10822 version_type=sunos
10823 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10824 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10825 shlibpath_var=LD_LIBRARY_PATH
10826 shlibpath_overrides_runpath=yes
10827 if test yes = "$with_gnu_ld"; then
10828 need_lib_prefix=no
10830 need_version=yes
10833 sysv4 | sysv4.3*)
10834 version_type=linux # correct to gnu/linux during the next big refactor
10835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10836 soname_spec='$libname$release$shared_ext$major'
10837 shlibpath_var=LD_LIBRARY_PATH
10838 case $host_vendor in
10839 sni)
10840 shlibpath_overrides_runpath=no
10841 need_lib_prefix=no
10842 runpath_var=LD_RUN_PATH
10844 siemens)
10845 need_lib_prefix=no
10847 motorola)
10848 need_lib_prefix=no
10849 need_version=no
10850 shlibpath_overrides_runpath=no
10851 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10853 esac
10856 sysv4*MP*)
10857 if test -d /usr/nec; then
10858 version_type=linux # correct to gnu/linux during the next big refactor
10859 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10860 soname_spec='$libname$shared_ext.$major'
10861 shlibpath_var=LD_LIBRARY_PATH
10865 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10866 version_type=sco
10867 need_lib_prefix=no
10868 need_version=no
10869 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10870 soname_spec='$libname$release$shared_ext$major'
10871 shlibpath_var=LD_LIBRARY_PATH
10872 shlibpath_overrides_runpath=yes
10873 hardcode_into_libs=yes
10874 if test yes = "$with_gnu_ld"; then
10875 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10876 else
10877 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10878 case $host_os in
10879 sco3.2v5*)
10880 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10882 esac
10884 sys_lib_dlsearch_path_spec='/usr/lib'
10887 tpf*)
10888 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10889 version_type=linux # correct to gnu/linux during the next big refactor
10890 need_lib_prefix=no
10891 need_version=no
10892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10893 shlibpath_var=LD_LIBRARY_PATH
10894 shlibpath_overrides_runpath=no
10895 hardcode_into_libs=yes
10898 uts4*)
10899 version_type=linux # correct to gnu/linux during the next big refactor
10900 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10901 soname_spec='$libname$release$shared_ext$major'
10902 shlibpath_var=LD_LIBRARY_PATH
10906 dynamic_linker=no
10908 esac
10909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10910 printf "%s\n" "$dynamic_linker" >&6; }
10911 test no = "$dynamic_linker" && can_build_shared=no
10913 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10914 if test yes = "$GCC"; then
10915 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10918 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10919 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
10922 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10923 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
10926 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
10927 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
10929 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
10930 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
10932 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
10933 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11032 printf %s "checking how to hardcode library paths into programs... " >&6; }
11033 hardcode_action=
11034 if test -n "$hardcode_libdir_flag_spec" ||
11035 test -n "$runpath_var" ||
11036 test yes = "$hardcode_automatic"; then
11038 # We can hardcode non-existent directories.
11039 if test no != "$hardcode_direct" &&
11040 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11041 # have to relink, otherwise we might link with an installed library
11042 # when we should be linking with a yet-to-be-installed one
11043 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11044 test no != "$hardcode_minus_L"; then
11045 # Linking always hardcodes the temporary library directory.
11046 hardcode_action=relink
11047 else
11048 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11049 hardcode_action=immediate
11051 else
11052 # We cannot hardcode anything, or else we can only hardcode existing
11053 # directories.
11054 hardcode_action=unsupported
11056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11057 printf "%s\n" "$hardcode_action" >&6; }
11059 if test relink = "$hardcode_action" ||
11060 test yes = "$inherit_rpath"; then
11061 # Fast installation is not supported
11062 enable_fast_install=no
11063 elif test yes = "$shlibpath_overrides_runpath" ||
11064 test no = "$enable_shared"; then
11065 # Fast installation is not necessary
11066 enable_fast_install=needless
11074 if test yes != "$enable_dlopen"; then
11075 enable_dlopen=unknown
11076 enable_dlopen_self=unknown
11077 enable_dlopen_self_static=unknown
11078 else
11079 lt_cv_dlopen=no
11080 lt_cv_dlopen_libs=
11082 case $host_os in
11083 beos*)
11084 lt_cv_dlopen=load_add_on
11085 lt_cv_dlopen_libs=
11086 lt_cv_dlopen_self=yes
11089 mingw* | pw32* | cegcc*)
11090 lt_cv_dlopen=LoadLibrary
11091 lt_cv_dlopen_libs=
11094 cygwin*)
11095 lt_cv_dlopen=dlopen
11096 lt_cv_dlopen_libs=
11099 darwin*)
11100 # if libdl is installed we need to link against it
11101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11102 printf %s "checking for dlopen in -ldl... " >&6; }
11103 if test ${ac_cv_lib_dl_dlopen+y}
11104 then :
11105 printf %s "(cached) " >&6
11106 else $as_nop
11107 ac_check_lib_save_LIBS=$LIBS
11108 LIBS="-ldl $LIBS"
11109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11110 /* end confdefs.h. */
11112 /* Override any GCC internal prototype to avoid an error.
11113 Use char because int might match the return type of a GCC
11114 builtin and then its argument prototype would still apply. */
11115 char dlopen ();
11117 main (void)
11119 return dlopen ();
11121 return 0;
11123 _ACEOF
11124 if ac_fn_c_try_link "$LINENO"
11125 then :
11126 ac_cv_lib_dl_dlopen=yes
11127 else $as_nop
11128 ac_cv_lib_dl_dlopen=no
11130 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11131 conftest$ac_exeext conftest.$ac_ext
11132 LIBS=$ac_check_lib_save_LIBS
11134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11135 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
11136 if test "x$ac_cv_lib_dl_dlopen" = xyes
11137 then :
11138 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11139 else $as_nop
11141 lt_cv_dlopen=dyld
11142 lt_cv_dlopen_libs=
11143 lt_cv_dlopen_self=yes
11149 tpf*)
11150 # Don't try to run any link tests for TPF. We know it's impossible
11151 # because TPF is a cross-compiler, and we know how we open DSOs.
11152 lt_cv_dlopen=dlopen
11153 lt_cv_dlopen_libs=
11154 lt_cv_dlopen_self=no
11158 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11159 if test "x$ac_cv_func_shl_load" = xyes
11160 then :
11161 lt_cv_dlopen=shl_load
11162 else $as_nop
11163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11164 printf %s "checking for shl_load in -ldld... " >&6; }
11165 if test ${ac_cv_lib_dld_shl_load+y}
11166 then :
11167 printf %s "(cached) " >&6
11168 else $as_nop
11169 ac_check_lib_save_LIBS=$LIBS
11170 LIBS="-ldld $LIBS"
11171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11172 /* end confdefs.h. */
11174 /* Override any GCC internal prototype to avoid an error.
11175 Use char because int might match the return type of a GCC
11176 builtin and then its argument prototype would still apply. */
11177 char shl_load ();
11179 main (void)
11181 return shl_load ();
11183 return 0;
11185 _ACEOF
11186 if ac_fn_c_try_link "$LINENO"
11187 then :
11188 ac_cv_lib_dld_shl_load=yes
11189 else $as_nop
11190 ac_cv_lib_dld_shl_load=no
11192 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11193 conftest$ac_exeext conftest.$ac_ext
11194 LIBS=$ac_check_lib_save_LIBS
11196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11197 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
11198 if test "x$ac_cv_lib_dld_shl_load" = xyes
11199 then :
11200 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11201 else $as_nop
11202 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11203 if test "x$ac_cv_func_dlopen" = xyes
11204 then :
11205 lt_cv_dlopen=dlopen
11206 else $as_nop
11207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11208 printf %s "checking for dlopen in -ldl... " >&6; }
11209 if test ${ac_cv_lib_dl_dlopen+y}
11210 then :
11211 printf %s "(cached) " >&6
11212 else $as_nop
11213 ac_check_lib_save_LIBS=$LIBS
11214 LIBS="-ldl $LIBS"
11215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11216 /* end confdefs.h. */
11218 /* Override any GCC internal prototype to avoid an error.
11219 Use char because int might match the return type of a GCC
11220 builtin and then its argument prototype would still apply. */
11221 char dlopen ();
11223 main (void)
11225 return dlopen ();
11227 return 0;
11229 _ACEOF
11230 if ac_fn_c_try_link "$LINENO"
11231 then :
11232 ac_cv_lib_dl_dlopen=yes
11233 else $as_nop
11234 ac_cv_lib_dl_dlopen=no
11236 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11237 conftest$ac_exeext conftest.$ac_ext
11238 LIBS=$ac_check_lib_save_LIBS
11240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11241 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
11242 if test "x$ac_cv_lib_dl_dlopen" = xyes
11243 then :
11244 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11245 else $as_nop
11246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11247 printf %s "checking for dlopen in -lsvld... " >&6; }
11248 if test ${ac_cv_lib_svld_dlopen+y}
11249 then :
11250 printf %s "(cached) " >&6
11251 else $as_nop
11252 ac_check_lib_save_LIBS=$LIBS
11253 LIBS="-lsvld $LIBS"
11254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11255 /* end confdefs.h. */
11257 /* Override any GCC internal prototype to avoid an error.
11258 Use char because int might match the return type of a GCC
11259 builtin and then its argument prototype would still apply. */
11260 char dlopen ();
11262 main (void)
11264 return dlopen ();
11266 return 0;
11268 _ACEOF
11269 if ac_fn_c_try_link "$LINENO"
11270 then :
11271 ac_cv_lib_svld_dlopen=yes
11272 else $as_nop
11273 ac_cv_lib_svld_dlopen=no
11275 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11276 conftest$ac_exeext conftest.$ac_ext
11277 LIBS=$ac_check_lib_save_LIBS
11279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11280 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
11281 if test "x$ac_cv_lib_svld_dlopen" = xyes
11282 then :
11283 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11284 else $as_nop
11285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11286 printf %s "checking for dld_link in -ldld... " >&6; }
11287 if test ${ac_cv_lib_dld_dld_link+y}
11288 then :
11289 printf %s "(cached) " >&6
11290 else $as_nop
11291 ac_check_lib_save_LIBS=$LIBS
11292 LIBS="-ldld $LIBS"
11293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11294 /* end confdefs.h. */
11296 /* Override any GCC internal prototype to avoid an error.
11297 Use char because int might match the return type of a GCC
11298 builtin and then its argument prototype would still apply. */
11299 char dld_link ();
11301 main (void)
11303 return dld_link ();
11305 return 0;
11307 _ACEOF
11308 if ac_fn_c_try_link "$LINENO"
11309 then :
11310 ac_cv_lib_dld_dld_link=yes
11311 else $as_nop
11312 ac_cv_lib_dld_dld_link=no
11314 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11315 conftest$ac_exeext conftest.$ac_ext
11316 LIBS=$ac_check_lib_save_LIBS
11318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11319 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
11320 if test "x$ac_cv_lib_dld_dld_link" = xyes
11321 then :
11322 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11341 esac
11343 if test no = "$lt_cv_dlopen"; then
11344 enable_dlopen=no
11345 else
11346 enable_dlopen=yes
11349 case $lt_cv_dlopen in
11350 dlopen)
11351 save_CPPFLAGS=$CPPFLAGS
11352 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11354 save_LDFLAGS=$LDFLAGS
11355 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11357 save_LIBS=$LIBS
11358 LIBS="$lt_cv_dlopen_libs $LIBS"
11360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11361 printf %s "checking whether a program can dlopen itself... " >&6; }
11362 if test ${lt_cv_dlopen_self+y}
11363 then :
11364 printf %s "(cached) " >&6
11365 else $as_nop
11366 if test yes = "$cross_compiling"; then :
11367 lt_cv_dlopen_self=cross
11368 else
11369 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11370 lt_status=$lt_dlunknown
11371 cat > conftest.$ac_ext <<_LT_EOF
11372 #line $LINENO "configure"
11373 #include "confdefs.h"
11375 #if HAVE_DLFCN_H
11376 #include <dlfcn.h>
11377 #endif
11379 #include <stdio.h>
11381 #ifdef RTLD_GLOBAL
11382 # define LT_DLGLOBAL RTLD_GLOBAL
11383 #else
11384 # ifdef DL_GLOBAL
11385 # define LT_DLGLOBAL DL_GLOBAL
11386 # else
11387 # define LT_DLGLOBAL 0
11388 # endif
11389 #endif
11391 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11392 find out it does not work in some platform. */
11393 #ifndef LT_DLLAZY_OR_NOW
11394 # ifdef RTLD_LAZY
11395 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11396 # else
11397 # ifdef DL_LAZY
11398 # define LT_DLLAZY_OR_NOW DL_LAZY
11399 # else
11400 # ifdef RTLD_NOW
11401 # define LT_DLLAZY_OR_NOW RTLD_NOW
11402 # else
11403 # ifdef DL_NOW
11404 # define LT_DLLAZY_OR_NOW DL_NOW
11405 # else
11406 # define LT_DLLAZY_OR_NOW 0
11407 # endif
11408 # endif
11409 # endif
11410 # endif
11411 #endif
11413 /* When -fvisibility=hidden is used, assume the code has been annotated
11414 correspondingly for the symbols needed. */
11415 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11416 int fnord () __attribute__((visibility("default")));
11417 #endif
11419 int fnord () { return 42; }
11420 int main ()
11422 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11423 int status = $lt_dlunknown;
11425 if (self)
11427 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11428 else
11430 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11431 else puts (dlerror ());
11433 /* dlclose (self); */
11435 else
11436 puts (dlerror ());
11438 return status;
11440 _LT_EOF
11441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11442 (eval $ac_link) 2>&5
11443 ac_status=$?
11444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11445 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11446 (./conftest; exit; ) >&5 2>/dev/null
11447 lt_status=$?
11448 case x$lt_status in
11449 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11450 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11451 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11452 esac
11453 else :
11454 # compilation failed
11455 lt_cv_dlopen_self=no
11458 rm -fr conftest*
11462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11463 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
11465 if test yes = "$lt_cv_dlopen_self"; then
11466 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11468 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
11469 if test ${lt_cv_dlopen_self_static+y}
11470 then :
11471 printf %s "(cached) " >&6
11472 else $as_nop
11473 if test yes = "$cross_compiling"; then :
11474 lt_cv_dlopen_self_static=cross
11475 else
11476 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11477 lt_status=$lt_dlunknown
11478 cat > conftest.$ac_ext <<_LT_EOF
11479 #line $LINENO "configure"
11480 #include "confdefs.h"
11482 #if HAVE_DLFCN_H
11483 #include <dlfcn.h>
11484 #endif
11486 #include <stdio.h>
11488 #ifdef RTLD_GLOBAL
11489 # define LT_DLGLOBAL RTLD_GLOBAL
11490 #else
11491 # ifdef DL_GLOBAL
11492 # define LT_DLGLOBAL DL_GLOBAL
11493 # else
11494 # define LT_DLGLOBAL 0
11495 # endif
11496 #endif
11498 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11499 find out it does not work in some platform. */
11500 #ifndef LT_DLLAZY_OR_NOW
11501 # ifdef RTLD_LAZY
11502 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11503 # else
11504 # ifdef DL_LAZY
11505 # define LT_DLLAZY_OR_NOW DL_LAZY
11506 # else
11507 # ifdef RTLD_NOW
11508 # define LT_DLLAZY_OR_NOW RTLD_NOW
11509 # else
11510 # ifdef DL_NOW
11511 # define LT_DLLAZY_OR_NOW DL_NOW
11512 # else
11513 # define LT_DLLAZY_OR_NOW 0
11514 # endif
11515 # endif
11516 # endif
11517 # endif
11518 #endif
11520 /* When -fvisibility=hidden is used, assume the code has been annotated
11521 correspondingly for the symbols needed. */
11522 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11523 int fnord () __attribute__((visibility("default")));
11524 #endif
11526 int fnord () { return 42; }
11527 int main ()
11529 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11530 int status = $lt_dlunknown;
11532 if (self)
11534 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11535 else
11537 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11538 else puts (dlerror ());
11540 /* dlclose (self); */
11542 else
11543 puts (dlerror ());
11545 return status;
11547 _LT_EOF
11548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11549 (eval $ac_link) 2>&5
11550 ac_status=$?
11551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11552 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11553 (./conftest; exit; ) >&5 2>/dev/null
11554 lt_status=$?
11555 case x$lt_status in
11556 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11557 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11558 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11559 esac
11560 else :
11561 # compilation failed
11562 lt_cv_dlopen_self_static=no
11565 rm -fr conftest*
11569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11570 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
11573 CPPFLAGS=$save_CPPFLAGS
11574 LDFLAGS=$save_LDFLAGS
11575 LIBS=$save_LIBS
11577 esac
11579 case $lt_cv_dlopen_self in
11580 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11581 *) enable_dlopen_self=unknown ;;
11582 esac
11584 case $lt_cv_dlopen_self_static in
11585 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11586 *) enable_dlopen_self_static=unknown ;;
11587 esac
11606 striplib=
11607 old_striplib=
11608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11609 printf %s "checking whether stripping libraries is possible... " >&6; }
11610 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11611 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11612 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11614 printf "%s\n" "yes" >&6; }
11615 else
11616 # FIXME - insert some real tests, host_os isn't really good enough
11617 case $host_os in
11618 darwin*)
11619 if test -n "$STRIP"; then
11620 striplib="$STRIP -x"
11621 old_striplib="$STRIP -S"
11622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11623 printf "%s\n" "yes" >&6; }
11624 else
11625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11626 printf "%s\n" "no" >&6; }
11630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631 printf "%s\n" "no" >&6; }
11633 esac
11647 # Report what library types will actually be built
11648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11649 printf %s "checking if libtool supports shared libraries... " >&6; }
11650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11651 printf "%s\n" "$can_build_shared" >&6; }
11653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11654 printf %s "checking whether to build shared libraries... " >&6; }
11655 test no = "$can_build_shared" && enable_shared=no
11657 # On AIX, shared libraries and static libraries use the same namespace, and
11658 # are all built from PIC.
11659 case $host_os in
11660 aix3*)
11661 test yes = "$enable_shared" && enable_static=no
11662 if test -n "$RANLIB"; then
11663 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11664 postinstall_cmds='$RANLIB $lib'
11668 aix[4-9]*)
11669 if test ia64 != "$host_cpu"; then
11670 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11671 yes,aix,yes) ;; # shared object as lib.so file only
11672 yes,svr4,*) ;; # shared object as lib.so archive member only
11673 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11674 esac
11677 esac
11678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11679 printf "%s\n" "$enable_shared" >&6; }
11681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11682 printf %s "checking whether to build static libraries... " >&6; }
11683 # Make sure either enable_shared or enable_static is yes.
11684 test yes = "$enable_shared" || enable_static=yes
11685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11686 printf "%s\n" "$enable_static" >&6; }
11692 ac_ext=c
11693 ac_cpp='$CPP $CPPFLAGS'
11694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11698 CC=$lt_save_CC
11714 ac_config_commands="$ac_config_commands libtool"
11719 # Only expand once:
11723 # Find a good install program. We prefer a C program (faster),
11724 # so one script is as good as another. But avoid the broken or
11725 # incompatible versions:
11726 # SysV /etc/install, /usr/sbin/install
11727 # SunOS /usr/etc/install
11728 # IRIX /sbin/install
11729 # AIX /bin/install
11730 # AmigaOS /C/install, which installs bootblocks on floppy discs
11731 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11732 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11733 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11734 # OS/2's system install, which has a completely different semantic
11735 # ./install, which can be erroneously created by make from ./install.sh.
11736 # Reject install programs that cannot install multiple files.
11737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11738 printf %s "checking for a BSD-compatible install... " >&6; }
11739 if test -z "$INSTALL"; then
11740 if test ${ac_cv_path_install+y}
11741 then :
11742 printf %s "(cached) " >&6
11743 else $as_nop
11744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11745 for as_dir in $PATH
11747 IFS=$as_save_IFS
11748 case $as_dir in #(((
11749 '') as_dir=./ ;;
11750 */) ;;
11751 *) as_dir=$as_dir/ ;;
11752 esac
11753 # Account for fact that we put trailing slashes in our PATH walk.
11754 case $as_dir in #((
11755 ./ | /[cC]/* | \
11756 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11757 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11758 /usr/ucb/* ) ;;
11760 # OSF1 and SCO ODT 3.0 have their own names for install.
11761 # Don't use installbsd from OSF since it installs stuff as root
11762 # by default.
11763 for ac_prog in ginstall scoinst install; do
11764 for ac_exec_ext in '' $ac_executable_extensions; do
11765 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
11766 if test $ac_prog = install &&
11767 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11768 # AIX install. It has an incompatible calling convention.
11770 elif test $ac_prog = install &&
11771 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11772 # program-specific install script used by HP pwplus--don't use.
11774 else
11775 rm -rf conftest.one conftest.two conftest.dir
11776 echo one > conftest.one
11777 echo two > conftest.two
11778 mkdir conftest.dir
11779 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
11780 test -s conftest.one && test -s conftest.two &&
11781 test -s conftest.dir/conftest.one &&
11782 test -s conftest.dir/conftest.two
11783 then
11784 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
11785 break 3
11789 done
11790 done
11792 esac
11794 done
11795 IFS=$as_save_IFS
11797 rm -rf conftest.one conftest.two conftest.dir
11800 if test ${ac_cv_path_install+y}; then
11801 INSTALL=$ac_cv_path_install
11802 else
11803 # As a last resort, use the slow shell script. Don't cache a
11804 # value for INSTALL within a source directory, because that will
11805 # break other packages using the cache if that directory is
11806 # removed, or if the value is a relative name.
11807 INSTALL=$ac_install_sh
11810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11811 printf "%s\n" "$INSTALL" >&6; }
11813 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11814 # It thinks the first close brace ends the variable substitution.
11815 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11817 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11819 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11822 #########
11823 # Enable large file support (if special flags are necessary)
11825 # Check whether --enable-largefile was given.
11826 if test ${enable_largefile+y}
11827 then :
11828 enableval=$enable_largefile;
11831 if test "$enable_largefile" != no; then
11833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11834 printf %s "checking for special C compiler options needed for large files... " >&6; }
11835 if test ${ac_cv_sys_largefile_CC+y}
11836 then :
11837 printf %s "(cached) " >&6
11838 else $as_nop
11839 ac_cv_sys_largefile_CC=no
11840 if test "$GCC" != yes; then
11841 ac_save_CC=$CC
11842 while :; do
11843 # IRIX 6.2 and later do not support large files by default,
11844 # so use the C compiler's -n32 option if that helps.
11845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11846 /* end confdefs.h. */
11847 #include <sys/types.h>
11848 /* Check that off_t can represent 2**63 - 1 correctly.
11849 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11850 since some C++ compilers masquerading as C compilers
11851 incorrectly reject 9223372036854775807. */
11852 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
11853 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11854 && LARGE_OFF_T % 2147483647 == 1)
11855 ? 1 : -1];
11857 main (void)
11861 return 0;
11863 _ACEOF
11864 if ac_fn_c_try_compile "$LINENO"
11865 then :
11866 break
11868 rm -f core conftest.err conftest.$ac_objext conftest.beam
11869 CC="$CC -n32"
11870 if ac_fn_c_try_compile "$LINENO"
11871 then :
11872 ac_cv_sys_largefile_CC=' -n32'; break
11874 rm -f core conftest.err conftest.$ac_objext conftest.beam
11875 break
11876 done
11877 CC=$ac_save_CC
11878 rm -f conftest.$ac_ext
11881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11882 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
11883 if test "$ac_cv_sys_largefile_CC" != no; then
11884 CC=$CC$ac_cv_sys_largefile_CC
11887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11888 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11889 if test ${ac_cv_sys_file_offset_bits+y}
11890 then :
11891 printf %s "(cached) " >&6
11892 else $as_nop
11893 while :; do
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11896 #include <sys/types.h>
11897 /* Check that off_t can represent 2**63 - 1 correctly.
11898 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11899 since some C++ compilers masquerading as C compilers
11900 incorrectly reject 9223372036854775807. */
11901 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
11902 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11903 && LARGE_OFF_T % 2147483647 == 1)
11904 ? 1 : -1];
11906 main (void)
11910 return 0;
11912 _ACEOF
11913 if ac_fn_c_try_compile "$LINENO"
11914 then :
11915 ac_cv_sys_file_offset_bits=no; break
11917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11919 /* end confdefs.h. */
11920 #define _FILE_OFFSET_BITS 64
11921 #include <sys/types.h>
11922 /* Check that off_t can represent 2**63 - 1 correctly.
11923 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11924 since some C++ compilers masquerading as C compilers
11925 incorrectly reject 9223372036854775807. */
11926 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
11927 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11928 && LARGE_OFF_T % 2147483647 == 1)
11929 ? 1 : -1];
11931 main (void)
11935 return 0;
11937 _ACEOF
11938 if ac_fn_c_try_compile "$LINENO"
11939 then :
11940 ac_cv_sys_file_offset_bits=64; break
11942 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11943 ac_cv_sys_file_offset_bits=unknown
11944 break
11945 done
11947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11948 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
11949 case $ac_cv_sys_file_offset_bits in #(
11950 no | unknown) ;;
11952 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
11954 esac
11955 rm -rf conftest*
11956 if test $ac_cv_sys_file_offset_bits = unknown; then
11957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11958 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
11959 if test ${ac_cv_sys_large_files+y}
11960 then :
11961 printf %s "(cached) " >&6
11962 else $as_nop
11963 while :; do
11964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11965 /* end confdefs.h. */
11966 #include <sys/types.h>
11967 /* Check that off_t can represent 2**63 - 1 correctly.
11968 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11969 since some C++ compilers masquerading as C compilers
11970 incorrectly reject 9223372036854775807. */
11971 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
11972 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11973 && LARGE_OFF_T % 2147483647 == 1)
11974 ? 1 : -1];
11976 main (void)
11980 return 0;
11982 _ACEOF
11983 if ac_fn_c_try_compile "$LINENO"
11984 then :
11985 ac_cv_sys_large_files=no; break
11987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11989 /* end confdefs.h. */
11990 #define _LARGE_FILES 1
11991 #include <sys/types.h>
11992 /* Check that off_t can represent 2**63 - 1 correctly.
11993 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11994 since some C++ compilers masquerading as C compilers
11995 incorrectly reject 9223372036854775807. */
11996 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
11997 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11998 && LARGE_OFF_T % 2147483647 == 1)
11999 ? 1 : -1];
12001 main (void)
12005 return 0;
12007 _ACEOF
12008 if ac_fn_c_try_compile "$LINENO"
12009 then :
12010 ac_cv_sys_large_files=1; break
12012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12013 ac_cv_sys_large_files=unknown
12014 break
12015 done
12017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12018 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
12019 case $ac_cv_sys_large_files in #(
12020 no | unknown) ;;
12022 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
12024 esac
12025 rm -rf conftest*
12030 #########
12031 # Check for needed/wanted data types
12032 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
12033 if test "x$ac_cv_type_int8_t" = xyes
12034 then :
12036 printf "%s\n" "#define HAVE_INT8_T 1" >>confdefs.h
12040 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
12041 if test "x$ac_cv_type_int16_t" = xyes
12042 then :
12044 printf "%s\n" "#define HAVE_INT16_T 1" >>confdefs.h
12048 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
12049 if test "x$ac_cv_type_int32_t" = xyes
12050 then :
12052 printf "%s\n" "#define HAVE_INT32_T 1" >>confdefs.h
12056 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
12057 if test "x$ac_cv_type_int64_t" = xyes
12058 then :
12060 printf "%s\n" "#define HAVE_INT64_T 1" >>confdefs.h
12064 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12065 if test "x$ac_cv_type_intptr_t" = xyes
12066 then :
12068 printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
12072 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
12073 if test "x$ac_cv_type_uint8_t" = xyes
12074 then :
12076 printf "%s\n" "#define HAVE_UINT8_T 1" >>confdefs.h
12080 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
12081 if test "x$ac_cv_type_uint16_t" = xyes
12082 then :
12084 printf "%s\n" "#define HAVE_UINT16_T 1" >>confdefs.h
12088 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
12089 if test "x$ac_cv_type_uint32_t" = xyes
12090 then :
12092 printf "%s\n" "#define HAVE_UINT32_T 1" >>confdefs.h
12096 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
12097 if test "x$ac_cv_type_uint64_t" = xyes
12098 then :
12100 printf "%s\n" "#define HAVE_UINT64_T 1" >>confdefs.h
12104 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
12105 if test "x$ac_cv_type_uintptr_t" = xyes
12106 then :
12108 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
12114 #########
12115 # Check for needed/wanted headers
12116 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12117 if test "x$ac_cv_header_sys_types_h" = xyes
12118 then :
12119 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12122 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12123 if test "x$ac_cv_header_stdlib_h" = xyes
12124 then :
12125 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
12128 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
12129 if test "x$ac_cv_header_stdint_h" = xyes
12130 then :
12131 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
12134 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12135 if test "x$ac_cv_header_inttypes_h" = xyes
12136 then :
12137 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
12140 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
12141 if test "x$ac_cv_header_malloc_h" = xyes
12142 then :
12143 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
12148 #########
12149 # Figure out whether or not we have these functions
12151 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
12152 if test "x$ac_cv_func_fdatasync" = xyes
12153 then :
12154 printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
12157 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
12158 if test "x$ac_cv_func_gmtime_r" = xyes
12159 then :
12160 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
12163 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
12164 if test "x$ac_cv_func_isnan" = xyes
12165 then :
12166 printf "%s\n" "#define HAVE_ISNAN 1" >>confdefs.h
12169 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
12170 if test "x$ac_cv_func_localtime_r" = xyes
12171 then :
12172 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
12175 ac_fn_c_check_func "$LINENO" "localtime_s" "ac_cv_func_localtime_s"
12176 if test "x$ac_cv_func_localtime_s" = xyes
12177 then :
12178 printf "%s\n" "#define HAVE_LOCALTIME_S 1" >>confdefs.h
12181 ac_fn_c_check_func "$LINENO" "malloc_usable_size" "ac_cv_func_malloc_usable_size"
12182 if test "x$ac_cv_func_malloc_usable_size" = xyes
12183 then :
12184 printf "%s\n" "#define HAVE_MALLOC_USABLE_SIZE 1" >>confdefs.h
12187 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
12188 if test "x$ac_cv_func_strchrnul" = xyes
12189 then :
12190 printf "%s\n" "#define HAVE_STRCHRNUL 1" >>confdefs.h
12193 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
12194 if test "x$ac_cv_func_usleep" = xyes
12195 then :
12196 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
12199 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
12200 if test "x$ac_cv_func_utime" = xyes
12201 then :
12202 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
12205 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
12206 if test "x$ac_cv_func_pread" = xyes
12207 then :
12208 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
12211 ac_fn_c_check_func "$LINENO" "pread64" "ac_cv_func_pread64"
12212 if test "x$ac_cv_func_pread64" = xyes
12213 then :
12214 printf "%s\n" "#define HAVE_PREAD64 1" >>confdefs.h
12217 ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
12218 if test "x$ac_cv_func_pwrite" = xyes
12219 then :
12220 printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
12223 ac_fn_c_check_func "$LINENO" "pwrite64" "ac_cv_func_pwrite64"
12224 if test "x$ac_cv_func_pwrite64" = xyes
12225 then :
12226 printf "%s\n" "#define HAVE_PWRITE64 1" >>confdefs.h
12231 #########
12232 # By default, we use the amalgamation (this may be changed below...)
12234 USE_AMALGAMATION=1
12236 #########
12237 # See whether we can run specific tclsh versions known to work well;
12238 # if not, then we fall back to plain tclsh.
12239 # TODO: try other versions before falling back?
12241 for ac_prog in tclsh8.7 tclsh8.6 tclsh8.5 tclsh
12243 # Extract the first word of "$ac_prog", so it can be a program name with args.
12244 set dummy $ac_prog; ac_word=$2
12245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12246 printf %s "checking for $ac_word... " >&6; }
12247 if test ${ac_cv_prog_TCLSH_CMD+y}
12248 then :
12249 printf %s "(cached) " >&6
12250 else $as_nop
12251 if test -n "$TCLSH_CMD"; then
12252 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
12253 else
12254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12255 for as_dir in $PATH
12257 IFS=$as_save_IFS
12258 case $as_dir in #(((
12259 '') as_dir=./ ;;
12260 */) ;;
12261 *) as_dir=$as_dir/ ;;
12262 esac
12263 for ac_exec_ext in '' $ac_executable_extensions; do
12264 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12265 ac_cv_prog_TCLSH_CMD="$ac_prog"
12266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12267 break 2
12269 done
12270 done
12271 IFS=$as_save_IFS
12275 TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
12276 if test -n "$TCLSH_CMD"; then
12277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
12278 printf "%s\n" "$TCLSH_CMD" >&6; }
12279 else
12280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281 printf "%s\n" "no" >&6; }
12285 test -n "$TCLSH_CMD" && break
12286 done
12287 test -n "$TCLSH_CMD" || TCLSH_CMD="none"
12289 if test "$TCLSH_CMD" = "none"; then
12290 # If we can't find a local tclsh, then building the amalgamation will fail.
12291 # We act as though --disable-amalgamation has been used.
12292 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
12293 USE_AMALGAMATION=0
12294 TCLSH_CMD="tclsh"
12299 if test "x${TCLLIBDIR+set}" != "xset" ; then
12300 TCLLIBDIR='$(libdir)'
12301 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
12302 if test -d $i ; then
12303 TCLLIBDIR=$i
12304 break
12306 done
12307 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
12310 #########
12311 # Set up an appropriate program prefix
12313 if test "$program_prefix" = "NONE"; then
12314 program_prefix=""
12318 VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
12319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
12320 printf "%s\n" "$as_me: Version set to $VERSION" >&6;}
12322 RELEASE=`cat $srcdir/VERSION`
12323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
12324 printf "%s\n" "$as_me: Release set to $RELEASE" >&6;}
12327 ##########
12328 # Handle --with-wasi-sdk=DIR
12330 # This must be early because it changes the toolchain.
12333 # Check whether --with-wasi-sdk was given.
12334 if test ${with_wasi_sdk+y}
12335 then :
12336 withval=$with_wasi_sdk; with_wasisdk=${withval}
12339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for WASI SDK directory" >&5
12340 printf %s "checking for WASI SDK directory... " >&6; }
12341 if test ${ac_cv_c_wasi_sdk+y}
12342 then :
12343 printf %s "(cached) " >&6
12344 else $as_nop
12346 # First check to see if --with-tcl was specified.
12347 if test x"${with_wasi_sdk}" != x ; then
12348 if ! test -d "${with_wasi_sdk}" ; then
12349 as_fn_error $? "${with_wasi_sdk} directory doesn't exist" "$LINENO" 5
12351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${with_wasi_sdk}: using wasi-sdk clang, disabling: tcl, CLI shell, DLL" >&5
12352 printf "%s\n" "${with_wasi_sdk}: using wasi-sdk clang, disabling: tcl, CLI shell, DLL" >&6; }
12353 use_wasi_sdk=yes
12354 else
12355 use_wasi_sdk=no
12360 if test "${use_wasi_sdk}" = "no" ; then
12361 HAVE_WASI_SDK=""
12362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12363 printf "%s\n" "no" >&6; }
12364 else
12365 HAVE_WASI_SDK=1
12366 # Changing --host and --target have no effect here except to possibly
12367 # cause confusion. autoconf has finished processing them by this
12368 # point.
12370 # host_alias=wasm32-wasi
12371 # target=wasm32-wasi
12373 # Merely changing CC and LD to the wasi-sdk's is enough to get
12374 # sqlite3.o building in WASM format.
12375 CC="${with_wasi_sdk}/bin/clang"
12376 LD="${with_wasi_sdk}/bin/wasm-ld"
12377 RANLIB="${with_wasi_sdk}/bin/llvm-ranlib"
12378 cross_compiling=yes
12379 enable_threadsafe=no
12380 use_tcl=no
12381 enable_tcl=no
12382 # libtool is apparently hard-coded to use gcc for linking DLLs, so
12383 # we disable the DLL build...
12384 enable_shared=no
12385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12386 printf "%s\n" "yes" >&6; }
12391 #########
12392 # Locate a compiler for the build machine. This compiler should
12393 # generate command-line programs that run on the build machine.
12395 if test x"$cross_compiling" = xno; then
12396 BUILD_CC=$CC
12397 BUILD_CFLAGS=$CFLAGS
12398 else
12399 if test "${BUILD_CC+set}" != set; then
12400 for ac_prog in gcc cc cl
12402 # Extract the first word of "$ac_prog", so it can be a program name with args.
12403 set dummy $ac_prog; ac_word=$2
12404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12405 printf %s "checking for $ac_word... " >&6; }
12406 if test ${ac_cv_prog_BUILD_CC+y}
12407 then :
12408 printf %s "(cached) " >&6
12409 else $as_nop
12410 if test -n "$BUILD_CC"; then
12411 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12412 else
12413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414 for as_dir in $PATH
12416 IFS=$as_save_IFS
12417 case $as_dir in #(((
12418 '') as_dir=./ ;;
12419 */) ;;
12420 *) as_dir=$as_dir/ ;;
12421 esac
12422 for ac_exec_ext in '' $ac_executable_extensions; do
12423 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12424 ac_cv_prog_BUILD_CC="$ac_prog"
12425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12426 break 2
12428 done
12429 done
12430 IFS=$as_save_IFS
12434 BUILD_CC=$ac_cv_prog_BUILD_CC
12435 if test -n "$BUILD_CC"; then
12436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12437 printf "%s\n" "$BUILD_CC" >&6; }
12438 else
12439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440 printf "%s\n" "no" >&6; }
12444 test -n "$BUILD_CC" && break
12445 done
12448 if test "${BUILD_CFLAGS+set}" != set; then
12449 BUILD_CFLAGS="-g"
12454 ##########
12455 # Do we want to support multithreaded use of sqlite
12457 # Check whether --enable-threadsafe was given.
12458 if test ${enable_threadsafe+y}
12459 then :
12460 enableval=$enable_threadsafe;
12463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
12464 printf %s "checking whether to support threadsafe operation... " >&6; }
12465 if test "$enable_threadsafe" = "no"; then
12466 SQLITE_THREADSAFE=0
12467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12468 printf "%s\n" "no" >&6; }
12469 else
12470 SQLITE_THREADSAFE=1
12471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12472 printf "%s\n" "yes" >&6; }
12476 if test "$SQLITE_THREADSAFE" = "1"; then
12477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
12478 printf %s "checking for library containing pthread_create... " >&6; }
12479 if test ${ac_cv_search_pthread_create+y}
12480 then :
12481 printf %s "(cached) " >&6
12482 else $as_nop
12483 ac_func_search_save_LIBS=$LIBS
12484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12485 /* end confdefs.h. */
12487 /* Override any GCC internal prototype to avoid an error.
12488 Use char because int might match the return type of a GCC
12489 builtin and then its argument prototype would still apply. */
12490 char pthread_create ();
12492 main (void)
12494 return pthread_create ();
12496 return 0;
12498 _ACEOF
12499 for ac_lib in '' pthread
12501 if test -z "$ac_lib"; then
12502 ac_res="none required"
12503 else
12504 ac_res=-l$ac_lib
12505 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12507 if ac_fn_c_try_link "$LINENO"
12508 then :
12509 ac_cv_search_pthread_create=$ac_res
12511 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12512 conftest$ac_exeext
12513 if test ${ac_cv_search_pthread_create+y}
12514 then :
12515 break
12517 done
12518 if test ${ac_cv_search_pthread_create+y}
12519 then :
12521 else $as_nop
12522 ac_cv_search_pthread_create=no
12524 rm conftest.$ac_ext
12525 LIBS=$ac_func_search_save_LIBS
12527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
12528 printf "%s\n" "$ac_cv_search_pthread_create" >&6; }
12529 ac_res=$ac_cv_search_pthread_create
12530 if test "$ac_res" != no
12531 then :
12532 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
12537 printf %s "checking for library containing pthread_mutexattr_init... " >&6; }
12538 if test ${ac_cv_search_pthread_mutexattr_init+y}
12539 then :
12540 printf %s "(cached) " >&6
12541 else $as_nop
12542 ac_func_search_save_LIBS=$LIBS
12543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544 /* end confdefs.h. */
12546 /* Override any GCC internal prototype to avoid an error.
12547 Use char because int might match the return type of a GCC
12548 builtin and then its argument prototype would still apply. */
12549 char pthread_mutexattr_init ();
12551 main (void)
12553 return pthread_mutexattr_init ();
12555 return 0;
12557 _ACEOF
12558 for ac_lib in '' pthread
12560 if test -z "$ac_lib"; then
12561 ac_res="none required"
12562 else
12563 ac_res=-l$ac_lib
12564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12566 if ac_fn_c_try_link "$LINENO"
12567 then :
12568 ac_cv_search_pthread_mutexattr_init=$ac_res
12570 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12571 conftest$ac_exeext
12572 if test ${ac_cv_search_pthread_mutexattr_init+y}
12573 then :
12574 break
12576 done
12577 if test ${ac_cv_search_pthread_mutexattr_init+y}
12578 then :
12580 else $as_nop
12581 ac_cv_search_pthread_mutexattr_init=no
12583 rm conftest.$ac_ext
12584 LIBS=$ac_func_search_save_LIBS
12586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
12587 printf "%s\n" "$ac_cv_search_pthread_mutexattr_init" >&6; }
12588 ac_res=$ac_cv_search_pthread_mutexattr_init
12589 if test "$ac_res" != no
12590 then :
12591 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12597 ##########
12598 # Which crypto library do we use
12601 # Check whether --with-crypto-lib was given.
12602 if test ${with_crypto_lib+y}
12603 then :
12604 withval=$with_crypto_lib; crypto_lib=$withval
12607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypto library to use" >&5
12608 printf %s "checking for crypto library to use... " >&6; }
12609 if test "$crypto_lib" = "none"; then
12610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12611 printf "%s\n" "none" >&6; }
12612 else
12613 if test "$crypto_lib" = "commoncrypto"; then
12614 CFLAGS="$CFLAGS -DSQLCIPHER_CRYPTO_CC"
12615 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_CC"
12616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: commoncrypto" >&5
12617 printf "%s\n" "commoncrypto" >&6; }
12618 else
12619 if test "$crypto_lib" = "libtomcrypt"; then
12620 CFLAGS="$CFLAGS -DSQLCIPHER_CRYPTO_LIBTOMCRYPT"
12621 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_LIBTOMCRYPT"
12622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libtomcrypt" >&5
12623 printf "%s\n" "libtomcrypt" >&6; }
12624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for register_cipher in -ltomcrypt" >&5
12625 printf %s "checking for register_cipher in -ltomcrypt... " >&6; }
12626 if test ${ac_cv_lib_tomcrypt_register_cipher+y}
12627 then :
12628 printf %s "(cached) " >&6
12629 else $as_nop
12630 ac_check_lib_save_LIBS=$LIBS
12631 LIBS="-ltomcrypt $LIBS"
12632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h. */
12635 /* Override any GCC internal prototype to avoid an error.
12636 Use char because int might match the return type of a GCC
12637 builtin and then its argument prototype would still apply. */
12638 char register_cipher ();
12640 main (void)
12642 return register_cipher ();
12644 return 0;
12646 _ACEOF
12647 if ac_fn_c_try_link "$LINENO"
12648 then :
12649 ac_cv_lib_tomcrypt_register_cipher=yes
12650 else $as_nop
12651 ac_cv_lib_tomcrypt_register_cipher=no
12653 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12654 conftest$ac_exeext conftest.$ac_ext
12655 LIBS=$ac_check_lib_save_LIBS
12657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tomcrypt_register_cipher" >&5
12658 printf "%s\n" "$ac_cv_lib_tomcrypt_register_cipher" >&6; }
12659 if test "x$ac_cv_lib_tomcrypt_register_cipher" = xyes
12660 then :
12661 printf "%s\n" "#define HAVE_LIBTOMCRYPT 1" >>confdefs.h
12663 LIBS="-ltomcrypt $LIBS"
12665 else $as_nop
12666 as_fn_error $? "Library crypto not found. Install libtomcrypt!\"" "$LINENO" 5
12669 else
12670 if test "$crypto_lib" = "nss"; then
12671 CFLAGS="$CFLAGS -DSQLCIPHER_CRYPTO_NSS"
12672 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_NSS"
12673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: nss3" >&5
12674 printf "%s\n" "nss3" >&6; }
12675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PK11_Decrypt in -lnss3" >&5
12676 printf %s "checking for PK11_Decrypt in -lnss3... " >&6; }
12677 if test ${ac_cv_lib_nss3_PK11_Decrypt+y}
12678 then :
12679 printf %s "(cached) " >&6
12680 else $as_nop
12681 ac_check_lib_save_LIBS=$LIBS
12682 LIBS="-lnss3 $LIBS"
12683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12684 /* end confdefs.h. */
12686 /* Override any GCC internal prototype to avoid an error.
12687 Use char because int might match the return type of a GCC
12688 builtin and then its argument prototype would still apply. */
12689 char PK11_Decrypt ();
12691 main (void)
12693 return PK11_Decrypt ();
12695 return 0;
12697 _ACEOF
12698 if ac_fn_c_try_link "$LINENO"
12699 then :
12700 ac_cv_lib_nss3_PK11_Decrypt=yes
12701 else $as_nop
12702 ac_cv_lib_nss3_PK11_Decrypt=no
12704 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12705 conftest$ac_exeext conftest.$ac_ext
12706 LIBS=$ac_check_lib_save_LIBS
12708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_Decrypt" >&5
12709 printf "%s\n" "$ac_cv_lib_nss3_PK11_Decrypt" >&6; }
12710 if test "x$ac_cv_lib_nss3_PK11_Decrypt" = xyes
12711 then :
12712 printf "%s\n" "#define HAVE_LIBNSS3 1" >>confdefs.h
12714 LIBS="-lnss3 $LIBS"
12716 else $as_nop
12717 as_fn_error $? "Library crypto not found. Install nss!\"" "$LINENO" 5
12720 else
12721 CFLAGS="$CFLAGS -DSQLCIPHER_CRYPTO_OPENSSL"
12722 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_OPENSSL"
12723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: openssl" >&5
12724 printf "%s\n" "openssl" >&6; }
12725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
12726 printf %s "checking for HMAC_Init_ex in -lcrypto... " >&6; }
12727 if test ${ac_cv_lib_crypto_HMAC_Init_ex+y}
12728 then :
12729 printf %s "(cached) " >&6
12730 else $as_nop
12731 ac_check_lib_save_LIBS=$LIBS
12732 LIBS="-lcrypto $LIBS"
12733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734 /* end confdefs.h. */
12736 /* Override any GCC internal prototype to avoid an error.
12737 Use char because int might match the return type of a GCC
12738 builtin and then its argument prototype would still apply. */
12739 char HMAC_Init_ex ();
12741 main (void)
12743 return HMAC_Init_ex ();
12745 return 0;
12747 _ACEOF
12748 if ac_fn_c_try_link "$LINENO"
12749 then :
12750 ac_cv_lib_crypto_HMAC_Init_ex=yes
12751 else $as_nop
12752 ac_cv_lib_crypto_HMAC_Init_ex=no
12754 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12755 conftest$ac_exeext conftest.$ac_ext
12756 LIBS=$ac_check_lib_save_LIBS
12758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
12759 printf "%s\n" "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
12760 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes
12761 then :
12762 printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12764 LIBS="-lcrypto $LIBS"
12766 else $as_nop
12767 as_fn_error $? "Library crypto not found. Install openssl!\"" "$LINENO" 5
12775 ##########
12776 # Do we want to allow a connection created in one thread to be used
12777 # in another thread. This does not work on many Linux systems (ex: RedHat 9)
12778 # due to bugs in the threading implementations. This is thus off by default.
12780 # Check whether --enable-cross-thread-connections was given.
12781 if test ${enable_cross_thread_connections+y}
12782 then :
12783 enableval=$enable_cross_thread_connections;
12784 else $as_nop
12785 enable_xthreadconnect=no
12788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to allow connections to be shared across threads" >&5
12789 printf %s "checking whether to allow connections to be shared across threads... " >&6; }
12790 if test "$enable_xthreadconnect" = "no"; then
12791 XTHREADCONNECT=''
12792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793 printf "%s\n" "no" >&6; }
12794 else
12795 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
12796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12797 printf "%s\n" "yes" >&6; }
12801 ##########
12802 # Do we want to support release
12804 # Check whether --enable-releasemode was given.
12805 if test ${enable_releasemode+y}
12806 then :
12807 enableval=$enable_releasemode;
12808 else $as_nop
12809 enable_releasemode=no
12812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
12813 printf %s "checking whether to support shared library linked as release mode or not... " >&6; }
12814 if test "$enable_releasemode" = "no"; then
12815 ALLOWRELEASE=""
12816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12817 printf "%s\n" "no" >&6; }
12818 else
12819 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
12820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12821 printf "%s\n" "yes" >&6; }
12825 ##########
12826 # Do we want temporary databases in memory
12828 # Check whether --enable-tempstore was given.
12829 if test ${enable_tempstore+y}
12830 then :
12831 enableval=$enable_tempstore;
12832 else $as_nop
12833 enable_tempstore=no
12836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
12837 printf %s "checking whether to use an in-ram database for temporary tables... " >&6; }
12838 case "$enable_tempstore" in
12839 never )
12840 TEMP_STORE=0
12841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: never" >&5
12842 printf "%s\n" "never" >&6; }
12844 no )
12845 TEMP_STORE=1
12846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847 printf "%s\n" "no" >&6; }
12849 yes )
12850 TEMP_STORE=2
12851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12852 printf "%s\n" "yes" >&6; }
12854 always )
12855 TEMP_STORE=3
12856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: always" >&5
12857 printf "%s\n" "always" >&6; }
12860 TEMP_STORE=1
12861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12862 printf "%s\n" "no" >&6; }
12864 esac
12868 ###########
12869 # Lots of things are different if we are compiling for Windows using
12870 # the CYGWIN environment. So check for that special case and handle
12871 # things accordingly.
12873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
12874 printf %s "checking if executables have the .exe suffix... " >&6; }
12875 if test "$config_BUILD_EXEEXT" = ".exe"; then
12876 CYGWIN=yes
12877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12878 printf "%s\n" "yes" >&6; }
12879 else
12880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12881 printf "%s\n" "unknown" >&6; }
12883 if test "$CYGWIN" != "yes"; then
12885 case $host_os in
12886 *cygwin* ) CYGWIN=yes;;
12887 * ) CYGWIN=no;;
12888 esac
12891 if test "$CYGWIN" = "yes"; then
12892 BUILD_EXEEXT=.exe
12893 else
12894 BUILD_EXEEXT=$EXEEXT
12896 if test x"$cross_compiling" = xno; then
12897 TARGET_EXEEXT=$BUILD_EXEEXT
12898 else
12899 TARGET_EXEEXT=$config_TARGET_EXEEXT
12901 if test "$TARGET_EXEEXT" = ".exe"; then
12902 SQLITE_OS_UNIX=0
12903 SQLITE_OS_WIN=1
12904 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
12905 else
12906 SQLITE_OS_UNIX=1
12907 SQLITE_OS_WIN=0
12908 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
12916 ##########
12917 # Figure out all the parameters needed to compile against Tcl.
12919 # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
12920 # macros in the in the tcl.m4 file of the standard TCL distribution.
12921 # Those macros could not be used directly since we have to make some
12922 # minor changes to accomodate systems that do not have TCL installed.
12924 # Check whether --enable-tcl was given.
12925 if test ${enable_tcl+y}
12926 then :
12927 enableval=$enable_tcl; use_tcl=$enableval
12928 else $as_nop
12929 use_tcl=yes
12932 if test "${use_tcl}" = "yes" ; then
12934 # Check whether --with-tcl was given.
12935 if test ${with_tcl+y}
12936 then :
12937 withval=$with_tcl; with_tclconfig=${withval}
12940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
12941 printf %s "checking for Tcl configuration... " >&6; }
12942 if test ${ac_cv_c_tclconfig+y}
12943 then :
12944 printf %s "(cached) " >&6
12945 else $as_nop
12947 # First check to see if --with-tcl was specified.
12948 if test x"${with_tclconfig}" != x ; then
12949 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12950 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
12951 else
12952 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
12956 # Start autosearch by asking tclsh
12957 if test x"${ac_cv_c_tclconfig}" = x ; then
12958 if test x"$cross_compiling" = xno; then
12959 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
12961 if test -f "$i/tclConfig.sh" ; then
12962 ac_cv_c_tclconfig="$i"
12963 break
12965 done
12969 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
12970 # So try again after applying corrections.
12971 if test x"${ac_cv_c_tclconfig}" = x ; then
12972 if test x"$cross_compiling" = xno; then
12973 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
12975 if test -f "$i/tclConfig.sh" ; then
12976 ac_cv_c_tclconfig="$i"
12977 break
12979 done
12983 # Recent versions of Xcode on Macs hid the tclConfig.sh file
12984 # in a strange place.
12985 if test x"${ac_cv_c_tclconfig}" = x ; then
12986 if test x"$cross_compiling" = xno; then
12987 for i in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.sdk/usr/lib
12989 if test -f "$i/tclConfig.sh" ; then
12990 ac_cv_c_tclconfig="$i"
12991 break
12993 done
12997 # then check for a private Tcl installation
12998 if test x"${ac_cv_c_tclconfig}" = x ; then
12999 for i in \
13000 ../tcl \
13001 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13002 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
13003 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
13004 ../../tcl \
13005 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13006 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
13007 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
13008 ../../../tcl \
13009 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13010 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
13011 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
13013 if test -f "$i/unix/tclConfig.sh" ; then
13014 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
13015 break
13017 done
13020 # check in a few common install locations
13021 if test x"${ac_cv_c_tclconfig}" = x ; then
13022 for i in \
13023 `ls -d ${libdir} 2>/dev/null` \
13024 `ls -d /usr/local/lib 2>/dev/null` \
13025 `ls -d /usr/contrib/lib 2>/dev/null` \
13026 `ls -d /usr/lib 2>/dev/null`
13028 if test -f "$i/tclConfig.sh" ; then
13029 ac_cv_c_tclconfig=`(cd $i; pwd)`
13030 break
13032 done
13035 # check in a few other private locations
13036 if test x"${ac_cv_c_tclconfig}" = x ; then
13037 for i in \
13038 ${srcdir}/../tcl \
13039 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13040 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
13041 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
13043 if test -f "$i/unix/tclConfig.sh" ; then
13044 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
13045 break
13047 done
13053 if test x"${ac_cv_c_tclconfig}" = x ; then
13054 use_tcl=no
13055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
13056 printf "%s\n" "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
13057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
13058 printf "%s\n" "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
13059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
13060 printf "%s\n" "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
13061 else
13062 TCL_BIN_DIR=${ac_cv_c_tclconfig}
13063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
13064 printf "%s\n" "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
13066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
13067 printf %s "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
13068 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
13069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: loading" >&5
13070 printf "%s\n" "loading" >&6; }
13071 . $TCL_BIN_DIR/tclConfig.sh
13072 else
13073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
13074 printf "%s\n" "file not found" >&6; }
13078 # If the TCL_BIN_DIR is the build directory (not the install directory),
13079 # then set the common variable name to the value of the build variables.
13080 # For example, the variable TCL_LIB_SPEC will be set to the value
13081 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
13082 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
13083 # installed and uninstalled version of Tcl.
13086 if test -f $TCL_BIN_DIR/Makefile ; then
13087 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
13088 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
13089 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
13093 # eval is required to do the TCL_DBGX substitution
13096 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
13097 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
13098 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
13100 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
13101 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
13102 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
13119 if test "${use_tcl}" = "no" ; then
13120 HAVE_TCL=""
13121 else
13122 HAVE_TCL=1
13126 ##########
13127 # Figure out what C libraries are required to compile programs
13128 # that use "readline()" library.
13130 TARGET_READLINE_LIBS=""
13131 TARGET_READLINE_INC=""
13132 TARGET_HAVE_READLINE=0
13133 TARGET_HAVE_EDITLINE=0
13134 # Check whether --enable-editline was given.
13135 if test ${enable_editline+y}
13136 then :
13137 enableval=$enable_editline; with_editline=$enableval
13138 else $as_nop
13139 with_editline=auto
13142 # Check whether --enable-readline was given.
13143 if test ${enable_readline+y}
13144 then :
13145 enableval=$enable_readline; with_readline=$enableval
13146 else $as_nop
13147 with_readline=auto
13151 if test x"$with_editline" != xno; then
13152 sLIBS=$LIBS
13153 LIBS=""
13154 TARGET_HAVE_EDITLINE=1
13155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
13156 printf %s "checking for library containing readline... " >&6; }
13157 if test ${ac_cv_search_readline+y}
13158 then :
13159 printf %s "(cached) " >&6
13160 else $as_nop
13161 ac_func_search_save_LIBS=$LIBS
13162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13163 /* end confdefs.h. */
13165 /* Override any GCC internal prototype to avoid an error.
13166 Use char because int might match the return type of a GCC
13167 builtin and then its argument prototype would still apply. */
13168 char readline ();
13170 main (void)
13172 return readline ();
13174 return 0;
13176 _ACEOF
13177 for ac_lib in '' edit
13179 if test -z "$ac_lib"; then
13180 ac_res="none required"
13181 else
13182 ac_res=-l$ac_lib
13183 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13185 if ac_fn_c_try_link "$LINENO"
13186 then :
13187 ac_cv_search_readline=$ac_res
13189 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13190 conftest$ac_exeext
13191 if test ${ac_cv_search_readline+y}
13192 then :
13193 break
13195 done
13196 if test ${ac_cv_search_readline+y}
13197 then :
13199 else $as_nop
13200 ac_cv_search_readline=no
13202 rm conftest.$ac_ext
13203 LIBS=$ac_func_search_save_LIBS
13205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
13206 printf "%s\n" "$ac_cv_search_readline" >&6; }
13207 ac_res=$ac_cv_search_readline
13208 if test "$ac_res" != no
13209 then :
13210 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13211 with_readline=no
13212 else $as_nop
13213 TARGET_HAVE_EDITLINE=0
13216 TARGET_READLINE_LIBS=$LIBS
13217 LIBS=$sLIBS
13219 if test x"$with_readline" != xno; then
13220 found="yes"
13223 # Check whether --with-readline-lib was given.
13224 if test ${with_readline_lib+y}
13225 then :
13226 withval=$with_readline_lib; with_readline_lib=$withval
13227 else $as_nop
13228 with_readline_lib="auto"
13231 if test "x$with_readline_lib" = xauto; then
13232 save_LIBS="$LIBS"
13233 LIBS=""
13234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13235 printf %s "checking for library containing tgetent... " >&6; }
13236 if test ${ac_cv_search_tgetent+y}
13237 then :
13238 printf %s "(cached) " >&6
13239 else $as_nop
13240 ac_func_search_save_LIBS=$LIBS
13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h. */
13244 /* Override any GCC internal prototype to avoid an error.
13245 Use char because int might match the return type of a GCC
13246 builtin and then its argument prototype would still apply. */
13247 char tgetent ();
13249 main (void)
13251 return tgetent ();
13253 return 0;
13255 _ACEOF
13256 for ac_lib in '' readline ncurses curses termcap
13258 if test -z "$ac_lib"; then
13259 ac_res="none required"
13260 else
13261 ac_res=-l$ac_lib
13262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13264 if ac_fn_c_try_link "$LINENO"
13265 then :
13266 ac_cv_search_tgetent=$ac_res
13268 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13269 conftest$ac_exeext
13270 if test ${ac_cv_search_tgetent+y}
13271 then :
13272 break
13274 done
13275 if test ${ac_cv_search_tgetent+y}
13276 then :
13278 else $as_nop
13279 ac_cv_search_tgetent=no
13281 rm conftest.$ac_ext
13282 LIBS=$ac_func_search_save_LIBS
13284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13285 printf "%s\n" "$ac_cv_search_tgetent" >&6; }
13286 ac_res=$ac_cv_search_tgetent
13287 if test "$ac_res" != no
13288 then :
13289 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13290 term_LIBS="$LIBS"
13291 else $as_nop
13292 term_LIBS=""
13295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13296 printf %s "checking for readline in -lreadline... " >&6; }
13297 if test ${ac_cv_lib_readline_readline+y}
13298 then :
13299 printf %s "(cached) " >&6
13300 else $as_nop
13301 ac_check_lib_save_LIBS=$LIBS
13302 LIBS="-lreadline $LIBS"
13303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13304 /* end confdefs.h. */
13306 /* Override any GCC internal prototype to avoid an error.
13307 Use char because int might match the return type of a GCC
13308 builtin and then its argument prototype would still apply. */
13309 char readline ();
13311 main (void)
13313 return readline ();
13315 return 0;
13317 _ACEOF
13318 if ac_fn_c_try_link "$LINENO"
13319 then :
13320 ac_cv_lib_readline_readline=yes
13321 else $as_nop
13322 ac_cv_lib_readline_readline=no
13324 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13325 conftest$ac_exeext conftest.$ac_ext
13326 LIBS=$ac_check_lib_save_LIBS
13328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
13329 printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
13330 if test "x$ac_cv_lib_readline_readline" = xyes
13331 then :
13332 TARGET_READLINE_LIBS="-lreadline"
13333 else $as_nop
13334 found="no"
13337 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
13338 LIBS="$save_LIBS"
13339 else
13340 TARGET_READLINE_LIBS="$with_readline_lib"
13344 # Check whether --with-readline-inc was given.
13345 if test ${with_readline_inc+y}
13346 then :
13347 withval=$with_readline_inc; with_readline_inc=$withval
13348 else $as_nop
13349 with_readline_inc="auto"
13352 if test "x$with_readline_inc" = xauto; then
13353 ac_fn_c_check_header_compile "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
13354 if test "x$ac_cv_header_readline_h" = xyes
13355 then :
13356 found="yes"
13357 else $as_nop
13359 found="no"
13360 if test "$cross_compiling" != yes; then
13361 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
13362 for subdir in include include/readline; do
13363 as_ac_File=`printf "%s\n" "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
13364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
13365 printf %s "checking for $dir/$subdir/readline.h... " >&6; }
13366 if eval test \${$as_ac_File+y}
13367 then :
13368 printf %s "(cached) " >&6
13369 else $as_nop
13370 test "$cross_compiling" = yes &&
13371 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
13372 if test -r "$dir/$subdir/readline.h"; then
13373 eval "$as_ac_File=yes"
13374 else
13375 eval "$as_ac_File=no"
13378 eval ac_res=\$$as_ac_File
13379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13380 printf "%s\n" "$ac_res" >&6; }
13381 if eval test \"x\$"$as_ac_File"\" = x"yes"
13382 then :
13383 found=yes
13386 if test "$found" = "yes"; then
13387 TARGET_READLINE_INC="-I$dir/$subdir"
13388 break
13390 done
13391 test "$found" = "yes" && break
13392 done
13397 else
13398 TARGET_READLINE_INC="$with_readline_inc"
13401 if test x"$found" = xno; then
13402 TARGET_READLINE_LIBS=""
13403 TARGET_READLINE_INC=""
13404 TARGET_HAVE_READLINE=0
13405 else
13406 TARGET_HAVE_READLINE=1
13415 ##########
13416 # Figure out what C libraries are required to compile programs
13417 # that use "fdatasync()" function.
13419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
13420 printf %s "checking for library containing fdatasync... " >&6; }
13421 if test ${ac_cv_search_fdatasync+y}
13422 then :
13423 printf %s "(cached) " >&6
13424 else $as_nop
13425 ac_func_search_save_LIBS=$LIBS
13426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13427 /* end confdefs.h. */
13429 /* Override any GCC internal prototype to avoid an error.
13430 Use char because int might match the return type of a GCC
13431 builtin and then its argument prototype would still apply. */
13432 char fdatasync ();
13434 main (void)
13436 return fdatasync ();
13438 return 0;
13440 _ACEOF
13441 for ac_lib in '' rt
13443 if test -z "$ac_lib"; then
13444 ac_res="none required"
13445 else
13446 ac_res=-l$ac_lib
13447 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13449 if ac_fn_c_try_link "$LINENO"
13450 then :
13451 ac_cv_search_fdatasync=$ac_res
13453 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13454 conftest$ac_exeext
13455 if test ${ac_cv_search_fdatasync+y}
13456 then :
13457 break
13459 done
13460 if test ${ac_cv_search_fdatasync+y}
13461 then :
13463 else $as_nop
13464 ac_cv_search_fdatasync=no
13466 rm conftest.$ac_ext
13467 LIBS=$ac_func_search_save_LIBS
13469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
13470 printf "%s\n" "$ac_cv_search_fdatasync" >&6; }
13471 ac_res=$ac_cv_search_fdatasync
13472 if test "$ac_res" != no
13473 then :
13474 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13479 #########
13480 # check for debug enabled
13481 # Check whether --enable-debug was given.
13482 if test ${enable_debug+y}
13483 then :
13484 enableval=$enable_debug;
13487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build type" >&5
13488 printf %s "checking build type... " >&6; }
13489 if test "${enable_debug}" = "yes" ; then
13490 TARGET_DEBUG="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0"
13491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: debug" >&5
13492 printf "%s\n" "debug" >&6; }
13493 else
13494 TARGET_DEBUG="-DNDEBUG"
13495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: release" >&5
13496 printf "%s\n" "release" >&6; }
13500 #########
13501 # See whether we should use the amalgamation to build
13503 # Check whether --enable-amalgamation was given.
13504 if test ${enable_amalgamation+y}
13505 then :
13506 enableval=$enable_amalgamation;
13509 if test "${enable_amalgamation}" = "no" ; then
13510 USE_AMALGAMATION=0
13514 #########
13515 # By default, amalgamation sqlite3.c will have #line directives.
13516 # This is a build option not shown by ./configure --help
13517 # To control it, use configure option: amalgamation_line_macros=?
13518 # where ? is no to suppress #line directives or yes to create them.
13519 AMALGAMATION_LINE_MACROS=--linemacros=1
13522 if test "${amalgamation_line_macros+set}" = set; then :
13523 enableval=$amalgamation_line_macros;
13525 if test "${amalgamation_line_macros}" = "yes" ; then
13526 AMALGAMATION_LINE_MACROS=--linemacros=1
13528 if test "${amalgamation_line_macros}" = "no" ; then
13529 AMALGAMATION_LINE_MACROS=--linemacros=0
13532 #########
13533 # Look for zlib. Only needed by extensions and by the sqlite3.exe shell
13534 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13535 if test "x$ac_cv_header_zlib_h" = xyes
13536 then :
13537 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
13541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
13542 printf %s "checking for library containing deflate... " >&6; }
13543 if test ${ac_cv_search_deflate+y}
13544 then :
13545 printf %s "(cached) " >&6
13546 else $as_nop
13547 ac_func_search_save_LIBS=$LIBS
13548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13549 /* end confdefs.h. */
13551 /* Override any GCC internal prototype to avoid an error.
13552 Use char because int might match the return type of a GCC
13553 builtin and then its argument prototype would still apply. */
13554 char deflate ();
13556 main (void)
13558 return deflate ();
13560 return 0;
13562 _ACEOF
13563 for ac_lib in '' z
13565 if test -z "$ac_lib"; then
13566 ac_res="none required"
13567 else
13568 ac_res=-l$ac_lib
13569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13571 if ac_fn_c_try_link "$LINENO"
13572 then :
13573 ac_cv_search_deflate=$ac_res
13575 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13576 conftest$ac_exeext
13577 if test ${ac_cv_search_deflate+y}
13578 then :
13579 break
13581 done
13582 if test ${ac_cv_search_deflate+y}
13583 then :
13585 else $as_nop
13586 ac_cv_search_deflate=no
13588 rm conftest.$ac_ext
13589 LIBS=$ac_func_search_save_LIBS
13591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
13592 printf "%s\n" "$ac_cv_search_deflate" >&6; }
13593 ac_res=$ac_cv_search_deflate
13594 if test "$ac_res" != no
13595 then :
13596 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13597 HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1"
13598 else $as_nop
13599 HAVE_ZLIB=""
13604 #########
13605 # See whether we should allow loadable extensions
13606 # Check whether --enable-load-extension was given.
13607 if test ${enable_load_extension+y}
13608 then :
13609 enableval=$enable_load_extension;
13610 else $as_nop
13611 enable_load_extension=yes
13614 if test "${enable_load_extension}" = "yes" ; then
13615 OPT_FEATURE_FLAGS=""
13616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13617 printf %s "checking for library containing dlopen... " >&6; }
13618 if test ${ac_cv_search_dlopen+y}
13619 then :
13620 printf %s "(cached) " >&6
13621 else $as_nop
13622 ac_func_search_save_LIBS=$LIBS
13623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13624 /* end confdefs.h. */
13626 /* Override any GCC internal prototype to avoid an error.
13627 Use char because int might match the return type of a GCC
13628 builtin and then its argument prototype would still apply. */
13629 char dlopen ();
13631 main (void)
13633 return dlopen ();
13635 return 0;
13637 _ACEOF
13638 for ac_lib in '' dl
13640 if test -z "$ac_lib"; then
13641 ac_res="none required"
13642 else
13643 ac_res=-l$ac_lib
13644 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13646 if ac_fn_c_try_link "$LINENO"
13647 then :
13648 ac_cv_search_dlopen=$ac_res
13650 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13651 conftest$ac_exeext
13652 if test ${ac_cv_search_dlopen+y}
13653 then :
13654 break
13656 done
13657 if test ${ac_cv_search_dlopen+y}
13658 then :
13660 else $as_nop
13661 ac_cv_search_dlopen=no
13663 rm conftest.$ac_ext
13664 LIBS=$ac_func_search_save_LIBS
13666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13667 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
13668 ac_res=$ac_cv_search_dlopen
13669 if test "$ac_res" != no
13670 then :
13671 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13675 else
13676 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
13679 ##########
13680 # Do we want to support math functions
13682 # Check whether --enable-math was given.
13683 if test ${enable_math+y}
13684 then :
13685 enableval=$enable_math;
13688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support math functions" >&5
13689 printf %s "checking whether to support math functions... " >&6; }
13690 if test "$enable_math" = "no"; then
13691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13692 printf "%s\n" "no" >&6; }
13693 else
13694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13695 printf "%s\n" "yes" >&6; }
13696 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MATH_FUNCTIONS"
13697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5
13698 printf %s "checking for library containing ceil... " >&6; }
13699 if test ${ac_cv_search_ceil+y}
13700 then :
13701 printf %s "(cached) " >&6
13702 else $as_nop
13703 ac_func_search_save_LIBS=$LIBS
13704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13705 /* end confdefs.h. */
13707 /* Override any GCC internal prototype to avoid an error.
13708 Use char because int might match the return type of a GCC
13709 builtin and then its argument prototype would still apply. */
13710 char ceil ();
13712 main (void)
13714 return ceil ();
13716 return 0;
13718 _ACEOF
13719 for ac_lib in '' m
13721 if test -z "$ac_lib"; then
13722 ac_res="none required"
13723 else
13724 ac_res=-l$ac_lib
13725 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13727 if ac_fn_c_try_link "$LINENO"
13728 then :
13729 ac_cv_search_ceil=$ac_res
13731 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13732 conftest$ac_exeext
13733 if test ${ac_cv_search_ceil+y}
13734 then :
13735 break
13737 done
13738 if test ${ac_cv_search_ceil+y}
13739 then :
13741 else $as_nop
13742 ac_cv_search_ceil=no
13744 rm conftest.$ac_ext
13745 LIBS=$ac_func_search_save_LIBS
13747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5
13748 printf "%s\n" "$ac_cv_search_ceil" >&6; }
13749 ac_res=$ac_cv_search_ceil
13750 if test "$ac_res" != no
13751 then :
13752 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13758 ##########
13759 # Do we want to support JSON functions
13761 # Check whether --enable-json was given.
13762 if test ${enable_json+y}
13763 then :
13764 enableval=$enable_json;
13767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support JSON functions" >&5
13768 printf %s "checking whether to support JSON functions... " >&6; }
13769 if test "$enable_json" = "no"; then
13770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13771 printf "%s\n" "no" >&6; }
13772 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_OMIT_JSON"
13773 else
13774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13775 printf "%s\n" "yes" >&6; }
13778 ########
13779 # The --enable-all argument is short-hand to enable
13780 # multiple extensions.
13781 # Check whether --enable-all was given.
13782 if test ${enable_all+y}
13783 then :
13784 enableval=$enable_all;
13788 ##########
13789 # Do we want to support memsys3 and/or memsys5
13791 # Check whether --enable-memsys5 was given.
13792 if test ${enable_memsys5+y}
13793 then :
13794 enableval=$enable_memsys5;
13797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5
13798 printf %s "checking whether to support MEMSYS5... " >&6; }
13799 if test "${enable_memsys5}" = "yes"; then
13800 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5"
13801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13802 printf "%s\n" "yes" >&6; }
13803 else
13804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13805 printf "%s\n" "no" >&6; }
13807 # Check whether --enable-memsys3 was given.
13808 if test ${enable_memsys3+y}
13809 then :
13810 enableval=$enable_memsys3;
13813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5
13814 printf %s "checking whether to support MEMSYS3... " >&6; }
13815 if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then
13816 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3"
13817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13818 printf "%s\n" "yes" >&6; }
13819 else
13820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13821 printf "%s\n" "no" >&6; }
13824 #########
13825 # See whether we should enable Full Text Search extensions
13826 # Check whether --enable-fts3 was given.
13827 if test ${enable_fts3+y}
13828 then :
13829 enableval=$enable_fts3;
13832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support FTS3" >&5
13833 printf %s "checking whether to support FTS3... " >&6; }
13834 if test "${enable_fts3}" = "yes" ; then
13835 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3"
13836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13837 printf "%s\n" "yes" >&6; }
13838 else
13839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13840 printf "%s\n" "no" >&6; }
13842 # Check whether --enable-fts4 was given.
13843 if test ${enable_fts4+y}
13844 then :
13845 enableval=$enable_fts4;
13848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support FTS4" >&5
13849 printf %s "checking whether to support FTS4... " >&6; }
13850 if test "${enable_fts4}" = "yes" -o "${enable_all}" = "yes" ; then
13851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13852 printf "%s\n" "yes" >&6; }
13853 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4"
13854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
13855 printf %s "checking for library containing log... " >&6; }
13856 if test ${ac_cv_search_log+y}
13857 then :
13858 printf %s "(cached) " >&6
13859 else $as_nop
13860 ac_func_search_save_LIBS=$LIBS
13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h. */
13864 /* Override any GCC internal prototype to avoid an error.
13865 Use char because int might match the return type of a GCC
13866 builtin and then its argument prototype would still apply. */
13867 char log ();
13869 main (void)
13871 return log ();
13873 return 0;
13875 _ACEOF
13876 for ac_lib in '' m
13878 if test -z "$ac_lib"; then
13879 ac_res="none required"
13880 else
13881 ac_res=-l$ac_lib
13882 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13884 if ac_fn_c_try_link "$LINENO"
13885 then :
13886 ac_cv_search_log=$ac_res
13888 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13889 conftest$ac_exeext
13890 if test ${ac_cv_search_log+y}
13891 then :
13892 break
13894 done
13895 if test ${ac_cv_search_log+y}
13896 then :
13898 else $as_nop
13899 ac_cv_search_log=no
13901 rm conftest.$ac_ext
13902 LIBS=$ac_func_search_save_LIBS
13904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
13905 printf "%s\n" "$ac_cv_search_log" >&6; }
13906 ac_res=$ac_cv_search_log
13907 if test "$ac_res" != no
13908 then :
13909 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13913 else
13914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13915 printf "%s\n" "no" >&6; }
13917 # Check whether --enable-fts5 was given.
13918 if test ${enable_fts5+y}
13919 then :
13920 enableval=$enable_fts5;
13923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support FTS5" >&5
13924 printf %s "checking whether to support FTS5... " >&6; }
13925 if test "${enable_fts5}" = "yes" -o "${enable_all}" = "yes" ; then
13926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13927 printf "%s\n" "yes" >&6; }
13928 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5"
13929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
13930 printf %s "checking for library containing log... " >&6; }
13931 if test ${ac_cv_search_log+y}
13932 then :
13933 printf %s "(cached) " >&6
13934 else $as_nop
13935 ac_func_search_save_LIBS=$LIBS
13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h. */
13939 /* Override any GCC internal prototype to avoid an error.
13940 Use char because int might match the return type of a GCC
13941 builtin and then its argument prototype would still apply. */
13942 char log ();
13944 main (void)
13946 return log ();
13948 return 0;
13950 _ACEOF
13951 for ac_lib in '' m
13953 if test -z "$ac_lib"; then
13954 ac_res="none required"
13955 else
13956 ac_res=-l$ac_lib
13957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13959 if ac_fn_c_try_link "$LINENO"
13960 then :
13961 ac_cv_search_log=$ac_res
13963 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13964 conftest$ac_exeext
13965 if test ${ac_cv_search_log+y}
13966 then :
13967 break
13969 done
13970 if test ${ac_cv_search_log+y}
13971 then :
13973 else $as_nop
13974 ac_cv_search_log=no
13976 rm conftest.$ac_ext
13977 LIBS=$ac_func_search_save_LIBS
13979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
13980 printf "%s\n" "$ac_cv_search_log" >&6; }
13981 ac_res=$ac_cv_search_log
13982 if test "$ac_res" != no
13983 then :
13984 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13988 else
13989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13990 printf "%s\n" "no" >&6; }
13993 #########
13994 # See whether we should enable the LIMIT clause on UPDATE and DELETE
13995 # statements.
13996 # Check whether --enable-update-limit was given.
13997 if test ${enable_update_limit+y}
13998 then :
13999 enableval=$enable_update_limit;
14002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support LIMIT on UPDATE and DELETE statements" >&5
14003 printf %s "checking whether to support LIMIT on UPDATE and DELETE statements... " >&6; }
14004 if test "${enable_update_limit}" = "yes" ; then
14005 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT"
14006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14007 printf "%s\n" "yes" >&6; }
14008 else
14009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14010 printf "%s\n" "no" >&6; }
14013 #########
14014 # See whether we should enable GEOPOLY
14015 # Check whether --enable-geopoly was given.
14016 if test ${enable_geopoly+y}
14017 then :
14018 enableval=$enable_geopoly; enable_geopoly=yes
14019 else $as_nop
14020 enable_geopoly=no
14023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support GEOPOLY" >&5
14024 printf %s "checking whether to support GEOPOLY... " >&6; }
14025 if test "${enable_geopoly}" = "yes" -o "${enable_all}" = "yes" ; then
14026 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_GEOPOLY"
14027 enable_rtree=yes
14028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14029 printf "%s\n" "yes" >&6; }
14030 else
14031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14032 printf "%s\n" "no" >&6; }
14035 #########
14036 # See whether we should enable RTREE
14037 # Check whether --enable-rtree was given.
14038 if test ${enable_rtree+y}
14039 then :
14040 enableval=$enable_rtree;
14043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support RTREE" >&5
14044 printf %s "checking whether to support RTREE... " >&6; }
14045 if test "${enable_rtree}" = "yes" ; then
14046 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE"
14047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14048 printf "%s\n" "yes" >&6; }
14049 else
14050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14051 printf "%s\n" "no" >&6; }
14054 #########
14055 # See whether we should enable the SESSION extension
14056 # Check whether --enable-session was given.
14057 if test ${enable_session+y}
14058 then :
14059 enableval=$enable_session;
14062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support SESSION" >&5
14063 printf %s "checking whether to support SESSION... " >&6; }
14064 if test "${enable_session}" = "yes" -o "${enable_all}" = "yes" ; then
14065 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION"
14066 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK"
14067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14068 printf "%s\n" "yes" >&6; }
14069 else
14070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14071 printf "%s\n" "no" >&6; }
14074 #########
14075 # attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter
14076 for option in $CFLAGS $CPPFLAGS
14078 case $option in
14079 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
14080 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
14081 esac
14082 done
14086 # attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
14087 ac_temp_CFLAGS=""
14088 for option in $CFLAGS
14090 case $option in
14091 -DSQLITE_OMIT*) ;;
14092 -DSQLITE_ENABLE*) ;;
14093 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
14094 esac
14095 done
14096 CFLAGS=$ac_temp_CFLAGS
14099 # attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
14100 ac_temp_CPPFLAGS=""
14101 for option in $CPPFLAGS
14103 case $option in
14104 -DSQLITE_OMIT*) ;;
14105 -DSQLITE_ENABLE*) ;;
14106 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
14107 esac
14108 done
14109 CPPFLAGS=$ac_temp_CPPFLAGS
14112 # attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
14113 ac_temp_BUILD_CFLAGS=""
14114 for option in $BUILD_CFLAGS
14116 case $option in
14117 -DSQLITE_OMIT*) ;;
14118 -DSQLITE_ENABLE*) ;;
14119 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
14120 esac
14121 done
14122 BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
14125 #########
14126 # See whether we should use GCOV
14127 # Check whether --enable-gcov was given.
14128 if test ${enable_gcov+y}
14129 then :
14130 enableval=$enable_gcov;
14133 if test "${use_gcov}" = "yes" ; then
14134 USE_GCOV=1
14135 else
14136 USE_GCOV=0
14140 #########
14141 # Enable/disabled amalagamation line macros
14142 ########
14143 AMALGAMATION_LINE_MACROS=--linemacros=0
14144 if test "${amalgamation_line_macros}" = "yes" ; then
14145 AMALGAMATION_LINE_MACROS=--linemacros=1
14147 if test "${amalgamation_line_macros}" = "no" ; then
14148 AMALGAMATION_LINE_MACROS=--linemacros=0
14152 #########
14153 # Output the config header
14154 ac_config_headers="$ac_config_headers sqlite_cfg.h"
14157 #########
14158 # Generate the output files.
14161 ac_config_files="$ac_config_files Makefile sqlcipher.pc"
14163 cat >confcache <<\_ACEOF
14164 # This file is a shell script that caches the results of configure
14165 # tests run on this system so they can be shared between configure
14166 # scripts and configure runs, see configure's option --config-cache.
14167 # It is not useful on other systems. If it contains results you don't
14168 # want to keep, you may remove or edit it.
14170 # config.status only pays attention to the cache file if you give it
14171 # the --recheck option to rerun configure.
14173 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14174 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14175 # following values.
14177 _ACEOF
14179 # The following way of writing the cache mishandles newlines in values,
14180 # but we know of no workaround that is simple, portable, and efficient.
14181 # So, we kill variables containing newlines.
14182 # Ultrix sh set writes to stderr and can't be redirected directly,
14183 # and sets the high bit in the cache file unless we assign to the vars.
14185 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14186 eval ac_val=\$$ac_var
14187 case $ac_val in #(
14188 *${as_nl}*)
14189 case $ac_var in #(
14190 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14191 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14192 esac
14193 case $ac_var in #(
14194 _ | IFS | as_nl) ;; #(
14195 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14196 *) { eval $ac_var=; unset $ac_var;} ;;
14197 esac ;;
14198 esac
14199 done
14201 (set) 2>&1 |
14202 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14203 *${as_nl}ac_space=\ *)
14204 # `set' does not quote correctly, so add quotes: double-quote
14205 # substitution turns \\\\ into \\, and sed turns \\ into \.
14206 sed -n \
14207 "s/'/'\\\\''/g;
14208 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14209 ;; #(
14211 # `set' quotes correctly as required by POSIX, so do not add quotes.
14212 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14214 esac |
14215 sort
14217 sed '
14218 /^ac_cv_env_/b end
14219 t clear
14220 :clear
14221 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14222 t end
14223 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14224 :end' >>confcache
14225 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14226 if test -w "$cache_file"; then
14227 if test "x$cache_file" != "x/dev/null"; then
14228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14229 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14230 if test ! -f "$cache_file" || test -h "$cache_file"; then
14231 cat confcache >"$cache_file"
14232 else
14233 case $cache_file in #(
14234 */* | ?:*)
14235 mv -f confcache "$cache_file"$$ &&
14236 mv -f "$cache_file"$$ "$cache_file" ;; #(
14238 mv -f confcache "$cache_file" ;;
14239 esac
14242 else
14243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14244 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14247 rm -f confcache
14249 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14250 # Let make expand exec_prefix.
14251 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14253 DEFS=-DHAVE_CONFIG_H
14255 ac_libobjs=
14256 ac_ltlibobjs=
14258 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14259 # 1. Remove the extension, and $U if already installed.
14260 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14261 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
14262 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14263 # will be set to the directory where LIBOBJS objects are built.
14264 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14265 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14266 done
14267 LIBOBJS=$ac_libobjs
14269 LTLIBOBJS=$ac_ltlibobjs
14273 : "${CONFIG_STATUS=./config.status}"
14274 ac_write_fail=0
14275 ac_clean_files_save=$ac_clean_files
14276 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14278 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
14279 as_write_fail=0
14280 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14281 #! $SHELL
14282 # Generated by $as_me.
14283 # Run this file to recreate the current configuration.
14284 # Compiler output produced by configure, useful for debugging
14285 # configure, is in config.log if it exists.
14287 debug=false
14288 ac_cs_recheck=false
14289 ac_cs_silent=false
14291 SHELL=\${CONFIG_SHELL-$SHELL}
14292 export SHELL
14293 _ASEOF
14294 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14295 ## -------------------- ##
14296 ## M4sh Initialization. ##
14297 ## -------------------- ##
14299 # Be more Bourne compatible
14300 DUALCASE=1; export DUALCASE # for MKS sh
14301 as_nop=:
14302 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
14303 then :
14304 emulate sh
14305 NULLCMD=:
14306 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14307 # is contrary to our usage. Disable this feature.
14308 alias -g '${1+"$@"}'='"$@"'
14309 setopt NO_GLOB_SUBST
14310 else $as_nop
14311 case `(set -o) 2>/dev/null` in #(
14312 *posix*) :
14313 set -o posix ;; #(
14314 *) :
14316 esac
14321 # Reset variables that may have inherited troublesome values from
14322 # the environment.
14324 # IFS needs to be set, to space, tab, and newline, in precisely that order.
14325 # (If _AS_PATH_WALK were called with IFS unset, it would have the
14326 # side effect of setting IFS to empty, thus disabling word splitting.)
14327 # Quoting is to prevent editors from complaining about space-tab.
14328 as_nl='
14330 export as_nl
14331 IFS=" "" $as_nl"
14333 PS1='$ '
14334 PS2='> '
14335 PS4='+ '
14337 # Ensure predictable behavior from utilities with locale-dependent output.
14338 LC_ALL=C
14339 export LC_ALL
14340 LANGUAGE=C
14341 export LANGUAGE
14343 # We cannot yet rely on "unset" to work, but we need these variables
14344 # to be unset--not just set to an empty or harmless value--now, to
14345 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
14346 # also avoids known problems related to "unset" and subshell syntax
14347 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
14348 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
14349 do eval test \${$as_var+y} \
14350 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14351 done
14353 # Ensure that fds 0, 1, and 2 are open.
14354 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
14355 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
14356 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
14358 # The user is always right.
14359 if ${PATH_SEPARATOR+false} :; then
14360 PATH_SEPARATOR=:
14361 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14362 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14363 PATH_SEPARATOR=';'
14368 # Find who we are. Look in the path if we contain no directory separator.
14369 as_myself=
14370 case $0 in #((
14371 *[\\/]* ) as_myself=$0 ;;
14372 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14373 for as_dir in $PATH
14375 IFS=$as_save_IFS
14376 case $as_dir in #(((
14377 '') as_dir=./ ;;
14378 */) ;;
14379 *) as_dir=$as_dir/ ;;
14380 esac
14381 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
14382 done
14383 IFS=$as_save_IFS
14386 esac
14387 # We did not find ourselves, most probably we were run as `sh COMMAND'
14388 # in which case we are not to be found in the path.
14389 if test "x$as_myself" = x; then
14390 as_myself=$0
14392 if test ! -f "$as_myself"; then
14393 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14394 exit 1
14399 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14400 # ----------------------------------------
14401 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14402 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14403 # script with STATUS, using 1 if that was 0.
14404 as_fn_error ()
14406 as_status=$1; test $as_status -eq 0 && as_status=1
14407 if test "$4"; then
14408 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14411 printf "%s\n" "$as_me: error: $2" >&2
14412 as_fn_exit $as_status
14413 } # as_fn_error
14417 # as_fn_set_status STATUS
14418 # -----------------------
14419 # Set $? to STATUS, without forking.
14420 as_fn_set_status ()
14422 return $1
14423 } # as_fn_set_status
14425 # as_fn_exit STATUS
14426 # -----------------
14427 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14428 as_fn_exit ()
14430 set +e
14431 as_fn_set_status $1
14432 exit $1
14433 } # as_fn_exit
14435 # as_fn_unset VAR
14436 # ---------------
14437 # Portably unset VAR.
14438 as_fn_unset ()
14440 { eval $1=; unset $1;}
14442 as_unset=as_fn_unset
14444 # as_fn_append VAR VALUE
14445 # ----------------------
14446 # Append the text in VALUE to the end of the definition contained in VAR. Take
14447 # advantage of any shell optimizations that allow amortized linear growth over
14448 # repeated appends, instead of the typical quadratic growth present in naive
14449 # implementations.
14450 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
14451 then :
14452 eval 'as_fn_append ()
14454 eval $1+=\$2
14456 else $as_nop
14457 as_fn_append ()
14459 eval $1=\$$1\$2
14461 fi # as_fn_append
14463 # as_fn_arith ARG...
14464 # ------------------
14465 # Perform arithmetic evaluation on the ARGs, and store the result in the
14466 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14467 # must be portable across $(()) and expr.
14468 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
14469 then :
14470 eval 'as_fn_arith ()
14472 as_val=$(( $* ))
14474 else $as_nop
14475 as_fn_arith ()
14477 as_val=`expr "$@" || test $? -eq 1`
14479 fi # as_fn_arith
14482 if expr a : '\(a\)' >/dev/null 2>&1 &&
14483 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14484 as_expr=expr
14485 else
14486 as_expr=false
14489 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14490 as_basename=basename
14491 else
14492 as_basename=false
14495 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14496 as_dirname=dirname
14497 else
14498 as_dirname=false
14501 as_me=`$as_basename -- "$0" ||
14502 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14503 X"$0" : 'X\(//\)$' \| \
14504 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14505 printf "%s\n" X/"$0" |
14506 sed '/^.*\/\([^/][^/]*\)\/*$/{
14507 s//\1/
14510 /^X\/\(\/\/\)$/{
14511 s//\1/
14514 /^X\/\(\/\).*/{
14515 s//\1/
14518 s/.*/./; q'`
14520 # Avoid depending upon Character Ranges.
14521 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14522 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14523 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14524 as_cr_digits='0123456789'
14525 as_cr_alnum=$as_cr_Letters$as_cr_digits
14528 # Determine whether it's possible to make 'echo' print without a newline.
14529 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
14530 # for compatibility with existing Makefiles.
14531 ECHO_C= ECHO_N= ECHO_T=
14532 case `echo -n x` in #(((((
14533 -n*)
14534 case `echo 'xy\c'` in
14535 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14536 xy) ECHO_C='\c';;
14537 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14538 ECHO_T=' ';;
14539 esac;;
14541 ECHO_N='-n';;
14542 esac
14544 # For backward compatibility with old third-party macros, we provide
14545 # the shell variables $as_echo and $as_echo_n. New code should use
14546 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
14547 as_echo='printf %s\n'
14548 as_echo_n='printf %s'
14550 rm -f conf$$ conf$$.exe conf$$.file
14551 if test -d conf$$.dir; then
14552 rm -f conf$$.dir/conf$$.file
14553 else
14554 rm -f conf$$.dir
14555 mkdir conf$$.dir 2>/dev/null
14557 if (echo >conf$$.file) 2>/dev/null; then
14558 if ln -s conf$$.file conf$$ 2>/dev/null; then
14559 as_ln_s='ln -s'
14560 # ... but there are two gotchas:
14561 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14562 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14563 # In both cases, we have to default to `cp -pR'.
14564 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14565 as_ln_s='cp -pR'
14566 elif ln conf$$.file conf$$ 2>/dev/null; then
14567 as_ln_s=ln
14568 else
14569 as_ln_s='cp -pR'
14571 else
14572 as_ln_s='cp -pR'
14574 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14575 rmdir conf$$.dir 2>/dev/null
14578 # as_fn_mkdir_p
14579 # -------------
14580 # Create "$as_dir" as a directory, including parents if necessary.
14581 as_fn_mkdir_p ()
14584 case $as_dir in #(
14585 -*) as_dir=./$as_dir;;
14586 esac
14587 test -d "$as_dir" || eval $as_mkdir_p || {
14588 as_dirs=
14589 while :; do
14590 case $as_dir in #(
14591 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14592 *) as_qdir=$as_dir;;
14593 esac
14594 as_dirs="'$as_qdir' $as_dirs"
14595 as_dir=`$as_dirname -- "$as_dir" ||
14596 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14597 X"$as_dir" : 'X\(//\)[^/]' \| \
14598 X"$as_dir" : 'X\(//\)$' \| \
14599 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14600 printf "%s\n" X"$as_dir" |
14601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14602 s//\1/
14605 /^X\(\/\/\)[^/].*/{
14606 s//\1/
14609 /^X\(\/\/\)$/{
14610 s//\1/
14613 /^X\(\/\).*/{
14614 s//\1/
14617 s/.*/./; q'`
14618 test -d "$as_dir" && break
14619 done
14620 test -z "$as_dirs" || eval "mkdir $as_dirs"
14621 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14624 } # as_fn_mkdir_p
14625 if mkdir -p . 2>/dev/null; then
14626 as_mkdir_p='mkdir -p "$as_dir"'
14627 else
14628 test -d ./-p && rmdir ./-p
14629 as_mkdir_p=false
14633 # as_fn_executable_p FILE
14634 # -----------------------
14635 # Test if FILE is an executable regular file.
14636 as_fn_executable_p ()
14638 test -f "$1" && test -x "$1"
14639 } # as_fn_executable_p
14640 as_test_x='test -x'
14641 as_executable_p=as_fn_executable_p
14643 # Sed expression to map a string onto a valid CPP name.
14644 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14646 # Sed expression to map a string onto a valid variable name.
14647 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14650 exec 6>&1
14651 ## ----------------------------------- ##
14652 ## Main body of $CONFIG_STATUS script. ##
14653 ## ----------------------------------- ##
14654 _ASEOF
14655 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14658 # Save the log message, to keep $0 and so on meaningful, and to
14659 # report actual input values of CONFIG_FILES etc. instead of their
14660 # values after options handling.
14661 ac_log="
14662 This file was extended by sqlcipher $as_me 3.43.1, which was
14663 generated by GNU Autoconf 2.71. Invocation command line was
14665 CONFIG_FILES = $CONFIG_FILES
14666 CONFIG_HEADERS = $CONFIG_HEADERS
14667 CONFIG_LINKS = $CONFIG_LINKS
14668 CONFIG_COMMANDS = $CONFIG_COMMANDS
14669 $ $0 $@
14671 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14674 _ACEOF
14676 case $ac_config_files in *"
14677 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14678 esac
14680 case $ac_config_headers in *"
14681 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14682 esac
14685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14686 # Files that config.status was made for.
14687 config_files="$ac_config_files"
14688 config_headers="$ac_config_headers"
14689 config_commands="$ac_config_commands"
14691 _ACEOF
14693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14694 ac_cs_usage="\
14695 \`$as_me' instantiates files and other configuration actions
14696 from templates according to the current configuration. Unless the files
14697 and actions are specified as TAGs, all are instantiated by default.
14699 Usage: $0 [OPTION]... [TAG]...
14701 -h, --help print this help, then exit
14702 -V, --version print version number and configuration settings, then exit
14703 --config print configuration, then exit
14704 -q, --quiet, --silent
14705 do not print progress messages
14706 -d, --debug don't remove temporary files
14707 --recheck update $as_me by reconfiguring in the same conditions
14708 --file=FILE[:TEMPLATE]
14709 instantiate the configuration file FILE
14710 --header=FILE[:TEMPLATE]
14711 instantiate the configuration header FILE
14713 Configuration files:
14714 $config_files
14716 Configuration headers:
14717 $config_headers
14719 Configuration commands:
14720 $config_commands
14722 Report bugs to the package provider."
14724 _ACEOF
14725 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
14726 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
14727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14728 ac_cs_config='$ac_cs_config_escaped'
14729 ac_cs_version="\\
14730 sqlcipher config.status 3.43.1
14731 configured by $0, generated by GNU Autoconf 2.71,
14732 with options \\"\$ac_cs_config\\"
14734 Copyright (C) 2021 Free Software Foundation, Inc.
14735 This config.status script is free software; the Free Software Foundation
14736 gives unlimited permission to copy, distribute and modify it."
14738 ac_pwd='$ac_pwd'
14739 srcdir='$srcdir'
14740 INSTALL='$INSTALL'
14741 AWK='$AWK'
14742 test -n "\$AWK" || AWK=awk
14743 _ACEOF
14745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14746 # The default lists apply if the user does not specify any file.
14747 ac_need_defaults=:
14748 while test $# != 0
14750 case $1 in
14751 --*=?*)
14752 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14753 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14754 ac_shift=:
14756 --*=)
14757 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14758 ac_optarg=
14759 ac_shift=:
14762 ac_option=$1
14763 ac_optarg=$2
14764 ac_shift=shift
14766 esac
14768 case $ac_option in
14769 # Handling of the options.
14770 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14771 ac_cs_recheck=: ;;
14772 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14773 printf "%s\n" "$ac_cs_version"; exit ;;
14774 --config | --confi | --conf | --con | --co | --c )
14775 printf "%s\n" "$ac_cs_config"; exit ;;
14776 --debug | --debu | --deb | --de | --d | -d )
14777 debug=: ;;
14778 --file | --fil | --fi | --f )
14779 $ac_shift
14780 case $ac_optarg in
14781 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14782 '') as_fn_error $? "missing file argument" ;;
14783 esac
14784 as_fn_append CONFIG_FILES " '$ac_optarg'"
14785 ac_need_defaults=false;;
14786 --header | --heade | --head | --hea )
14787 $ac_shift
14788 case $ac_optarg in
14789 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14790 esac
14791 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14792 ac_need_defaults=false;;
14793 --he | --h)
14794 # Conflict between --help and --header
14795 as_fn_error $? "ambiguous option: \`$1'
14796 Try \`$0 --help' for more information.";;
14797 --help | --hel | -h )
14798 printf "%s\n" "$ac_cs_usage"; exit ;;
14799 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14800 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14801 ac_cs_silent=: ;;
14803 # This is an error.
14804 -*) as_fn_error $? "unrecognized option: \`$1'
14805 Try \`$0 --help' for more information." ;;
14807 *) as_fn_append ac_config_targets " $1"
14808 ac_need_defaults=false ;;
14810 esac
14811 shift
14812 done
14814 ac_configure_extra_args=
14816 if $ac_cs_silent; then
14817 exec 6>/dev/null
14818 ac_configure_extra_args="$ac_configure_extra_args --silent"
14821 _ACEOF
14822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14823 if \$ac_cs_recheck; then
14824 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14825 shift
14826 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
14827 CONFIG_SHELL='$SHELL'
14828 export CONFIG_SHELL
14829 exec "\$@"
14832 _ACEOF
14833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14834 exec 5>>config.log
14836 echo
14837 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14838 ## Running $as_me. ##
14839 _ASBOX
14840 printf "%s\n" "$ac_log"
14841 } >&5
14843 _ACEOF
14844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14846 # INIT-COMMANDS
14850 # The HP-UX ksh and POSIX shell print the target directory to stdout
14851 # if CDPATH is set.
14852 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14854 sed_quote_subst='$sed_quote_subst'
14855 double_quote_subst='$double_quote_subst'
14856 delay_variable_subst='$delay_variable_subst'
14857 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14858 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14859 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14860 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14861 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14862 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14863 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14864 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14865 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14866 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14867 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14868 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14869 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14870 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14871 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14872 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14873 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14874 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14875 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14876 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14877 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14878 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14879 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14880 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14881 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14882 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14883 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14884 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14885 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14886 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14887 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14888 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14889 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14890 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14891 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14892 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14893 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14894 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14895 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14896 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14897 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14898 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14899 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14900 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14901 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14902 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14903 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14904 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14905 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14906 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14907 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14908 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14909 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14910 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14911 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14912 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14913 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14914 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14915 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14916 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14917 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14918 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14919 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14920 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14921 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14922 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14923 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14924 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14925 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14926 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14927 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14928 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14929 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14930 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14931 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14932 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14933 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14934 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14935 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14936 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14937 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14938 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14939 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14940 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14941 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14942 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14943 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14944 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14945 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14946 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14947 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14948 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14949 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14950 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14951 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14952 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14953 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14954 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14955 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14956 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14957 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14958 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14959 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14960 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14961 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14962 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14963 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14964 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14965 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14966 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14967 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14968 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14969 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14970 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14971 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14972 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14973 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14974 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14975 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14976 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14977 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14978 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14979 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14980 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14981 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14982 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14983 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14984 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14985 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14986 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14987 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14988 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14989 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14990 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14991 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14993 LTCC='$LTCC'
14994 LTCFLAGS='$LTCFLAGS'
14995 compiler='$compiler_DEFAULT'
14997 # A function that is used when there is no print builtin or printf.
14998 func_fallback_echo ()
15000 eval 'cat <<_LTECHO_EOF
15002 _LTECHO_EOF'
15005 # Quote evaled strings.
15006 for var in SHELL \
15007 ECHO \
15008 PATH_SEPARATOR \
15009 SED \
15010 GREP \
15011 EGREP \
15012 FGREP \
15013 LD \
15014 NM \
15015 LN_S \
15016 lt_SP2NL \
15017 lt_NL2SP \
15018 reload_flag \
15019 OBJDUMP \
15020 deplibs_check_method \
15021 file_magic_cmd \
15022 file_magic_glob \
15023 want_nocaseglob \
15024 DLLTOOL \
15025 sharedlib_from_linklib_cmd \
15026 AR \
15027 AR_FLAGS \
15028 archiver_list_spec \
15029 STRIP \
15030 RANLIB \
15031 CC \
15032 CFLAGS \
15033 compiler \
15034 lt_cv_sys_global_symbol_pipe \
15035 lt_cv_sys_global_symbol_to_cdecl \
15036 lt_cv_sys_global_symbol_to_import \
15037 lt_cv_sys_global_symbol_to_c_name_address \
15038 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15039 lt_cv_nm_interface \
15040 nm_file_list_spec \
15041 lt_cv_truncate_bin \
15042 lt_prog_compiler_no_builtin_flag \
15043 lt_prog_compiler_pic \
15044 lt_prog_compiler_wl \
15045 lt_prog_compiler_static \
15046 lt_cv_prog_compiler_c_o \
15047 need_locks \
15048 MANIFEST_TOOL \
15049 DSYMUTIL \
15050 NMEDIT \
15051 LIPO \
15052 OTOOL \
15053 OTOOL64 \
15054 shrext_cmds \
15055 export_dynamic_flag_spec \
15056 whole_archive_flag_spec \
15057 compiler_needs_object \
15058 with_gnu_ld \
15059 allow_undefined_flag \
15060 no_undefined_flag \
15061 hardcode_libdir_flag_spec \
15062 hardcode_libdir_separator \
15063 exclude_expsyms \
15064 include_expsyms \
15065 file_list_spec \
15066 variables_saved_for_relink \
15067 libname_spec \
15068 library_names_spec \
15069 soname_spec \
15070 install_override_mode \
15071 finish_eval \
15072 old_striplib \
15073 striplib; do
15074 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15075 *[\\\\\\\`\\"\\\$]*)
15076 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15079 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15081 esac
15082 done
15084 # Double-quote double-evaled strings.
15085 for var in reload_cmds \
15086 old_postinstall_cmds \
15087 old_postuninstall_cmds \
15088 old_archive_cmds \
15089 extract_expsyms_cmds \
15090 old_archive_from_new_cmds \
15091 old_archive_from_expsyms_cmds \
15092 archive_cmds \
15093 archive_expsym_cmds \
15094 module_cmds \
15095 module_expsym_cmds \
15096 export_symbols_cmds \
15097 prelink_cmds \
15098 postlink_cmds \
15099 postinstall_cmds \
15100 postuninstall_cmds \
15101 finish_cmds \
15102 sys_lib_search_path_spec \
15103 configure_time_dlsearch_path \
15104 configure_time_lt_sys_library_path; do
15105 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15106 *[\\\\\\\`\\"\\\$]*)
15107 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15110 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15112 esac
15113 done
15115 ac_aux_dir='$ac_aux_dir'
15117 # See if we are running on zsh, and set the options that allow our
15118 # commands through without removal of \ escapes INIT.
15119 if test -n "\${ZSH_VERSION+set}"; then
15120 setopt NO_GLOB_SUBST
15124 PACKAGE='$PACKAGE'
15125 VERSION='$VERSION'
15126 RM='$RM'
15127 ofile='$ofile'
15132 _ACEOF
15134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15136 # Handling of arguments.
15137 for ac_config_target in $ac_config_targets
15139 case $ac_config_target in
15140 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15141 "sqlite_cfg.h") CONFIG_HEADERS="$CONFIG_HEADERS sqlite_cfg.h" ;;
15142 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15143 "sqlcipher.pc") CONFIG_FILES="$CONFIG_FILES sqlcipher.pc" ;;
15145 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15146 esac
15147 done
15150 # If the user did not use the arguments to specify the items to instantiate,
15151 # then the envvar interface is used. Set only those that are not.
15152 # We use the long form for the default assignment because of an extremely
15153 # bizarre bug on SunOS 4.1.3.
15154 if $ac_need_defaults; then
15155 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15156 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
15157 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
15160 # Have a temporary directory for convenience. Make it in the build tree
15161 # simply because there is no reason against having it here, and in addition,
15162 # creating and moving files from /tmp can sometimes cause problems.
15163 # Hook for its removal unless debugging.
15164 # Note that there is a small window in which the directory will not be cleaned:
15165 # after its creation but before its name has been assigned to `$tmp'.
15166 $debug ||
15168 tmp= ac_tmp=
15169 trap 'exit_status=$?
15170 : "${ac_tmp:=$tmp}"
15171 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15173 trap 'as_fn_exit 1' 1 2 13 15
15175 # Create a (secure) tmp directory for tmp files.
15178 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15179 test -d "$tmp"
15180 } ||
15182 tmp=./conf$$-$RANDOM
15183 (umask 077 && mkdir "$tmp")
15184 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15185 ac_tmp=$tmp
15187 # Set up the scripts for CONFIG_FILES section.
15188 # No need to generate them if there are no CONFIG_FILES.
15189 # This happens for instance with `./config.status config.h'.
15190 if test -n "$CONFIG_FILES"; then
15193 ac_cr=`echo X | tr X '\015'`
15194 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15195 # But we know of no other shell where ac_cr would be empty at this
15196 # point, so we can use a bashism as a fallback.
15197 if test "x$ac_cr" = x; then
15198 eval ac_cr=\$\'\\r\'
15200 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15201 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15202 ac_cs_awk_cr='\\r'
15203 else
15204 ac_cs_awk_cr=$ac_cr
15207 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15208 _ACEOF
15212 echo "cat >conf$$subs.awk <<_ACEOF" &&
15213 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15214 echo "_ACEOF"
15215 } >conf$$subs.sh ||
15216 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15217 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15218 ac_delim='%!_!# '
15219 for ac_last_try in false false false false false :; do
15220 . ./conf$$subs.sh ||
15221 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15223 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15224 if test $ac_delim_n = $ac_delim_num; then
15225 break
15226 elif $ac_last_try; then
15227 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15228 else
15229 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15231 done
15232 rm -f conf$$subs.sh
15234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15235 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15236 _ACEOF
15237 sed -n '
15239 s/^/S["/; s/!.*/"]=/
15242 s/^[^!]*!//
15243 :repl
15244 t repl
15245 s/'"$ac_delim"'$//
15246 t delim
15249 s/\(.\{148\}\)..*/\1/
15250 t more1
15251 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15254 b repl
15255 :more1
15256 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15259 s/.\{148\}//
15260 t nl
15261 :delim
15263 s/\(.\{148\}\)..*/\1/
15264 t more2
15265 s/["\\]/\\&/g; s/^/"/; s/$/"/
15268 :more2
15269 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15272 s/.\{148\}//
15273 t delim
15274 ' <conf$$subs.awk | sed '
15275 /^[^""]/{
15277 s/\n//
15279 ' >>$CONFIG_STATUS || ac_write_fail=1
15280 rm -f conf$$subs.awk
15281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15282 _ACAWK
15283 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15284 for (key in S) S_is_set[key] = 1
15285 FS = "\a"
15289 line = $ 0
15290 nfields = split(line, field, "@")
15291 substed = 0
15292 len = length(field[1])
15293 for (i = 2; i < nfields; i++) {
15294 key = field[i]
15295 keylen = length(key)
15296 if (S_is_set[key]) {
15297 value = S[key]
15298 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15299 len += length(value) + length(field[++i])
15300 substed = 1
15301 } else
15302 len += 1 + keylen
15305 print line
15308 _ACAWK
15309 _ACEOF
15310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15311 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15312 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15313 else
15315 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15316 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15317 _ACEOF
15319 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15320 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15321 # trailing colons and then remove the whole line if VPATH becomes empty
15322 # (actually we leave an empty line to preserve line numbers).
15323 if test "x$srcdir" = x.; then
15324 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15326 s///
15327 s/^/:/
15328 s/[ ]*$/:/
15329 s/:\$(srcdir):/:/g
15330 s/:\${srcdir}:/:/g
15331 s/:@srcdir@:/:/g
15332 s/^:*//
15333 s/:*$//
15335 s/\(=[ ]*\).*/\1/
15337 s/\n//
15338 s/^[^=]*=[ ]*$//
15342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15343 fi # test -n "$CONFIG_FILES"
15345 # Set up the scripts for CONFIG_HEADERS section.
15346 # No need to generate them if there are no CONFIG_HEADERS.
15347 # This happens for instance with `./config.status Makefile'.
15348 if test -n "$CONFIG_HEADERS"; then
15349 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15350 BEGIN {
15351 _ACEOF
15353 # Transform confdefs.h into an awk script `defines.awk', embedded as
15354 # here-document in config.status, that substitutes the proper values into
15355 # config.h.in to produce config.h.
15357 # Create a delimiter string that does not exist in confdefs.h, to ease
15358 # handling of long lines.
15359 ac_delim='%!_!# '
15360 for ac_last_try in false false :; do
15361 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15362 if test -z "$ac_tt"; then
15363 break
15364 elif $ac_last_try; then
15365 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15366 else
15367 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15369 done
15371 # For the awk script, D is an array of macro values keyed by name,
15372 # likewise P contains macro parameters if any. Preserve backslash
15373 # newline sequences.
15375 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15376 sed -n '
15377 s/.\{148\}/&'"$ac_delim"'/g
15378 t rset
15379 :rset
15380 s/^[ ]*#[ ]*define[ ][ ]*/ /
15381 t def
15383 :def
15384 s/\\$//
15385 t bsnl
15386 s/["\\]/\\&/g
15387 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15388 D["\1"]=" \3"/p
15389 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15391 :bsnl
15392 s/["\\]/\\&/g
15393 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15394 D["\1"]=" \3\\\\\\n"\\/p
15395 t cont
15396 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15397 t cont
15399 :cont
15401 s/.\{148\}/&'"$ac_delim"'/g
15402 t clear
15403 :clear
15404 s/\\$//
15405 t bsnlc
15406 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15408 :bsnlc
15409 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15410 b cont
15411 ' <confdefs.h | sed '
15412 s/'"$ac_delim"'/"\\\
15413 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15416 for (key in D) D_is_set[key] = 1
15417 FS = "\a"
15419 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15420 line = \$ 0
15421 split(line, arg, " ")
15422 if (arg[1] == "#") {
15423 defundef = arg[2]
15424 mac1 = arg[3]
15425 } else {
15426 defundef = substr(arg[1], 2)
15427 mac1 = arg[2]
15429 split(mac1, mac2, "(") #)
15430 macro = mac2[1]
15431 prefix = substr(line, 1, index(line, defundef) - 1)
15432 if (D_is_set[macro]) {
15433 # Preserve the white space surrounding the "#".
15434 print prefix "define", macro P[macro] D[macro]
15435 next
15436 } else {
15437 # Replace #undef with comments. This is necessary, for example,
15438 # in the case of _POSIX_SOURCE, which is predefined and required
15439 # on some systems where configure will not decide to define it.
15440 if (defundef == "undef") {
15441 print "/*", prefix defundef, macro, "*/"
15442 next
15446 { print }
15447 _ACAWK
15448 _ACEOF
15449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15450 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15451 fi # test -n "$CONFIG_HEADERS"
15454 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15455 shift
15456 for ac_tag
15458 case $ac_tag in
15459 :[FHLC]) ac_mode=$ac_tag; continue;;
15460 esac
15461 case $ac_mode$ac_tag in
15462 :[FHL]*:*);;
15463 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15464 :[FH]-) ac_tag=-:-;;
15465 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15466 esac
15467 ac_save_IFS=$IFS
15468 IFS=:
15469 set x $ac_tag
15470 IFS=$ac_save_IFS
15471 shift
15472 ac_file=$1
15473 shift
15475 case $ac_mode in
15476 :L) ac_source=$1;;
15477 :[FH])
15478 ac_file_inputs=
15479 for ac_f
15481 case $ac_f in
15482 -) ac_f="$ac_tmp/stdin";;
15483 *) # Look for the file first in the build tree, then in the source tree
15484 # (if the path is not absolute). The absolute path cannot be DOS-style,
15485 # because $ac_f cannot contain `:'.
15486 test -f "$ac_f" ||
15487 case $ac_f in
15488 [\\/$]*) false;;
15489 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15490 esac ||
15491 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15492 esac
15493 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15494 as_fn_append ac_file_inputs " '$ac_f'"
15495 done
15497 # Let's still pretend it is `configure' which instantiates (i.e., don't
15498 # use $as_me), people would be surprised to read:
15499 # /* config.h. Generated by config.status. */
15500 configure_input='Generated from '`
15501 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15502 `' by configure.'
15503 if test x"$ac_file" != x-; then
15504 configure_input="$ac_file. $configure_input"
15505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15506 printf "%s\n" "$as_me: creating $ac_file" >&6;}
15508 # Neutralize special characters interpreted by sed in replacement strings.
15509 case $configure_input in #(
15510 *\&* | *\|* | *\\* )
15511 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
15512 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15513 *) ac_sed_conf_input=$configure_input;;
15514 esac
15516 case $ac_tag in
15517 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15518 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15519 esac
15521 esac
15523 ac_dir=`$as_dirname -- "$ac_file" ||
15524 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15525 X"$ac_file" : 'X\(//\)[^/]' \| \
15526 X"$ac_file" : 'X\(//\)$' \| \
15527 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15528 printf "%s\n" X"$ac_file" |
15529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15530 s//\1/
15533 /^X\(\/\/\)[^/].*/{
15534 s//\1/
15537 /^X\(\/\/\)$/{
15538 s//\1/
15541 /^X\(\/\).*/{
15542 s//\1/
15545 s/.*/./; q'`
15546 as_dir="$ac_dir"; as_fn_mkdir_p
15547 ac_builddir=.
15549 case "$ac_dir" in
15550 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15552 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15553 # A ".." for each directory in $ac_dir_suffix.
15554 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15555 case $ac_top_builddir_sub in
15556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15558 esac ;;
15559 esac
15560 ac_abs_top_builddir=$ac_pwd
15561 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15562 # for backward compatibility:
15563 ac_top_builddir=$ac_top_build_prefix
15565 case $srcdir in
15566 .) # We are building in place.
15567 ac_srcdir=.
15568 ac_top_srcdir=$ac_top_builddir_sub
15569 ac_abs_top_srcdir=$ac_pwd ;;
15570 [\\/]* | ?:[\\/]* ) # Absolute name.
15571 ac_srcdir=$srcdir$ac_dir_suffix;
15572 ac_top_srcdir=$srcdir
15573 ac_abs_top_srcdir=$srcdir ;;
15574 *) # Relative name.
15575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15576 ac_top_srcdir=$ac_top_build_prefix$srcdir
15577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15578 esac
15579 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15582 case $ac_mode in
15585 # CONFIG_FILE
15588 case $INSTALL in
15589 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15590 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15591 esac
15592 _ACEOF
15594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15595 # If the template does not know about datarootdir, expand it.
15596 # FIXME: This hack should be removed a few years after 2.60.
15597 ac_datarootdir_hack=; ac_datarootdir_seen=
15598 ac_sed_dataroot='
15599 /datarootdir/ {
15603 /@datadir@/p
15604 /@docdir@/p
15605 /@infodir@/p
15606 /@localedir@/p
15607 /@mandir@/p'
15608 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15609 *datarootdir*) ac_datarootdir_seen=yes;;
15610 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15612 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15613 _ACEOF
15614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15615 ac_datarootdir_hack='
15616 s&@datadir@&$datadir&g
15617 s&@docdir@&$docdir&g
15618 s&@infodir@&$infodir&g
15619 s&@localedir@&$localedir&g
15620 s&@mandir@&$mandir&g
15621 s&\\\${datarootdir}&$datarootdir&g' ;;
15622 esac
15623 _ACEOF
15625 # Neutralize VPATH when `$srcdir' = `.'.
15626 # Shell code in configure.ac might set extrasub.
15627 # FIXME: do we really want to maintain this feature?
15628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15629 ac_sed_extra="$ac_vpsub
15630 $extrasub
15631 _ACEOF
15632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15634 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15635 s|@configure_input@|$ac_sed_conf_input|;t t
15636 s&@top_builddir@&$ac_top_builddir_sub&;t t
15637 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15638 s&@srcdir@&$ac_srcdir&;t t
15639 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15640 s&@top_srcdir@&$ac_top_srcdir&;t t
15641 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15642 s&@builddir@&$ac_builddir&;t t
15643 s&@abs_builddir@&$ac_abs_builddir&;t t
15644 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15645 s&@INSTALL@&$ac_INSTALL&;t t
15646 $ac_datarootdir_hack
15648 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15649 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15651 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15652 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15653 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15654 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15656 which seems to be undefined. Please make sure it is defined" >&5
15657 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15658 which seems to be undefined. Please make sure it is defined" >&2;}
15660 rm -f "$ac_tmp/stdin"
15661 case $ac_file in
15662 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15663 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15664 esac \
15665 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15669 # CONFIG_HEADER
15671 if test x"$ac_file" != x-; then
15673 printf "%s\n" "/* $configure_input */" >&1 \
15674 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15675 } >"$ac_tmp/config.h" \
15676 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15677 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15679 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
15680 else
15681 rm -f "$ac_file"
15682 mv "$ac_tmp/config.h" "$ac_file" \
15683 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15685 else
15686 printf "%s\n" "/* $configure_input */" >&1 \
15687 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15688 || as_fn_error $? "could not create -" "$LINENO" 5
15692 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15693 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
15695 esac
15698 case $ac_file$ac_mode in
15699 "libtool":C)
15701 # See if we are running on zsh, and set the options that allow our
15702 # commands through without removal of \ escapes.
15703 if test -n "${ZSH_VERSION+set}"; then
15704 setopt NO_GLOB_SUBST
15707 cfgfile=${ofile}T
15708 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15709 $RM "$cfgfile"
15711 cat <<_LT_EOF >> "$cfgfile"
15712 #! $SHELL
15713 # Generated automatically by $as_me ($PACKAGE) $VERSION
15714 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15716 # Provide generalized library-building support services.
15717 # Written by Gordon Matzigkeit, 1996
15719 # Copyright (C) 2014 Free Software Foundation, Inc.
15720 # This is free software; see the source for copying conditions. There is NO
15721 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15723 # GNU Libtool is free software; you can redistribute it and/or modify
15724 # it under the terms of the GNU General Public License as published by
15725 # the Free Software Foundation; either version 2 of of the License, or
15726 # (at your option) any later version.
15728 # As a special exception to the GNU General Public License, if you
15729 # distribute this file as part of a program or library that is built
15730 # using GNU Libtool, you may include this file under the same
15731 # distribution terms that you use for the rest of that program.
15733 # GNU Libtool is distributed in the hope that it will be useful, but
15734 # WITHOUT ANY WARRANTY; without even the implied warranty of
15735 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15736 # GNU General Public License for more details.
15738 # You should have received a copy of the GNU General Public License
15739 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15742 # The names of the tagged configurations supported by this script.
15743 available_tags=''
15745 # Configured defaults for sys_lib_dlsearch_path munging.
15746 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15748 # ### BEGIN LIBTOOL CONFIG
15750 # Which release of libtool.m4 was used?
15751 macro_version=$macro_version
15752 macro_revision=$macro_revision
15754 # Whether or not to build shared libraries.
15755 build_libtool_libs=$enable_shared
15757 # Whether or not to build static libraries.
15758 build_old_libs=$enable_static
15760 # What type of objects to build.
15761 pic_mode=$pic_mode
15763 # Whether or not to optimize for fast installation.
15764 fast_install=$enable_fast_install
15766 # Shared archive member basename,for filename based shared library versioning on AIX.
15767 shared_archive_member_spec=$shared_archive_member_spec
15769 # Shell to use when invoking shell scripts.
15770 SHELL=$lt_SHELL
15772 # An echo program that protects backslashes.
15773 ECHO=$lt_ECHO
15775 # The PATH separator for the build system.
15776 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15778 # The host system.
15779 host_alias=$host_alias
15780 host=$host
15781 host_os=$host_os
15783 # The build system.
15784 build_alias=$build_alias
15785 build=$build
15786 build_os=$build_os
15788 # A sed program that does not truncate output.
15789 SED=$lt_SED
15791 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15792 Xsed="\$SED -e 1s/^X//"
15794 # A grep program that handles long lines.
15795 GREP=$lt_GREP
15797 # An ERE matcher.
15798 EGREP=$lt_EGREP
15800 # A literal string matcher.
15801 FGREP=$lt_FGREP
15803 # A BSD- or MS-compatible name lister.
15804 NM=$lt_NM
15806 # Whether we need soft or hard links.
15807 LN_S=$lt_LN_S
15809 # What is the maximum length of a command?
15810 max_cmd_len=$max_cmd_len
15812 # Object file suffix (normally "o").
15813 objext=$ac_objext
15815 # Executable file suffix (normally "").
15816 exeext=$exeext
15818 # whether the shell understands "unset".
15819 lt_unset=$lt_unset
15821 # turn spaces into newlines.
15822 SP2NL=$lt_lt_SP2NL
15824 # turn newlines into spaces.
15825 NL2SP=$lt_lt_NL2SP
15827 # convert \$build file names to \$host format.
15828 to_host_file_cmd=$lt_cv_to_host_file_cmd
15830 # convert \$build files to toolchain format.
15831 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15833 # An object symbol dumper.
15834 OBJDUMP=$lt_OBJDUMP
15836 # Method to check whether dependent libraries are shared objects.
15837 deplibs_check_method=$lt_deplibs_check_method
15839 # Command to use when deplibs_check_method = "file_magic".
15840 file_magic_cmd=$lt_file_magic_cmd
15842 # How to find potential files when deplibs_check_method = "file_magic".
15843 file_magic_glob=$lt_file_magic_glob
15845 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15846 want_nocaseglob=$lt_want_nocaseglob
15848 # DLL creation program.
15849 DLLTOOL=$lt_DLLTOOL
15851 # Command to associate shared and link libraries.
15852 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15854 # The archiver.
15855 AR=$lt_AR
15857 # Flags to create an archive.
15858 AR_FLAGS=$lt_AR_FLAGS
15860 # How to feed a file listing to the archiver.
15861 archiver_list_spec=$lt_archiver_list_spec
15863 # A symbol stripping program.
15864 STRIP=$lt_STRIP
15866 # Commands used to install an old-style archive.
15867 RANLIB=$lt_RANLIB
15868 old_postinstall_cmds=$lt_old_postinstall_cmds
15869 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15871 # Whether to use a lock for old archive extraction.
15872 lock_old_archive_extraction=$lock_old_archive_extraction
15874 # A C compiler.
15875 LTCC=$lt_CC
15877 # LTCC compiler flags.
15878 LTCFLAGS=$lt_CFLAGS
15880 # Take the output of nm and produce a listing of raw symbols and C names.
15881 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15883 # Transform the output of nm in a proper C declaration.
15884 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15886 # Transform the output of nm into a list of symbols to manually relocate.
15887 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15889 # Transform the output of nm in a C name address pair.
15890 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15892 # Transform the output of nm in a C name address pair when lib prefix is needed.
15893 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15895 # The name lister interface.
15896 nm_interface=$lt_lt_cv_nm_interface
15898 # Specify filename containing input files for \$NM.
15899 nm_file_list_spec=$lt_nm_file_list_spec
15901 # The root where to search for dependent libraries,and where our libraries should be installed.
15902 lt_sysroot=$lt_sysroot
15904 # Command to truncate a binary pipe.
15905 lt_truncate_bin=$lt_lt_cv_truncate_bin
15907 # The name of the directory that contains temporary libtool files.
15908 objdir=$objdir
15910 # Used to examine libraries when file_magic_cmd begins with "file".
15911 MAGIC_CMD=$MAGIC_CMD
15913 # Must we lock files when doing compilation?
15914 need_locks=$lt_need_locks
15916 # Manifest tool.
15917 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15919 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15920 DSYMUTIL=$lt_DSYMUTIL
15922 # Tool to change global to local symbols on Mac OS X.
15923 NMEDIT=$lt_NMEDIT
15925 # Tool to manipulate fat objects and archives on Mac OS X.
15926 LIPO=$lt_LIPO
15928 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15929 OTOOL=$lt_OTOOL
15931 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15932 OTOOL64=$lt_OTOOL64
15934 # Old archive suffix (normally "a").
15935 libext=$libext
15937 # Shared library suffix (normally ".so").
15938 shrext_cmds=$lt_shrext_cmds
15940 # The commands to extract the exported symbol list from a shared archive.
15941 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15943 # Variables whose values should be saved in libtool wrapper scripts and
15944 # restored at link time.
15945 variables_saved_for_relink=$lt_variables_saved_for_relink
15947 # Do we need the "lib" prefix for modules?
15948 need_lib_prefix=$need_lib_prefix
15950 # Do we need a version for libraries?
15951 need_version=$need_version
15953 # Library versioning type.
15954 version_type=$version_type
15956 # Shared library runtime path variable.
15957 runpath_var=$runpath_var
15959 # Shared library path variable.
15960 shlibpath_var=$shlibpath_var
15962 # Is shlibpath searched before the hard-coded library search path?
15963 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15965 # Format of library name prefix.
15966 libname_spec=$lt_libname_spec
15968 # List of archive names. First name is the real one, the rest are links.
15969 # The last name is the one that the linker finds with -lNAME
15970 library_names_spec=$lt_library_names_spec
15972 # The coded name of the library, if different from the real name.
15973 soname_spec=$lt_soname_spec
15975 # Permission mode override for installation of shared libraries.
15976 install_override_mode=$lt_install_override_mode
15978 # Command to use after installation of a shared archive.
15979 postinstall_cmds=$lt_postinstall_cmds
15981 # Command to use after uninstallation of a shared archive.
15982 postuninstall_cmds=$lt_postuninstall_cmds
15984 # Commands used to finish a libtool library installation in a directory.
15985 finish_cmds=$lt_finish_cmds
15987 # As "finish_cmds", except a single script fragment to be evaled but
15988 # not shown.
15989 finish_eval=$lt_finish_eval
15991 # Whether we should hardcode library paths into libraries.
15992 hardcode_into_libs=$hardcode_into_libs
15994 # Compile-time system search path for libraries.
15995 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15997 # Detected run-time system search path for libraries.
15998 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16000 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16001 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16003 # Whether dlopen is supported.
16004 dlopen_support=$enable_dlopen
16006 # Whether dlopen of programs is supported.
16007 dlopen_self=$enable_dlopen_self
16009 # Whether dlopen of statically linked programs is supported.
16010 dlopen_self_static=$enable_dlopen_self_static
16012 # Commands to strip libraries.
16013 old_striplib=$lt_old_striplib
16014 striplib=$lt_striplib
16017 # The linker used to build libraries.
16018 LD=$lt_LD
16020 # How to create reloadable object files.
16021 reload_flag=$lt_reload_flag
16022 reload_cmds=$lt_reload_cmds
16024 # Commands used to build an old-style archive.
16025 old_archive_cmds=$lt_old_archive_cmds
16027 # A language specific compiler.
16028 CC=$lt_compiler
16030 # Is the compiler the GNU compiler?
16031 with_gcc=$GCC
16033 # Compiler flag to turn off builtin functions.
16034 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16036 # Additional compiler flags for building library objects.
16037 pic_flag=$lt_lt_prog_compiler_pic
16039 # How to pass a linker flag through the compiler.
16040 wl=$lt_lt_prog_compiler_wl
16042 # Compiler flag to prevent dynamic linking.
16043 link_static_flag=$lt_lt_prog_compiler_static
16045 # Does compiler simultaneously support -c and -o options?
16046 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16048 # Whether or not to add -lc for building shared libraries.
16049 build_libtool_need_lc=$archive_cmds_need_lc
16051 # Whether or not to disallow shared libs when runtime libs are static.
16052 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16054 # Compiler flag to allow reflexive dlopens.
16055 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16057 # Compiler flag to generate shared objects directly from archives.
16058 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16060 # Whether the compiler copes with passing no objects directly.
16061 compiler_needs_object=$lt_compiler_needs_object
16063 # Create an old-style archive from a shared archive.
16064 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16066 # Create a temporary old-style archive to link instead of a shared archive.
16067 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16069 # Commands used to build a shared archive.
16070 archive_cmds=$lt_archive_cmds
16071 archive_expsym_cmds=$lt_archive_expsym_cmds
16073 # Commands used to build a loadable module if different from building
16074 # a shared archive.
16075 module_cmds=$lt_module_cmds
16076 module_expsym_cmds=$lt_module_expsym_cmds
16078 # Whether we are building with GNU ld or not.
16079 with_gnu_ld=$lt_with_gnu_ld
16081 # Flag that allows shared libraries with undefined symbols to be built.
16082 allow_undefined_flag=$lt_allow_undefined_flag
16084 # Flag that enforces no undefined symbols.
16085 no_undefined_flag=$lt_no_undefined_flag
16087 # Flag to hardcode \$libdir into a binary during linking.
16088 # This must work even if \$libdir does not exist
16089 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16091 # Whether we need a single "-rpath" flag with a separated argument.
16092 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16094 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16095 # DIR into the resulting binary.
16096 hardcode_direct=$hardcode_direct
16098 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16099 # DIR into the resulting binary and the resulting library dependency is
16100 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16101 # library is relocated.
16102 hardcode_direct_absolute=$hardcode_direct_absolute
16104 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16105 # into the resulting binary.
16106 hardcode_minus_L=$hardcode_minus_L
16108 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16109 # into the resulting binary.
16110 hardcode_shlibpath_var=$hardcode_shlibpath_var
16112 # Set to "yes" if building a shared library automatically hardcodes DIR
16113 # into the library and all subsequent libraries and executables linked
16114 # against it.
16115 hardcode_automatic=$hardcode_automatic
16117 # Set to yes if linker adds runtime paths of dependent libraries
16118 # to runtime path list.
16119 inherit_rpath=$inherit_rpath
16121 # Whether libtool must link a program against all its dependency libraries.
16122 link_all_deplibs=$link_all_deplibs
16124 # Set to "yes" if exported symbols are required.
16125 always_export_symbols=$always_export_symbols
16127 # The commands to list exported symbols.
16128 export_symbols_cmds=$lt_export_symbols_cmds
16130 # Symbols that should not be listed in the preloaded symbols.
16131 exclude_expsyms=$lt_exclude_expsyms
16133 # Symbols that must always be exported.
16134 include_expsyms=$lt_include_expsyms
16136 # Commands necessary for linking programs (against libraries) with templates.
16137 prelink_cmds=$lt_prelink_cmds
16139 # Commands necessary for finishing linking programs.
16140 postlink_cmds=$lt_postlink_cmds
16142 # Specify filename containing input files.
16143 file_list_spec=$lt_file_list_spec
16145 # How to hardcode a shared library path into an executable.
16146 hardcode_action=$hardcode_action
16148 # ### END LIBTOOL CONFIG
16150 _LT_EOF
16152 cat <<'_LT_EOF' >> "$cfgfile"
16154 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16156 # func_munge_path_list VARIABLE PATH
16157 # -----------------------------------
16158 # VARIABLE is name of variable containing _space_ separated list of
16159 # directories to be munged by the contents of PATH, which is string
16160 # having a format:
16161 # "DIR[:DIR]:"
16162 # string "DIR[ DIR]" will be prepended to VARIABLE
16163 # ":DIR[:DIR]"
16164 # string "DIR[ DIR]" will be appended to VARIABLE
16165 # "DIRP[:DIRP]::[DIRA:]DIRA"
16166 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16167 # "DIRA[ DIRA]" will be appended to VARIABLE
16168 # "DIR[:DIR]"
16169 # VARIABLE will be replaced by "DIR[ DIR]"
16170 func_munge_path_list ()
16172 case x$2 in
16176 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16178 x:*)
16179 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16181 *::*)
16182 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16183 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16186 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16188 esac
16192 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16193 func_cc_basename ()
16195 for cc_temp in $*""; do
16196 case $cc_temp in
16197 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16198 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16199 \-*) ;;
16200 *) break;;
16201 esac
16202 done
16203 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16207 # ### END FUNCTIONS SHARED WITH CONFIGURE
16209 _LT_EOF
16211 case $host_os in
16212 aix3*)
16213 cat <<\_LT_EOF >> "$cfgfile"
16214 # AIX sometimes has problems with the GCC collect2 program. For some
16215 # reason, if we set the COLLECT_NAMES environment variable, the problems
16216 # vanish in a puff of smoke.
16217 if test set != "${COLLECT_NAMES+set}"; then
16218 COLLECT_NAMES=
16219 export COLLECT_NAMES
16221 _LT_EOF
16223 esac
16227 ltmain=$ac_aux_dir/ltmain.sh
16230 # We use sed instead of cat because bash on DJGPP gets confused if
16231 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16232 # text mode, it properly converts lines to CR/LF. This bash problem
16233 # is reportedly fixed, but why not run on old versions too?
16234 sed '$q' "$ltmain" >> "$cfgfile" \
16235 || (rm -f "$cfgfile"; exit 1)
16237 mv -f "$cfgfile" "$ofile" ||
16238 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16239 chmod +x "$ofile"
16243 esac
16244 done # for ac_tag
16247 as_fn_exit 0
16248 _ACEOF
16249 ac_clean_files=$ac_clean_files_save
16251 test $ac_write_fail = 0 ||
16252 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16255 # configure is writing to config.log, and then calls config.status.
16256 # config.status does its own redirection, appending to config.log.
16257 # Unfortunately, on DOS this fails, as config.log is still kept open
16258 # by configure, so config.status won't be able to write to it; its
16259 # output is simply discarded. So we exec the FD to /dev/null,
16260 # effectively closing config.log, so it can be properly (re)opened and
16261 # appended to by config.status. When coming back to configure, we
16262 # need to make the FD available again.
16263 if test "$no_create" != yes; then
16264 ac_cs_success=:
16265 ac_config_status_args=
16266 test "$silent" = yes &&
16267 ac_config_status_args="$ac_config_status_args --quiet"
16268 exec 5>/dev/null
16269 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16270 exec 5>>config.log
16271 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16272 # would make configure fail if this is the last instruction.
16273 $ac_cs_success || as_fn_exit 1
16275 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16277 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}