downgrade memory unlock failures to info level and fix function name in log output
[sqlcipher.git] / configure
blob2ee41436371f70651dc5aa4c9e66224ea5dcaf45
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for sqlcipher 3.45.3.
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.45.3'
622 PACKAGE_STRING='sqlcipher 3.45.3'
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_LINENOISE
669 TARGET_HAVE_EDITLINE
670 TARGET_HAVE_READLINE
671 TARGET_READLINE_INC
672 TARGET_READLINE_LIBS
673 HAVE_TCL
674 TCL_SHLIB_SUFFIX
675 TCL_STUB_LIB_SPEC
676 TCL_STUB_LIB_FLAG
677 TCL_STUB_LIB_FILE
678 TCL_LIB_SPEC
679 TCL_LIB_FLAG
680 TCL_LIB_FILE
681 TCL_INCLUDE_SPEC
682 TCL_SRC_DIR
683 TCL_BIN_DIR
684 TCL_VERSION
685 TARGET_EXEEXT
686 SQLITE_OS_WIN
687 SQLITE_OS_UNIX
688 BUILD_EXEEXT
689 TEMP_STORE
690 ALLOWRELEASE
691 XTHREADCONNECT
692 SQLITE_THREADSAFE
693 BUILD_CC
694 HAVE_WASI_SDK
695 RELEASE
696 VERSION
697 program_prefix
698 TCLLIBDIR
699 TCLSH_CMD
700 INSTALL_DATA
701 INSTALL_SCRIPT
702 INSTALL_PROGRAM
703 LT_SYS_LIBRARY_PATH
704 OTOOL64
705 OTOOL
706 LIPO
707 NMEDIT
708 DSYMUTIL
709 MANIFEST_TOOL
711 RANLIB
712 STRIP
713 ac_ct_AR
715 DLLTOOL
716 OBJDUMP
717 LN_S
719 ac_ct_DUMPBIN
720 DUMPBIN
722 FGREP
723 EGREP
724 GREP
726 OBJEXT
727 EXEEXT
728 ac_ct_CC
729 CPPFLAGS
730 LDFLAGS
731 CFLAGS
733 host_os
734 host_vendor
735 host_cpu
736 host
737 build_os
738 build_vendor
739 build_cpu
740 build
741 LIBTOOL
742 target_alias
743 host_alias
744 build_alias
745 LIBS
746 ECHO_T
747 ECHO_N
748 ECHO_C
749 DEFS
750 mandir
751 localedir
752 libdir
753 psdir
754 pdfdir
755 dvidir
756 htmldir
757 infodir
758 docdir
759 oldincludedir
760 includedir
761 runstatedir
762 localstatedir
763 sharedstatedir
764 sysconfdir
765 datadir
766 datarootdir
767 libexecdir
768 sbindir
769 bindir
770 program_transform_name
771 prefix
772 exec_prefix
773 PACKAGE_URL
774 PACKAGE_BUGREPORT
775 PACKAGE_STRING
776 PACKAGE_VERSION
777 PACKAGE_TARNAME
778 PACKAGE_NAME
779 PATH_SEPARATOR
780 SHELL'
781 ac_subst_files=''
782 ac_user_opts='
783 enable_option_checking
784 enable_shared
785 enable_static
786 with_pic
787 enable_fast_install
788 with_aix_soname
789 with_gnu_ld
790 with_sysroot
791 enable_libtool_lock
792 enable_largefile
793 with_wasi_sdk
794 enable_threadsafe
795 with_crypto_lib
796 enable_cross_thread_connections
797 enable_releasemode
798 enable_tempstore
799 enable_tcl
800 with_tcl
801 enable_editline
802 enable_readline
803 with_readline_lib
804 with_readline_inc
805 with_linenoise
806 enable_debug
807 enable_amalgamation
808 enable_load_extension
809 enable_math
810 enable_json
811 enable_all
812 enable_memsys5
813 enable_memsys3
814 enable_fts3
815 enable_fts4
816 enable_fts5
817 enable_update_limit
818 enable_geopoly
819 enable_rtree
820 enable_session
821 enable_gcov
823 ac_precious_vars='build_alias
824 host_alias
825 target_alias
827 CFLAGS
828 LDFLAGS
829 LIBS
830 CPPFLAGS
831 LT_SYS_LIBRARY_PATH
832 TCLLIBDIR
833 amalgamation_line_macros'
836 # Initialize some variables set by options.
837 ac_init_help=
838 ac_init_version=false
839 ac_unrecognized_opts=
840 ac_unrecognized_sep=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
843 cache_file=/dev/null
844 exec_prefix=NONE
845 no_create=
846 no_recursion=
847 prefix=NONE
848 program_prefix=NONE
849 program_suffix=NONE
850 program_transform_name=s,x,x,
851 silent=
852 site=
853 srcdir=
854 verbose=
855 x_includes=NONE
856 x_libraries=NONE
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir='${exec_prefix}/bin'
865 sbindir='${exec_prefix}/sbin'
866 libexecdir='${exec_prefix}/libexec'
867 datarootdir='${prefix}/share'
868 datadir='${datarootdir}'
869 sysconfdir='${prefix}/etc'
870 sharedstatedir='${prefix}/com'
871 localstatedir='${prefix}/var'
872 runstatedir='${localstatedir}/run'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
885 ac_prev=
886 ac_dashdash=
887 for ac_option
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\$ac_option
892 ac_prev=
893 continue
896 case $ac_option in
897 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *=) ac_optarg= ;;
899 *) ac_optarg=yes ;;
900 esac
902 case $ac_dashdash$ac_option in
904 ac_dashdash=yes ;;
906 -bindir | --bindir | --bindi | --bind | --bin | --bi)
907 ac_prev=bindir ;;
908 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909 bindir=$ac_optarg ;;
911 -build | --build | --buil | --bui | --bu)
912 ac_prev=build_alias ;;
913 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914 build_alias=$ac_optarg ;;
916 -cache-file | --cache-file | --cache-fil | --cache-fi \
917 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918 ac_prev=cache_file ;;
919 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921 cache_file=$ac_optarg ;;
923 --config-cache | -C)
924 cache_file=config.cache ;;
926 -datadir | --datadir | --datadi | --datad)
927 ac_prev=datadir ;;
928 -datadir=* | --datadir=* | --datadi=* | --datad=*)
929 datadir=$ac_optarg ;;
931 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932 | --dataroo | --dataro | --datar)
933 ac_prev=datarootdir ;;
934 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936 datarootdir=$ac_optarg ;;
938 -disable-* | --disable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: \`$ac_useropt'"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
947 "enable_$ac_useropt"
948 "*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=no ;;
954 -docdir | --docdir | --docdi | --doc | --do)
955 ac_prev=docdir ;;
956 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
957 docdir=$ac_optarg ;;
959 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
960 ac_prev=dvidir ;;
961 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
962 dvidir=$ac_optarg ;;
964 -enable-* | --enable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968 as_fn_error $? "invalid feature name: \`$ac_useropt'"
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
973 "enable_$ac_useropt"
974 "*) ;;
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
977 esac
978 eval enable_$ac_useropt=\$ac_optarg ;;
980 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
981 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
982 | --exec | --exe | --ex)
983 ac_prev=exec_prefix ;;
984 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
985 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
986 | --exec=* | --exe=* | --ex=*)
987 exec_prefix=$ac_optarg ;;
989 -gas | --gas | --ga | --g)
990 # Obsolete; use --with-gas.
991 with_gas=yes ;;
993 -help | --help | --hel | --he | -h)
994 ac_init_help=long ;;
995 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
996 ac_init_help=recursive ;;
997 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
998 ac_init_help=short ;;
1000 -host | --host | --hos | --ho)
1001 ac_prev=host_alias ;;
1002 -host=* | --host=* | --hos=* | --ho=*)
1003 host_alias=$ac_optarg ;;
1005 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1006 ac_prev=htmldir ;;
1007 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1008 | --ht=*)
1009 htmldir=$ac_optarg ;;
1011 -includedir | --includedir | --includedi | --included | --include \
1012 | --includ | --inclu | --incl | --inc)
1013 ac_prev=includedir ;;
1014 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1015 | --includ=* | --inclu=* | --incl=* | --inc=*)
1016 includedir=$ac_optarg ;;
1018 -infodir | --infodir | --infodi | --infod | --info | --inf)
1019 ac_prev=infodir ;;
1020 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1021 infodir=$ac_optarg ;;
1023 -libdir | --libdir | --libdi | --libd)
1024 ac_prev=libdir ;;
1025 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1026 libdir=$ac_optarg ;;
1028 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1029 | --libexe | --libex | --libe)
1030 ac_prev=libexecdir ;;
1031 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1032 | --libexe=* | --libex=* | --libe=*)
1033 libexecdir=$ac_optarg ;;
1035 -localedir | --localedir | --localedi | --localed | --locale)
1036 ac_prev=localedir ;;
1037 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1038 localedir=$ac_optarg ;;
1040 -localstatedir | --localstatedir | --localstatedi | --localstated \
1041 | --localstate | --localstat | --localsta | --localst | --locals)
1042 ac_prev=localstatedir ;;
1043 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1044 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1045 localstatedir=$ac_optarg ;;
1047 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1048 ac_prev=mandir ;;
1049 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1050 mandir=$ac_optarg ;;
1052 -nfp | --nfp | --nf)
1053 # Obsolete; use --without-fp.
1054 with_fp=no ;;
1056 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1057 | --no-cr | --no-c | -n)
1058 no_create=yes ;;
1060 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1061 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1062 no_recursion=yes ;;
1064 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1065 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1066 | --oldin | --oldi | --old | --ol | --o)
1067 ac_prev=oldincludedir ;;
1068 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1069 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1070 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1071 oldincludedir=$ac_optarg ;;
1073 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1074 ac_prev=prefix ;;
1075 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1076 prefix=$ac_optarg ;;
1078 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1079 | --program-pre | --program-pr | --program-p)
1080 ac_prev=program_prefix ;;
1081 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1082 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1083 program_prefix=$ac_optarg ;;
1085 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1086 | --program-suf | --program-su | --program-s)
1087 ac_prev=program_suffix ;;
1088 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1089 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1090 program_suffix=$ac_optarg ;;
1092 -program-transform-name | --program-transform-name \
1093 | --program-transform-nam | --program-transform-na \
1094 | --program-transform-n | --program-transform- \
1095 | --program-transform | --program-transfor \
1096 | --program-transfo | --program-transf \
1097 | --program-trans | --program-tran \
1098 | --progr-tra | --program-tr | --program-t)
1099 ac_prev=program_transform_name ;;
1100 -program-transform-name=* | --program-transform-name=* \
1101 | --program-transform-nam=* | --program-transform-na=* \
1102 | --program-transform-n=* | --program-transform-=* \
1103 | --program-transform=* | --program-transfor=* \
1104 | --program-transfo=* | --program-transf=* \
1105 | --program-trans=* | --program-tran=* \
1106 | --progr-tra=* | --program-tr=* | --program-t=*)
1107 program_transform_name=$ac_optarg ;;
1109 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1110 ac_prev=pdfdir ;;
1111 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1112 pdfdir=$ac_optarg ;;
1114 -psdir | --psdir | --psdi | --psd | --ps)
1115 ac_prev=psdir ;;
1116 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1117 psdir=$ac_optarg ;;
1119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120 | -silent | --silent | --silen | --sile | --sil)
1121 silent=yes ;;
1123 -runstatedir | --runstatedir | --runstatedi | --runstated \
1124 | --runstate | --runstat | --runsta | --runst | --runs \
1125 | --run | --ru | --r)
1126 ac_prev=runstatedir ;;
1127 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1128 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1129 | --run=* | --ru=* | --r=*)
1130 runstatedir=$ac_optarg ;;
1132 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1133 ac_prev=sbindir ;;
1134 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1135 | --sbi=* | --sb=*)
1136 sbindir=$ac_optarg ;;
1138 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140 | --sharedst | --shareds | --shared | --share | --shar \
1141 | --sha | --sh)
1142 ac_prev=sharedstatedir ;;
1143 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1146 | --sha=* | --sh=*)
1147 sharedstatedir=$ac_optarg ;;
1149 -site | --site | --sit)
1150 ac_prev=site ;;
1151 -site=* | --site=* | --sit=*)
1152 site=$ac_optarg ;;
1154 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1155 ac_prev=srcdir ;;
1156 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157 srcdir=$ac_optarg ;;
1159 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160 | --syscon | --sysco | --sysc | --sys | --sy)
1161 ac_prev=sysconfdir ;;
1162 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164 sysconfdir=$ac_optarg ;;
1166 -target | --target | --targe | --targ | --tar | --ta | --t)
1167 ac_prev=target_alias ;;
1168 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169 target_alias=$ac_optarg ;;
1171 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172 verbose=yes ;;
1174 -version | --version | --versio | --versi | --vers | -V)
1175 ac_init_version=: ;;
1177 -with-* | --with-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error $? "invalid package name: \`$ac_useropt'"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1186 "with_$ac_useropt"
1187 "*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1190 esac
1191 eval with_$ac_useropt=\$ac_optarg ;;
1193 -without-* | --without-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: \`$ac_useropt'"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1202 "with_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=no ;;
1209 --x)
1210 # Obsolete; use --with-x.
1211 with_x=yes ;;
1213 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214 | --x-incl | --x-inc | --x-in | --x-i)
1215 ac_prev=x_includes ;;
1216 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218 x_includes=$ac_optarg ;;
1220 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222 ac_prev=x_libraries ;;
1223 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225 x_libraries=$ac_optarg ;;
1227 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1228 Try \`$0 --help' for more information"
1231 *=*)
1232 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233 # Reject names that are not valid shell variable names.
1234 case $ac_envvar in #(
1235 '' | [0-9]* | *[!_$as_cr_alnum]* )
1236 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1237 esac
1238 eval $ac_envvar=\$ac_optarg
1239 export $ac_envvar ;;
1242 # FIXME: should be removed in autoconf 3.0.
1243 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1246 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1249 esac
1250 done
1252 if test -n "$ac_prev"; then
1253 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254 as_fn_error $? "missing argument to $ac_option"
1257 if test -n "$ac_unrecognized_opts"; then
1258 case $enable_option_checking in
1259 no) ;;
1260 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1261 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262 esac
1265 # Check all directory arguments for consistency.
1266 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267 datadir sysconfdir sharedstatedir localstatedir includedir \
1268 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269 libdir localedir mandir runstatedir
1271 eval ac_val=\$$ac_var
1272 # Remove trailing slashes.
1273 case $ac_val in
1274 */ )
1275 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276 eval $ac_var=\$ac_val;;
1277 esac
1278 # Be sure to have absolute directory names.
1279 case $ac_val in
1280 [\\/$]* | ?:[\\/]* ) continue;;
1281 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1282 esac
1283 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1284 done
1286 # There might be people who depend on the old broken behavior: `$host'
1287 # used to hold the argument of --host etc.
1288 # FIXME: To remove some day.
1289 build=$build_alias
1290 host=$host_alias
1291 target=$target_alias
1293 # FIXME: To remove some day.
1294 if test "x$host_alias" != x; then
1295 if test "x$build_alias" = x; then
1296 cross_compiling=maybe
1297 elif test "x$build_alias" != "x$host_alias"; then
1298 cross_compiling=yes
1302 ac_tool_prefix=
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305 test "$silent" = yes && exec 6>/dev/null
1308 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di=`ls -di .` &&
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 as_fn_error $? "working directory cannot be determined"
1312 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313 as_fn_error $? "pwd does not report name of working directory"
1316 # Find the source files, if location was not specified.
1317 if test -z "$srcdir"; then
1318 ac_srcdir_defaulted=yes
1319 # Try the directory containing this script, then the parent directory.
1320 ac_confdir=`$as_dirname -- "$as_myself" ||
1321 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322 X"$as_myself" : 'X\(//\)[^/]' \| \
1323 X"$as_myself" : 'X\(//\)$' \| \
1324 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325 printf "%s\n" X"$as_myself" |
1326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327 s//\1/
1330 /^X\(\/\/\)[^/].*/{
1331 s//\1/
1334 /^X\(\/\/\)$/{
1335 s//\1/
1338 /^X\(\/\).*/{
1339 s//\1/
1342 s/.*/./; q'`
1343 srcdir=$ac_confdir
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 srcdir=..
1347 else
1348 ac_srcdir_defaulted=no
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355 ac_abs_confdir=`(
1356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1357 pwd)`
1358 # When building in place, set srcdir=.
1359 if test "$ac_abs_confdir" = "$ac_pwd"; then
1360 srcdir=.
1362 # Remove unnecessary trailing slashes from srcdir.
1363 # Double slashes in file names in object file debugging info
1364 # mess up M-x gdb in Emacs.
1365 case $srcdir in
1366 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367 esac
1368 for ac_var in $ac_precious_vars; do
1369 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_env_${ac_var}_value=\$${ac_var}
1371 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373 done
1376 # Report the --help message.
1378 if test "$ac_init_help" = "long"; then
1379 # Omit some internal or obsolete options to make the list less imposing.
1380 # This message is too long to be a string in the A/UX 3.1 sh.
1381 cat <<_ACEOF
1382 \`configure' configures sqlcipher 3.45.3 to adapt to many kinds of systems.
1384 Usage: $0 [OPTION]... [VAR=VALUE]...
1386 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387 VAR=VALUE. See below for descriptions of some of the useful variables.
1389 Defaults for the options are specified in brackets.
1391 Configuration:
1392 -h, --help display this help and exit
1393 --help=short display options specific to this package
1394 --help=recursive display the short help of all the included packages
1395 -V, --version display version information and exit
1396 -q, --quiet, --silent do not print \`checking ...' messages
1397 --cache-file=FILE cache test results in FILE [disabled]
1398 -C, --config-cache alias for \`--cache-file=config.cache'
1399 -n, --no-create do not create output files
1400 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402 Installation directories:
1403 --prefix=PREFIX install architecture-independent files in PREFIX
1404 [$ac_default_prefix]
1405 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1406 [PREFIX]
1408 By default, \`make install' will install all the files in
1409 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1410 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411 for instance \`--prefix=\$HOME'.
1413 For better control, use the options below.
1415 Fine tuning of the installation directories:
1416 --bindir=DIR user executables [EPREFIX/bin]
1417 --sbindir=DIR system admin executables [EPREFIX/sbin]
1418 --libexecdir=DIR program executables [EPREFIX/libexec]
1419 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1420 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1421 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1422 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlcipher]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1436 _ACEOF
1438 cat <<\_ACEOF
1440 System types:
1441 --build=BUILD configure for building on BUILD [guessed]
1442 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 _ACEOF
1446 if test -n "$ac_init_help"; then
1447 case $ac_init_help in
1448 short | recursive ) echo "Configuration of sqlcipher 3.45.3:";;
1449 esac
1450 cat <<\_ACEOF
1452 Optional Features:
1453 --disable-option-checking ignore unrecognized --enable/--with options
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1456 --enable-shared[=PKGS] build shared libraries [default=yes]
1457 --enable-static[=PKGS] build static libraries [default=yes]
1458 --enable-fast-install[=PKGS]
1459 optimize for fast installation [default=yes]
1460 --disable-libtool-lock avoid locking (might break parallel builds)
1461 --disable-largefile omit support for large files
1462 --disable-threadsafe Disable mutexing
1463 --enable-cross-thread-connections
1464 Allow connection sharing across threads
1465 --enable-releasemode Support libtool link to release mode
1466 --enable-tempstore Use an in-ram database for temporary tables
1467 (never,no,yes,always)
1468 --disable-tcl do not build TCL extension
1469 --enable-editline enable BSD editline support
1470 --disable-readline disable readline support
1471 --enable-debug enable debugging & verbose explain
1472 --disable-amalgamation Disable the amalgamation and instead build all files
1473 separately
1474 --disable-load-extension
1475 Disable loading of external extensions
1476 --disable-math Disable math functions
1477 --disable-json Disable JSON functions
1478 --enable-all Enable FTS4, FTS5, Geopoly, RTree, Sessions
1479 --enable-memsys5 Enable MEMSYS5
1480 --enable-memsys3 Enable MEMSYS3
1481 --enable-fts3 Enable the FTS3 extension
1482 --enable-fts4 Enable the FTS4 extension
1483 --enable-fts5 Enable the FTS5 extension
1484 --enable-update-limit Enable the UPDATE/DELETE LIMIT clause
1485 --enable-geopoly Enable the GEOPOLY extension
1486 --enable-rtree Enable the RTREE extension
1487 --enable-session Enable the SESSION extension
1488 --enable-gcov Enable coverage testing using gcov
1490 Optional Packages:
1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1493 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1494 both]
1495 --with-aix-soname=aix|svr4|both
1496 shared library versioning (aka "SONAME") variant to
1497 provide on AIX, [default=aix].
1498 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1499 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1500 compiler's sysroot if not specified).
1501 --with-wasi-sdk=DIR directory containing the WASI SDK. Triggers
1502 cross-compile to WASM.
1503 --with-crypto-lib Specify which crypto library to use
1504 --with-tcl=DIR directory containing tcl configuration
1505 (tclConfig.sh)
1506 --with-readline-lib specify readline library
1507 --with-readline-inc specify readline include paths
1508 --with-linenoise=DIR source directory for linenoise library
1510 Some influential environment variables:
1511 CC C compiler command
1512 CFLAGS C compiler flags
1513 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1514 nonstandard directory <lib dir>
1515 LIBS libraries to pass to the linker, e.g. -l<library>
1516 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1517 you have headers in a nonstandard directory <include dir>
1518 LT_SYS_LIBRARY_PATH
1519 User-defined run-time library search path.
1520 TCLLIBDIR Where to install tcl plugin
1521 amalgamation_line_macros
1524 Use these variables to override the choices made by `configure' or to help
1525 it to find libraries and programs with nonstandard names/locations.
1527 Report bugs to the package provider.
1528 _ACEOF
1529 ac_status=$?
1532 if test "$ac_init_help" = "recursive"; then
1533 # If there are subdirs, report their specific --help.
1534 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1535 test -d "$ac_dir" ||
1536 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1537 continue
1538 ac_builddir=.
1540 case "$ac_dir" in
1541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1544 # A ".." for each directory in $ac_dir_suffix.
1545 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1546 case $ac_top_builddir_sub in
1547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549 esac ;;
1550 esac
1551 ac_abs_top_builddir=$ac_pwd
1552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553 # for backward compatibility:
1554 ac_top_builddir=$ac_top_build_prefix
1556 case $srcdir in
1557 .) # We are building in place.
1558 ac_srcdir=.
1559 ac_top_srcdir=$ac_top_builddir_sub
1560 ac_abs_top_srcdir=$ac_pwd ;;
1561 [\\/]* | ?:[\\/]* ) # Absolute name.
1562 ac_srcdir=$srcdir$ac_dir_suffix;
1563 ac_top_srcdir=$srcdir
1564 ac_abs_top_srcdir=$srcdir ;;
1565 *) # Relative name.
1566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567 ac_top_srcdir=$ac_top_build_prefix$srcdir
1568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569 esac
1570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572 cd "$ac_dir" || { ac_status=$?; continue; }
1573 # Check for configure.gnu first; this name is used for a wrapper for
1574 # Metaconfig's "Configure" on case-insensitive file systems.
1575 if test -f "$ac_srcdir/configure.gnu"; then
1576 echo &&
1577 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578 elif test -f "$ac_srcdir/configure"; then
1579 echo &&
1580 $SHELL "$ac_srcdir/configure" --help=recursive
1581 else
1582 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1583 fi || ac_status=$?
1584 cd "$ac_pwd" || { ac_status=$?; break; }
1585 done
1588 test -n "$ac_init_help" && exit $ac_status
1589 if $ac_init_version; then
1590 cat <<\_ACEOF
1591 sqlcipher configure 3.45.3
1592 generated by GNU Autoconf 2.71
1594 Copyright (C) 2021 Free Software Foundation, Inc.
1595 This configure script is free software; the Free Software Foundation
1596 gives unlimited permission to copy, distribute and modify it.
1597 _ACEOF
1598 exit
1601 ## ------------------------ ##
1602 ## Autoconf initialization. ##
1603 ## ------------------------ ##
1605 # ac_fn_c_try_compile LINENO
1606 # --------------------------
1607 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1608 ac_fn_c_try_compile ()
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 rm -f conftest.$ac_objext conftest.beam
1612 if { { ac_try="$ac_compile"
1613 case "(($ac_try" in
1614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615 *) ac_try_echo=$ac_try;;
1616 esac
1617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618 printf "%s\n" "$ac_try_echo"; } >&5
1619 (eval "$ac_compile") 2>conftest.err
1620 ac_status=$?
1621 if test -s conftest.err; then
1622 grep -v '^ *+' conftest.err >conftest.er1
1623 cat conftest.er1 >&5
1624 mv -f conftest.er1 conftest.err
1626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627 test $ac_status = 0; } && {
1628 test -z "$ac_c_werror_flag" ||
1629 test ! -s conftest.err
1630 } && test -s conftest.$ac_objext
1631 then :
1632 ac_retval=0
1633 else $as_nop
1634 printf "%s\n" "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1637 ac_retval=1
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 as_fn_set_status $ac_retval
1642 } # ac_fn_c_try_compile
1644 # ac_fn_c_try_link LINENO
1645 # -----------------------
1646 # Try to link conftest.$ac_ext, and return whether this succeeded.
1647 ac_fn_c_try_link ()
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1651 if { { ac_try="$ac_link"
1652 case "(($ac_try" in
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 printf "%s\n" "$ac_try_echo"; } >&5
1658 (eval "$ac_link") 2>conftest.err
1659 ac_status=$?
1660 if test -s conftest.err; then
1661 grep -v '^ *+' conftest.err >conftest.er1
1662 cat conftest.er1 >&5
1663 mv -f conftest.er1 conftest.err
1665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } && {
1667 test -z "$ac_c_werror_flag" ||
1668 test ! -s conftest.err
1669 } && test -s conftest$ac_exeext && {
1670 test "$cross_compiling" = yes ||
1671 test -x conftest$ac_exeext
1673 then :
1674 ac_retval=0
1675 else $as_nop
1676 printf "%s\n" "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1679 ac_retval=1
1681 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1682 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1683 # interfere with the next link command; also delete a directory that is
1684 # left behind by Apple's compiler. We do this before executing the actions.
1685 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 as_fn_set_status $ac_retval
1689 } # ac_fn_c_try_link
1691 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1692 # -------------------------------------------------------
1693 # Tests whether HEADER exists and can be compiled using the include files in
1694 # INCLUDES, setting the cache variable VAR accordingly.
1695 ac_fn_c_check_header_compile ()
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699 printf %s "checking for $2... " >&6; }
1700 if eval test \${$3+y}
1701 then :
1702 printf %s "(cached) " >&6
1703 else $as_nop
1704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705 /* end confdefs.h. */
1707 #include <$2>
1708 _ACEOF
1709 if ac_fn_c_try_compile "$LINENO"
1710 then :
1711 eval "$3=yes"
1712 else $as_nop
1713 eval "$3=no"
1715 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1717 eval ac_res=\$$3
1718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719 printf "%s\n" "$ac_res" >&6; }
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 } # ac_fn_c_check_header_compile
1724 # ac_fn_c_check_func LINENO FUNC VAR
1725 # ----------------------------------
1726 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1727 ac_fn_c_check_func ()
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 printf %s "checking for $2... " >&6; }
1732 if eval test \${$3+y}
1733 then :
1734 printf %s "(cached) " >&6
1735 else $as_nop
1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737 /* end confdefs.h. */
1738 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1740 #define $2 innocuous_$2
1742 /* System header to define __stub macros and hopefully few prototypes,
1743 which can conflict with char $2 (); below. */
1745 #include <limits.h>
1746 #undef $2
1748 /* Override any GCC internal prototype to avoid an error.
1749 Use char because int might match the return type of a GCC
1750 builtin and then its argument prototype would still apply. */
1751 #ifdef __cplusplus
1752 extern "C"
1753 #endif
1754 char $2 ();
1755 /* The GNU C library defines this for functions which it implements
1756 to always fail with ENOSYS. Some functions are actually named
1757 something starting with __ and the normal name is an alias. */
1758 #if defined __stub_$2 || defined __stub___$2
1759 choke me
1760 #endif
1763 main (void)
1765 return $2 ();
1767 return 0;
1769 _ACEOF
1770 if ac_fn_c_try_link "$LINENO"
1771 then :
1772 eval "$3=yes"
1773 else $as_nop
1774 eval "$3=no"
1776 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1777 conftest$ac_exeext conftest.$ac_ext
1779 eval ac_res=\$$3
1780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 printf "%s\n" "$ac_res" >&6; }
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 } # ac_fn_c_check_func
1786 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1787 # -------------------------------------------
1788 # Tests whether TYPE exists after having included INCLUDES, setting cache
1789 # variable VAR accordingly.
1790 ac_fn_c_check_type ()
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 printf %s "checking for $2... " >&6; }
1795 if eval test \${$3+y}
1796 then :
1797 printf %s "(cached) " >&6
1798 else $as_nop
1799 eval "$3=no"
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1804 main (void)
1806 if (sizeof ($2))
1807 return 0;
1809 return 0;
1811 _ACEOF
1812 if ac_fn_c_try_compile "$LINENO"
1813 then :
1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1818 main (void)
1820 if (sizeof (($2)))
1821 return 0;
1823 return 0;
1825 _ACEOF
1826 if ac_fn_c_try_compile "$LINENO"
1827 then :
1829 else $as_nop
1830 eval "$3=yes"
1832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1836 eval ac_res=\$$3
1837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838 printf "%s\n" "$ac_res" >&6; }
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 } # ac_fn_c_check_type
1842 ac_configure_args_raw=
1843 for ac_arg
1845 case $ac_arg in
1846 *\'*)
1847 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1848 esac
1849 as_fn_append ac_configure_args_raw " '$ac_arg'"
1850 done
1852 case $ac_configure_args_raw in
1853 *$as_nl*)
1854 ac_safe_unquote= ;;
1856 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1857 ac_unsafe_a="$ac_unsafe_z#~"
1858 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1859 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1860 esac
1862 cat >config.log <<_ACEOF
1863 This file contains any messages produced by compilers while
1864 running configure, to aid debugging if configure makes a mistake.
1866 It was created by sqlcipher $as_me 3.45.3, which was
1867 generated by GNU Autoconf 2.71. Invocation command line was
1869 $ $0$ac_configure_args_raw
1871 _ACEOF
1872 exec 5>>config.log
1874 cat <<_ASUNAME
1875 ## --------- ##
1876 ## Platform. ##
1877 ## --------- ##
1879 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1880 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1881 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1882 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1883 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1885 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1886 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1888 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1889 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1890 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1891 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1892 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1893 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1894 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1896 _ASUNAME
1898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899 for as_dir in $PATH
1901 IFS=$as_save_IFS
1902 case $as_dir in #(((
1903 '') as_dir=./ ;;
1904 */) ;;
1905 *) as_dir=$as_dir/ ;;
1906 esac
1907 printf "%s\n" "PATH: $as_dir"
1908 done
1909 IFS=$as_save_IFS
1911 } >&5
1913 cat >&5 <<_ACEOF
1916 ## ----------- ##
1917 ## Core tests. ##
1918 ## ----------- ##
1920 _ACEOF
1923 # Keep a trace of the command line.
1924 # Strip out --no-create and --no-recursion so they do not pile up.
1925 # Strip out --silent because we don't want to record it for future runs.
1926 # Also quote any args containing shell meta-characters.
1927 # Make two passes to allow for proper duplicate-argument suppression.
1928 ac_configure_args=
1929 ac_configure_args0=
1930 ac_configure_args1=
1931 ac_must_keep_next=false
1932 for ac_pass in 1 2
1934 for ac_arg
1936 case $ac_arg in
1937 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1938 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1939 | -silent | --silent | --silen | --sile | --sil)
1940 continue ;;
1941 *\'*)
1942 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1943 esac
1944 case $ac_pass in
1945 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1947 as_fn_append ac_configure_args1 " '$ac_arg'"
1948 if test $ac_must_keep_next = true; then
1949 ac_must_keep_next=false # Got value, back to normal.
1950 else
1951 case $ac_arg in
1952 *=* | --config-cache | -C | -disable-* | --disable-* \
1953 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1954 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1955 | -with-* | --with-* | -without-* | --without-* | --x)
1956 case "$ac_configure_args0 " in
1957 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1958 esac
1960 -* ) ac_must_keep_next=true ;;
1961 esac
1963 as_fn_append ac_configure_args " '$ac_arg'"
1965 esac
1966 done
1967 done
1968 { ac_configure_args0=; unset ac_configure_args0;}
1969 { ac_configure_args1=; unset ac_configure_args1;}
1971 # When interrupted or exit'd, cleanup temporary files, and complete
1972 # config.log. We remove comments because anyway the quotes in there
1973 # would cause problems or look ugly.
1974 # WARNING: Use '\'' to represent an apostrophe within the trap.
1975 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1976 trap 'exit_status=$?
1977 # Sanitize IFS.
1978 IFS=" "" $as_nl"
1979 # Save into config.log some information that might help in debugging.
1981 echo
1983 printf "%s\n" "## ---------------- ##
1984 ## Cache variables. ##
1985 ## ---------------- ##"
1986 echo
1987 # The following way of writing the cache mishandles newlines in values,
1989 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1990 eval ac_val=\$$ac_var
1991 case $ac_val in #(
1992 *${as_nl}*)
1993 case $ac_var in #(
1994 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1995 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1996 esac
1997 case $ac_var in #(
1998 _ | IFS | as_nl) ;; #(
1999 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2000 *) { eval $ac_var=; unset $ac_var;} ;;
2001 esac ;;
2002 esac
2003 done
2004 (set) 2>&1 |
2005 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2006 *${as_nl}ac_space=\ *)
2007 sed -n \
2008 "s/'\''/'\''\\\\'\'''\''/g;
2009 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2010 ;; #(
2012 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2014 esac |
2015 sort
2017 echo
2019 printf "%s\n" "## ----------------- ##
2020 ## Output variables. ##
2021 ## ----------------- ##"
2022 echo
2023 for ac_var in $ac_subst_vars
2025 eval ac_val=\$$ac_var
2026 case $ac_val in
2027 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2028 esac
2029 printf "%s\n" "$ac_var='\''$ac_val'\''"
2030 done | sort
2031 echo
2033 if test -n "$ac_subst_files"; then
2034 printf "%s\n" "## ------------------- ##
2035 ## File substitutions. ##
2036 ## ------------------- ##"
2037 echo
2038 for ac_var in $ac_subst_files
2040 eval ac_val=\$$ac_var
2041 case $ac_val in
2042 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2043 esac
2044 printf "%s\n" "$ac_var='\''$ac_val'\''"
2045 done | sort
2046 echo
2049 if test -s confdefs.h; then
2050 printf "%s\n" "## ----------- ##
2051 ## confdefs.h. ##
2052 ## ----------- ##"
2053 echo
2054 cat confdefs.h
2055 echo
2057 test "$ac_signal" != 0 &&
2058 printf "%s\n" "$as_me: caught signal $ac_signal"
2059 printf "%s\n" "$as_me: exit $exit_status"
2060 } >&5
2061 rm -f core *.core core.conftest.* &&
2062 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2063 exit $exit_status
2065 for ac_signal in 1 2 13 15; do
2066 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2067 done
2068 ac_signal=0
2070 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2071 rm -f -r conftest* confdefs.h
2073 printf "%s\n" "/* confdefs.h */" > confdefs.h
2075 # Predefined preprocessor variables.
2077 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2079 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2081 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2083 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2085 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2087 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2090 # Let the site file select an alternate cache file if it wants to.
2091 # Prefer an explicitly selected file to automatically selected ones.
2092 if test -n "$CONFIG_SITE"; then
2093 ac_site_files="$CONFIG_SITE"
2094 elif test "x$prefix" != xNONE; then
2095 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2096 else
2097 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2100 for ac_site_file in $ac_site_files
2102 case $ac_site_file in #(
2103 */*) :
2104 ;; #(
2105 *) :
2106 ac_site_file=./$ac_site_file ;;
2107 esac
2108 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2110 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2111 sed 's/^/| /' "$ac_site_file" >&5
2112 . "$ac_site_file" \
2113 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2114 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2115 as_fn_error $? "failed to load site script $ac_site_file
2116 See \`config.log' for more details" "$LINENO" 5; }
2118 done
2120 if test -r "$cache_file"; then
2121 # Some versions of bash will fail to source /dev/null (special files
2122 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2123 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2125 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2126 case $cache_file in
2127 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2128 *) . "./$cache_file";;
2129 esac
2131 else
2132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2133 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2134 >$cache_file
2137 # Test code for whether the C compiler supports C89 (global declarations)
2138 ac_c_conftest_c89_globals='
2139 /* Does the compiler advertise C89 conformance?
2140 Do not test the value of __STDC__, because some compilers set it to 0
2141 while being otherwise adequately conformant. */
2142 #if !defined __STDC__
2143 # error "Compiler does not advertise C89 conformance"
2144 #endif
2146 #include <stddef.h>
2147 #include <stdarg.h>
2148 struct stat;
2149 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2150 struct buf { int x; };
2151 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2152 static char *e (p, i)
2153 char **p;
2154 int i;
2156 return p[i];
2158 static char *f (char * (*g) (char **, int), char **p, ...)
2160 char *s;
2161 va_list v;
2162 va_start (v,p);
2163 s = g (p, va_arg (v,int));
2164 va_end (v);
2165 return s;
2168 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2169 function prototypes and stuff, but not \xHH hex character constants.
2170 These do not provoke an error unfortunately, instead are silently treated
2171 as an "x". The following induces an error, until -std is added to get
2172 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2173 array size at least. It is necessary to write \x00 == 0 to get something
2174 that is true only with -std. */
2175 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2177 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2178 inside strings and character constants. */
2179 #define FOO(x) '\''x'\''
2180 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2182 int test (int i, double x);
2183 struct s1 {int (*f) (int a);};
2184 struct s2 {int (*f) (double a);};
2185 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2186 int, int);'
2188 # Test code for whether the C compiler supports C89 (body of main).
2189 ac_c_conftest_c89_main='
2190 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2193 # Test code for whether the C compiler supports C99 (global declarations)
2194 ac_c_conftest_c99_globals='
2195 // Does the compiler advertise C99 conformance?
2196 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2197 # error "Compiler does not advertise C99 conformance"
2198 #endif
2200 #include <stdbool.h>
2201 extern int puts (const char *);
2202 extern int printf (const char *, ...);
2203 extern int dprintf (int, const char *, ...);
2204 extern void *malloc (size_t);
2206 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2207 // dprintf is used instead of fprintf to avoid needing to declare
2208 // FILE and stderr.
2209 #define debug(...) dprintf (2, __VA_ARGS__)
2210 #define showlist(...) puts (#__VA_ARGS__)
2211 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2212 static void
2213 test_varargs_macros (void)
2215 int x = 1234;
2216 int y = 5678;
2217 debug ("Flag");
2218 debug ("X = %d\n", x);
2219 showlist (The first, second, and third items.);
2220 report (x>y, "x is %d but y is %d", x, y);
2223 // Check long long types.
2224 #define BIG64 18446744073709551615ull
2225 #define BIG32 4294967295ul
2226 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2227 #if !BIG_OK
2228 #error "your preprocessor is broken"
2229 #endif
2230 #if BIG_OK
2231 #else
2232 #error "your preprocessor is broken"
2233 #endif
2234 static long long int bignum = -9223372036854775807LL;
2235 static unsigned long long int ubignum = BIG64;
2237 struct incomplete_array
2239 int datasize;
2240 double data[];
2243 struct named_init {
2244 int number;
2245 const wchar_t *name;
2246 double average;
2249 typedef const char *ccp;
2251 static inline int
2252 test_restrict (ccp restrict text)
2254 // See if C++-style comments work.
2255 // Iterate through items via the restricted pointer.
2256 // Also check for declarations in for loops.
2257 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2258 continue;
2259 return 0;
2262 // Check varargs and va_copy.
2263 static bool
2264 test_varargs (const char *format, ...)
2266 va_list args;
2267 va_start (args, format);
2268 va_list args_copy;
2269 va_copy (args_copy, args);
2271 const char *str = "";
2272 int number = 0;
2273 float fnumber = 0;
2275 while (*format)
2277 switch (*format++)
2279 case '\''s'\'': // string
2280 str = va_arg (args_copy, const char *);
2281 break;
2282 case '\''d'\'': // int
2283 number = va_arg (args_copy, int);
2284 break;
2285 case '\''f'\'': // float
2286 fnumber = va_arg (args_copy, double);
2287 break;
2288 default:
2289 break;
2292 va_end (args_copy);
2293 va_end (args);
2295 return *str && number && fnumber;
2299 # Test code for whether the C compiler supports C99 (body of main).
2300 ac_c_conftest_c99_main='
2301 // Check bool.
2302 _Bool success = false;
2303 success |= (argc != 0);
2305 // Check restrict.
2306 if (test_restrict ("String literal") == 0)
2307 success = true;
2308 char *restrict newvar = "Another string";
2310 // Check varargs.
2311 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2312 test_varargs_macros ();
2314 // Check flexible array members.
2315 struct incomplete_array *ia =
2316 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2317 ia->datasize = 10;
2318 for (int i = 0; i < ia->datasize; ++i)
2319 ia->data[i] = i * 1.234;
2321 // Check named initializers.
2322 struct named_init ni = {
2323 .number = 34,
2324 .name = L"Test wide string",
2325 .average = 543.34343,
2328 ni.number = 58;
2330 int dynamic_array[ni.number];
2331 dynamic_array[0] = argv[0][0];
2332 dynamic_array[ni.number - 1] = 543;
2334 // work around unused variable warnings
2335 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2336 || dynamic_array[ni.number - 1] != 543);
2339 # Test code for whether the C compiler supports C11 (global declarations)
2340 ac_c_conftest_c11_globals='
2341 // Does the compiler advertise C11 conformance?
2342 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2343 # error "Compiler does not advertise C11 conformance"
2344 #endif
2346 // Check _Alignas.
2347 char _Alignas (double) aligned_as_double;
2348 char _Alignas (0) no_special_alignment;
2349 extern char aligned_as_int;
2350 char _Alignas (0) _Alignas (int) aligned_as_int;
2352 // Check _Alignof.
2353 enum
2355 int_alignment = _Alignof (int),
2356 int_array_alignment = _Alignof (int[100]),
2357 char_alignment = _Alignof (char)
2359 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2361 // Check _Noreturn.
2362 int _Noreturn does_not_return (void) { for (;;) continue; }
2364 // Check _Static_assert.
2365 struct test_static_assert
2367 int x;
2368 _Static_assert (sizeof (int) <= sizeof (long int),
2369 "_Static_assert does not work in struct");
2370 long int y;
2373 // Check UTF-8 literals.
2374 #define u8 syntax error!
2375 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2377 // Check duplicate typedefs.
2378 typedef long *long_ptr;
2379 typedef long int *long_ptr;
2380 typedef long_ptr long_ptr;
2382 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2383 struct anonymous
2385 union {
2386 struct { int i; int j; };
2387 struct { int k; long int l; } w;
2389 int m;
2390 } v1;
2393 # Test code for whether the C compiler supports C11 (body of main).
2394 ac_c_conftest_c11_main='
2395 _Static_assert ((offsetof (struct anonymous, i)
2396 == offsetof (struct anonymous, w.k)),
2397 "Anonymous union alignment botch");
2398 v1.i = 2;
2399 v1.w.k = 5;
2400 ok |= v1.i != 5;
2403 # Test code for whether the C compiler supports C11 (complete).
2404 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2405 ${ac_c_conftest_c99_globals}
2406 ${ac_c_conftest_c11_globals}
2409 main (int argc, char **argv)
2411 int ok = 0;
2412 ${ac_c_conftest_c89_main}
2413 ${ac_c_conftest_c99_main}
2414 ${ac_c_conftest_c11_main}
2415 return ok;
2419 # Test code for whether the C compiler supports C99 (complete).
2420 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2421 ${ac_c_conftest_c99_globals}
2424 main (int argc, char **argv)
2426 int ok = 0;
2427 ${ac_c_conftest_c89_main}
2428 ${ac_c_conftest_c99_main}
2429 return ok;
2433 # Test code for whether the C compiler supports C89 (complete).
2434 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2437 main (int argc, char **argv)
2439 int ok = 0;
2440 ${ac_c_conftest_c89_main}
2441 return ok;
2445 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2446 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2447 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2448 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2449 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2450 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2451 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2452 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2453 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2455 # Auxiliary files required by this configure script.
2456 ac_aux_files="install-sh config.guess config.sub ltmain.sh"
2458 # Locations in which to look for auxiliary files.
2459 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2461 # Search for a directory containing all of the required auxiliary files,
2462 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2463 # If we don't find one directory that contains all the files we need,
2464 # we report the set of missing files from the *first* directory in
2465 # $ac_aux_dir_candidates and give up.
2466 ac_missing_aux_files=""
2467 ac_first_candidate=:
2468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 as_found=false
2471 for as_dir in $ac_aux_dir_candidates
2473 IFS=$as_save_IFS
2474 case $as_dir in #(((
2475 '') as_dir=./ ;;
2476 */) ;;
2477 *) as_dir=$as_dir/ ;;
2478 esac
2479 as_found=:
2481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2482 ac_aux_dir_found=yes
2483 ac_install_sh=
2484 for ac_aux in $ac_aux_files
2486 # As a special case, if "install-sh" is required, that requirement
2487 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2488 # and $ac_install_sh is set appropriately for whichever one is found.
2489 if test x"$ac_aux" = x"install-sh"
2490 then
2491 if test -f "${as_dir}install-sh"; then
2492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2493 ac_install_sh="${as_dir}install-sh -c"
2494 elif test -f "${as_dir}install.sh"; then
2495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2496 ac_install_sh="${as_dir}install.sh -c"
2497 elif test -f "${as_dir}shtool"; then
2498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2499 ac_install_sh="${as_dir}shtool install -c"
2500 else
2501 ac_aux_dir_found=no
2502 if $ac_first_candidate; then
2503 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2504 else
2505 break
2508 else
2509 if test -f "${as_dir}${ac_aux}"; then
2510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2511 else
2512 ac_aux_dir_found=no
2513 if $ac_first_candidate; then
2514 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2515 else
2516 break
2520 done
2521 if test "$ac_aux_dir_found" = yes; then
2522 ac_aux_dir="$as_dir"
2523 break
2525 ac_first_candidate=false
2527 as_found=false
2528 done
2529 IFS=$as_save_IFS
2530 if $as_found
2531 then :
2533 else $as_nop
2534 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2538 # These three variables are undocumented and unsupported,
2539 # and are intended to be withdrawn in a future Autoconf release.
2540 # They can cause serious problems if a builder's source tree is in a directory
2541 # whose full name contains unusual characters.
2542 if test -f "${ac_aux_dir}config.guess"; then
2543 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2545 if test -f "${ac_aux_dir}config.sub"; then
2546 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2548 if test -f "$ac_aux_dir/configure"; then
2549 ac_configure="$SHELL ${ac_aux_dir}configure"
2552 # Check that the precious variables saved in the cache have kept the same
2553 # value.
2554 ac_cache_corrupted=false
2555 for ac_var in $ac_precious_vars; do
2556 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2557 eval ac_new_set=\$ac_env_${ac_var}_set
2558 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2559 eval ac_new_val=\$ac_env_${ac_var}_value
2560 case $ac_old_set,$ac_new_set in
2561 set,)
2562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2563 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2564 ac_cache_corrupted=: ;;
2565 ,set)
2566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2567 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2568 ac_cache_corrupted=: ;;
2569 ,);;
2571 if test "x$ac_old_val" != "x$ac_new_val"; then
2572 # differences in whitespace do not lead to failure.
2573 ac_old_val_w=`echo x $ac_old_val`
2574 ac_new_val_w=`echo x $ac_new_val`
2575 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2577 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2578 ac_cache_corrupted=:
2579 else
2580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2581 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2582 eval $ac_var=\$ac_old_val
2584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2585 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2587 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2588 fi;;
2589 esac
2590 # Pass precious variables to config.status.
2591 if test "$ac_new_set" = set; then
2592 case $ac_new_val in
2593 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2594 *) ac_arg=$ac_var=$ac_new_val ;;
2595 esac
2596 case " $ac_configure_args " in
2597 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2598 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2599 esac
2601 done
2602 if $ac_cache_corrupted; then
2603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2604 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2606 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2607 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2608 and start over" "$LINENO" 5
2610 ## -------------------- ##
2611 ## Main body of script. ##
2612 ## -------------------- ##
2614 ac_ext=c
2615 ac_cpp='$CPP $CPPFLAGS'
2616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2622 sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
2623 if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2624 as_fn_error $? "configure script is out of date:
2625 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2626 top level VERSION file = $sqlite_version_sanity_check
2627 please regen with autoconf" "$LINENO" 5
2630 #########
2631 # Programs needed
2635 case `pwd` in
2636 *\ * | *\ *)
2637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2638 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2639 esac
2643 macro_version='2.4.6'
2644 macro_revision='2.4.6'
2659 ltmain=$ac_aux_dir/ltmain.sh
2663 # Make sure we can run config.sub.
2664 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2665 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2668 printf %s "checking build system type... " >&6; }
2669 if test ${ac_cv_build+y}
2670 then :
2671 printf %s "(cached) " >&6
2672 else $as_nop
2673 ac_build_alias=$build_alias
2674 test "x$ac_build_alias" = x &&
2675 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2676 test "x$ac_build_alias" = x &&
2677 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2678 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2679 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2683 printf "%s\n" "$ac_cv_build" >&6; }
2684 case $ac_cv_build in
2685 *-*-*) ;;
2686 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2687 esac
2688 build=$ac_cv_build
2689 ac_save_IFS=$IFS; IFS='-'
2690 set x $ac_cv_build
2691 shift
2692 build_cpu=$1
2693 build_vendor=$2
2694 shift; shift
2695 # Remember, the first character of IFS is used to create $*,
2696 # except with old shells:
2697 build_os=$*
2698 IFS=$ac_save_IFS
2699 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2703 printf %s "checking host system type... " >&6; }
2704 if test ${ac_cv_host+y}
2705 then :
2706 printf %s "(cached) " >&6
2707 else $as_nop
2708 if test "x$host_alias" = x; then
2709 ac_cv_host=$ac_cv_build
2710 else
2711 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2712 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2717 printf "%s\n" "$ac_cv_host" >&6; }
2718 case $ac_cv_host in
2719 *-*-*) ;;
2720 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2721 esac
2722 host=$ac_cv_host
2723 ac_save_IFS=$IFS; IFS='-'
2724 set x $ac_cv_host
2725 shift
2726 host_cpu=$1
2727 host_vendor=$2
2728 shift; shift
2729 # Remember, the first character of IFS is used to create $*,
2730 # except with old shells:
2731 host_os=$*
2732 IFS=$ac_save_IFS
2733 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2736 # Backslashify metacharacters that are still active within
2737 # double-quoted strings.
2738 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2740 # Same as above, but do not quote variable references.
2741 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2743 # Sed substitution to delay expansion of an escaped shell variable in a
2744 # double_quote_subst'ed string.
2745 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2747 # Sed substitution to delay expansion of an escaped single quote.
2748 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2750 # Sed substitution to avoid accidental globbing in evaled expressions
2751 no_glob_subst='s/\*/\\\*/g'
2753 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2754 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2755 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2758 printf %s "checking how to print strings... " >&6; }
2759 # Test print first, because it will be a builtin if present.
2760 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2761 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2762 ECHO='print -r --'
2763 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2764 ECHO='printf %s\n'
2765 else
2766 # Use this function as a fallback that always works.
2767 func_fallback_echo ()
2769 eval 'cat <<_LTECHO_EOF
2771 _LTECHO_EOF'
2773 ECHO='func_fallback_echo'
2776 # func_echo_all arg...
2777 # Invoke $ECHO with all args, space-separated.
2778 func_echo_all ()
2780 $ECHO ""
2783 case $ECHO in
2784 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2785 printf "%s\n" "printf" >&6; } ;;
2786 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2787 printf "%s\n" "print -r" >&6; } ;;
2788 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2789 printf "%s\n" "cat" >&6; } ;;
2790 esac
2814 ac_ext=c
2815 ac_cpp='$CPP $CPPFLAGS'
2816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2819 if test -n "$ac_tool_prefix"; then
2820 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2821 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2823 printf %s "checking for $ac_word... " >&6; }
2824 if test ${ac_cv_prog_CC+y}
2825 then :
2826 printf %s "(cached) " >&6
2827 else $as_nop
2828 if test -n "$CC"; then
2829 ac_cv_prog_CC="$CC" # Let the user override the test.
2830 else
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2834 IFS=$as_save_IFS
2835 case $as_dir in #(((
2836 '') as_dir=./ ;;
2837 */) ;;
2838 *) as_dir=$as_dir/ ;;
2839 esac
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2842 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2844 break 2
2846 done
2847 done
2848 IFS=$as_save_IFS
2852 CC=$ac_cv_prog_CC
2853 if test -n "$CC"; then
2854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2855 printf "%s\n" "$CC" >&6; }
2856 else
2857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858 printf "%s\n" "no" >&6; }
2863 if test -z "$ac_cv_prog_CC"; then
2864 ac_ct_CC=$CC
2865 # Extract the first word of "gcc", so it can be a program name with args.
2866 set dummy gcc; ac_word=$2
2867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868 printf %s "checking for $ac_word... " >&6; }
2869 if test ${ac_cv_prog_ac_ct_CC+y}
2870 then :
2871 printf %s "(cached) " >&6
2872 else $as_nop
2873 if test -n "$ac_ct_CC"; then
2874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2875 else
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH
2879 IFS=$as_save_IFS
2880 case $as_dir in #(((
2881 '') as_dir=./ ;;
2882 */) ;;
2883 *) as_dir=$as_dir/ ;;
2884 esac
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_ac_ct_CC="gcc"
2888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2889 break 2
2891 done
2892 done
2893 IFS=$as_save_IFS
2897 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2898 if test -n "$ac_ct_CC"; then
2899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2900 printf "%s\n" "$ac_ct_CC" >&6; }
2901 else
2902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 printf "%s\n" "no" >&6; }
2906 if test "x$ac_ct_CC" = x; then
2907 CC=""
2908 else
2909 case $cross_compiling:$ac_tool_warned in
2910 yes:)
2911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2912 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2913 ac_tool_warned=yes ;;
2914 esac
2915 CC=$ac_ct_CC
2917 else
2918 CC="$ac_cv_prog_CC"
2921 if test -z "$CC"; then
2922 if test -n "$ac_tool_prefix"; then
2923 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2924 set dummy ${ac_tool_prefix}cc; ac_word=$2
2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 printf %s "checking for $ac_word... " >&6; }
2927 if test ${ac_cv_prog_CC+y}
2928 then :
2929 printf %s "(cached) " >&6
2930 else $as_nop
2931 if test -n "$CC"; then
2932 ac_cv_prog_CC="$CC" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2937 IFS=$as_save_IFS
2938 case $as_dir in #(((
2939 '') as_dir=./ ;;
2940 */) ;;
2941 *) as_dir=$as_dir/ ;;
2942 esac
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2945 ac_cv_prog_CC="${ac_tool_prefix}cc"
2946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2947 break 2
2949 done
2950 done
2951 IFS=$as_save_IFS
2955 CC=$ac_cv_prog_CC
2956 if test -n "$CC"; then
2957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2958 printf "%s\n" "$CC" >&6; }
2959 else
2960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 printf "%s\n" "no" >&6; }
2967 if test -z "$CC"; then
2968 # Extract the first word of "cc", so it can be a program name with args.
2969 set dummy cc; ac_word=$2
2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 printf %s "checking for $ac_word... " >&6; }
2972 if test ${ac_cv_prog_CC+y}
2973 then :
2974 printf %s "(cached) " >&6
2975 else $as_nop
2976 if test -n "$CC"; then
2977 ac_cv_prog_CC="$CC" # Let the user override the test.
2978 else
2979 ac_prog_rejected=no
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 for as_dir in $PATH
2983 IFS=$as_save_IFS
2984 case $as_dir in #(((
2985 '') as_dir=./ ;;
2986 */) ;;
2987 *) as_dir=$as_dir/ ;;
2988 esac
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2991 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2992 ac_prog_rejected=yes
2993 continue
2995 ac_cv_prog_CC="cc"
2996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2997 break 2
2999 done
3000 done
3001 IFS=$as_save_IFS
3003 if test $ac_prog_rejected = yes; then
3004 # We found a bogon in the path, so make sure we never use it.
3005 set dummy $ac_cv_prog_CC
3006 shift
3007 if test $# != 0; then
3008 # We chose a different compiler from the bogus one.
3009 # However, it has the same basename, so the bogon will be chosen
3010 # first if we set CC to just the basename; use the full file name.
3011 shift
3012 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3017 CC=$ac_cv_prog_CC
3018 if test -n "$CC"; then
3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3020 printf "%s\n" "$CC" >&6; }
3021 else
3022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 printf "%s\n" "no" >&6; }
3028 if test -z "$CC"; then
3029 if test -n "$ac_tool_prefix"; then
3030 for ac_prog in cl.exe
3032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 printf %s "checking for $ac_word... " >&6; }
3036 if test ${ac_cv_prog_CC+y}
3037 then :
3038 printf %s "(cached) " >&6
3039 else $as_nop
3040 if test -n "$CC"; then
3041 ac_cv_prog_CC="$CC" # Let the user override the test.
3042 else
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3046 IFS=$as_save_IFS
3047 case $as_dir in #(((
3048 '') as_dir=./ ;;
3049 */) ;;
3050 *) as_dir=$as_dir/ ;;
3051 esac
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3054 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3056 break 2
3058 done
3059 done
3060 IFS=$as_save_IFS
3064 CC=$ac_cv_prog_CC
3065 if test -n "$CC"; then
3066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3067 printf "%s\n" "$CC" >&6; }
3068 else
3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 printf "%s\n" "no" >&6; }
3074 test -n "$CC" && break
3075 done
3077 if test -z "$CC"; then
3078 ac_ct_CC=$CC
3079 for ac_prog in cl.exe
3081 # Extract the first word of "$ac_prog", so it can be a program name with args.
3082 set dummy $ac_prog; ac_word=$2
3083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 printf %s "checking for $ac_word... " >&6; }
3085 if test ${ac_cv_prog_ac_ct_CC+y}
3086 then :
3087 printf %s "(cached) " >&6
3088 else $as_nop
3089 if test -n "$ac_ct_CC"; then
3090 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3091 else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3095 IFS=$as_save_IFS
3096 case $as_dir in #(((
3097 '') as_dir=./ ;;
3098 */) ;;
3099 *) as_dir=$as_dir/ ;;
3100 esac
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3103 ac_cv_prog_ac_ct_CC="$ac_prog"
3104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3105 break 2
3107 done
3108 done
3109 IFS=$as_save_IFS
3113 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3114 if test -n "$ac_ct_CC"; then
3115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3116 printf "%s\n" "$ac_ct_CC" >&6; }
3117 else
3118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 printf "%s\n" "no" >&6; }
3123 test -n "$ac_ct_CC" && break
3124 done
3126 if test "x$ac_ct_CC" = x; then
3127 CC=""
3128 else
3129 case $cross_compiling:$ac_tool_warned in
3130 yes:)
3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3132 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3133 ac_tool_warned=yes ;;
3134 esac
3135 CC=$ac_ct_CC
3140 if test -z "$CC"; then
3141 if test -n "$ac_tool_prefix"; then
3142 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3143 set dummy ${ac_tool_prefix}clang; ac_word=$2
3144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145 printf %s "checking for $ac_word... " >&6; }
3146 if test ${ac_cv_prog_CC+y}
3147 then :
3148 printf %s "(cached) " >&6
3149 else $as_nop
3150 if test -n "$CC"; then
3151 ac_cv_prog_CC="$CC" # Let the user override the test.
3152 else
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH
3156 IFS=$as_save_IFS
3157 case $as_dir in #(((
3158 '') as_dir=./ ;;
3159 */) ;;
3160 *) as_dir=$as_dir/ ;;
3161 esac
3162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3164 ac_cv_prog_CC="${ac_tool_prefix}clang"
3165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3166 break 2
3168 done
3169 done
3170 IFS=$as_save_IFS
3174 CC=$ac_cv_prog_CC
3175 if test -n "$CC"; then
3176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3177 printf "%s\n" "$CC" >&6; }
3178 else
3179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 printf "%s\n" "no" >&6; }
3185 if test -z "$ac_cv_prog_CC"; then
3186 ac_ct_CC=$CC
3187 # Extract the first word of "clang", so it can be a program name with args.
3188 set dummy clang; ac_word=$2
3189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 printf %s "checking for $ac_word... " >&6; }
3191 if test ${ac_cv_prog_ac_ct_CC+y}
3192 then :
3193 printf %s "(cached) " >&6
3194 else $as_nop
3195 if test -n "$ac_ct_CC"; then
3196 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3197 else
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH
3201 IFS=$as_save_IFS
3202 case $as_dir in #(((
3203 '') as_dir=./ ;;
3204 */) ;;
3205 *) as_dir=$as_dir/ ;;
3206 esac
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3209 ac_cv_prog_ac_ct_CC="clang"
3210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3211 break 2
3213 done
3214 done
3215 IFS=$as_save_IFS
3219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3220 if test -n "$ac_ct_CC"; then
3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3222 printf "%s\n" "$ac_ct_CC" >&6; }
3223 else
3224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 printf "%s\n" "no" >&6; }
3228 if test "x$ac_ct_CC" = x; then
3229 CC=""
3230 else
3231 case $cross_compiling:$ac_tool_warned in
3232 yes:)
3233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3234 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3235 ac_tool_warned=yes ;;
3236 esac
3237 CC=$ac_ct_CC
3239 else
3240 CC="$ac_cv_prog_CC"
3246 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3247 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3248 as_fn_error $? "no acceptable C compiler found in \$PATH
3249 See \`config.log' for more details" "$LINENO" 5; }
3251 # Provide some information about the compiler.
3252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3253 set X $ac_compile
3254 ac_compiler=$2
3255 for ac_option in --version -v -V -qversion -version; do
3256 { { ac_try="$ac_compiler $ac_option >&5"
3257 case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260 esac
3261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262 printf "%s\n" "$ac_try_echo"; } >&5
3263 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3264 ac_status=$?
3265 if test -s conftest.err; then
3266 sed '10a\
3267 ... rest of stderr output deleted ...
3268 10q' conftest.err >conftest.er1
3269 cat conftest.er1 >&5
3271 rm -f conftest.er1 conftest.err
3272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273 test $ac_status = 0; }
3274 done
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277 /* end confdefs.h. */
3280 main (void)
3284 return 0;
3286 _ACEOF
3287 ac_clean_files_save=$ac_clean_files
3288 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3289 # Try to create an executable without -o first, disregard a.out.
3290 # It will help us diagnose broken compilers, and finding out an intuition
3291 # of exeext.
3292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3293 printf %s "checking whether the C compiler works... " >&6; }
3294 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3296 # The possible output files:
3297 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3299 ac_rmfiles=
3300 for ac_file in $ac_files
3302 case $ac_file in
3303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3304 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3305 esac
3306 done
3307 rm -f $ac_rmfiles
3309 if { { ac_try="$ac_link_default"
3310 case "(($ac_try" in
3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312 *) ac_try_echo=$ac_try;;
3313 esac
3314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3315 printf "%s\n" "$ac_try_echo"; } >&5
3316 (eval "$ac_link_default") 2>&5
3317 ac_status=$?
3318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3319 test $ac_status = 0; }
3320 then :
3321 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3322 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3323 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3324 # so that the user can short-circuit this test for compilers unknown to
3325 # Autoconf.
3326 for ac_file in $ac_files ''
3328 test -f "$ac_file" || continue
3329 case $ac_file in
3330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3332 [ab].out )
3333 # We found the default executable, but exeext='' is most
3334 # certainly right.
3335 break;;
3336 *.* )
3337 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3338 then :; else
3339 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3341 # We set ac_cv_exeext here because the later test for it is not
3342 # safe: cross compilers may not add the suffix if given an `-o'
3343 # argument, so we may need to know it at that point already.
3344 # Even if this section looks crufty: it has the advantage of
3345 # actually working.
3346 break;;
3348 break;;
3349 esac
3350 done
3351 test "$ac_cv_exeext" = no && ac_cv_exeext=
3353 else $as_nop
3354 ac_file=''
3356 if test -z "$ac_file"
3357 then :
3358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 printf "%s\n" "no" >&6; }
3360 printf "%s\n" "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3363 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error 77 "C compiler cannot create executables
3366 See \`config.log' for more details" "$LINENO" 5; }
3367 else $as_nop
3368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3369 printf "%s\n" "yes" >&6; }
3371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3372 printf %s "checking for C compiler default output file name... " >&6; }
3373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3374 printf "%s\n" "$ac_file" >&6; }
3375 ac_exeext=$ac_cv_exeext
3377 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3378 ac_clean_files=$ac_clean_files_save
3379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3380 printf %s "checking for suffix of executables... " >&6; }
3381 if { { ac_try="$ac_link"
3382 case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3385 esac
3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387 printf "%s\n" "$ac_try_echo"; } >&5
3388 (eval "$ac_link") 2>&5
3389 ac_status=$?
3390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391 test $ac_status = 0; }
3392 then :
3393 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3394 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3395 # work properly (i.e., refer to `conftest.exe'), while it won't with
3396 # `rm'.
3397 for ac_file in conftest.exe conftest conftest.*; do
3398 test -f "$ac_file" || continue
3399 case $ac_file in
3400 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3401 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3402 break;;
3403 * ) break;;
3404 esac
3405 done
3406 else $as_nop
3407 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3408 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3409 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3410 See \`config.log' for more details" "$LINENO" 5; }
3412 rm -f conftest conftest$ac_cv_exeext
3413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3414 printf "%s\n" "$ac_cv_exeext" >&6; }
3416 rm -f conftest.$ac_ext
3417 EXEEXT=$ac_cv_exeext
3418 ac_exeext=$EXEEXT
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3421 #include <stdio.h>
3423 main (void)
3425 FILE *f = fopen ("conftest.out", "w");
3426 return ferror (f) || fclose (f) != 0;
3429 return 0;
3431 _ACEOF
3432 ac_clean_files="$ac_clean_files conftest.out"
3433 # Check that the compiler produces executables we can run. If not, either
3434 # the compiler is broken, or we cross compile.
3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3436 printf %s "checking whether we are cross compiling... " >&6; }
3437 if test "$cross_compiling" != yes; then
3438 { { ac_try="$ac_link"
3439 case "(($ac_try" in
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3442 esac
3443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444 printf "%s\n" "$ac_try_echo"; } >&5
3445 (eval "$ac_link") 2>&5
3446 ac_status=$?
3447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448 test $ac_status = 0; }
3449 if { ac_try='./conftest$ac_cv_exeext'
3450 { { case "(($ac_try" in
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3453 esac
3454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455 printf "%s\n" "$ac_try_echo"; } >&5
3456 (eval "$ac_try") 2>&5
3457 ac_status=$?
3458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459 test $ac_status = 0; }; }; then
3460 cross_compiling=no
3461 else
3462 if test "$cross_compiling" = maybe; then
3463 cross_compiling=yes
3464 else
3465 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3466 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3467 as_fn_error 77 "cannot run C compiled programs.
3468 If you meant to cross compile, use \`--host'.
3469 See \`config.log' for more details" "$LINENO" 5; }
3473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3474 printf "%s\n" "$cross_compiling" >&6; }
3476 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3477 ac_clean_files=$ac_clean_files_save
3478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3479 printf %s "checking for suffix of object files... " >&6; }
3480 if test ${ac_cv_objext+y}
3481 then :
3482 printf %s "(cached) " >&6
3483 else $as_nop
3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485 /* end confdefs.h. */
3488 main (void)
3492 return 0;
3494 _ACEOF
3495 rm -f conftest.o conftest.obj
3496 if { { ac_try="$ac_compile"
3497 case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3500 esac
3501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 printf "%s\n" "$ac_try_echo"; } >&5
3503 (eval "$ac_compile") 2>&5
3504 ac_status=$?
3505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506 test $ac_status = 0; }
3507 then :
3508 for ac_file in conftest.o conftest.obj conftest.*; do
3509 test -f "$ac_file" || continue;
3510 case $ac_file in
3511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3512 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3513 break;;
3514 esac
3515 done
3516 else $as_nop
3517 printf "%s\n" "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3520 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3521 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3522 as_fn_error $? "cannot compute suffix of object files: cannot compile
3523 See \`config.log' for more details" "$LINENO" 5; }
3525 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3528 printf "%s\n" "$ac_cv_objext" >&6; }
3529 OBJEXT=$ac_cv_objext
3530 ac_objext=$OBJEXT
3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3532 printf %s "checking whether the compiler supports GNU C... " >&6; }
3533 if test ${ac_cv_c_compiler_gnu+y}
3534 then :
3535 printf %s "(cached) " >&6
3536 else $as_nop
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h. */
3541 main (void)
3543 #ifndef __GNUC__
3544 choke me
3545 #endif
3548 return 0;
3550 _ACEOF
3551 if ac_fn_c_try_compile "$LINENO"
3552 then :
3553 ac_compiler_gnu=yes
3554 else $as_nop
3555 ac_compiler_gnu=no
3557 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3558 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3562 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3565 if test $ac_compiler_gnu = yes; then
3566 GCC=yes
3567 else
3568 GCC=
3570 ac_test_CFLAGS=${CFLAGS+y}
3571 ac_save_CFLAGS=$CFLAGS
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3573 printf %s "checking whether $CC accepts -g... " >&6; }
3574 if test ${ac_cv_prog_cc_g+y}
3575 then :
3576 printf %s "(cached) " >&6
3577 else $as_nop
3578 ac_save_c_werror_flag=$ac_c_werror_flag
3579 ac_c_werror_flag=yes
3580 ac_cv_prog_cc_g=no
3581 CFLAGS="-g"
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3586 main (void)
3590 return 0;
3592 _ACEOF
3593 if ac_fn_c_try_compile "$LINENO"
3594 then :
3595 ac_cv_prog_cc_g=yes
3596 else $as_nop
3597 CFLAGS=""
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3602 main (void)
3606 return 0;
3608 _ACEOF
3609 if ac_fn_c_try_compile "$LINENO"
3610 then :
3612 else $as_nop
3613 ac_c_werror_flag=$ac_save_c_werror_flag
3614 CFLAGS="-g"
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h. */
3619 main (void)
3623 return 0;
3625 _ACEOF
3626 if ac_fn_c_try_compile "$LINENO"
3627 then :
3628 ac_cv_prog_cc_g=yes
3630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3635 ac_c_werror_flag=$ac_save_c_werror_flag
3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3638 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3639 if test $ac_test_CFLAGS; then
3640 CFLAGS=$ac_save_CFLAGS
3641 elif test $ac_cv_prog_cc_g = yes; then
3642 if test "$GCC" = yes; then
3643 CFLAGS="-g -O2"
3644 else
3645 CFLAGS="-g"
3647 else
3648 if test "$GCC" = yes; then
3649 CFLAGS="-O2"
3650 else
3651 CFLAGS=
3654 ac_prog_cc_stdc=no
3655 if test x$ac_prog_cc_stdc = xno
3656 then :
3657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3658 printf %s "checking for $CC option to enable C11 features... " >&6; }
3659 if test ${ac_cv_prog_cc_c11+y}
3660 then :
3661 printf %s "(cached) " >&6
3662 else $as_nop
3663 ac_cv_prog_cc_c11=no
3664 ac_save_CC=$CC
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3667 $ac_c_conftest_c11_program
3668 _ACEOF
3669 for ac_arg in '' -std=gnu11
3671 CC="$ac_save_CC $ac_arg"
3672 if ac_fn_c_try_compile "$LINENO"
3673 then :
3674 ac_cv_prog_cc_c11=$ac_arg
3676 rm -f core conftest.err conftest.$ac_objext conftest.beam
3677 test "x$ac_cv_prog_cc_c11" != "xno" && break
3678 done
3679 rm -f conftest.$ac_ext
3680 CC=$ac_save_CC
3683 if test "x$ac_cv_prog_cc_c11" = xno
3684 then :
3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3686 printf "%s\n" "unsupported" >&6; }
3687 else $as_nop
3688 if test "x$ac_cv_prog_cc_c11" = x
3689 then :
3690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3691 printf "%s\n" "none needed" >&6; }
3692 else $as_nop
3693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3694 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3695 CC="$CC $ac_cv_prog_cc_c11"
3697 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3698 ac_prog_cc_stdc=c11
3701 if test x$ac_prog_cc_stdc = xno
3702 then :
3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3704 printf %s "checking for $CC option to enable C99 features... " >&6; }
3705 if test ${ac_cv_prog_cc_c99+y}
3706 then :
3707 printf %s "(cached) " >&6
3708 else $as_nop
3709 ac_cv_prog_cc_c99=no
3710 ac_save_CC=$CC
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3713 $ac_c_conftest_c99_program
3714 _ACEOF
3715 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3717 CC="$ac_save_CC $ac_arg"
3718 if ac_fn_c_try_compile "$LINENO"
3719 then :
3720 ac_cv_prog_cc_c99=$ac_arg
3722 rm -f core conftest.err conftest.$ac_objext conftest.beam
3723 test "x$ac_cv_prog_cc_c99" != "xno" && break
3724 done
3725 rm -f conftest.$ac_ext
3726 CC=$ac_save_CC
3729 if test "x$ac_cv_prog_cc_c99" = xno
3730 then :
3731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3732 printf "%s\n" "unsupported" >&6; }
3733 else $as_nop
3734 if test "x$ac_cv_prog_cc_c99" = x
3735 then :
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3737 printf "%s\n" "none needed" >&6; }
3738 else $as_nop
3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3740 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3741 CC="$CC $ac_cv_prog_cc_c99"
3743 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3744 ac_prog_cc_stdc=c99
3747 if test x$ac_prog_cc_stdc = xno
3748 then :
3749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3750 printf %s "checking for $CC option to enable C89 features... " >&6; }
3751 if test ${ac_cv_prog_cc_c89+y}
3752 then :
3753 printf %s "(cached) " >&6
3754 else $as_nop
3755 ac_cv_prog_cc_c89=no
3756 ac_save_CC=$CC
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3759 $ac_c_conftest_c89_program
3760 _ACEOF
3761 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3763 CC="$ac_save_CC $ac_arg"
3764 if ac_fn_c_try_compile "$LINENO"
3765 then :
3766 ac_cv_prog_cc_c89=$ac_arg
3768 rm -f core conftest.err conftest.$ac_objext conftest.beam
3769 test "x$ac_cv_prog_cc_c89" != "xno" && break
3770 done
3771 rm -f conftest.$ac_ext
3772 CC=$ac_save_CC
3775 if test "x$ac_cv_prog_cc_c89" = xno
3776 then :
3777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3778 printf "%s\n" "unsupported" >&6; }
3779 else $as_nop
3780 if test "x$ac_cv_prog_cc_c89" = x
3781 then :
3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3783 printf "%s\n" "none needed" >&6; }
3784 else $as_nop
3785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3786 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3787 CC="$CC $ac_cv_prog_cc_c89"
3789 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3790 ac_prog_cc_stdc=c89
3794 ac_ext=c
3795 ac_cpp='$CPP $CPPFLAGS'
3796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3801 printf %s "checking for a sed that does not truncate output... " >&6; }
3802 if test ${ac_cv_path_SED+y}
3803 then :
3804 printf %s "(cached) " >&6
3805 else $as_nop
3806 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3807 for ac_i in 1 2 3 4 5 6 7; do
3808 ac_script="$ac_script$as_nl$ac_script"
3809 done
3810 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3811 { ac_script=; unset ac_script;}
3812 if test -z "$SED"; then
3813 ac_path_SED_found=false
3814 # Loop through the user's path and test for each of PROGNAME-LIST
3815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 for as_dir in $PATH
3818 IFS=$as_save_IFS
3819 case $as_dir in #(((
3820 '') as_dir=./ ;;
3821 */) ;;
3822 *) as_dir=$as_dir/ ;;
3823 esac
3824 for ac_prog in sed gsed
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
3828 as_fn_executable_p "$ac_path_SED" || continue
3829 # Check for GNU ac_path_SED and select it if it is found.
3830 # Check for GNU $ac_path_SED
3831 case `"$ac_path_SED" --version 2>&1` in
3832 *GNU*)
3833 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3835 ac_count=0
3836 printf %s 0123456789 >"conftest.in"
3837 while :
3839 cat "conftest.in" "conftest.in" >"conftest.tmp"
3840 mv "conftest.tmp" "conftest.in"
3841 cp "conftest.in" "conftest.nl"
3842 printf "%s\n" '' >> "conftest.nl"
3843 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3844 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3845 as_fn_arith $ac_count + 1 && ac_count=$as_val
3846 if test $ac_count -gt ${ac_path_SED_max-0}; then
3847 # Best one so far, save it but keep looking for a better one
3848 ac_cv_path_SED="$ac_path_SED"
3849 ac_path_SED_max=$ac_count
3851 # 10*(2^10) chars as input seems more than enough
3852 test $ac_count -gt 10 && break
3853 done
3854 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3855 esac
3857 $ac_path_SED_found && break 3
3858 done
3859 done
3860 done
3861 IFS=$as_save_IFS
3862 if test -z "$ac_cv_path_SED"; then
3863 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3865 else
3866 ac_cv_path_SED=$SED
3870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3871 printf "%s\n" "$ac_cv_path_SED" >&6; }
3872 SED="$ac_cv_path_SED"
3873 rm -f conftest.sed
3875 test -z "$SED" && SED=sed
3876 Xsed="$SED -e 1s/^X//"
3888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3889 printf %s "checking for grep that handles long lines and -e... " >&6; }
3890 if test ${ac_cv_path_GREP+y}
3891 then :
3892 printf %s "(cached) " >&6
3893 else $as_nop
3894 if test -z "$GREP"; then
3895 ac_path_GREP_found=false
3896 # Loop through the user's path and test for each of PROGNAME-LIST
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3900 IFS=$as_save_IFS
3901 case $as_dir in #(((
3902 '') as_dir=./ ;;
3903 */) ;;
3904 *) as_dir=$as_dir/ ;;
3905 esac
3906 for ac_prog in grep ggrep
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
3910 as_fn_executable_p "$ac_path_GREP" || continue
3911 # Check for GNU ac_path_GREP and select it if it is found.
3912 # Check for GNU $ac_path_GREP
3913 case `"$ac_path_GREP" --version 2>&1` in
3914 *GNU*)
3915 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3917 ac_count=0
3918 printf %s 0123456789 >"conftest.in"
3919 while :
3921 cat "conftest.in" "conftest.in" >"conftest.tmp"
3922 mv "conftest.tmp" "conftest.in"
3923 cp "conftest.in" "conftest.nl"
3924 printf "%s\n" 'GREP' >> "conftest.nl"
3925 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3926 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3927 as_fn_arith $ac_count + 1 && ac_count=$as_val
3928 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3929 # Best one so far, save it but keep looking for a better one
3930 ac_cv_path_GREP="$ac_path_GREP"
3931 ac_path_GREP_max=$ac_count
3933 # 10*(2^10) chars as input seems more than enough
3934 test $ac_count -gt 10 && break
3935 done
3936 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3937 esac
3939 $ac_path_GREP_found && break 3
3940 done
3941 done
3942 done
3943 IFS=$as_save_IFS
3944 if test -z "$ac_cv_path_GREP"; then
3945 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3947 else
3948 ac_cv_path_GREP=$GREP
3952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3953 printf "%s\n" "$ac_cv_path_GREP" >&6; }
3954 GREP="$ac_cv_path_GREP"
3957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3958 printf %s "checking for egrep... " >&6; }
3959 if test ${ac_cv_path_EGREP+y}
3960 then :
3961 printf %s "(cached) " >&6
3962 else $as_nop
3963 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3964 then ac_cv_path_EGREP="$GREP -E"
3965 else
3966 if test -z "$EGREP"; then
3967 ac_path_EGREP_found=false
3968 # Loop through the user's path and test for each of PROGNAME-LIST
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3972 IFS=$as_save_IFS
3973 case $as_dir in #(((
3974 '') as_dir=./ ;;
3975 */) ;;
3976 *) as_dir=$as_dir/ ;;
3977 esac
3978 for ac_prog in egrep
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
3982 as_fn_executable_p "$ac_path_EGREP" || continue
3983 # Check for GNU ac_path_EGREP and select it if it is found.
3984 # Check for GNU $ac_path_EGREP
3985 case `"$ac_path_EGREP" --version 2>&1` in
3986 *GNU*)
3987 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3989 ac_count=0
3990 printf %s 0123456789 >"conftest.in"
3991 while :
3993 cat "conftest.in" "conftest.in" >"conftest.tmp"
3994 mv "conftest.tmp" "conftest.in"
3995 cp "conftest.in" "conftest.nl"
3996 printf "%s\n" 'EGREP' >> "conftest.nl"
3997 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3998 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3999 as_fn_arith $ac_count + 1 && ac_count=$as_val
4000 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4001 # Best one so far, save it but keep looking for a better one
4002 ac_cv_path_EGREP="$ac_path_EGREP"
4003 ac_path_EGREP_max=$ac_count
4005 # 10*(2^10) chars as input seems more than enough
4006 test $ac_count -gt 10 && break
4007 done
4008 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4009 esac
4011 $ac_path_EGREP_found && break 3
4012 done
4013 done
4014 done
4015 IFS=$as_save_IFS
4016 if test -z "$ac_cv_path_EGREP"; then
4017 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4019 else
4020 ac_cv_path_EGREP=$EGREP
4025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4026 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4027 EGREP="$ac_cv_path_EGREP"
4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4031 printf %s "checking for fgrep... " >&6; }
4032 if test ${ac_cv_path_FGREP+y}
4033 then :
4034 printf %s "(cached) " >&6
4035 else $as_nop
4036 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4037 then ac_cv_path_FGREP="$GREP -F"
4038 else
4039 if test -z "$FGREP"; then
4040 ac_path_FGREP_found=false
4041 # Loop through the user's path and test for each of PROGNAME-LIST
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4045 IFS=$as_save_IFS
4046 case $as_dir in #(((
4047 '') as_dir=./ ;;
4048 */) ;;
4049 *) as_dir=$as_dir/ ;;
4050 esac
4051 for ac_prog in fgrep
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4055 as_fn_executable_p "$ac_path_FGREP" || continue
4056 # Check for GNU ac_path_FGREP and select it if it is found.
4057 # Check for GNU $ac_path_FGREP
4058 case `"$ac_path_FGREP" --version 2>&1` in
4059 *GNU*)
4060 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4062 ac_count=0
4063 printf %s 0123456789 >"conftest.in"
4064 while :
4066 cat "conftest.in" "conftest.in" >"conftest.tmp"
4067 mv "conftest.tmp" "conftest.in"
4068 cp "conftest.in" "conftest.nl"
4069 printf "%s\n" 'FGREP' >> "conftest.nl"
4070 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4071 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4072 as_fn_arith $ac_count + 1 && ac_count=$as_val
4073 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4074 # Best one so far, save it but keep looking for a better one
4075 ac_cv_path_FGREP="$ac_path_FGREP"
4076 ac_path_FGREP_max=$ac_count
4078 # 10*(2^10) chars as input seems more than enough
4079 test $ac_count -gt 10 && break
4080 done
4081 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4082 esac
4084 $ac_path_FGREP_found && break 3
4085 done
4086 done
4087 done
4088 IFS=$as_save_IFS
4089 if test -z "$ac_cv_path_FGREP"; then
4090 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4092 else
4093 ac_cv_path_FGREP=$FGREP
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4099 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4100 FGREP="$ac_cv_path_FGREP"
4103 test -z "$GREP" && GREP=grep
4123 # Check whether --with-gnu-ld was given.
4124 if test ${with_gnu_ld+y}
4125 then :
4126 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4127 else $as_nop
4128 with_gnu_ld=no
4131 ac_prog=ld
4132 if test yes = "$GCC"; then
4133 # Check if gcc -print-prog-name=ld gives a path.
4134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4135 printf %s "checking for ld used by $CC... " >&6; }
4136 case $host in
4137 *-*-mingw*)
4138 # gcc leaves a trailing carriage return, which upsets mingw
4139 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4141 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4142 esac
4143 case $ac_prog in
4144 # Accept absolute paths.
4145 [\\/]* | ?:[\\/]*)
4146 re_direlt='/[^/][^/]*/\.\./'
4147 # Canonicalize the pathname of ld
4148 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4149 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4150 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4151 done
4152 test -z "$LD" && LD=$ac_prog
4155 # If it fails, then pretend we aren't using GCC.
4156 ac_prog=ld
4159 # If it is relative, then search for the first ld in PATH.
4160 with_gnu_ld=unknown
4162 esac
4163 elif test yes = "$with_gnu_ld"; then
4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4165 printf %s "checking for GNU ld... " >&6; }
4166 else
4167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4168 printf %s "checking for non-GNU ld... " >&6; }
4170 if test ${lt_cv_path_LD+y}
4171 then :
4172 printf %s "(cached) " >&6
4173 else $as_nop
4174 if test -z "$LD"; then
4175 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4176 for ac_dir in $PATH; do
4177 IFS=$lt_save_ifs
4178 test -z "$ac_dir" && ac_dir=.
4179 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4180 lt_cv_path_LD=$ac_dir/$ac_prog
4181 # Check to see if the program is GNU ld. I'd rather use --version,
4182 # but apparently some variants of GNU ld only accept -v.
4183 # Break only if it was the GNU/non-GNU ld that we prefer.
4184 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4185 *GNU* | *'with BFD'*)
4186 test no != "$with_gnu_ld" && break
4189 test yes != "$with_gnu_ld" && break
4191 esac
4193 done
4194 IFS=$lt_save_ifs
4195 else
4196 lt_cv_path_LD=$LD # Let the user override the test with a path.
4200 LD=$lt_cv_path_LD
4201 if test -n "$LD"; then
4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4203 printf "%s\n" "$LD" >&6; }
4204 else
4205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206 printf "%s\n" "no" >&6; }
4208 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4210 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
4211 if test ${lt_cv_prog_gnu_ld+y}
4212 then :
4213 printf %s "(cached) " >&6
4214 else $as_nop
4215 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4216 case `$LD -v 2>&1 </dev/null` in
4217 *GNU* | *'with BFD'*)
4218 lt_cv_prog_gnu_ld=yes
4221 lt_cv_prog_gnu_ld=no
4223 esac
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4226 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
4227 with_gnu_ld=$lt_cv_prog_gnu_ld
4237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4238 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4239 if test ${lt_cv_path_NM+y}
4240 then :
4241 printf %s "(cached) " >&6
4242 else $as_nop
4243 if test -n "$NM"; then
4244 # Let the user override the test.
4245 lt_cv_path_NM=$NM
4246 else
4247 lt_nm_to_check=${ac_tool_prefix}nm
4248 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4249 lt_nm_to_check="$lt_nm_to_check nm"
4251 for lt_tmp_nm in $lt_nm_to_check; do
4252 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4253 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4254 IFS=$lt_save_ifs
4255 test -z "$ac_dir" && ac_dir=.
4256 tmp_nm=$ac_dir/$lt_tmp_nm
4257 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4258 # Check to see if the nm accepts a BSD-compat flag.
4259 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4260 # nm: unknown option "B" ignored
4261 # Tru64's nm complains that /dev/null is an invalid object file
4262 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4263 case $build_os in
4264 mingw*) lt_bad_file=conftest.nm/nofile ;;
4265 *) lt_bad_file=/dev/null ;;
4266 esac
4267 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4268 *$lt_bad_file* | *'Invalid file or object type'*)
4269 lt_cv_path_NM="$tmp_nm -B"
4270 break 2
4273 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4274 */dev/null*)
4275 lt_cv_path_NM="$tmp_nm -p"
4276 break 2
4279 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4280 continue # so that we can try to find one that supports BSD flags
4282 esac
4284 esac
4286 done
4287 IFS=$lt_save_ifs
4288 done
4289 : ${lt_cv_path_NM=no}
4292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4293 printf "%s\n" "$lt_cv_path_NM" >&6; }
4294 if test no != "$lt_cv_path_NM"; then
4295 NM=$lt_cv_path_NM
4296 else
4297 # Didn't find any BSD compatible name lister, look for dumpbin.
4298 if test -n "$DUMPBIN"; then :
4299 # Let the user override the test.
4300 else
4301 if test -n "$ac_tool_prefix"; then
4302 for ac_prog in dumpbin "link -dump"
4304 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4305 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307 printf %s "checking for $ac_word... " >&6; }
4308 if test ${ac_cv_prog_DUMPBIN+y}
4309 then :
4310 printf %s "(cached) " >&6
4311 else $as_nop
4312 if test -n "$DUMPBIN"; then
4313 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4314 else
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4318 IFS=$as_save_IFS
4319 case $as_dir in #(((
4320 '') as_dir=./ ;;
4321 */) ;;
4322 *) as_dir=$as_dir/ ;;
4323 esac
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4326 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4328 break 2
4330 done
4331 done
4332 IFS=$as_save_IFS
4336 DUMPBIN=$ac_cv_prog_DUMPBIN
4337 if test -n "$DUMPBIN"; then
4338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4339 printf "%s\n" "$DUMPBIN" >&6; }
4340 else
4341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 printf "%s\n" "no" >&6; }
4346 test -n "$DUMPBIN" && break
4347 done
4349 if test -z "$DUMPBIN"; then
4350 ac_ct_DUMPBIN=$DUMPBIN
4351 for ac_prog in dumpbin "link -dump"
4353 # Extract the first word of "$ac_prog", so it can be a program name with args.
4354 set dummy $ac_prog; ac_word=$2
4355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356 printf %s "checking for $ac_word... " >&6; }
4357 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
4358 then :
4359 printf %s "(cached) " >&6
4360 else $as_nop
4361 if test -n "$ac_ct_DUMPBIN"; then
4362 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4363 else
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4367 IFS=$as_save_IFS
4368 case $as_dir in #(((
4369 '') as_dir=./ ;;
4370 */) ;;
4371 *) as_dir=$as_dir/ ;;
4372 esac
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4375 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4377 break 2
4379 done
4380 done
4381 IFS=$as_save_IFS
4385 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4386 if test -n "$ac_ct_DUMPBIN"; then
4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4388 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
4389 else
4390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 printf "%s\n" "no" >&6; }
4395 test -n "$ac_ct_DUMPBIN" && break
4396 done
4398 if test "x$ac_ct_DUMPBIN" = x; then
4399 DUMPBIN=":"
4400 else
4401 case $cross_compiling:$ac_tool_warned in
4402 yes:)
4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4404 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4405 ac_tool_warned=yes ;;
4406 esac
4407 DUMPBIN=$ac_ct_DUMPBIN
4411 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4412 *COFF*)
4413 DUMPBIN="$DUMPBIN -symbols -headers"
4416 DUMPBIN=:
4418 esac
4421 if test : != "$DUMPBIN"; then
4422 NM=$DUMPBIN
4425 test -z "$NM" && NM=nm
4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4433 printf %s "checking the name lister ($NM) interface... " >&6; }
4434 if test ${lt_cv_nm_interface+y}
4435 then :
4436 printf %s "(cached) " >&6
4437 else $as_nop
4438 lt_cv_nm_interface="BSD nm"
4439 echo "int some_variable = 0;" > conftest.$ac_ext
4440 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4441 (eval "$ac_compile" 2>conftest.err)
4442 cat conftest.err >&5
4443 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4444 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4445 cat conftest.err >&5
4446 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4447 cat conftest.out >&5
4448 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4449 lt_cv_nm_interface="MS dumpbin"
4451 rm -f conftest*
4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4454 printf "%s\n" "$lt_cv_nm_interface" >&6; }
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4457 printf %s "checking whether ln -s works... " >&6; }
4458 LN_S=$as_ln_s
4459 if test "$LN_S" = "ln -s"; then
4460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4461 printf "%s\n" "yes" >&6; }
4462 else
4463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4464 printf "%s\n" "no, using $LN_S" >&6; }
4467 # find the maximum length of command line arguments
4468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4469 printf %s "checking the maximum length of command line arguments... " >&6; }
4470 if test ${lt_cv_sys_max_cmd_len+y}
4471 then :
4472 printf %s "(cached) " >&6
4473 else $as_nop
4475 teststring=ABCD
4477 case $build_os in
4478 msdosdjgpp*)
4479 # On DJGPP, this test can blow up pretty badly due to problems in libc
4480 # (any single argument exceeding 2000 bytes causes a buffer overrun
4481 # during glob expansion). Even if it were fixed, the result of this
4482 # check would be larger than it should be.
4483 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4486 gnu*)
4487 # Under GNU Hurd, this test is not required because there is
4488 # no limit to the length of command line arguments.
4489 # Libtool will interpret -1 as no limit whatsoever
4490 lt_cv_sys_max_cmd_len=-1;
4493 cygwin* | mingw* | cegcc*)
4494 # On Win9x/ME, this test blows up -- it succeeds, but takes
4495 # about 5 minutes as the teststring grows exponentially.
4496 # Worse, since 9x/ME are not pre-emptively multitasking,
4497 # you end up with a "frozen" computer, even though with patience
4498 # the test eventually succeeds (with a max line length of 256k).
4499 # Instead, let's just punt: use the minimum linelength reported by
4500 # all of the supported platforms: 8192 (on NT/2K/XP).
4501 lt_cv_sys_max_cmd_len=8192;
4504 mint*)
4505 # On MiNT this can take a long time and run out of memory.
4506 lt_cv_sys_max_cmd_len=8192;
4509 amigaos*)
4510 # On AmigaOS with pdksh, this test takes hours, literally.
4511 # So we just punt and use a minimum line length of 8192.
4512 lt_cv_sys_max_cmd_len=8192;
4515 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4516 # This has been around since 386BSD, at least. Likely further.
4517 if test -x /sbin/sysctl; then
4518 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4519 elif test -x /usr/sbin/sysctl; then
4520 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4521 else
4522 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4524 # And add a safety zone
4525 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4526 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4529 interix*)
4530 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4531 lt_cv_sys_max_cmd_len=196608
4534 os2*)
4535 # The test takes a long time on OS/2.
4536 lt_cv_sys_max_cmd_len=8192
4539 osf*)
4540 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4541 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4542 # nice to cause kernel panics so lets avoid the loop below.
4543 # First set a reasonable default.
4544 lt_cv_sys_max_cmd_len=16384
4546 if test -x /sbin/sysconfig; then
4547 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4548 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4549 esac
4552 sco3.2v5*)
4553 lt_cv_sys_max_cmd_len=102400
4555 sysv5* | sco5v6* | sysv4.2uw2*)
4556 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4557 if test -n "$kargmax"; then
4558 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4559 else
4560 lt_cv_sys_max_cmd_len=32768
4564 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4565 if test -n "$lt_cv_sys_max_cmd_len" && \
4566 test undefined != "$lt_cv_sys_max_cmd_len"; then
4567 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4568 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4569 else
4570 # Make teststring a little bigger before we do anything with it.
4571 # a 1K string should be a reasonable start.
4572 for i in 1 2 3 4 5 6 7 8; do
4573 teststring=$teststring$teststring
4574 done
4575 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4576 # If test is not a shell built-in, we'll probably end up computing a
4577 # maximum length that is only half of the actual maximum length, but
4578 # we can't tell.
4579 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4580 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4581 test 17 != "$i" # 1/2 MB should be enough
4583 i=`expr $i + 1`
4584 teststring=$teststring$teststring
4585 done
4586 # Only check the string length outside the loop.
4587 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4588 teststring=
4589 # Add a significant safety factor because C++ compilers can tack on
4590 # massive amounts of additional arguments before passing them to the
4591 # linker. It appears as though 1/2 is a usable value.
4592 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4595 esac
4599 if test -n "$lt_cv_sys_max_cmd_len"; then
4600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4601 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
4602 else
4603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
4604 printf "%s\n" "none" >&6; }
4606 max_cmd_len=$lt_cv_sys_max_cmd_len
4613 : ${CP="cp -f"}
4614 : ${MV="mv -f"}
4615 : ${RM="rm -f"}
4617 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4618 lt_unset=unset
4619 else
4620 lt_unset=false
4627 # test EBCDIC or ASCII
4628 case `echo X|tr X '\101'` in
4629 A) # ASCII based system
4630 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4631 lt_SP2NL='tr \040 \012'
4632 lt_NL2SP='tr \015\012 \040\040'
4634 *) # EBCDIC based system
4635 lt_SP2NL='tr \100 \n'
4636 lt_NL2SP='tr \r\n \100\100'
4638 esac
4648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4649 printf %s "checking how to convert $build file names to $host format... " >&6; }
4650 if test ${lt_cv_to_host_file_cmd+y}
4651 then :
4652 printf %s "(cached) " >&6
4653 else $as_nop
4654 case $host in
4655 *-*-mingw* )
4656 case $build in
4657 *-*-mingw* ) # actually msys
4658 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4660 *-*-cygwin* )
4661 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4663 * ) # otherwise, assume *nix
4664 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4666 esac
4668 *-*-cygwin* )
4669 case $build in
4670 *-*-mingw* ) # actually msys
4671 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4673 *-*-cygwin* )
4674 lt_cv_to_host_file_cmd=func_convert_file_noop
4676 * ) # otherwise, assume *nix
4677 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4679 esac
4681 * ) # unhandled hosts (and "normal" native builds)
4682 lt_cv_to_host_file_cmd=func_convert_file_noop
4684 esac
4688 to_host_file_cmd=$lt_cv_to_host_file_cmd
4689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4690 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
4696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4697 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
4698 if test ${lt_cv_to_tool_file_cmd+y}
4699 then :
4700 printf %s "(cached) " >&6
4701 else $as_nop
4702 #assume ordinary cross tools, or native build.
4703 lt_cv_to_tool_file_cmd=func_convert_file_noop
4704 case $host in
4705 *-*-mingw* )
4706 case $build in
4707 *-*-mingw* ) # actually msys
4708 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4710 esac
4712 esac
4716 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4718 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
4724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4725 printf %s "checking for $LD option to reload object files... " >&6; }
4726 if test ${lt_cv_ld_reload_flag+y}
4727 then :
4728 printf %s "(cached) " >&6
4729 else $as_nop
4730 lt_cv_ld_reload_flag='-r'
4732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4733 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
4734 reload_flag=$lt_cv_ld_reload_flag
4735 case $reload_flag in
4736 "" | " "*) ;;
4737 *) reload_flag=" $reload_flag" ;;
4738 esac
4739 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4740 case $host_os in
4741 cygwin* | mingw* | pw32* | cegcc*)
4742 if test yes != "$GCC"; then
4743 reload_cmds=false
4746 darwin*)
4747 if test yes = "$GCC"; then
4748 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4749 else
4750 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4753 esac
4763 if test -n "$ac_tool_prefix"; then
4764 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4765 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 printf %s "checking for $ac_word... " >&6; }
4768 if test ${ac_cv_prog_OBJDUMP+y}
4769 then :
4770 printf %s "(cached) " >&6
4771 else $as_nop
4772 if test -n "$OBJDUMP"; then
4773 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4774 else
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 for as_dir in $PATH
4778 IFS=$as_save_IFS
4779 case $as_dir in #(((
4780 '') as_dir=./ ;;
4781 */) ;;
4782 *) as_dir=$as_dir/ ;;
4783 esac
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4786 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4788 break 2
4790 done
4791 done
4792 IFS=$as_save_IFS
4796 OBJDUMP=$ac_cv_prog_OBJDUMP
4797 if test -n "$OBJDUMP"; then
4798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4799 printf "%s\n" "$OBJDUMP" >&6; }
4800 else
4801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 printf "%s\n" "no" >&6; }
4807 if test -z "$ac_cv_prog_OBJDUMP"; then
4808 ac_ct_OBJDUMP=$OBJDUMP
4809 # Extract the first word of "objdump", so it can be a program name with args.
4810 set dummy objdump; ac_word=$2
4811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812 printf %s "checking for $ac_word... " >&6; }
4813 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
4814 then :
4815 printf %s "(cached) " >&6
4816 else $as_nop
4817 if test -n "$ac_ct_OBJDUMP"; then
4818 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4819 else
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4823 IFS=$as_save_IFS
4824 case $as_dir in #(((
4825 '') as_dir=./ ;;
4826 */) ;;
4827 *) as_dir=$as_dir/ ;;
4828 esac
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4831 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4833 break 2
4835 done
4836 done
4837 IFS=$as_save_IFS
4841 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4842 if test -n "$ac_ct_OBJDUMP"; then
4843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4844 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
4845 else
4846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 printf "%s\n" "no" >&6; }
4850 if test "x$ac_ct_OBJDUMP" = x; then
4851 OBJDUMP="false"
4852 else
4853 case $cross_compiling:$ac_tool_warned in
4854 yes:)
4855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4856 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4857 ac_tool_warned=yes ;;
4858 esac
4859 OBJDUMP=$ac_ct_OBJDUMP
4861 else
4862 OBJDUMP="$ac_cv_prog_OBJDUMP"
4865 test -z "$OBJDUMP" && OBJDUMP=objdump
4875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4876 printf %s "checking how to recognize dependent libraries... " >&6; }
4877 if test ${lt_cv_deplibs_check_method+y}
4878 then :
4879 printf %s "(cached) " >&6
4880 else $as_nop
4881 lt_cv_file_magic_cmd='$MAGIC_CMD'
4882 lt_cv_file_magic_test_file=
4883 lt_cv_deplibs_check_method='unknown'
4884 # Need to set the preceding variable on all platforms that support
4885 # interlibrary dependencies.
4886 # 'none' -- dependencies not supported.
4887 # 'unknown' -- same as none, but documents that we really don't know.
4888 # 'pass_all' -- all dependencies passed with no checks.
4889 # 'test_compile' -- check by making test program.
4890 # 'file_magic [[regex]]' -- check by looking for files in library path
4891 # that responds to the $file_magic_cmd with a given extended regex.
4892 # If you have 'file' or equivalent on your system and you're not sure
4893 # whether 'pass_all' will *always* work, you probably want this one.
4895 case $host_os in
4896 aix[4-9]*)
4897 lt_cv_deplibs_check_method=pass_all
4900 beos*)
4901 lt_cv_deplibs_check_method=pass_all
4904 bsdi[45]*)
4905 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4906 lt_cv_file_magic_cmd='/usr/bin/file -L'
4907 lt_cv_file_magic_test_file=/shlib/libc.so
4910 cygwin*)
4911 # func_win32_libid is a shell function defined in ltmain.sh
4912 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4913 lt_cv_file_magic_cmd='func_win32_libid'
4916 mingw* | pw32*)
4917 # Base MSYS/MinGW do not provide the 'file' command needed by
4918 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4919 # unless we find 'file', for example because we are cross-compiling.
4920 if ( file / ) >/dev/null 2>&1; then
4921 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4922 lt_cv_file_magic_cmd='func_win32_libid'
4923 else
4924 # Keep this pattern in sync with the one in func_win32_libid.
4925 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4926 lt_cv_file_magic_cmd='$OBJDUMP -f'
4930 cegcc*)
4931 # use the weaker test based on 'objdump'. See mingw*.
4932 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4933 lt_cv_file_magic_cmd='$OBJDUMP -f'
4936 darwin* | rhapsody*)
4937 lt_cv_deplibs_check_method=pass_all
4940 freebsd* | dragonfly*)
4941 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4942 case $host_cpu in
4943 i*86 )
4944 # Not sure whether the presence of OpenBSD here was a mistake.
4945 # Let's accept both of them until this is cleared up.
4946 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4947 lt_cv_file_magic_cmd=/usr/bin/file
4948 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4950 esac
4951 else
4952 lt_cv_deplibs_check_method=pass_all
4956 haiku*)
4957 lt_cv_deplibs_check_method=pass_all
4960 hpux10.20* | hpux11*)
4961 lt_cv_file_magic_cmd=/usr/bin/file
4962 case $host_cpu in
4963 ia64*)
4964 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4965 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4967 hppa*64*)
4968 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
4969 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4972 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4973 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4975 esac
4978 interix[3-9]*)
4979 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4980 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4983 irix5* | irix6* | nonstopux*)
4984 case $LD in
4985 *-32|*"-32 ") libmagic=32-bit;;
4986 *-n32|*"-n32 ") libmagic=N32;;
4987 *-64|*"-64 ") libmagic=64-bit;;
4988 *) libmagic=never-match;;
4989 esac
4990 lt_cv_deplibs_check_method=pass_all
4993 # This must be glibc/ELF.
4994 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4995 lt_cv_deplibs_check_method=pass_all
4998 netbsd* | netbsdelf*-gnu)
4999 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5000 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5001 else
5002 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5006 newos6*)
5007 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5008 lt_cv_file_magic_cmd=/usr/bin/file
5009 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5012 *nto* | *qnx*)
5013 lt_cv_deplibs_check_method=pass_all
5016 openbsd* | bitrig*)
5017 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5019 else
5020 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5024 osf3* | osf4* | osf5*)
5025 lt_cv_deplibs_check_method=pass_all
5028 rdos*)
5029 lt_cv_deplibs_check_method=pass_all
5032 solaris*)
5033 lt_cv_deplibs_check_method=pass_all
5036 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5037 lt_cv_deplibs_check_method=pass_all
5040 sysv4 | sysv4.3*)
5041 case $host_vendor in
5042 motorola)
5043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5044 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5046 ncr)
5047 lt_cv_deplibs_check_method=pass_all
5049 sequent)
5050 lt_cv_file_magic_cmd='/bin/file'
5051 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5053 sni)
5054 lt_cv_file_magic_cmd='/bin/file'
5055 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5056 lt_cv_file_magic_test_file=/lib/libc.so
5058 siemens)
5059 lt_cv_deplibs_check_method=pass_all
5062 lt_cv_deplibs_check_method=pass_all
5064 esac
5067 tpf*)
5068 lt_cv_deplibs_check_method=pass_all
5070 os2*)
5071 lt_cv_deplibs_check_method=pass_all
5073 esac
5076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5077 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
5079 file_magic_glob=
5080 want_nocaseglob=no
5081 if test "$build" = "$host"; then
5082 case $host_os in
5083 mingw* | pw32*)
5084 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5085 want_nocaseglob=yes
5086 else
5087 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5090 esac
5093 file_magic_cmd=$lt_cv_file_magic_cmd
5094 deplibs_check_method=$lt_cv_deplibs_check_method
5095 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5118 if test -n "$ac_tool_prefix"; then
5119 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5120 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5122 printf %s "checking for $ac_word... " >&6; }
5123 if test ${ac_cv_prog_DLLTOOL+y}
5124 then :
5125 printf %s "(cached) " >&6
5126 else $as_nop
5127 if test -n "$DLLTOOL"; then
5128 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5129 else
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH
5133 IFS=$as_save_IFS
5134 case $as_dir in #(((
5135 '') as_dir=./ ;;
5136 */) ;;
5137 *) as_dir=$as_dir/ ;;
5138 esac
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5141 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5143 break 2
5145 done
5146 done
5147 IFS=$as_save_IFS
5151 DLLTOOL=$ac_cv_prog_DLLTOOL
5152 if test -n "$DLLTOOL"; then
5153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5154 printf "%s\n" "$DLLTOOL" >&6; }
5155 else
5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 printf "%s\n" "no" >&6; }
5162 if test -z "$ac_cv_prog_DLLTOOL"; then
5163 ac_ct_DLLTOOL=$DLLTOOL
5164 # Extract the first word of "dlltool", so it can be a program name with args.
5165 set dummy dlltool; ac_word=$2
5166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 printf %s "checking for $ac_word... " >&6; }
5168 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
5169 then :
5170 printf %s "(cached) " >&6
5171 else $as_nop
5172 if test -n "$ac_ct_DLLTOOL"; then
5173 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5174 else
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5178 IFS=$as_save_IFS
5179 case $as_dir in #(((
5180 '') as_dir=./ ;;
5181 */) ;;
5182 *) as_dir=$as_dir/ ;;
5183 esac
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5186 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5188 break 2
5190 done
5191 done
5192 IFS=$as_save_IFS
5196 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5197 if test -n "$ac_ct_DLLTOOL"; then
5198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5199 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
5200 else
5201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 printf "%s\n" "no" >&6; }
5205 if test "x$ac_ct_DLLTOOL" = x; then
5206 DLLTOOL="false"
5207 else
5208 case $cross_compiling:$ac_tool_warned in
5209 yes:)
5210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5211 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5212 ac_tool_warned=yes ;;
5213 esac
5214 DLLTOOL=$ac_ct_DLLTOOL
5216 else
5217 DLLTOOL="$ac_cv_prog_DLLTOOL"
5220 test -z "$DLLTOOL" && DLLTOOL=dlltool
5231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5232 printf %s "checking how to associate runtime and link libraries... " >&6; }
5233 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
5234 then :
5235 printf %s "(cached) " >&6
5236 else $as_nop
5237 lt_cv_sharedlib_from_linklib_cmd='unknown'
5239 case $host_os in
5240 cygwin* | mingw* | pw32* | cegcc*)
5241 # two different shell functions defined in ltmain.sh;
5242 # decide which one to use based on capabilities of $DLLTOOL
5243 case `$DLLTOOL --help 2>&1` in
5244 *--identify-strict*)
5245 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5248 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5250 esac
5253 # fallback: assume linklib IS sharedlib
5254 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5256 esac
5259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5260 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5261 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5262 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5271 if test -n "$ac_tool_prefix"; then
5272 for ac_prog in ar
5274 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5275 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277 printf %s "checking for $ac_word... " >&6; }
5278 if test ${ac_cv_prog_AR+y}
5279 then :
5280 printf %s "(cached) " >&6
5281 else $as_nop
5282 if test -n "$AR"; then
5283 ac_cv_prog_AR="$AR" # Let the user override the test.
5284 else
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 for as_dir in $PATH
5288 IFS=$as_save_IFS
5289 case $as_dir in #(((
5290 '') as_dir=./ ;;
5291 */) ;;
5292 *) as_dir=$as_dir/ ;;
5293 esac
5294 for ac_exec_ext in '' $ac_executable_extensions; do
5295 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5296 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5298 break 2
5300 done
5301 done
5302 IFS=$as_save_IFS
5306 AR=$ac_cv_prog_AR
5307 if test -n "$AR"; then
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5309 printf "%s\n" "$AR" >&6; }
5310 else
5311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 printf "%s\n" "no" >&6; }
5316 test -n "$AR" && break
5317 done
5319 if test -z "$AR"; then
5320 ac_ct_AR=$AR
5321 for ac_prog in ar
5323 # Extract the first word of "$ac_prog", so it can be a program name with args.
5324 set dummy $ac_prog; ac_word=$2
5325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326 printf %s "checking for $ac_word... " >&6; }
5327 if test ${ac_cv_prog_ac_ct_AR+y}
5328 then :
5329 printf %s "(cached) " >&6
5330 else $as_nop
5331 if test -n "$ac_ct_AR"; then
5332 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5333 else
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5337 IFS=$as_save_IFS
5338 case $as_dir in #(((
5339 '') as_dir=./ ;;
5340 */) ;;
5341 *) as_dir=$as_dir/ ;;
5342 esac
5343 for ac_exec_ext in '' $ac_executable_extensions; do
5344 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5345 ac_cv_prog_ac_ct_AR="$ac_prog"
5346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5347 break 2
5349 done
5350 done
5351 IFS=$as_save_IFS
5355 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5356 if test -n "$ac_ct_AR"; then
5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5358 printf "%s\n" "$ac_ct_AR" >&6; }
5359 else
5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 printf "%s\n" "no" >&6; }
5365 test -n "$ac_ct_AR" && break
5366 done
5368 if test "x$ac_ct_AR" = x; then
5369 AR="false"
5370 else
5371 case $cross_compiling:$ac_tool_warned in
5372 yes:)
5373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5374 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5375 ac_tool_warned=yes ;;
5376 esac
5377 AR=$ac_ct_AR
5381 : ${AR=ar}
5382 : ${AR_FLAGS=cr}
5394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5395 printf %s "checking for archiver @FILE support... " >&6; }
5396 if test ${lt_cv_ar_at_file+y}
5397 then :
5398 printf %s "(cached) " >&6
5399 else $as_nop
5400 lt_cv_ar_at_file=no
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5405 main (void)
5409 return 0;
5411 _ACEOF
5412 if ac_fn_c_try_compile "$LINENO"
5413 then :
5414 echo conftest.$ac_objext > conftest.lst
5415 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5417 (eval $lt_ar_try) 2>&5
5418 ac_status=$?
5419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5420 test $ac_status = 0; }
5421 if test 0 -eq "$ac_status"; then
5422 # Ensure the archiver fails upon bogus file names.
5423 rm -f conftest.$ac_objext libconftest.a
5424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5425 (eval $lt_ar_try) 2>&5
5426 ac_status=$?
5427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5428 test $ac_status = 0; }
5429 if test 0 -ne "$ac_status"; then
5430 lt_cv_ar_at_file=@
5433 rm -f conftest.* libconftest.a
5436 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5440 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
5442 if test no = "$lt_cv_ar_at_file"; then
5443 archiver_list_spec=
5444 else
5445 archiver_list_spec=$lt_cv_ar_at_file
5454 if test -n "$ac_tool_prefix"; then
5455 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5456 set dummy ${ac_tool_prefix}strip; ac_word=$2
5457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5458 printf %s "checking for $ac_word... " >&6; }
5459 if test ${ac_cv_prog_STRIP+y}
5460 then :
5461 printf %s "(cached) " >&6
5462 else $as_nop
5463 if test -n "$STRIP"; then
5464 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5465 else
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5469 IFS=$as_save_IFS
5470 case $as_dir in #(((
5471 '') as_dir=./ ;;
5472 */) ;;
5473 *) as_dir=$as_dir/ ;;
5474 esac
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5477 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5479 break 2
5481 done
5482 done
5483 IFS=$as_save_IFS
5487 STRIP=$ac_cv_prog_STRIP
5488 if test -n "$STRIP"; then
5489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5490 printf "%s\n" "$STRIP" >&6; }
5491 else
5492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 printf "%s\n" "no" >&6; }
5498 if test -z "$ac_cv_prog_STRIP"; then
5499 ac_ct_STRIP=$STRIP
5500 # Extract the first word of "strip", so it can be a program name with args.
5501 set dummy strip; ac_word=$2
5502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 printf %s "checking for $ac_word... " >&6; }
5504 if test ${ac_cv_prog_ac_ct_STRIP+y}
5505 then :
5506 printf %s "(cached) " >&6
5507 else $as_nop
5508 if test -n "$ac_ct_STRIP"; then
5509 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5510 else
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 for as_dir in $PATH
5514 IFS=$as_save_IFS
5515 case $as_dir in #(((
5516 '') as_dir=./ ;;
5517 */) ;;
5518 *) as_dir=$as_dir/ ;;
5519 esac
5520 for ac_exec_ext in '' $ac_executable_extensions; do
5521 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5522 ac_cv_prog_ac_ct_STRIP="strip"
5523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5524 break 2
5526 done
5527 done
5528 IFS=$as_save_IFS
5532 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5533 if test -n "$ac_ct_STRIP"; then
5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5535 printf "%s\n" "$ac_ct_STRIP" >&6; }
5536 else
5537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538 printf "%s\n" "no" >&6; }
5541 if test "x$ac_ct_STRIP" = x; then
5542 STRIP=":"
5543 else
5544 case $cross_compiling:$ac_tool_warned in
5545 yes:)
5546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5547 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5548 ac_tool_warned=yes ;;
5549 esac
5550 STRIP=$ac_ct_STRIP
5552 else
5553 STRIP="$ac_cv_prog_STRIP"
5556 test -z "$STRIP" && STRIP=:
5563 if test -n "$ac_tool_prefix"; then
5564 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5565 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567 printf %s "checking for $ac_word... " >&6; }
5568 if test ${ac_cv_prog_RANLIB+y}
5569 then :
5570 printf %s "(cached) " >&6
5571 else $as_nop
5572 if test -n "$RANLIB"; then
5573 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5574 else
5575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 for as_dir in $PATH
5578 IFS=$as_save_IFS
5579 case $as_dir in #(((
5580 '') as_dir=./ ;;
5581 */) ;;
5582 *) as_dir=$as_dir/ ;;
5583 esac
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5586 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5588 break 2
5590 done
5591 done
5592 IFS=$as_save_IFS
5596 RANLIB=$ac_cv_prog_RANLIB
5597 if test -n "$RANLIB"; then
5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5599 printf "%s\n" "$RANLIB" >&6; }
5600 else
5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 printf "%s\n" "no" >&6; }
5607 if test -z "$ac_cv_prog_RANLIB"; then
5608 ac_ct_RANLIB=$RANLIB
5609 # Extract the first word of "ranlib", so it can be a program name with args.
5610 set dummy ranlib; ac_word=$2
5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 printf %s "checking for $ac_word... " >&6; }
5613 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5614 then :
5615 printf %s "(cached) " >&6
5616 else $as_nop
5617 if test -n "$ac_ct_RANLIB"; then
5618 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5619 else
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH
5623 IFS=$as_save_IFS
5624 case $as_dir in #(((
5625 '') as_dir=./ ;;
5626 */) ;;
5627 *) as_dir=$as_dir/ ;;
5628 esac
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5631 ac_cv_prog_ac_ct_RANLIB="ranlib"
5632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5633 break 2
5635 done
5636 done
5637 IFS=$as_save_IFS
5641 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5642 if test -n "$ac_ct_RANLIB"; then
5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5644 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5645 else
5646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 printf "%s\n" "no" >&6; }
5650 if test "x$ac_ct_RANLIB" = x; then
5651 RANLIB=":"
5652 else
5653 case $cross_compiling:$ac_tool_warned in
5654 yes:)
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5656 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5657 ac_tool_warned=yes ;;
5658 esac
5659 RANLIB=$ac_ct_RANLIB
5661 else
5662 RANLIB="$ac_cv_prog_RANLIB"
5665 test -z "$RANLIB" && RANLIB=:
5672 # Determine commands to create old-style static archives.
5673 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5674 old_postinstall_cmds='chmod 644 $oldlib'
5675 old_postuninstall_cmds=
5677 if test -n "$RANLIB"; then
5678 case $host_os in
5679 bitrig* | openbsd*)
5680 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5683 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5685 esac
5686 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5689 case $host_os in
5690 darwin*)
5691 lock_old_archive_extraction=yes ;;
5693 lock_old_archive_extraction=no ;;
5694 esac
5716 for ac_prog in gawk mawk nawk awk
5718 # Extract the first word of "$ac_prog", so it can be a program name with args.
5719 set dummy $ac_prog; ac_word=$2
5720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5721 printf %s "checking for $ac_word... " >&6; }
5722 if test ${ac_cv_prog_AWK+y}
5723 then :
5724 printf %s "(cached) " >&6
5725 else $as_nop
5726 if test -n "$AWK"; then
5727 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5728 else
5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 for as_dir in $PATH
5732 IFS=$as_save_IFS
5733 case $as_dir in #(((
5734 '') as_dir=./ ;;
5735 */) ;;
5736 *) as_dir=$as_dir/ ;;
5737 esac
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5740 ac_cv_prog_AWK="$ac_prog"
5741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5742 break 2
5744 done
5745 done
5746 IFS=$as_save_IFS
5750 AWK=$ac_cv_prog_AWK
5751 if test -n "$AWK"; then
5752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5753 printf "%s\n" "$AWK" >&6; }
5754 else
5755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756 printf "%s\n" "no" >&6; }
5760 test -n "$AWK" && break
5761 done
5781 # If no C compiler was specified, use CC.
5782 LTCC=${LTCC-"$CC"}
5784 # If no C compiler flags were specified, use CFLAGS.
5785 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5787 # Allow CC to be a program name with arguments.
5788 compiler=$CC
5791 # Check for command to grab the raw symbol name followed by C symbol from nm.
5792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5793 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
5794 if test ${lt_cv_sys_global_symbol_pipe+y}
5795 then :
5796 printf %s "(cached) " >&6
5797 else $as_nop
5799 # These are sane defaults that work on at least a few old systems.
5800 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5802 # Character class describing NM global symbol codes.
5803 symcode='[BCDEGRST]'
5805 # Regexp to match symbols that can be accessed directly from C.
5806 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5808 # Define system-specific variables.
5809 case $host_os in
5810 aix*)
5811 symcode='[BCDT]'
5813 cygwin* | mingw* | pw32* | cegcc*)
5814 symcode='[ABCDGISTW]'
5816 hpux*)
5817 if test ia64 = "$host_cpu"; then
5818 symcode='[ABCDEGRST]'
5821 irix* | nonstopux*)
5822 symcode='[BCDEGRST]'
5824 osf*)
5825 symcode='[BCDEGQRST]'
5827 solaris*)
5828 symcode='[BDRT]'
5830 sco3.2v5*)
5831 symcode='[DT]'
5833 sysv4.2uw2*)
5834 symcode='[DT]'
5836 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5837 symcode='[ABDT]'
5839 sysv4)
5840 symcode='[DFNSTU]'
5842 esac
5844 # If we're using GNU nm, then use its standard symbol codes.
5845 case `$NM -V 2>&1` in
5846 *GNU* | *'with BFD'*)
5847 symcode='[ABCDGIRSTW]' ;;
5848 esac
5850 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5851 # Gets list of data symbols to import.
5852 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5853 # Adjust the below global symbol transforms to fixup imported variables.
5854 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5855 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5856 lt_c_name_lib_hook="\
5857 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5858 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5859 else
5860 # Disable hooks by default.
5861 lt_cv_sys_global_symbol_to_import=
5862 lt_cdecl_hook=
5863 lt_c_name_hook=
5864 lt_c_name_lib_hook=
5867 # Transform an extracted symbol line into a proper C declaration.
5868 # Some systems (esp. on ia64) link data and code symbols differently,
5869 # so use this general approach.
5870 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5871 $lt_cdecl_hook\
5872 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5873 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5875 # Transform an extracted symbol line into symbol name and symbol address
5876 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5877 $lt_c_name_hook\
5878 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5879 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5881 # Transform an extracted symbol line into symbol name with lib prefix and
5882 # symbol address.
5883 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5884 $lt_c_name_lib_hook\
5885 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5886 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5887 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5889 # Handle CRLF in mingw tool chain
5890 opt_cr=
5891 case $build_os in
5892 mingw*)
5893 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5895 esac
5897 # Try without a prefix underscore, then with it.
5898 for ac_symprfx in "" "_"; do
5900 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5901 symxfrm="\\1 $ac_symprfx\\2 \\2"
5903 # Write the raw and C identifiers.
5904 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5905 # Fake it for dumpbin and say T for any non-static function,
5906 # D for any global variable and I for any imported variable.
5907 # Also find C++ and __fastcall symbols from MSVC++,
5908 # which start with @ or ?.
5909 lt_cv_sys_global_symbol_pipe="$AWK '"\
5910 " {last_section=section; section=\$ 3};"\
5911 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5912 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5913 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5914 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5915 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5916 " \$ 0!~/External *\|/{next};"\
5917 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5918 " {if(hide[section]) next};"\
5919 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5920 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5921 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5922 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5923 " ' prfx=^$ac_symprfx"
5924 else
5925 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5927 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5929 # Check to see that the pipe works correctly.
5930 pipe_works=no
5932 rm -f conftest*
5933 cat > conftest.$ac_ext <<_LT_EOF
5934 #ifdef __cplusplus
5935 extern "C" {
5936 #endif
5937 char nm_test_var;
5938 void nm_test_func(void);
5939 void nm_test_func(void){}
5940 #ifdef __cplusplus
5942 #endif
5943 int main(){nm_test_var='a';nm_test_func();return(0);}
5944 _LT_EOF
5946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5947 (eval $ac_compile) 2>&5
5948 ac_status=$?
5949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5950 test $ac_status = 0; }; then
5951 # Now try to grab the symbols.
5952 nlist=conftest.nm
5953 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
5954 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
5955 # Try sorting and uniquifying the output.
5956 if sort "$nlist" | uniq > "$nlist"T; then
5957 mv -f "$nlist"T "$nlist"
5958 else
5959 rm -f "$nlist"T
5962 # Make sure that we snagged all the symbols we need.
5963 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5964 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5965 cat <<_LT_EOF > conftest.$ac_ext
5966 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5967 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5968 /* DATA imports from DLLs on WIN32 can't be const, because runtime
5969 relocations are performed -- see ld's documentation on pseudo-relocs. */
5970 # define LT_DLSYM_CONST
5971 #elif defined __osf__
5972 /* This system does not cope well with relocations in const data. */
5973 # define LT_DLSYM_CONST
5974 #else
5975 # define LT_DLSYM_CONST const
5976 #endif
5978 #ifdef __cplusplus
5979 extern "C" {
5980 #endif
5982 _LT_EOF
5983 # Now generate the symbol file.
5984 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5986 cat <<_LT_EOF >> conftest.$ac_ext
5988 /* The mapping between symbol names and symbols. */
5989 LT_DLSYM_CONST struct {
5990 const char *name;
5991 void *address;
5993 lt__PROGRAM__LTX_preloaded_symbols[] =
5995 { "@PROGRAM@", (void *) 0 },
5996 _LT_EOF
5997 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5998 cat <<\_LT_EOF >> conftest.$ac_ext
5999 {0, (void *) 0}
6002 /* This works around a problem in FreeBSD linker */
6003 #ifdef FREEBSD_WORKAROUND
6004 static const void *lt_preloaded_setup() {
6005 return lt__PROGRAM__LTX_preloaded_symbols;
6007 #endif
6009 #ifdef __cplusplus
6011 #endif
6012 _LT_EOF
6013 # Now try linking the two files.
6014 mv conftest.$ac_objext conftstm.$ac_objext
6015 lt_globsym_save_LIBS=$LIBS
6016 lt_globsym_save_CFLAGS=$CFLAGS
6017 LIBS=conftstm.$ac_objext
6018 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6019 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6020 (eval $ac_link) 2>&5
6021 ac_status=$?
6022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6023 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6024 pipe_works=yes
6026 LIBS=$lt_globsym_save_LIBS
6027 CFLAGS=$lt_globsym_save_CFLAGS
6028 else
6029 echo "cannot find nm_test_func in $nlist" >&5
6031 else
6032 echo "cannot find nm_test_var in $nlist" >&5
6034 else
6035 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6037 else
6038 echo "$progname: failed program was:" >&5
6039 cat conftest.$ac_ext >&5
6041 rm -rf conftest* conftst*
6043 # Do not use the global_symbol_pipe unless it works.
6044 if test yes = "$pipe_works"; then
6045 break
6046 else
6047 lt_cv_sys_global_symbol_pipe=
6049 done
6053 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6054 lt_cv_sys_global_symbol_to_cdecl=
6056 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6058 printf "%s\n" "failed" >&6; }
6059 else
6060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6061 printf "%s\n" "ok" >&6; }
6064 # Response file support.
6065 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6066 nm_file_list_spec='@'
6067 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6068 nm_file_list_spec='@'
6107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6108 printf %s "checking for sysroot... " >&6; }
6110 # Check whether --with-sysroot was given.
6111 if test ${with_sysroot+y}
6112 then :
6113 withval=$with_sysroot;
6114 else $as_nop
6115 with_sysroot=no
6119 lt_sysroot=
6120 case $with_sysroot in #(
6121 yes)
6122 if test yes = "$GCC"; then
6123 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6125 ;; #(
6127 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6128 ;; #(
6129 no|'')
6130 ;; #(
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6133 printf "%s\n" "$with_sysroot" >&6; }
6134 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6136 esac
6138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6139 printf "%s\n" "${lt_sysroot:-no}" >&6; }
6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6146 printf %s "checking for a working dd... " >&6; }
6147 if test ${ac_cv_path_lt_DD+y}
6148 then :
6149 printf %s "(cached) " >&6
6150 else $as_nop
6151 printf 0123456789abcdef0123456789abcdef >conftest.i
6152 cat conftest.i conftest.i >conftest2.i
6153 : ${lt_DD:=$DD}
6154 if test -z "$lt_DD"; then
6155 ac_path_lt_DD_found=false
6156 # Loop through the user's path and test for each of PROGNAME-LIST
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6160 IFS=$as_save_IFS
6161 case $as_dir in #(((
6162 '') as_dir=./ ;;
6163 */) ;;
6164 *) as_dir=$as_dir/ ;;
6165 esac
6166 for ac_prog in dd
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
6170 as_fn_executable_p "$ac_path_lt_DD" || continue
6171 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6172 cmp -s conftest.i conftest.out \
6173 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6175 $ac_path_lt_DD_found && break 3
6176 done
6177 done
6178 done
6179 IFS=$as_save_IFS
6180 if test -z "$ac_cv_path_lt_DD"; then
6183 else
6184 ac_cv_path_lt_DD=$lt_DD
6187 rm -f conftest.i conftest2.i conftest.out
6189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6190 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
6193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6194 printf %s "checking how to truncate binary pipes... " >&6; }
6195 if test ${lt_cv_truncate_bin+y}
6196 then :
6197 printf %s "(cached) " >&6
6198 else $as_nop
6199 printf 0123456789abcdef0123456789abcdef >conftest.i
6200 cat conftest.i conftest.i >conftest2.i
6201 lt_cv_truncate_bin=
6202 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6203 cmp -s conftest.i conftest.out \
6204 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6206 rm -f conftest.i conftest2.i conftest.out
6207 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6210 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
6218 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6219 func_cc_basename ()
6221 for cc_temp in $*""; do
6222 case $cc_temp in
6223 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6224 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6225 \-*) ;;
6226 *) break;;
6227 esac
6228 done
6229 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6232 # Check whether --enable-libtool-lock was given.
6233 if test ${enable_libtool_lock+y}
6234 then :
6235 enableval=$enable_libtool_lock;
6238 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6240 # Some flags need to be propagated to the compiler or linker for good
6241 # libtool support.
6242 case $host in
6243 ia64-*-hpux*)
6244 # Find out what ABI is being produced by ac_compile, and set mode
6245 # options accordingly.
6246 echo 'int i;' > conftest.$ac_ext
6247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6248 (eval $ac_compile) 2>&5
6249 ac_status=$?
6250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6251 test $ac_status = 0; }; then
6252 case `/usr/bin/file conftest.$ac_objext` in
6253 *ELF-32*)
6254 HPUX_IA64_MODE=32
6256 *ELF-64*)
6257 HPUX_IA64_MODE=64
6259 esac
6261 rm -rf conftest*
6263 *-*-irix6*)
6264 # Find out what ABI is being produced by ac_compile, and set linker
6265 # options accordingly.
6266 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6268 (eval $ac_compile) 2>&5
6269 ac_status=$?
6270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6271 test $ac_status = 0; }; then
6272 if test yes = "$lt_cv_prog_gnu_ld"; then
6273 case `/usr/bin/file conftest.$ac_objext` in
6274 *32-bit*)
6275 LD="${LD-ld} -melf32bsmip"
6277 *N32*)
6278 LD="${LD-ld} -melf32bmipn32"
6280 *64-bit*)
6281 LD="${LD-ld} -melf64bmip"
6283 esac
6284 else
6285 case `/usr/bin/file conftest.$ac_objext` in
6286 *32-bit*)
6287 LD="${LD-ld} -32"
6289 *N32*)
6290 LD="${LD-ld} -n32"
6292 *64-bit*)
6293 LD="${LD-ld} -64"
6295 esac
6298 rm -rf conftest*
6301 mips64*-*linux*)
6302 # Find out what ABI is being produced by ac_compile, and set linker
6303 # options accordingly.
6304 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6306 (eval $ac_compile) 2>&5
6307 ac_status=$?
6308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6309 test $ac_status = 0; }; then
6310 emul=elf
6311 case `/usr/bin/file conftest.$ac_objext` in
6312 *32-bit*)
6313 emul="${emul}32"
6315 *64-bit*)
6316 emul="${emul}64"
6318 esac
6319 case `/usr/bin/file conftest.$ac_objext` in
6320 *MSB*)
6321 emul="${emul}btsmip"
6323 *LSB*)
6324 emul="${emul}ltsmip"
6326 esac
6327 case `/usr/bin/file conftest.$ac_objext` in
6328 *N32*)
6329 emul="${emul}n32"
6331 esac
6332 LD="${LD-ld} -m $emul"
6334 rm -rf conftest*
6337 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6338 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6339 # Find out what ABI is being produced by ac_compile, and set linker
6340 # options accordingly. Note that the listed cases only cover the
6341 # situations where additional linker options are needed (such as when
6342 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6343 # vice versa); the common cases where no linker options are needed do
6344 # not appear in the list.
6345 echo 'int i;' > conftest.$ac_ext
6346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6347 (eval $ac_compile) 2>&5
6348 ac_status=$?
6349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6350 test $ac_status = 0; }; then
6351 case `/usr/bin/file conftest.o` in
6352 *32-bit*)
6353 case $host in
6354 x86_64-*kfreebsd*-gnu)
6355 LD="${LD-ld} -m elf_i386_fbsd"
6357 x86_64-*linux*)
6358 case `/usr/bin/file conftest.o` in
6359 *x86-64*)
6360 LD="${LD-ld} -m elf32_x86_64"
6363 LD="${LD-ld} -m elf_i386"
6365 esac
6367 powerpc64le-*linux*)
6368 LD="${LD-ld} -m elf32lppclinux"
6370 powerpc64-*linux*)
6371 LD="${LD-ld} -m elf32ppclinux"
6373 s390x-*linux*)
6374 LD="${LD-ld} -m elf_s390"
6376 sparc64-*linux*)
6377 LD="${LD-ld} -m elf32_sparc"
6379 esac
6381 *64-bit*)
6382 case $host in
6383 x86_64-*kfreebsd*-gnu)
6384 LD="${LD-ld} -m elf_x86_64_fbsd"
6386 x86_64-*linux*)
6387 LD="${LD-ld} -m elf_x86_64"
6389 powerpcle-*linux*)
6390 LD="${LD-ld} -m elf64lppc"
6392 powerpc-*linux*)
6393 LD="${LD-ld} -m elf64ppc"
6395 s390*-*linux*|s390*-*tpf*)
6396 LD="${LD-ld} -m elf64_s390"
6398 sparc*-*linux*)
6399 LD="${LD-ld} -m elf64_sparc"
6401 esac
6403 esac
6405 rm -rf conftest*
6408 *-*-sco3.2v5*)
6409 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6410 SAVE_CFLAGS=$CFLAGS
6411 CFLAGS="$CFLAGS -belf"
6412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6413 printf %s "checking whether the C compiler needs -belf... " >&6; }
6414 if test ${lt_cv_cc_needs_belf+y}
6415 then :
6416 printf %s "(cached) " >&6
6417 else $as_nop
6418 ac_ext=c
6419 ac_cpp='$CPP $CPPFLAGS'
6420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6425 /* end confdefs.h. */
6428 main (void)
6432 return 0;
6434 _ACEOF
6435 if ac_fn_c_try_link "$LINENO"
6436 then :
6437 lt_cv_cc_needs_belf=yes
6438 else $as_nop
6439 lt_cv_cc_needs_belf=no
6441 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6442 conftest$ac_exeext conftest.$ac_ext
6443 ac_ext=c
6444 ac_cpp='$CPP $CPPFLAGS'
6445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6451 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
6452 if test yes != "$lt_cv_cc_needs_belf"; then
6453 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6454 CFLAGS=$SAVE_CFLAGS
6457 *-*solaris*)
6458 # Find out what ABI is being produced by ac_compile, and set linker
6459 # options accordingly.
6460 echo 'int i;' > conftest.$ac_ext
6461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6462 (eval $ac_compile) 2>&5
6463 ac_status=$?
6464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6465 test $ac_status = 0; }; then
6466 case `/usr/bin/file conftest.o` in
6467 *64-bit*)
6468 case $lt_cv_prog_gnu_ld in
6469 yes*)
6470 case $host in
6471 i?86-*-solaris*|x86_64-*-solaris*)
6472 LD="${LD-ld} -m elf_x86_64"
6474 sparc*-*-solaris*)
6475 LD="${LD-ld} -m elf64_sparc"
6477 esac
6478 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6479 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6480 LD=${LD-ld}_sol2
6484 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6485 LD="${LD-ld} -64"
6488 esac
6490 esac
6492 rm -rf conftest*
6494 esac
6496 need_locks=$enable_libtool_lock
6498 if test -n "$ac_tool_prefix"; then
6499 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6500 set dummy ${ac_tool_prefix}mt; ac_word=$2
6501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 printf %s "checking for $ac_word... " >&6; }
6503 if test ${ac_cv_prog_MANIFEST_TOOL+y}
6504 then :
6505 printf %s "(cached) " >&6
6506 else $as_nop
6507 if test -n "$MANIFEST_TOOL"; then
6508 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6509 else
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6513 IFS=$as_save_IFS
6514 case $as_dir in #(((
6515 '') as_dir=./ ;;
6516 */) ;;
6517 *) as_dir=$as_dir/ ;;
6518 esac
6519 for ac_exec_ext in '' $ac_executable_extensions; do
6520 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6521 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6523 break 2
6525 done
6526 done
6527 IFS=$as_save_IFS
6531 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6532 if test -n "$MANIFEST_TOOL"; then
6533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6534 printf "%s\n" "$MANIFEST_TOOL" >&6; }
6535 else
6536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 printf "%s\n" "no" >&6; }
6542 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6543 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6544 # Extract the first word of "mt", so it can be a program name with args.
6545 set dummy mt; ac_word=$2
6546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547 printf %s "checking for $ac_word... " >&6; }
6548 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
6549 then :
6550 printf %s "(cached) " >&6
6551 else $as_nop
6552 if test -n "$ac_ct_MANIFEST_TOOL"; then
6553 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6554 else
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 for as_dir in $PATH
6558 IFS=$as_save_IFS
6559 case $as_dir in #(((
6560 '') as_dir=./ ;;
6561 */) ;;
6562 *) as_dir=$as_dir/ ;;
6563 esac
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6566 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6568 break 2
6570 done
6571 done
6572 IFS=$as_save_IFS
6576 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6577 if test -n "$ac_ct_MANIFEST_TOOL"; then
6578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6579 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
6580 else
6581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582 printf "%s\n" "no" >&6; }
6585 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6586 MANIFEST_TOOL=":"
6587 else
6588 case $cross_compiling:$ac_tool_warned in
6589 yes:)
6590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6591 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6592 ac_tool_warned=yes ;;
6593 esac
6594 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6596 else
6597 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6600 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6602 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6603 if test ${lt_cv_path_mainfest_tool+y}
6604 then :
6605 printf %s "(cached) " >&6
6606 else $as_nop
6607 lt_cv_path_mainfest_tool=no
6608 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6609 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6610 cat conftest.err >&5
6611 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6612 lt_cv_path_mainfest_tool=yes
6614 rm -f conftest*
6616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6617 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
6618 if test yes != "$lt_cv_path_mainfest_tool"; then
6619 MANIFEST_TOOL=:
6627 case $host_os in
6628 rhapsody* | darwin*)
6629 if test -n "$ac_tool_prefix"; then
6630 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6631 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633 printf %s "checking for $ac_word... " >&6; }
6634 if test ${ac_cv_prog_DSYMUTIL+y}
6635 then :
6636 printf %s "(cached) " >&6
6637 else $as_nop
6638 if test -n "$DSYMUTIL"; then
6639 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6640 else
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6644 IFS=$as_save_IFS
6645 case $as_dir in #(((
6646 '') as_dir=./ ;;
6647 */) ;;
6648 *) as_dir=$as_dir/ ;;
6649 esac
6650 for ac_exec_ext in '' $ac_executable_extensions; do
6651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6652 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6654 break 2
6656 done
6657 done
6658 IFS=$as_save_IFS
6662 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6663 if test -n "$DSYMUTIL"; then
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6665 printf "%s\n" "$DSYMUTIL" >&6; }
6666 else
6667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6668 printf "%s\n" "no" >&6; }
6673 if test -z "$ac_cv_prog_DSYMUTIL"; then
6674 ac_ct_DSYMUTIL=$DSYMUTIL
6675 # Extract the first word of "dsymutil", so it can be a program name with args.
6676 set dummy dsymutil; ac_word=$2
6677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6678 printf %s "checking for $ac_word... " >&6; }
6679 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
6680 then :
6681 printf %s "(cached) " >&6
6682 else $as_nop
6683 if test -n "$ac_ct_DSYMUTIL"; then
6684 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6685 else
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6689 IFS=$as_save_IFS
6690 case $as_dir in #(((
6691 '') as_dir=./ ;;
6692 */) ;;
6693 *) as_dir=$as_dir/ ;;
6694 esac
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6697 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6699 break 2
6701 done
6702 done
6703 IFS=$as_save_IFS
6707 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6708 if test -n "$ac_ct_DSYMUTIL"; then
6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6710 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
6711 else
6712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713 printf "%s\n" "no" >&6; }
6716 if test "x$ac_ct_DSYMUTIL" = x; then
6717 DSYMUTIL=":"
6718 else
6719 case $cross_compiling:$ac_tool_warned in
6720 yes:)
6721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6722 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6723 ac_tool_warned=yes ;;
6724 esac
6725 DSYMUTIL=$ac_ct_DSYMUTIL
6727 else
6728 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6731 if test -n "$ac_tool_prefix"; then
6732 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6733 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735 printf %s "checking for $ac_word... " >&6; }
6736 if test ${ac_cv_prog_NMEDIT+y}
6737 then :
6738 printf %s "(cached) " >&6
6739 else $as_nop
6740 if test -n "$NMEDIT"; then
6741 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6742 else
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6746 IFS=$as_save_IFS
6747 case $as_dir in #(((
6748 '') as_dir=./ ;;
6749 */) ;;
6750 *) as_dir=$as_dir/ ;;
6751 esac
6752 for ac_exec_ext in '' $ac_executable_extensions; do
6753 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6754 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6756 break 2
6758 done
6759 done
6760 IFS=$as_save_IFS
6764 NMEDIT=$ac_cv_prog_NMEDIT
6765 if test -n "$NMEDIT"; then
6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6767 printf "%s\n" "$NMEDIT" >&6; }
6768 else
6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6770 printf "%s\n" "no" >&6; }
6775 if test -z "$ac_cv_prog_NMEDIT"; then
6776 ac_ct_NMEDIT=$NMEDIT
6777 # Extract the first word of "nmedit", so it can be a program name with args.
6778 set dummy nmedit; ac_word=$2
6779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780 printf %s "checking for $ac_word... " >&6; }
6781 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
6782 then :
6783 printf %s "(cached) " >&6
6784 else $as_nop
6785 if test -n "$ac_ct_NMEDIT"; then
6786 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6787 else
6788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789 for as_dir in $PATH
6791 IFS=$as_save_IFS
6792 case $as_dir in #(((
6793 '') as_dir=./ ;;
6794 */) ;;
6795 *) as_dir=$as_dir/ ;;
6796 esac
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6799 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6801 break 2
6803 done
6804 done
6805 IFS=$as_save_IFS
6809 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6810 if test -n "$ac_ct_NMEDIT"; then
6811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6812 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
6813 else
6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6815 printf "%s\n" "no" >&6; }
6818 if test "x$ac_ct_NMEDIT" = x; then
6819 NMEDIT=":"
6820 else
6821 case $cross_compiling:$ac_tool_warned in
6822 yes:)
6823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6824 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6825 ac_tool_warned=yes ;;
6826 esac
6827 NMEDIT=$ac_ct_NMEDIT
6829 else
6830 NMEDIT="$ac_cv_prog_NMEDIT"
6833 if test -n "$ac_tool_prefix"; then
6834 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6835 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 printf %s "checking for $ac_word... " >&6; }
6838 if test ${ac_cv_prog_LIPO+y}
6839 then :
6840 printf %s "(cached) " >&6
6841 else $as_nop
6842 if test -n "$LIPO"; then
6843 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6844 else
6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 for as_dir in $PATH
6848 IFS=$as_save_IFS
6849 case $as_dir in #(((
6850 '') as_dir=./ ;;
6851 */) ;;
6852 *) as_dir=$as_dir/ ;;
6853 esac
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6856 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6858 break 2
6860 done
6861 done
6862 IFS=$as_save_IFS
6866 LIPO=$ac_cv_prog_LIPO
6867 if test -n "$LIPO"; then
6868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6869 printf "%s\n" "$LIPO" >&6; }
6870 else
6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872 printf "%s\n" "no" >&6; }
6877 if test -z "$ac_cv_prog_LIPO"; then
6878 ac_ct_LIPO=$LIPO
6879 # Extract the first word of "lipo", so it can be a program name with args.
6880 set dummy lipo; ac_word=$2
6881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882 printf %s "checking for $ac_word... " >&6; }
6883 if test ${ac_cv_prog_ac_ct_LIPO+y}
6884 then :
6885 printf %s "(cached) " >&6
6886 else $as_nop
6887 if test -n "$ac_ct_LIPO"; then
6888 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6889 else
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 for as_dir in $PATH
6893 IFS=$as_save_IFS
6894 case $as_dir in #(((
6895 '') as_dir=./ ;;
6896 */) ;;
6897 *) as_dir=$as_dir/ ;;
6898 esac
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6901 ac_cv_prog_ac_ct_LIPO="lipo"
6902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6903 break 2
6905 done
6906 done
6907 IFS=$as_save_IFS
6911 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6912 if test -n "$ac_ct_LIPO"; then
6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6914 printf "%s\n" "$ac_ct_LIPO" >&6; }
6915 else
6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917 printf "%s\n" "no" >&6; }
6920 if test "x$ac_ct_LIPO" = x; then
6921 LIPO=":"
6922 else
6923 case $cross_compiling:$ac_tool_warned in
6924 yes:)
6925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6926 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6927 ac_tool_warned=yes ;;
6928 esac
6929 LIPO=$ac_ct_LIPO
6931 else
6932 LIPO="$ac_cv_prog_LIPO"
6935 if test -n "$ac_tool_prefix"; then
6936 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6937 set dummy ${ac_tool_prefix}otool; ac_word=$2
6938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939 printf %s "checking for $ac_word... " >&6; }
6940 if test ${ac_cv_prog_OTOOL+y}
6941 then :
6942 printf %s "(cached) " >&6
6943 else $as_nop
6944 if test -n "$OTOOL"; then
6945 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6946 else
6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 for as_dir in $PATH
6950 IFS=$as_save_IFS
6951 case $as_dir in #(((
6952 '') as_dir=./ ;;
6953 */) ;;
6954 *) as_dir=$as_dir/ ;;
6955 esac
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6958 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6960 break 2
6962 done
6963 done
6964 IFS=$as_save_IFS
6968 OTOOL=$ac_cv_prog_OTOOL
6969 if test -n "$OTOOL"; then
6970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6971 printf "%s\n" "$OTOOL" >&6; }
6972 else
6973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974 printf "%s\n" "no" >&6; }
6979 if test -z "$ac_cv_prog_OTOOL"; then
6980 ac_ct_OTOOL=$OTOOL
6981 # Extract the first word of "otool", so it can be a program name with args.
6982 set dummy otool; ac_word=$2
6983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984 printf %s "checking for $ac_word... " >&6; }
6985 if test ${ac_cv_prog_ac_ct_OTOOL+y}
6986 then :
6987 printf %s "(cached) " >&6
6988 else $as_nop
6989 if test -n "$ac_ct_OTOOL"; then
6990 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6991 else
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6995 IFS=$as_save_IFS
6996 case $as_dir in #(((
6997 '') as_dir=./ ;;
6998 */) ;;
6999 *) as_dir=$as_dir/ ;;
7000 esac
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7003 ac_cv_prog_ac_ct_OTOOL="otool"
7004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7005 break 2
7007 done
7008 done
7009 IFS=$as_save_IFS
7013 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7014 if test -n "$ac_ct_OTOOL"; then
7015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7016 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7017 else
7018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019 printf "%s\n" "no" >&6; }
7022 if test "x$ac_ct_OTOOL" = x; then
7023 OTOOL=":"
7024 else
7025 case $cross_compiling:$ac_tool_warned in
7026 yes:)
7027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7028 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7029 ac_tool_warned=yes ;;
7030 esac
7031 OTOOL=$ac_ct_OTOOL
7033 else
7034 OTOOL="$ac_cv_prog_OTOOL"
7037 if test -n "$ac_tool_prefix"; then
7038 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7039 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7041 printf %s "checking for $ac_word... " >&6; }
7042 if test ${ac_cv_prog_OTOOL64+y}
7043 then :
7044 printf %s "(cached) " >&6
7045 else $as_nop
7046 if test -n "$OTOOL64"; then
7047 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7048 else
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 for as_dir in $PATH
7052 IFS=$as_save_IFS
7053 case $as_dir in #(((
7054 '') as_dir=./ ;;
7055 */) ;;
7056 *) as_dir=$as_dir/ ;;
7057 esac
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7060 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7062 break 2
7064 done
7065 done
7066 IFS=$as_save_IFS
7070 OTOOL64=$ac_cv_prog_OTOOL64
7071 if test -n "$OTOOL64"; then
7072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7073 printf "%s\n" "$OTOOL64" >&6; }
7074 else
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 printf "%s\n" "no" >&6; }
7081 if test -z "$ac_cv_prog_OTOOL64"; then
7082 ac_ct_OTOOL64=$OTOOL64
7083 # Extract the first word of "otool64", so it can be a program name with args.
7084 set dummy otool64; ac_word=$2
7085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086 printf %s "checking for $ac_word... " >&6; }
7087 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
7088 then :
7089 printf %s "(cached) " >&6
7090 else $as_nop
7091 if test -n "$ac_ct_OTOOL64"; then
7092 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7093 else
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 for as_dir in $PATH
7097 IFS=$as_save_IFS
7098 case $as_dir in #(((
7099 '') as_dir=./ ;;
7100 */) ;;
7101 *) as_dir=$as_dir/ ;;
7102 esac
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7105 ac_cv_prog_ac_ct_OTOOL64="otool64"
7106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7107 break 2
7109 done
7110 done
7111 IFS=$as_save_IFS
7115 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7116 if test -n "$ac_ct_OTOOL64"; then
7117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7118 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
7119 else
7120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121 printf "%s\n" "no" >&6; }
7124 if test "x$ac_ct_OTOOL64" = x; then
7125 OTOOL64=":"
7126 else
7127 case $cross_compiling:$ac_tool_warned in
7128 yes:)
7129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7130 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7131 ac_tool_warned=yes ;;
7132 esac
7133 OTOOL64=$ac_ct_OTOOL64
7135 else
7136 OTOOL64="$ac_cv_prog_OTOOL64"
7165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7166 printf %s "checking for -single_module linker flag... " >&6; }
7167 if test ${lt_cv_apple_cc_single_mod+y}
7168 then :
7169 printf %s "(cached) " >&6
7170 else $as_nop
7171 lt_cv_apple_cc_single_mod=no
7172 if test -z "$LT_MULTI_MODULE"; then
7173 # By default we will add the -single_module flag. You can override
7174 # by either setting the environment variable LT_MULTI_MODULE
7175 # non-empty at configure time, or by adding -multi_module to the
7176 # link flags.
7177 rm -rf libconftest.dylib*
7178 echo "int foo(void){return 1;}" > conftest.c
7179 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7180 -dynamiclib -Wl,-single_module conftest.c" >&5
7181 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7182 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7183 _lt_result=$?
7184 # If there is a non-empty error log, and "single_module"
7185 # appears in it, assume the flag caused a linker warning
7186 if test -s conftest.err && $GREP single_module conftest.err; then
7187 cat conftest.err >&5
7188 # Otherwise, if the output was created with a 0 exit code from
7189 # the compiler, it worked.
7190 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7191 lt_cv_apple_cc_single_mod=yes
7192 else
7193 cat conftest.err >&5
7195 rm -rf libconftest.dylib*
7196 rm -f conftest.*
7199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7200 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
7202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7203 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
7204 if test ${lt_cv_ld_exported_symbols_list+y}
7205 then :
7206 printf %s "(cached) " >&6
7207 else $as_nop
7208 lt_cv_ld_exported_symbols_list=no
7209 save_LDFLAGS=$LDFLAGS
7210 echo "_main" > conftest.sym
7211 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213 /* end confdefs.h. */
7216 main (void)
7220 return 0;
7222 _ACEOF
7223 if ac_fn_c_try_link "$LINENO"
7224 then :
7225 lt_cv_ld_exported_symbols_list=yes
7226 else $as_nop
7227 lt_cv_ld_exported_symbols_list=no
7229 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7230 conftest$ac_exeext conftest.$ac_ext
7231 LDFLAGS=$save_LDFLAGS
7234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7235 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
7237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7238 printf %s "checking for -force_load linker flag... " >&6; }
7239 if test ${lt_cv_ld_force_load+y}
7240 then :
7241 printf %s "(cached) " >&6
7242 else $as_nop
7243 lt_cv_ld_force_load=no
7244 cat > conftest.c << _LT_EOF
7245 int forced_loaded() { return 2;}
7246 _LT_EOF
7247 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7248 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7249 echo "$AR cr libconftest.a conftest.o" >&5
7250 $AR cr libconftest.a conftest.o 2>&5
7251 echo "$RANLIB libconftest.a" >&5
7252 $RANLIB libconftest.a 2>&5
7253 cat > conftest.c << _LT_EOF
7254 int main() { return 0;}
7255 _LT_EOF
7256 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7257 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7258 _lt_result=$?
7259 if test -s conftest.err && $GREP force_load conftest.err; then
7260 cat conftest.err >&5
7261 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7262 lt_cv_ld_force_load=yes
7263 else
7264 cat conftest.err >&5
7266 rm -f conftest.err libconftest.a conftest conftest.c
7267 rm -rf conftest.dSYM
7270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7271 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
7272 case $host_os in
7273 rhapsody* | darwin1.[012])
7274 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7275 darwin1.*)
7276 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7277 darwin*) # darwin 5.x on
7278 # if running on 10.5 or later, the deployment target defaults
7279 # to the OS version, if on x86, and 10.4, the deployment
7280 # target defaults to 10.4. Don't you love it?
7281 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7282 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
7283 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7284 10.[012][,.]*)
7285 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7286 10.*|11.*)
7287 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7288 esac
7290 esac
7291 if test yes = "$lt_cv_apple_cc_single_mod"; then
7292 _lt_dar_single_mod='$single_module'
7294 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7295 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7296 else
7297 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7299 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7300 _lt_dsymutil='~$DSYMUTIL $lib || :'
7301 else
7302 _lt_dsymutil=
7305 esac
7307 # func_munge_path_list VARIABLE PATH
7308 # -----------------------------------
7309 # VARIABLE is name of variable containing _space_ separated list of
7310 # directories to be munged by the contents of PATH, which is string
7311 # having a format:
7312 # "DIR[:DIR]:"
7313 # string "DIR[ DIR]" will be prepended to VARIABLE
7314 # ":DIR[:DIR]"
7315 # string "DIR[ DIR]" will be appended to VARIABLE
7316 # "DIRP[:DIRP]::[DIRA:]DIRA"
7317 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7318 # "DIRA[ DIRA]" will be appended to VARIABLE
7319 # "DIR[:DIR]"
7320 # VARIABLE will be replaced by "DIR[ DIR]"
7321 func_munge_path_list ()
7323 case x$2 in
7327 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7329 x:*)
7330 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7332 *::*)
7333 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7334 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7337 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7339 esac
7342 ac_header= ac_cache=
7343 for ac_item in $ac_header_c_list
7345 if test $ac_cache; then
7346 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
7347 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
7348 printf "%s\n" "#define $ac_item 1" >> confdefs.h
7350 ac_header= ac_cache=
7351 elif test $ac_header; then
7352 ac_cache=$ac_item
7353 else
7354 ac_header=$ac_item
7356 done
7365 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
7366 then :
7368 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
7371 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7373 if test "x$ac_cv_header_dlfcn_h" = xyes
7374 then :
7375 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
7383 # Set options
7387 enable_dlopen=no
7390 enable_win32_dll=no
7393 # Check whether --enable-shared was given.
7394 if test ${enable_shared+y}
7395 then :
7396 enableval=$enable_shared; p=${PACKAGE-default}
7397 case $enableval in
7398 yes) enable_shared=yes ;;
7399 no) enable_shared=no ;;
7401 enable_shared=no
7402 # Look at the argument we got. We use all the common list separators.
7403 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7404 for pkg in $enableval; do
7405 IFS=$lt_save_ifs
7406 if test "X$pkg" = "X$p"; then
7407 enable_shared=yes
7409 done
7410 IFS=$lt_save_ifs
7412 esac
7413 else $as_nop
7414 enable_shared=yes
7425 # Check whether --enable-static was given.
7426 if test ${enable_static+y}
7427 then :
7428 enableval=$enable_static; p=${PACKAGE-default}
7429 case $enableval in
7430 yes) enable_static=yes ;;
7431 no) enable_static=no ;;
7433 enable_static=no
7434 # Look at the argument we got. We use all the common list separators.
7435 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7436 for pkg in $enableval; do
7437 IFS=$lt_save_ifs
7438 if test "X$pkg" = "X$p"; then
7439 enable_static=yes
7441 done
7442 IFS=$lt_save_ifs
7444 esac
7445 else $as_nop
7446 enable_static=yes
7458 # Check whether --with-pic was given.
7459 if test ${with_pic+y}
7460 then :
7461 withval=$with_pic; lt_p=${PACKAGE-default}
7462 case $withval in
7463 yes|no) pic_mode=$withval ;;
7465 pic_mode=default
7466 # Look at the argument we got. We use all the common list separators.
7467 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7468 for lt_pkg in $withval; do
7469 IFS=$lt_save_ifs
7470 if test "X$lt_pkg" = "X$lt_p"; then
7471 pic_mode=yes
7473 done
7474 IFS=$lt_save_ifs
7476 esac
7477 else $as_nop
7478 pic_mode=default
7488 # Check whether --enable-fast-install was given.
7489 if test ${enable_fast_install+y}
7490 then :
7491 enableval=$enable_fast_install; p=${PACKAGE-default}
7492 case $enableval in
7493 yes) enable_fast_install=yes ;;
7494 no) enable_fast_install=no ;;
7496 enable_fast_install=no
7497 # Look at the argument we got. We use all the common list separators.
7498 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7499 for pkg in $enableval; do
7500 IFS=$lt_save_ifs
7501 if test "X$pkg" = "X$p"; then
7502 enable_fast_install=yes
7504 done
7505 IFS=$lt_save_ifs
7507 esac
7508 else $as_nop
7509 enable_fast_install=yes
7519 shared_archive_member_spec=
7520 case $host,$enable_shared in
7521 power*-*-aix[5-9]*,yes)
7522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7523 printf %s "checking which variant of shared library versioning to provide... " >&6; }
7525 # Check whether --with-aix-soname was given.
7526 if test ${with_aix_soname+y}
7527 then :
7528 withval=$with_aix_soname; case $withval in
7529 aix|svr4|both)
7532 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7534 esac
7535 lt_cv_with_aix_soname=$with_aix_soname
7536 else $as_nop
7537 if test ${lt_cv_with_aix_soname+y}
7538 then :
7539 printf %s "(cached) " >&6
7540 else $as_nop
7541 lt_cv_with_aix_soname=aix
7544 with_aix_soname=$lt_cv_with_aix_soname
7547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7548 printf "%s\n" "$with_aix_soname" >&6; }
7549 if test aix != "$with_aix_soname"; then
7550 # For the AIX way of multilib, we name the shared archive member
7551 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7552 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7553 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7554 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7555 if test 64 = "${OBJECT_MODE-32}"; then
7556 shared_archive_member_spec=shr_64
7557 else
7558 shared_archive_member_spec=shr
7563 with_aix_soname=aix
7565 esac
7576 # This can be used to rebuild libtool when needed
7577 LIBTOOL_DEPS=$ltmain
7579 # Always use our own libtool.
7580 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7611 test -z "$LN_S" && LN_S="ln -s"
7626 if test -n "${ZSH_VERSION+set}"; then
7627 setopt NO_GLOB_SUBST
7630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7631 printf %s "checking for objdir... " >&6; }
7632 if test ${lt_cv_objdir+y}
7633 then :
7634 printf %s "(cached) " >&6
7635 else $as_nop
7636 rm -f .libs 2>/dev/null
7637 mkdir .libs 2>/dev/null
7638 if test -d .libs; then
7639 lt_cv_objdir=.libs
7640 else
7641 # MS-DOS does not allow filenames that begin with a dot.
7642 lt_cv_objdir=_libs
7644 rmdir .libs 2>/dev/null
7646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7647 printf "%s\n" "$lt_cv_objdir" >&6; }
7648 objdir=$lt_cv_objdir
7654 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
7659 case $host_os in
7660 aix3*)
7661 # AIX sometimes has problems with the GCC collect2 program. For some
7662 # reason, if we set the COLLECT_NAMES environment variable, the problems
7663 # vanish in a puff of smoke.
7664 if test set != "${COLLECT_NAMES+set}"; then
7665 COLLECT_NAMES=
7666 export COLLECT_NAMES
7669 esac
7671 # Global variables:
7672 ofile=libtool
7673 can_build_shared=yes
7675 # All known linkers require a '.a' archive for static linking (except MSVC,
7676 # which needs '.lib').
7677 libext=a
7679 with_gnu_ld=$lt_cv_prog_gnu_ld
7681 old_CC=$CC
7682 old_CFLAGS=$CFLAGS
7684 # Set sane defaults for various variables
7685 test -z "$CC" && CC=cc
7686 test -z "$LTCC" && LTCC=$CC
7687 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7688 test -z "$LD" && LD=ld
7689 test -z "$ac_objext" && ac_objext=o
7691 func_cc_basename $compiler
7692 cc_basename=$func_cc_basename_result
7695 # Only perform the check for file, if the check method requires it
7696 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7697 case $deplibs_check_method in
7698 file_magic*)
7699 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7701 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
7702 if test ${lt_cv_path_MAGIC_CMD+y}
7703 then :
7704 printf %s "(cached) " >&6
7705 else $as_nop
7706 case $MAGIC_CMD in
7707 [\\/*] | ?:[\\/]*)
7708 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7711 lt_save_MAGIC_CMD=$MAGIC_CMD
7712 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7713 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7714 for ac_dir in $ac_dummy; do
7715 IFS=$lt_save_ifs
7716 test -z "$ac_dir" && ac_dir=.
7717 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7718 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7719 if test -n "$file_magic_test_file"; then
7720 case $deplibs_check_method in
7721 "file_magic "*)
7722 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7723 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7724 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7725 $EGREP "$file_magic_regex" > /dev/null; then
7727 else
7728 cat <<_LT_EOF 1>&2
7730 *** Warning: the command libtool uses to detect shared libraries,
7731 *** $file_magic_cmd, produces output that libtool cannot recognize.
7732 *** The result is that libtool may fail to recognize shared libraries
7733 *** as such. This will affect the creation of libtool libraries that
7734 *** depend on shared libraries, but programs linked with such libtool
7735 *** libraries will work regardless of this problem. Nevertheless, you
7736 *** may want to report the problem to your system manager and/or to
7737 *** bug-libtool@gnu.org
7739 _LT_EOF
7740 fi ;;
7741 esac
7743 break
7745 done
7746 IFS=$lt_save_ifs
7747 MAGIC_CMD=$lt_save_MAGIC_CMD
7749 esac
7752 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7753 if test -n "$MAGIC_CMD"; then
7754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7755 printf "%s\n" "$MAGIC_CMD" >&6; }
7756 else
7757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758 printf "%s\n" "no" >&6; }
7765 if test -z "$lt_cv_path_MAGIC_CMD"; then
7766 if test -n "$ac_tool_prefix"; then
7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7768 printf %s "checking for file... " >&6; }
7769 if test ${lt_cv_path_MAGIC_CMD+y}
7770 then :
7771 printf %s "(cached) " >&6
7772 else $as_nop
7773 case $MAGIC_CMD in
7774 [\\/*] | ?:[\\/]*)
7775 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7778 lt_save_MAGIC_CMD=$MAGIC_CMD
7779 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7780 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7781 for ac_dir in $ac_dummy; do
7782 IFS=$lt_save_ifs
7783 test -z "$ac_dir" && ac_dir=.
7784 if test -f "$ac_dir/file"; then
7785 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7786 if test -n "$file_magic_test_file"; then
7787 case $deplibs_check_method in
7788 "file_magic "*)
7789 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7790 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7791 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7792 $EGREP "$file_magic_regex" > /dev/null; then
7794 else
7795 cat <<_LT_EOF 1>&2
7797 *** Warning: the command libtool uses to detect shared libraries,
7798 *** $file_magic_cmd, produces output that libtool cannot recognize.
7799 *** The result is that libtool may fail to recognize shared libraries
7800 *** as such. This will affect the creation of libtool libraries that
7801 *** depend on shared libraries, but programs linked with such libtool
7802 *** libraries will work regardless of this problem. Nevertheless, you
7803 *** may want to report the problem to your system manager and/or to
7804 *** bug-libtool@gnu.org
7806 _LT_EOF
7807 fi ;;
7808 esac
7810 break
7812 done
7813 IFS=$lt_save_ifs
7814 MAGIC_CMD=$lt_save_MAGIC_CMD
7816 esac
7819 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7820 if test -n "$MAGIC_CMD"; then
7821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7822 printf "%s\n" "$MAGIC_CMD" >&6; }
7823 else
7824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 printf "%s\n" "no" >&6; }
7829 else
7830 MAGIC_CMD=:
7836 esac
7838 # Use C for the default configuration in the libtool script
7840 lt_save_CC=$CC
7841 ac_ext=c
7842 ac_cpp='$CPP $CPPFLAGS'
7843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7848 # Source file extension for C test sources.
7849 ac_ext=c
7851 # Object file extension for compiled C test sources.
7852 objext=o
7853 objext=$objext
7855 # Code to be used in simple compile tests
7856 lt_simple_compile_test_code="int some_variable = 0;"
7858 # Code to be used in simple link tests
7859 lt_simple_link_test_code='int main(){return(0);}'
7867 # If no C compiler was specified, use CC.
7868 LTCC=${LTCC-"$CC"}
7870 # If no C compiler flags were specified, use CFLAGS.
7871 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7873 # Allow CC to be a program name with arguments.
7874 compiler=$CC
7876 # Save the default compiler, since it gets overwritten when the other
7877 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7878 compiler_DEFAULT=$CC
7880 # save warnings/boilerplate of simple test code
7881 ac_outfile=conftest.$ac_objext
7882 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7883 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7884 _lt_compiler_boilerplate=`cat conftest.err`
7885 $RM conftest*
7887 ac_outfile=conftest.$ac_objext
7888 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7889 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7890 _lt_linker_boilerplate=`cat conftest.err`
7891 $RM -r conftest*
7894 if test -n "$compiler"; then
7896 lt_prog_compiler_no_builtin_flag=
7898 if test yes = "$GCC"; then
7899 case $cc_basename in
7900 nvcc*)
7901 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7903 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7904 esac
7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7907 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7908 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
7909 then :
7910 printf %s "(cached) " >&6
7911 else $as_nop
7912 lt_cv_prog_compiler_rtti_exceptions=no
7913 ac_outfile=conftest.$ac_objext
7914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7915 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
7916 # Insert the option either (1) after the last *FLAGS variable, or
7917 # (2) before a word containing "conftest.", or (3) at the end.
7918 # Note that $ac_compile itself does not contain backslashes and begins
7919 # with a dollar sign (not a hyphen), so the echo should work correctly.
7920 # The option is referenced via a variable to avoid confusing sed.
7921 lt_compile=`echo "$ac_compile" | $SED \
7922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7924 -e 's:$: $lt_compiler_flag:'`
7925 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7926 (eval "$lt_compile" 2>conftest.err)
7927 ac_status=$?
7928 cat conftest.err >&5
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 if (exit $ac_status) && test -s "$ac_outfile"; then
7931 # The compiler can only warn and ignore the option if not recognized
7932 # So say no if there are warnings other than the usual output.
7933 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7934 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7935 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7936 lt_cv_prog_compiler_rtti_exceptions=yes
7939 $RM conftest*
7942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7943 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7945 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7946 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7947 else
7958 lt_prog_compiler_wl=
7959 lt_prog_compiler_pic=
7960 lt_prog_compiler_static=
7963 if test yes = "$GCC"; then
7964 lt_prog_compiler_wl='-Wl,'
7965 lt_prog_compiler_static='-static'
7967 case $host_os in
7968 aix*)
7969 # All AIX code is PIC.
7970 if test ia64 = "$host_cpu"; then
7971 # AIX 5 now supports IA64 processor
7972 lt_prog_compiler_static='-Bstatic'
7974 lt_prog_compiler_pic='-fPIC'
7977 amigaos*)
7978 case $host_cpu in
7979 powerpc)
7980 # see comment about AmigaOS4 .so support
7981 lt_prog_compiler_pic='-fPIC'
7983 m68k)
7984 # FIXME: we need at least 68020 code to build shared libraries, but
7985 # adding the '-m68020' flag to GCC prevents building anything better,
7986 # like '-m68040'.
7987 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7989 esac
7992 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7993 # PIC is the default for these OSes.
7996 mingw* | cygwin* | pw32* | os2* | cegcc*)
7997 # This hack is so that the source file can tell whether it is being
7998 # built for inclusion in a dll (and should export symbols for example).
7999 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8000 # (--disable-auto-import) libraries
8001 lt_prog_compiler_pic='-DDLL_EXPORT'
8002 case $host_os in
8003 os2*)
8004 lt_prog_compiler_static='$wl-static'
8006 esac
8009 darwin* | rhapsody*)
8010 # PIC is the default on this platform
8011 # Common symbols not allowed in MH_DYLIB files
8012 lt_prog_compiler_pic='-fno-common'
8015 haiku*)
8016 # PIC is the default for Haiku.
8017 # The "-static" flag exists, but is broken.
8018 lt_prog_compiler_static=
8021 hpux*)
8022 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8023 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8024 # sets the default TLS model and affects inlining.
8025 case $host_cpu in
8026 hppa*64*)
8027 # +Z the default
8030 lt_prog_compiler_pic='-fPIC'
8032 esac
8035 interix[3-9]*)
8036 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8037 # Instead, we relocate shared libraries at runtime.
8040 msdosdjgpp*)
8041 # Just because we use GCC doesn't mean we suddenly get shared libraries
8042 # on systems that don't support them.
8043 lt_prog_compiler_can_build_shared=no
8044 enable_shared=no
8047 *nto* | *qnx*)
8048 # QNX uses GNU C++, but need to define -shared option too, otherwise
8049 # it will coredump.
8050 lt_prog_compiler_pic='-fPIC -shared'
8053 sysv4*MP*)
8054 if test -d /usr/nec; then
8055 lt_prog_compiler_pic=-Kconform_pic
8060 lt_prog_compiler_pic='-fPIC'
8062 esac
8064 case $cc_basename in
8065 nvcc*) # Cuda Compiler Driver 2.2
8066 lt_prog_compiler_wl='-Xlinker '
8067 if test -n "$lt_prog_compiler_pic"; then
8068 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8071 esac
8072 else
8073 # PORTME Check for flag to pass linker flags through the system compiler.
8074 case $host_os in
8075 aix*)
8076 lt_prog_compiler_wl='-Wl,'
8077 if test ia64 = "$host_cpu"; then
8078 # AIX 5 now supports IA64 processor
8079 lt_prog_compiler_static='-Bstatic'
8080 else
8081 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8085 darwin* | rhapsody*)
8086 # PIC is the default on this platform
8087 # Common symbols not allowed in MH_DYLIB files
8088 lt_prog_compiler_pic='-fno-common'
8089 case $cc_basename in
8090 nagfor*)
8091 # NAG Fortran compiler
8092 lt_prog_compiler_wl='-Wl,-Wl,,'
8093 lt_prog_compiler_pic='-PIC'
8094 lt_prog_compiler_static='-Bstatic'
8096 esac
8099 mingw* | cygwin* | pw32* | os2* | cegcc*)
8100 # This hack is so that the source file can tell whether it is being
8101 # built for inclusion in a dll (and should export symbols for example).
8102 lt_prog_compiler_pic='-DDLL_EXPORT'
8103 case $host_os in
8104 os2*)
8105 lt_prog_compiler_static='$wl-static'
8107 esac
8110 hpux9* | hpux10* | hpux11*)
8111 lt_prog_compiler_wl='-Wl,'
8112 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8113 # not for PA HP-UX.
8114 case $host_cpu in
8115 hppa*64*|ia64*)
8116 # +Z the default
8119 lt_prog_compiler_pic='+Z'
8121 esac
8122 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8123 lt_prog_compiler_static='$wl-a ${wl}archive'
8126 irix5* | irix6* | nonstopux*)
8127 lt_prog_compiler_wl='-Wl,'
8128 # PIC (with -KPIC) is the default.
8129 lt_prog_compiler_static='-non_shared'
8132 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8133 case $cc_basename in
8134 # old Intel for x86_64, which still supported -KPIC.
8135 ecc*)
8136 lt_prog_compiler_wl='-Wl,'
8137 lt_prog_compiler_pic='-KPIC'
8138 lt_prog_compiler_static='-static'
8140 # flang / f18. f95 an alias for gfortran or flang on Debian
8141 flang* | f18* | f95*)
8142 lt_prog_compiler_wl='-Wl,'
8143 lt_prog_compiler_pic='-fPIC'
8144 lt_prog_compiler_static='-static'
8146 # icc used to be incompatible with GCC.
8147 # ICC 10 doesn't accept -KPIC any more.
8148 icc* | ifort*)
8149 lt_prog_compiler_wl='-Wl,'
8150 lt_prog_compiler_pic='-fPIC'
8151 lt_prog_compiler_static='-static'
8153 # Lahey Fortran 8.1.
8154 lf95*)
8155 lt_prog_compiler_wl='-Wl,'
8156 lt_prog_compiler_pic='--shared'
8157 lt_prog_compiler_static='--static'
8159 nagfor*)
8160 # NAG Fortran compiler
8161 lt_prog_compiler_wl='-Wl,-Wl,,'
8162 lt_prog_compiler_pic='-PIC'
8163 lt_prog_compiler_static='-Bstatic'
8165 tcc*)
8166 # Fabrice Bellard et al's Tiny C Compiler
8167 lt_prog_compiler_wl='-Wl,'
8168 lt_prog_compiler_pic='-fPIC'
8169 lt_prog_compiler_static='-static'
8171 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8172 # Portland Group compilers (*not* the Pentium gcc compiler,
8173 # which looks to be a dead project)
8174 lt_prog_compiler_wl='-Wl,'
8175 lt_prog_compiler_pic='-fpic'
8176 lt_prog_compiler_static='-Bstatic'
8178 ccc*)
8179 lt_prog_compiler_wl='-Wl,'
8180 # All Alpha code is PIC.
8181 lt_prog_compiler_static='-non_shared'
8183 xl* | bgxl* | bgf* | mpixl*)
8184 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8185 lt_prog_compiler_wl='-Wl,'
8186 lt_prog_compiler_pic='-qpic'
8187 lt_prog_compiler_static='-qstaticlink'
8190 case `$CC -V 2>&1 | sed 5q` in
8191 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8192 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8193 lt_prog_compiler_pic='-KPIC'
8194 lt_prog_compiler_static='-Bstatic'
8195 lt_prog_compiler_wl=''
8197 *Sun\ F* | *Sun*Fortran*)
8198 lt_prog_compiler_pic='-KPIC'
8199 lt_prog_compiler_static='-Bstatic'
8200 lt_prog_compiler_wl='-Qoption ld '
8202 *Sun\ C*)
8203 # Sun C 5.9
8204 lt_prog_compiler_pic='-KPIC'
8205 lt_prog_compiler_static='-Bstatic'
8206 lt_prog_compiler_wl='-Wl,'
8208 *Intel*\ [CF]*Compiler*)
8209 lt_prog_compiler_wl='-Wl,'
8210 lt_prog_compiler_pic='-fPIC'
8211 lt_prog_compiler_static='-static'
8213 *Portland\ Group*)
8214 lt_prog_compiler_wl='-Wl,'
8215 lt_prog_compiler_pic='-fpic'
8216 lt_prog_compiler_static='-Bstatic'
8218 esac
8220 esac
8223 newsos6)
8224 lt_prog_compiler_pic='-KPIC'
8225 lt_prog_compiler_static='-Bstatic'
8228 *nto* | *qnx*)
8229 # QNX uses GNU C++, but need to define -shared option too, otherwise
8230 # it will coredump.
8231 lt_prog_compiler_pic='-fPIC -shared'
8234 osf3* | osf4* | osf5*)
8235 lt_prog_compiler_wl='-Wl,'
8236 # All OSF/1 code is PIC.
8237 lt_prog_compiler_static='-non_shared'
8240 rdos*)
8241 lt_prog_compiler_static='-non_shared'
8244 solaris*)
8245 lt_prog_compiler_pic='-KPIC'
8246 lt_prog_compiler_static='-Bstatic'
8247 case $cc_basename in
8248 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8249 lt_prog_compiler_wl='-Qoption ld ';;
8251 lt_prog_compiler_wl='-Wl,';;
8252 esac
8255 sunos4*)
8256 lt_prog_compiler_wl='-Qoption ld '
8257 lt_prog_compiler_pic='-PIC'
8258 lt_prog_compiler_static='-Bstatic'
8261 sysv4 | sysv4.2uw2* | sysv4.3*)
8262 lt_prog_compiler_wl='-Wl,'
8263 lt_prog_compiler_pic='-KPIC'
8264 lt_prog_compiler_static='-Bstatic'
8267 sysv4*MP*)
8268 if test -d /usr/nec; then
8269 lt_prog_compiler_pic='-Kconform_pic'
8270 lt_prog_compiler_static='-Bstatic'
8274 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8275 lt_prog_compiler_wl='-Wl,'
8276 lt_prog_compiler_pic='-KPIC'
8277 lt_prog_compiler_static='-Bstatic'
8280 unicos*)
8281 lt_prog_compiler_wl='-Wl,'
8282 lt_prog_compiler_can_build_shared=no
8285 uts4*)
8286 lt_prog_compiler_pic='-pic'
8287 lt_prog_compiler_static='-Bstatic'
8291 lt_prog_compiler_can_build_shared=no
8293 esac
8296 case $host_os in
8297 # For platforms that do not support PIC, -DPIC is meaningless:
8298 *djgpp*)
8299 lt_prog_compiler_pic=
8302 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8304 esac
8306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8307 printf %s "checking for $compiler option to produce PIC... " >&6; }
8308 if test ${lt_cv_prog_compiler_pic+y}
8309 then :
8310 printf %s "(cached) " >&6
8311 else $as_nop
8312 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8315 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
8316 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8319 # Check to make sure the PIC flag actually works.
8321 if test -n "$lt_prog_compiler_pic"; then
8322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8323 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8324 if test ${lt_cv_prog_compiler_pic_works+y}
8325 then :
8326 printf %s "(cached) " >&6
8327 else $as_nop
8328 lt_cv_prog_compiler_pic_works=no
8329 ac_outfile=conftest.$ac_objext
8330 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8331 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8332 # Insert the option either (1) after the last *FLAGS variable, or
8333 # (2) before a word containing "conftest.", or (3) at the end.
8334 # Note that $ac_compile itself does not contain backslashes and begins
8335 # with a dollar sign (not a hyphen), so the echo should work correctly.
8336 # The option is referenced via a variable to avoid confusing sed.
8337 lt_compile=`echo "$ac_compile" | $SED \
8338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8340 -e 's:$: $lt_compiler_flag:'`
8341 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8342 (eval "$lt_compile" 2>conftest.err)
8343 ac_status=$?
8344 cat conftest.err >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 if (exit $ac_status) && test -s "$ac_outfile"; then
8347 # The compiler can only warn and ignore the option if not recognized
8348 # So say no if there are warnings other than the usual output.
8349 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8350 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8351 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8352 lt_cv_prog_compiler_pic_works=yes
8355 $RM conftest*
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8359 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
8361 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8362 case $lt_prog_compiler_pic in
8363 "" | " "*) ;;
8364 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8365 esac
8366 else
8367 lt_prog_compiler_pic=
8368 lt_prog_compiler_can_build_shared=no
8384 # Check to make sure the static flag actually works.
8386 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8388 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8389 if test ${lt_cv_prog_compiler_static_works+y}
8390 then :
8391 printf %s "(cached) " >&6
8392 else $as_nop
8393 lt_cv_prog_compiler_static_works=no
8394 save_LDFLAGS=$LDFLAGS
8395 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8396 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8397 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8398 # The linker can only warn and ignore the option if not recognized
8399 # So say no if there are warnings
8400 if test -s conftest.err; then
8401 # Append any errors to the config.log.
8402 cat conftest.err 1>&5
8403 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8404 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8405 if diff conftest.exp conftest.er2 >/dev/null; then
8406 lt_cv_prog_compiler_static_works=yes
8408 else
8409 lt_cv_prog_compiler_static_works=yes
8412 $RM -r conftest*
8413 LDFLAGS=$save_LDFLAGS
8416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8417 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
8419 if test yes = "$lt_cv_prog_compiler_static_works"; then
8421 else
8422 lt_prog_compiler_static=
8431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8432 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8433 if test ${lt_cv_prog_compiler_c_o+y}
8434 then :
8435 printf %s "(cached) " >&6
8436 else $as_nop
8437 lt_cv_prog_compiler_c_o=no
8438 $RM -r conftest 2>/dev/null
8439 mkdir conftest
8440 cd conftest
8441 mkdir out
8442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8444 lt_compiler_flag="-o out/conftest2.$ac_objext"
8445 # Insert the option either (1) after the last *FLAGS variable, or
8446 # (2) before a word containing "conftest.", or (3) at the end.
8447 # Note that $ac_compile itself does not contain backslashes and begins
8448 # with a dollar sign (not a hyphen), so the echo should work correctly.
8449 lt_compile=`echo "$ac_compile" | $SED \
8450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8452 -e 's:$: $lt_compiler_flag:'`
8453 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8454 (eval "$lt_compile" 2>out/conftest.err)
8455 ac_status=$?
8456 cat out/conftest.err >&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8459 then
8460 # The compiler can only warn and ignore the option if not recognized
8461 # So say no if there are warnings
8462 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8463 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8464 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8465 lt_cv_prog_compiler_c_o=yes
8468 chmod u+w . 2>&5
8469 $RM conftest*
8470 # SGI C++ compiler will create directory out/ii_files/ for
8471 # template instantiation
8472 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8473 $RM out/* && rmdir out
8474 cd ..
8475 $RM -r conftest
8476 $RM conftest*
8479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8480 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
8487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8488 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8489 if test ${lt_cv_prog_compiler_c_o+y}
8490 then :
8491 printf %s "(cached) " >&6
8492 else $as_nop
8493 lt_cv_prog_compiler_c_o=no
8494 $RM -r conftest 2>/dev/null
8495 mkdir conftest
8496 cd conftest
8497 mkdir out
8498 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8500 lt_compiler_flag="-o out/conftest2.$ac_objext"
8501 # Insert the option either (1) after the last *FLAGS variable, or
8502 # (2) before a word containing "conftest.", or (3) at the end.
8503 # Note that $ac_compile itself does not contain backslashes and begins
8504 # with a dollar sign (not a hyphen), so the echo should work correctly.
8505 lt_compile=`echo "$ac_compile" | $SED \
8506 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8507 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8508 -e 's:$: $lt_compiler_flag:'`
8509 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8510 (eval "$lt_compile" 2>out/conftest.err)
8511 ac_status=$?
8512 cat out/conftest.err >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8515 then
8516 # The compiler can only warn and ignore the option if not recognized
8517 # So say no if there are warnings
8518 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8519 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8520 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8521 lt_cv_prog_compiler_c_o=yes
8524 chmod u+w . 2>&5
8525 $RM conftest*
8526 # SGI C++ compiler will create directory out/ii_files/ for
8527 # template instantiation
8528 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8529 $RM out/* && rmdir out
8530 cd ..
8531 $RM -r conftest
8532 $RM conftest*
8535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8536 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
8541 hard_links=nottested
8542 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8543 # do not overwrite the value of need_locks provided by the user
8544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8545 printf %s "checking if we can lock with hard links... " >&6; }
8546 hard_links=yes
8547 $RM conftest*
8548 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8549 touch conftest.a
8550 ln conftest.a conftest.b 2>&5 || hard_links=no
8551 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8553 printf "%s\n" "$hard_links" >&6; }
8554 if test no = "$hard_links"; then
8555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8556 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8557 need_locks=warn
8559 else
8560 need_locks=no
8568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8569 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8571 runpath_var=
8572 allow_undefined_flag=
8573 always_export_symbols=no
8574 archive_cmds=
8575 archive_expsym_cmds=
8576 compiler_needs_object=no
8577 enable_shared_with_static_runtimes=no
8578 export_dynamic_flag_spec=
8579 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8580 hardcode_automatic=no
8581 hardcode_direct=no
8582 hardcode_direct_absolute=no
8583 hardcode_libdir_flag_spec=
8584 hardcode_libdir_separator=
8585 hardcode_minus_L=no
8586 hardcode_shlibpath_var=unsupported
8587 inherit_rpath=no
8588 link_all_deplibs=unknown
8589 module_cmds=
8590 module_expsym_cmds=
8591 old_archive_from_new_cmds=
8592 old_archive_from_expsyms_cmds=
8593 thread_safe_flag_spec=
8594 whole_archive_flag_spec=
8595 # include_expsyms should be a list of space-separated symbols to be *always*
8596 # included in the symbol list
8597 include_expsyms=
8598 # exclude_expsyms can be an extended regexp of symbols to exclude
8599 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8600 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8601 # as well as any symbol that contains 'd'.
8602 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8603 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8604 # platforms (ab)use it in PIC code, but their linkers get confused if
8605 # the symbol is explicitly referenced. Since portable code cannot
8606 # rely on this symbol name, it's probably fine to never include it in
8607 # preloaded symbol tables.
8608 # Exclude shared library initialization/finalization symbols.
8609 extract_expsyms_cmds=
8611 case $host_os in
8612 cygwin* | mingw* | pw32* | cegcc*)
8613 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8614 # When not using gcc, we currently assume that we are using
8615 # Microsoft Visual C++.
8616 if test yes != "$GCC"; then
8617 with_gnu_ld=no
8620 interix*)
8621 # we just hope/assume this is gcc and not c89 (= MSVC++)
8622 with_gnu_ld=yes
8624 openbsd* | bitrig*)
8625 with_gnu_ld=no
8627 linux* | k*bsd*-gnu | gnu*)
8628 link_all_deplibs=no
8630 esac
8632 ld_shlibs=yes
8634 # On some targets, GNU ld is compatible enough with the native linker
8635 # that we're better off using the native interface for both.
8636 lt_use_gnu_ld_interface=no
8637 if test yes = "$with_gnu_ld"; then
8638 case $host_os in
8639 aix*)
8640 # The AIX port of GNU ld has always aspired to compatibility
8641 # with the native linker. However, as the warning in the GNU ld
8642 # block says, versions before 2.19.5* couldn't really create working
8643 # shared libraries, regardless of the interface used.
8644 case `$LD -v 2>&1` in
8645 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8646 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8647 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8649 lt_use_gnu_ld_interface=yes
8651 esac
8654 lt_use_gnu_ld_interface=yes
8656 esac
8659 if test yes = "$lt_use_gnu_ld_interface"; then
8660 # If archive_cmds runs LD, not CC, wlarc should be empty
8661 wlarc='$wl'
8663 # Set some defaults for GNU ld with shared library support. These
8664 # are reset later if shared libraries are not supported. Putting them
8665 # here allows them to be overridden if necessary.
8666 runpath_var=LD_RUN_PATH
8667 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8668 export_dynamic_flag_spec='$wl--export-dynamic'
8669 # ancient GNU ld didn't support --whole-archive et. al.
8670 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8671 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8672 else
8673 whole_archive_flag_spec=
8675 supports_anon_versioning=no
8676 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8677 *GNU\ gold*) supports_anon_versioning=yes ;;
8678 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8679 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8680 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8681 *\ 2.11.*) ;; # other 2.11 versions
8682 *) supports_anon_versioning=yes ;;
8683 esac
8685 # See if GNU ld supports shared libraries.
8686 case $host_os in
8687 aix[3-9]*)
8688 # On AIX/PPC, the GNU linker is very broken
8689 if test ia64 != "$host_cpu"; then
8690 ld_shlibs=no
8691 cat <<_LT_EOF 1>&2
8693 *** Warning: the GNU linker, at least up to release 2.19, is reported
8694 *** to be unable to reliably create shared libraries on AIX.
8695 *** Therefore, libtool is disabling shared libraries support. If you
8696 *** really care for shared libraries, you may want to install binutils
8697 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8698 *** You will then need to restart the configuration process.
8700 _LT_EOF
8704 amigaos*)
8705 case $host_cpu in
8706 powerpc)
8707 # see comment about AmigaOS4 .so support
8708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8709 archive_expsym_cmds=''
8711 m68k)
8712 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8713 hardcode_libdir_flag_spec='-L$libdir'
8714 hardcode_minus_L=yes
8716 esac
8719 beos*)
8720 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8721 allow_undefined_flag=unsupported
8722 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8723 # support --undefined. This deserves some investigation. FIXME
8724 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8725 else
8726 ld_shlibs=no
8730 cygwin* | mingw* | pw32* | cegcc*)
8731 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8732 # as there is no search path for DLLs.
8733 hardcode_libdir_flag_spec='-L$libdir'
8734 export_dynamic_flag_spec='$wl--export-all-symbols'
8735 allow_undefined_flag=unsupported
8736 always_export_symbols=no
8737 enable_shared_with_static_runtimes=yes
8738 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8739 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8741 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8742 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8743 # If the export-symbols file already is a .def file, use it as
8744 # is; otherwise, prepend EXPORTS...
8745 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8746 cp $export_symbols $output_objdir/$soname.def;
8747 else
8748 echo EXPORTS > $output_objdir/$soname.def;
8749 cat $export_symbols >> $output_objdir/$soname.def;
8751 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8752 else
8753 ld_shlibs=no
8757 haiku*)
8758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8759 link_all_deplibs=yes
8762 os2*)
8763 hardcode_libdir_flag_spec='-L$libdir'
8764 hardcode_minus_L=yes
8765 allow_undefined_flag=unsupported
8766 shrext_cmds=.dll
8767 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8768 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8769 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8770 $ECHO EXPORTS >> $output_objdir/$libname.def~
8771 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8772 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8773 emximp -o $lib $output_objdir/$libname.def'
8774 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8775 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8776 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8777 $ECHO EXPORTS >> $output_objdir/$libname.def~
8778 prefix_cmds="$SED"~
8779 if test EXPORTS = "`$SED 1q $export_symbols`"; then
8780 prefix_cmds="$prefix_cmds -e 1d";
8782 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8783 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8784 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8785 emximp -o $lib $output_objdir/$libname.def'
8786 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8787 enable_shared_with_static_runtimes=yes
8790 interix[3-9]*)
8791 hardcode_direct=no
8792 hardcode_shlibpath_var=no
8793 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8794 export_dynamic_flag_spec='$wl-E'
8795 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8796 # Instead, shared libraries are loaded at an image base (0x10000000 by
8797 # default) and relocated if they conflict, which is a slow very memory
8798 # consuming and fragmenting process. To avoid this, we pick a random,
8799 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8800 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8801 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8802 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8805 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8806 tmp_diet=no
8807 if test linux-dietlibc = "$host_os"; then
8808 case $cc_basename in
8809 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8810 esac
8812 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8813 && test no = "$tmp_diet"
8814 then
8815 tmp_addflag=' $pic_flag'
8816 tmp_sharedflag='-shared'
8817 case $cc_basename,$host_cpu in
8818 pgcc*) # Portland Group C compiler
8819 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8820 tmp_addflag=' $pic_flag'
8822 pgf77* | pgf90* | pgf95* | pgfortran*)
8823 # Portland Group f77 and f90 compilers
8824 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8825 tmp_addflag=' $pic_flag -Mnomain' ;;
8826 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8827 tmp_addflag=' -i_dynamic' ;;
8828 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8829 tmp_addflag=' -i_dynamic -nofor_main' ;;
8830 ifc* | ifort*) # Intel Fortran compiler
8831 tmp_addflag=' -nofor_main' ;;
8832 lf95*) # Lahey Fortran 8.1
8833 whole_archive_flag_spec=
8834 tmp_sharedflag='--shared' ;;
8835 nagfor*) # NAGFOR 5.3
8836 tmp_sharedflag='-Wl,-shared' ;;
8837 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8838 tmp_sharedflag='-qmkshrobj'
8839 tmp_addflag= ;;
8840 nvcc*) # Cuda Compiler Driver 2.2
8841 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8842 compiler_needs_object=yes
8844 esac
8845 case `$CC -V 2>&1 | sed 5q` in
8846 *Sun\ C*) # Sun C 5.9
8847 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8848 compiler_needs_object=yes
8849 tmp_sharedflag='-G' ;;
8850 *Sun\ F*) # Sun Fortran 8.3
8851 tmp_sharedflag='-G' ;;
8852 esac
8853 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8855 if test yes = "$supports_anon_versioning"; then
8856 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8857 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8858 echo "local: *; };" >> $output_objdir/$libname.ver~
8859 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8862 case $cc_basename in
8863 tcc*)
8864 export_dynamic_flag_spec='-rdynamic'
8866 xlf* | bgf* | bgxlf* | mpixlf*)
8867 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8868 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8869 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8870 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8871 if test yes = "$supports_anon_versioning"; then
8872 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8873 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8874 echo "local: *; };" >> $output_objdir/$libname.ver~
8875 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8878 esac
8879 else
8880 ld_shlibs=no
8884 netbsd* | netbsdelf*-gnu)
8885 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8886 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8887 wlarc=
8888 else
8889 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8890 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8894 solaris*)
8895 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8896 ld_shlibs=no
8897 cat <<_LT_EOF 1>&2
8899 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8900 *** create shared libraries on Solaris systems. Therefore, libtool
8901 *** is disabling shared libraries support. We urge you to upgrade GNU
8902 *** binutils to release 2.9.1 or newer. Another option is to modify
8903 *** your PATH or compiler configuration so that the native linker is
8904 *** used, and then restart.
8906 _LT_EOF
8907 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8908 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8909 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8910 else
8911 ld_shlibs=no
8915 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8916 case `$LD -v 2>&1` in
8917 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8918 ld_shlibs=no
8919 cat <<_LT_EOF 1>&2
8921 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8922 *** reliably create shared libraries on SCO systems. Therefore, libtool
8923 *** is disabling shared libraries support. We urge you to upgrade GNU
8924 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8925 *** your PATH or compiler configuration so that the native linker is
8926 *** used, and then restart.
8928 _LT_EOF
8931 # For security reasons, it is highly recommended that you always
8932 # use absolute paths for naming shared libraries, and exclude the
8933 # DT_RUNPATH tag from executables and libraries. But doing so
8934 # requires that you compile everything twice, which is a pain.
8935 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8936 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8937 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8938 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8939 else
8940 ld_shlibs=no
8943 esac
8946 sunos4*)
8947 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8948 wlarc=
8949 hardcode_direct=yes
8950 hardcode_shlibpath_var=no
8954 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8955 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8956 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8957 else
8958 ld_shlibs=no
8961 esac
8963 if test no = "$ld_shlibs"; then
8964 runpath_var=
8965 hardcode_libdir_flag_spec=
8966 export_dynamic_flag_spec=
8967 whole_archive_flag_spec=
8969 else
8970 # PORTME fill in a description of your system's linker (not GNU ld)
8971 case $host_os in
8972 aix3*)
8973 allow_undefined_flag=unsupported
8974 always_export_symbols=yes
8975 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8976 # Note: this linker hardcodes the directories in LIBPATH if there
8977 # are no directories specified by -L.
8978 hardcode_minus_L=yes
8979 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8980 # Neither direct hardcoding nor static linking is supported with a
8981 # broken collect2.
8982 hardcode_direct=unsupported
8986 aix[4-9]*)
8987 if test ia64 = "$host_cpu"; then
8988 # On IA64, the linker does run time linking by default, so we don't
8989 # have to do anything special.
8990 aix_use_runtimelinking=no
8991 exp_sym_flag='-Bexport'
8992 no_entry_flag=
8993 else
8994 # If we're using GNU nm, then we don't want the "-C" option.
8995 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
8996 # Without the "-l" option, or with the "-B" option, AIX nm treats
8997 # weak defined symbols like other global defined symbols, whereas
8998 # GNU nm marks them as "W".
8999 # While the 'weak' keyword is ignored in the Export File, we need
9000 # it in the Import File for the 'aix-soname' feature, so we have
9001 # to replace the "-B" option with "-P" for AIX nm.
9002 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9003 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9004 else
9005 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9007 aix_use_runtimelinking=no
9009 # Test if we are trying to use run time linking or normal
9010 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9011 # have runtime linking enabled, and use it for executables.
9012 # For shared libraries, we enable/disable runtime linking
9013 # depending on the kind of the shared library created -
9014 # when "with_aix_soname,aix_use_runtimelinking" is:
9015 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9016 # "aix,yes" lib.so shared, rtl:yes, for executables
9017 # lib.a static archive
9018 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9019 # lib.a(lib.so.V) shared, rtl:no, for executables
9020 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9021 # lib.a(lib.so.V) shared, rtl:no
9022 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9023 # lib.a static archive
9024 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9025 for ld_flag in $LDFLAGS; do
9026 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9027 aix_use_runtimelinking=yes
9028 break
9030 done
9031 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9032 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9033 # so we don't have lib.a shared libs to link our executables.
9034 # We have to force runtime linking in this case.
9035 aix_use_runtimelinking=yes
9036 LDFLAGS="$LDFLAGS -Wl,-brtl"
9039 esac
9041 exp_sym_flag='-bexport'
9042 no_entry_flag='-bnoentry'
9045 # When large executables or shared objects are built, AIX ld can
9046 # have problems creating the table of contents. If linking a library
9047 # or program results in "error TOC overflow" add -mminimal-toc to
9048 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9049 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9051 archive_cmds=''
9052 hardcode_direct=yes
9053 hardcode_direct_absolute=yes
9054 hardcode_libdir_separator=':'
9055 link_all_deplibs=yes
9056 file_list_spec='$wl-f,'
9057 case $with_aix_soname,$aix_use_runtimelinking in
9058 aix,*) ;; # traditional, no import file
9059 svr4,* | *,yes) # use import file
9060 # The Import File defines what to hardcode.
9061 hardcode_direct=no
9062 hardcode_direct_absolute=no
9064 esac
9066 if test yes = "$GCC"; then
9067 case $host_os in aix4.[012]|aix4.[012].*)
9068 # We only want to do this on AIX 4.2 and lower, the check
9069 # below for broken collect2 doesn't work under 4.3+
9070 collect2name=`$CC -print-prog-name=collect2`
9071 if test -f "$collect2name" &&
9072 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9073 then
9074 # We have reworked collect2
9076 else
9077 # We have old collect2
9078 hardcode_direct=unsupported
9079 # It fails to find uninstalled libraries when the uninstalled
9080 # path is not listed in the libpath. Setting hardcode_minus_L
9081 # to unsupported forces relinking
9082 hardcode_minus_L=yes
9083 hardcode_libdir_flag_spec='-L$libdir'
9084 hardcode_libdir_separator=
9087 esac
9088 shared_flag='-shared'
9089 if test yes = "$aix_use_runtimelinking"; then
9090 shared_flag="$shared_flag "'$wl-G'
9092 # Need to ensure runtime linking is disabled for the traditional
9093 # shared library, or the linker may eventually find shared libraries
9094 # /with/ Import File - we do not want to mix them.
9095 shared_flag_aix='-shared'
9096 shared_flag_svr4='-shared $wl-G'
9097 else
9098 # not using gcc
9099 if test ia64 = "$host_cpu"; then
9100 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9101 # chokes on -Wl,-G. The following line is correct:
9102 shared_flag='-G'
9103 else
9104 if test yes = "$aix_use_runtimelinking"; then
9105 shared_flag='$wl-G'
9106 else
9107 shared_flag='$wl-bM:SRE'
9109 shared_flag_aix='$wl-bM:SRE'
9110 shared_flag_svr4='$wl-G'
9114 export_dynamic_flag_spec='$wl-bexpall'
9115 # It seems that -bexpall does not export symbols beginning with
9116 # underscore (_), so it is better to generate a list of symbols to export.
9117 always_export_symbols=yes
9118 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9119 # Warning - without using the other runtime loading flags (-brtl),
9120 # -berok will link without error, but may produce a broken library.
9121 allow_undefined_flag='-berok'
9122 # Determine the default libpath from the value encoded in an
9123 # empty executable.
9124 if test set = "${lt_cv_aix_libpath+set}"; then
9125 aix_libpath=$lt_cv_aix_libpath
9126 else
9127 if test ${lt_cv_aix_libpath_+y}
9128 then :
9129 printf %s "(cached) " >&6
9130 else $as_nop
9131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9132 /* end confdefs.h. */
9135 main (void)
9139 return 0;
9141 _ACEOF
9142 if ac_fn_c_try_link "$LINENO"
9143 then :
9145 lt_aix_libpath_sed='
9146 /Import File Strings/,/^$/ {
9147 /^0/ {
9148 s/^0 *\([^ ]*\) *$/\1/
9152 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9153 # Check for a 64-bit object if we didn't find anything.
9154 if test -z "$lt_cv_aix_libpath_"; then
9155 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9158 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9159 conftest$ac_exeext conftest.$ac_ext
9160 if test -z "$lt_cv_aix_libpath_"; then
9161 lt_cv_aix_libpath_=/usr/lib:/lib
9166 aix_libpath=$lt_cv_aix_libpath_
9169 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9170 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9171 else
9172 if test ia64 = "$host_cpu"; then
9173 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9174 allow_undefined_flag="-z nodefs"
9175 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
9176 else
9177 # Determine the default libpath from the value encoded in an
9178 # empty executable.
9179 if test set = "${lt_cv_aix_libpath+set}"; then
9180 aix_libpath=$lt_cv_aix_libpath
9181 else
9182 if test ${lt_cv_aix_libpath_+y}
9183 then :
9184 printf %s "(cached) " >&6
9185 else $as_nop
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9190 main (void)
9194 return 0;
9196 _ACEOF
9197 if ac_fn_c_try_link "$LINENO"
9198 then :
9200 lt_aix_libpath_sed='
9201 /Import File Strings/,/^$/ {
9202 /^0/ {
9203 s/^0 *\([^ ]*\) *$/\1/
9207 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9208 # Check for a 64-bit object if we didn't find anything.
9209 if test -z "$lt_cv_aix_libpath_"; then
9210 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9213 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9214 conftest$ac_exeext conftest.$ac_ext
9215 if test -z "$lt_cv_aix_libpath_"; then
9216 lt_cv_aix_libpath_=/usr/lib:/lib
9221 aix_libpath=$lt_cv_aix_libpath_
9224 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9225 # Warning - without using the other run time loading flags,
9226 # -berok will link without error, but may produce a broken library.
9227 no_undefined_flag=' $wl-bernotok'
9228 allow_undefined_flag=' $wl-berok'
9229 if test yes = "$with_gnu_ld"; then
9230 # We only use this code for GNU lds that support --whole-archive.
9231 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9232 else
9233 # Exported symbols can be pulled into shared objects from archives
9234 whole_archive_flag_spec='$convenience'
9236 archive_cmds_need_lc=yes
9237 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9238 # -brtl affects multiple linker settings, -berok does not and is overridden later
9239 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9240 if test svr4 != "$with_aix_soname"; then
9241 # This is similar to how AIX traditionally builds its shared libraries.
9242 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9244 if test aix != "$with_aix_soname"; then
9245 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9246 else
9247 # used by -dlpreopen to get the symbols
9248 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9250 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9255 amigaos*)
9256 case $host_cpu in
9257 powerpc)
9258 # see comment about AmigaOS4 .so support
9259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9260 archive_expsym_cmds=''
9262 m68k)
9263 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9264 hardcode_libdir_flag_spec='-L$libdir'
9265 hardcode_minus_L=yes
9267 esac
9270 bsdi[45]*)
9271 export_dynamic_flag_spec=-rdynamic
9274 cygwin* | mingw* | pw32* | cegcc*)
9275 # When not using gcc, we currently assume that we are using
9276 # Microsoft Visual C++.
9277 # hardcode_libdir_flag_spec is actually meaningless, as there is
9278 # no search path for DLLs.
9279 case $cc_basename in
9280 cl*)
9281 # Native MSVC
9282 hardcode_libdir_flag_spec=' '
9283 allow_undefined_flag=unsupported
9284 always_export_symbols=yes
9285 file_list_spec='@'
9286 # Tell ltmain to make .lib files, not .a files.
9287 libext=lib
9288 # Tell ltmain to make .dll files, not .so files.
9289 shrext_cmds=.dll
9290 # FIXME: Setting linknames here is a bad hack.
9291 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9292 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9293 cp "$export_symbols" "$output_objdir/$soname.def";
9294 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9295 else
9296 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9298 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9299 linknames='
9300 # The linker will not automatically build a static lib if we build a DLL.
9301 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9302 enable_shared_with_static_runtimes=yes
9303 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9304 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9305 # Don't use ranlib
9306 old_postinstall_cmds='chmod 644 $oldlib'
9307 postlink_cmds='lt_outputfile="@OUTPUT@"~
9308 lt_tool_outputfile="@TOOL_OUTPUT@"~
9309 case $lt_outputfile in
9310 *.exe|*.EXE) ;;
9312 lt_outputfile=$lt_outputfile.exe
9313 lt_tool_outputfile=$lt_tool_outputfile.exe
9315 esac~
9316 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9317 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9318 $RM "$lt_outputfile.manifest";
9322 # Assume MSVC wrapper
9323 hardcode_libdir_flag_spec=' '
9324 allow_undefined_flag=unsupported
9325 # Tell ltmain to make .lib files, not .a files.
9326 libext=lib
9327 # Tell ltmain to make .dll files, not .so files.
9328 shrext_cmds=.dll
9329 # FIXME: Setting linknames here is a bad hack.
9330 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9331 # The linker will automatically build a .lib file if we build a DLL.
9332 old_archive_from_new_cmds='true'
9333 # FIXME: Should let the user specify the lib program.
9334 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9335 enable_shared_with_static_runtimes=yes
9337 esac
9340 darwin* | rhapsody*)
9343 archive_cmds_need_lc=no
9344 hardcode_direct=no
9345 hardcode_automatic=yes
9346 hardcode_shlibpath_var=unsupported
9347 if test yes = "$lt_cv_ld_force_load"; then
9348 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9350 else
9351 whole_archive_flag_spec=''
9353 link_all_deplibs=yes
9354 allow_undefined_flag=$_lt_dar_allow_undefined
9355 case $cc_basename in
9356 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9357 *) _lt_dar_can_shared=$GCC ;;
9358 esac
9359 if test yes = "$_lt_dar_can_shared"; then
9360 output_verbose_link_cmd=func_echo_all
9361 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9362 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9363 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
9364 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
9366 else
9367 ld_shlibs=no
9372 dgux*)
9373 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9374 hardcode_libdir_flag_spec='-L$libdir'
9375 hardcode_shlibpath_var=no
9378 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9379 # support. Future versions do this automatically, but an explicit c++rt0.o
9380 # does not break anything, and helps significantly (at the cost of a little
9381 # extra space).
9382 freebsd2.2*)
9383 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9384 hardcode_libdir_flag_spec='-R$libdir'
9385 hardcode_direct=yes
9386 hardcode_shlibpath_var=no
9389 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9390 freebsd2.*)
9391 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9392 hardcode_direct=yes
9393 hardcode_minus_L=yes
9394 hardcode_shlibpath_var=no
9397 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9398 freebsd* | dragonfly*)
9399 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9400 hardcode_libdir_flag_spec='-R$libdir'
9401 hardcode_direct=yes
9402 hardcode_shlibpath_var=no
9405 hpux9*)
9406 if test yes = "$GCC"; then
9407 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9408 else
9409 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9411 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9412 hardcode_libdir_separator=:
9413 hardcode_direct=yes
9415 # hardcode_minus_L: Not really in the search PATH,
9416 # but as the default location of the library.
9417 hardcode_minus_L=yes
9418 export_dynamic_flag_spec='$wl-E'
9421 hpux10*)
9422 if test yes,no = "$GCC,$with_gnu_ld"; then
9423 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9424 else
9425 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9427 if test no = "$with_gnu_ld"; then
9428 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9429 hardcode_libdir_separator=:
9430 hardcode_direct=yes
9431 hardcode_direct_absolute=yes
9432 export_dynamic_flag_spec='$wl-E'
9433 # hardcode_minus_L: Not really in the search PATH,
9434 # but as the default location of the library.
9435 hardcode_minus_L=yes
9439 hpux11*)
9440 if test yes,no = "$GCC,$with_gnu_ld"; then
9441 case $host_cpu in
9442 hppa*64*)
9443 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9445 ia64*)
9446 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9449 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9451 esac
9452 else
9453 case $host_cpu in
9454 hppa*64*)
9455 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9457 ia64*)
9458 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9462 # Older versions of the 11.00 compiler do not understand -b yet
9463 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9465 printf %s "checking if $CC understands -b... " >&6; }
9466 if test ${lt_cv_prog_compiler__b+y}
9467 then :
9468 printf %s "(cached) " >&6
9469 else $as_nop
9470 lt_cv_prog_compiler__b=no
9471 save_LDFLAGS=$LDFLAGS
9472 LDFLAGS="$LDFLAGS -b"
9473 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9474 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9475 # The linker can only warn and ignore the option if not recognized
9476 # So say no if there are warnings
9477 if test -s conftest.err; then
9478 # Append any errors to the config.log.
9479 cat conftest.err 1>&5
9480 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9481 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9482 if diff conftest.exp conftest.er2 >/dev/null; then
9483 lt_cv_prog_compiler__b=yes
9485 else
9486 lt_cv_prog_compiler__b=yes
9489 $RM -r conftest*
9490 LDFLAGS=$save_LDFLAGS
9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9494 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
9496 if test yes = "$lt_cv_prog_compiler__b"; then
9497 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9498 else
9499 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9503 esac
9505 if test no = "$with_gnu_ld"; then
9506 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9507 hardcode_libdir_separator=:
9509 case $host_cpu in
9510 hppa*64*|ia64*)
9511 hardcode_direct=no
9512 hardcode_shlibpath_var=no
9515 hardcode_direct=yes
9516 hardcode_direct_absolute=yes
9517 export_dynamic_flag_spec='$wl-E'
9519 # hardcode_minus_L: Not really in the search PATH,
9520 # but as the default location of the library.
9521 hardcode_minus_L=yes
9523 esac
9527 irix5* | irix6* | nonstopux*)
9528 if test yes = "$GCC"; then
9529 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9530 # Try to use the -exported_symbol ld option, if it does not
9531 # work, assume that -exports_file does not work either and
9532 # implicitly export all symbols.
9533 # This should be the same for all languages, so no per-tag cache variable.
9534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9535 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9536 if test ${lt_cv_irix_exported_symbol+y}
9537 then :
9538 printf %s "(cached) " >&6
9539 else $as_nop
9540 save_LDFLAGS=$LDFLAGS
9541 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9543 /* end confdefs.h. */
9544 int foo (void) { return 0; }
9545 _ACEOF
9546 if ac_fn_c_try_link "$LINENO"
9547 then :
9548 lt_cv_irix_exported_symbol=yes
9549 else $as_nop
9550 lt_cv_irix_exported_symbol=no
9552 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9553 conftest$ac_exeext conftest.$ac_ext
9554 LDFLAGS=$save_LDFLAGS
9556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9557 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
9558 if test yes = "$lt_cv_irix_exported_symbol"; then
9559 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
9561 link_all_deplibs=no
9562 else
9563 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9564 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
9566 archive_cmds_need_lc='no'
9567 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9568 hardcode_libdir_separator=:
9569 inherit_rpath=yes
9570 link_all_deplibs=yes
9573 linux*)
9574 case $cc_basename in
9575 tcc*)
9576 # Fabrice Bellard et al's Tiny C Compiler
9577 ld_shlibs=yes
9578 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9580 esac
9583 netbsd* | netbsdelf*-gnu)
9584 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9585 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9586 else
9587 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9589 hardcode_libdir_flag_spec='-R$libdir'
9590 hardcode_direct=yes
9591 hardcode_shlibpath_var=no
9594 newsos6)
9595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9596 hardcode_direct=yes
9597 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9598 hardcode_libdir_separator=:
9599 hardcode_shlibpath_var=no
9602 *nto* | *qnx*)
9605 openbsd* | bitrig*)
9606 if test -f /usr/libexec/ld.so; then
9607 hardcode_direct=yes
9608 hardcode_shlibpath_var=no
9609 hardcode_direct_absolute=yes
9610 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9611 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9612 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9613 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9614 export_dynamic_flag_spec='$wl-E'
9615 else
9616 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9617 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9619 else
9620 ld_shlibs=no
9624 os2*)
9625 hardcode_libdir_flag_spec='-L$libdir'
9626 hardcode_minus_L=yes
9627 allow_undefined_flag=unsupported
9628 shrext_cmds=.dll
9629 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9630 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9631 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9632 $ECHO EXPORTS >> $output_objdir/$libname.def~
9633 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9634 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9635 emximp -o $lib $output_objdir/$libname.def'
9636 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9637 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9638 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9639 $ECHO EXPORTS >> $output_objdir/$libname.def~
9640 prefix_cmds="$SED"~
9641 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9642 prefix_cmds="$prefix_cmds -e 1d";
9644 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9645 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9646 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9647 emximp -o $lib $output_objdir/$libname.def'
9648 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9649 enable_shared_with_static_runtimes=yes
9652 osf3*)
9653 if test yes = "$GCC"; then
9654 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9655 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9656 else
9657 allow_undefined_flag=' -expect_unresolved \*'
9658 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9660 archive_cmds_need_lc='no'
9661 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9662 hardcode_libdir_separator=:
9665 osf4* | osf5*) # as osf3* with the addition of -msym flag
9666 if test yes = "$GCC"; then
9667 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9668 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9669 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9670 else
9671 allow_undefined_flag=' -expect_unresolved \*'
9672 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9673 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9674 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
9676 # Both c and cxx compiler support -rpath directly
9677 hardcode_libdir_flag_spec='-rpath $libdir'
9679 archive_cmds_need_lc='no'
9680 hardcode_libdir_separator=:
9683 solaris*)
9684 no_undefined_flag=' -z defs'
9685 if test yes = "$GCC"; then
9686 wlarc='$wl'
9687 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9688 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9689 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9690 else
9691 case `$CC -V 2>&1` in
9692 *"Compilers 5.0"*)
9693 wlarc=''
9694 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9695 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9696 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9699 wlarc='$wl'
9700 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9701 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9702 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9704 esac
9706 hardcode_libdir_flag_spec='-R$libdir'
9707 hardcode_shlibpath_var=no
9708 case $host_os in
9709 solaris2.[0-5] | solaris2.[0-5].*) ;;
9711 # The compiler driver will combine and reorder linker options,
9712 # but understands '-z linker_flag'. GCC discards it without '$wl',
9713 # but is careful enough not to reorder.
9714 # Supported since Solaris 2.6 (maybe 2.5.1?)
9715 if test yes = "$GCC"; then
9716 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9717 else
9718 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9721 esac
9722 link_all_deplibs=yes
9725 sunos4*)
9726 if test sequent = "$host_vendor"; then
9727 # Use $CC to link under sequent, because it throws in some extra .o
9728 # files that make .init and .fini sections work.
9729 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9730 else
9731 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9733 hardcode_libdir_flag_spec='-L$libdir'
9734 hardcode_direct=yes
9735 hardcode_minus_L=yes
9736 hardcode_shlibpath_var=no
9739 sysv4)
9740 case $host_vendor in
9741 sni)
9742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9743 hardcode_direct=yes # is this really true???
9745 siemens)
9746 ## LD is ld it makes a PLAMLIB
9747 ## CC just makes a GrossModule.
9748 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9749 reload_cmds='$CC -r -o $output$reload_objs'
9750 hardcode_direct=no
9752 motorola)
9753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9754 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9756 esac
9757 runpath_var='LD_RUN_PATH'
9758 hardcode_shlibpath_var=no
9761 sysv4.3*)
9762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9763 hardcode_shlibpath_var=no
9764 export_dynamic_flag_spec='-Bexport'
9767 sysv4*MP*)
9768 if test -d /usr/nec; then
9769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9770 hardcode_shlibpath_var=no
9771 runpath_var=LD_RUN_PATH
9772 hardcode_runpath_var=yes
9773 ld_shlibs=yes
9777 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9778 no_undefined_flag='$wl-z,text'
9779 archive_cmds_need_lc=no
9780 hardcode_shlibpath_var=no
9781 runpath_var='LD_RUN_PATH'
9783 if test yes = "$GCC"; then
9784 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9785 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9786 else
9787 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9788 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9792 sysv5* | sco3.2v5* | sco5v6*)
9793 # Note: We CANNOT use -z defs as we might desire, because we do not
9794 # link with -lc, and that would cause any symbols used from libc to
9795 # always be unresolved, which means just about no library would
9796 # ever link correctly. If we're not using GNU ld we use -z text
9797 # though, which does catch some bad symbols but isn't as heavy-handed
9798 # as -z defs.
9799 no_undefined_flag='$wl-z,text'
9800 allow_undefined_flag='$wl-z,nodefs'
9801 archive_cmds_need_lc=no
9802 hardcode_shlibpath_var=no
9803 hardcode_libdir_flag_spec='$wl-R,$libdir'
9804 hardcode_libdir_separator=':'
9805 link_all_deplibs=yes
9806 export_dynamic_flag_spec='$wl-Bexport'
9807 runpath_var='LD_RUN_PATH'
9809 if test yes = "$GCC"; then
9810 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9811 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9812 else
9813 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9814 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9818 uts4*)
9819 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9820 hardcode_libdir_flag_spec='-L$libdir'
9821 hardcode_shlibpath_var=no
9825 ld_shlibs=no
9827 esac
9829 if test sni = "$host_vendor"; then
9830 case $host in
9831 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9832 export_dynamic_flag_spec='$wl-Blargedynsym'
9834 esac
9838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9839 printf "%s\n" "$ld_shlibs" >&6; }
9840 test no = "$ld_shlibs" && can_build_shared=no
9842 with_gnu_ld=$with_gnu_ld
9859 # Do we need to explicitly link libc?
9861 case "x$archive_cmds_need_lc" in
9862 x|xyes)
9863 # Assume -lc should be added
9864 archive_cmds_need_lc=yes
9866 if test yes,yes = "$GCC,$enable_shared"; then
9867 case $archive_cmds in
9868 *'~'*)
9869 # FIXME: we may have to deal with multi-command sequences.
9871 '$CC '*)
9872 # Test whether the compiler implicitly links with -lc since on some
9873 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9874 # to ld, don't add -lc before -lgcc.
9875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9876 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
9877 if test ${lt_cv_archive_cmds_need_lc+y}
9878 then :
9879 printf %s "(cached) " >&6
9880 else $as_nop
9881 $RM conftest*
9882 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9885 (eval $ac_compile) 2>&5
9886 ac_status=$?
9887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9888 test $ac_status = 0; } 2>conftest.err; then
9889 soname=conftest
9890 lib=conftest
9891 libobjs=conftest.$ac_objext
9892 deplibs=
9893 wl=$lt_prog_compiler_wl
9894 pic_flag=$lt_prog_compiler_pic
9895 compiler_flags=-v
9896 linker_flags=-v
9897 verstring=
9898 output_objdir=.
9899 libname=conftest
9900 lt_save_allow_undefined_flag=$allow_undefined_flag
9901 allow_undefined_flag=
9902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9903 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9904 ac_status=$?
9905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9906 test $ac_status = 0; }
9907 then
9908 lt_cv_archive_cmds_need_lc=no
9909 else
9910 lt_cv_archive_cmds_need_lc=yes
9912 allow_undefined_flag=$lt_save_allow_undefined_flag
9913 else
9914 cat conftest.err 1>&5
9916 $RM conftest*
9919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9920 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
9921 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9923 esac
9926 esac
10079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10080 printf %s "checking dynamic linker characteristics... " >&6; }
10082 if test yes = "$GCC"; then
10083 case $host_os in
10084 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10085 *) lt_awk_arg='/^libraries:/' ;;
10086 esac
10087 case $host_os in
10088 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10089 *) lt_sed_strip_eq='s|=/|/|g' ;;
10090 esac
10091 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10092 case $lt_search_path_spec in
10093 *\;*)
10094 # if the path contains ";" then we assume it to be the separator
10095 # otherwise default to the standard path separator (i.e. ":") - it is
10096 # assumed that no part of a normal pathname contains ";" but that should
10097 # okay in the real world where ";" in dirpaths is itself problematic.
10098 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10101 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10103 esac
10104 # Ok, now we have the path, separated by spaces, we can step through it
10105 # and add multilib dir if necessary...
10106 lt_tmp_lt_search_path_spec=
10107 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10108 # ...but if some path component already ends with the multilib dir we assume
10109 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10110 case "$lt_multi_os_dir; $lt_search_path_spec " in
10111 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10112 lt_multi_os_dir=
10114 esac
10115 for lt_sys_path in $lt_search_path_spec; do
10116 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10117 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10118 elif test -n "$lt_multi_os_dir"; then
10119 test -d "$lt_sys_path" && \
10120 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10122 done
10123 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10124 BEGIN {RS = " "; FS = "/|\n";} {
10125 lt_foo = "";
10126 lt_count = 0;
10127 for (lt_i = NF; lt_i > 0; lt_i--) {
10128 if ($lt_i != "" && $lt_i != ".") {
10129 if ($lt_i == "..") {
10130 lt_count++;
10131 } else {
10132 if (lt_count == 0) {
10133 lt_foo = "/" $lt_i lt_foo;
10134 } else {
10135 lt_count--;
10140 if (lt_foo != "") { lt_freq[lt_foo]++; }
10141 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10143 # AWK program above erroneously prepends '/' to C:/dos/paths
10144 # for these hosts.
10145 case $host_os in
10146 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10147 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10148 esac
10149 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10150 else
10151 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10153 library_names_spec=
10154 libname_spec='lib$name'
10155 soname_spec=
10156 shrext_cmds=.so
10157 postinstall_cmds=
10158 postuninstall_cmds=
10159 finish_cmds=
10160 finish_eval=
10161 shlibpath_var=
10162 shlibpath_overrides_runpath=unknown
10163 version_type=none
10164 dynamic_linker="$host_os ld.so"
10165 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10166 need_lib_prefix=unknown
10167 hardcode_into_libs=no
10169 # when you set need_version to no, make sure it does not cause -set_version
10170 # flags to be left without arguments
10171 need_version=unknown
10175 case $host_os in
10176 aix3*)
10177 version_type=linux # correct to gnu/linux during the next big refactor
10178 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10179 shlibpath_var=LIBPATH
10181 # AIX 3 has no versioning support, so we append a major version to the name.
10182 soname_spec='$libname$release$shared_ext$major'
10185 aix[4-9]*)
10186 version_type=linux # correct to gnu/linux during the next big refactor
10187 need_lib_prefix=no
10188 need_version=no
10189 hardcode_into_libs=yes
10190 if test ia64 = "$host_cpu"; then
10191 # AIX 5 supports IA64
10192 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10193 shlibpath_var=LD_LIBRARY_PATH
10194 else
10195 # With GCC up to 2.95.x, collect2 would create an import file
10196 # for dependence libraries. The import file would start with
10197 # the line '#! .'. This would cause the generated library to
10198 # depend on '.', always an invalid library. This was fixed in
10199 # development snapshots of GCC prior to 3.0.
10200 case $host_os in
10201 aix4 | aix4.[01] | aix4.[01].*)
10202 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10203 echo ' yes '
10204 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10206 else
10207 can_build_shared=no
10210 esac
10211 # Using Import Files as archive members, it is possible to support
10212 # filename-based versioning of shared library archives on AIX. While
10213 # this would work for both with and without runtime linking, it will
10214 # prevent static linking of such archives. So we do filename-based
10215 # shared library versioning with .so extension only, which is used
10216 # when both runtime linking and shared linking is enabled.
10217 # Unfortunately, runtime linking may impact performance, so we do
10218 # not want this to be the default eventually. Also, we use the
10219 # versioned .so libs for executables only if there is the -brtl
10220 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10221 # To allow for filename-based versioning support, we need to create
10222 # libNAME.so.V as an archive file, containing:
10223 # *) an Import File, referring to the versioned filename of the
10224 # archive as well as the shared archive member, telling the
10225 # bitwidth (32 or 64) of that shared object, and providing the
10226 # list of exported symbols of that shared object, eventually
10227 # decorated with the 'weak' keyword
10228 # *) the shared object with the F_LOADONLY flag set, to really avoid
10229 # it being seen by the linker.
10230 # At run time we better use the real file rather than another symlink,
10231 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10233 case $with_aix_soname,$aix_use_runtimelinking in
10234 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10235 # soname into executable. Probably we can add versioning support to
10236 # collect2, so additional links can be useful in future.
10237 aix,yes) # traditional libtool
10238 dynamic_linker='AIX unversionable lib.so'
10239 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10240 # instead of lib<name>.a to let people know that these are not
10241 # typical AIX shared libraries.
10242 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10244 aix,no) # traditional AIX only
10245 dynamic_linker='AIX lib.a(lib.so.V)'
10246 # We preserve .a as extension for shared libraries through AIX4.2
10247 # and later when we are not doing run time linking.
10248 library_names_spec='$libname$release.a $libname.a'
10249 soname_spec='$libname$release$shared_ext$major'
10251 svr4,*) # full svr4 only
10252 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10253 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10254 # We do not specify a path in Import Files, so LIBPATH fires.
10255 shlibpath_overrides_runpath=yes
10257 *,yes) # both, prefer svr4
10258 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10259 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10260 # unpreferred sharedlib libNAME.a needs extra handling
10261 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10262 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10263 # We do not specify a path in Import Files, so LIBPATH fires.
10264 shlibpath_overrides_runpath=yes
10266 *,no) # both, prefer aix
10267 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10268 library_names_spec='$libname$release.a $libname.a'
10269 soname_spec='$libname$release$shared_ext$major'
10270 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10271 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10272 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10274 esac
10275 shlibpath_var=LIBPATH
10279 amigaos*)
10280 case $host_cpu in
10281 powerpc)
10282 # Since July 2007 AmigaOS4 officially supports .so libraries.
10283 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10284 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10286 m68k)
10287 library_names_spec='$libname.ixlibrary $libname.a'
10288 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10289 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10291 esac
10294 beos*)
10295 library_names_spec='$libname$shared_ext'
10296 dynamic_linker="$host_os ld.so"
10297 shlibpath_var=LIBRARY_PATH
10300 bsdi[45]*)
10301 version_type=linux # correct to gnu/linux during the next big refactor
10302 need_version=no
10303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10304 soname_spec='$libname$release$shared_ext$major'
10305 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10306 shlibpath_var=LD_LIBRARY_PATH
10307 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10308 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10309 # the default ld.so.conf also contains /usr/contrib/lib and
10310 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10311 # libtool to hard-code these into programs
10314 cygwin* | mingw* | pw32* | cegcc*)
10315 version_type=windows
10316 shrext_cmds=.dll
10317 need_version=no
10318 need_lib_prefix=no
10320 case $GCC,$cc_basename in
10321 yes,*)
10322 # gcc
10323 library_names_spec='$libname.dll.a'
10324 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10325 postinstall_cmds='base_file=`basename \$file`~
10326 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10327 dldir=$destdir/`dirname \$dlpath`~
10328 test -d \$dldir || mkdir -p \$dldir~
10329 $install_prog $dir/$dlname \$dldir/$dlname~
10330 chmod a+x \$dldir/$dlname~
10331 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10332 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10334 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10335 dlpath=$dir/\$dldll~
10336 $RM \$dlpath'
10337 shlibpath_overrides_runpath=yes
10339 case $host_os in
10340 cygwin*)
10341 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10342 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10344 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10346 mingw* | cegcc*)
10347 # MinGW DLLs use traditional 'lib' prefix
10348 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10350 pw32*)
10351 # pw32 DLLs use 'pw' prefix rather than 'lib'
10352 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10354 esac
10355 dynamic_linker='Win32 ld.exe'
10358 *,cl*)
10359 # Native MSVC
10360 libname_spec='$name'
10361 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10362 library_names_spec='$libname.dll.lib'
10364 case $build_os in
10365 mingw*)
10366 sys_lib_search_path_spec=
10367 lt_save_ifs=$IFS
10368 IFS=';'
10369 for lt_path in $LIB
10371 IFS=$lt_save_ifs
10372 # Let DOS variable expansion print the short 8.3 style file name.
10373 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10374 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10375 done
10376 IFS=$lt_save_ifs
10377 # Convert to MSYS style.
10378 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10380 cygwin*)
10381 # Convert to unix form, then to dos form, then back to unix form
10382 # but this time dos style (no spaces!) so that the unix form looks
10383 # like /cygdrive/c/PROGRA~1:/cygdr...
10384 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10385 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10386 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10389 sys_lib_search_path_spec=$LIB
10390 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10391 # It is most probably a Windows format PATH.
10392 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10393 else
10394 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10396 # FIXME: find the short name or the path components, as spaces are
10397 # common. (e.g. "Program Files" -> "PROGRA~1")
10399 esac
10401 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10402 postinstall_cmds='base_file=`basename \$file`~
10403 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10404 dldir=$destdir/`dirname \$dlpath`~
10405 test -d \$dldir || mkdir -p \$dldir~
10406 $install_prog $dir/$dlname \$dldir/$dlname'
10407 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10408 dlpath=$dir/\$dldll~
10409 $RM \$dlpath'
10410 shlibpath_overrides_runpath=yes
10411 dynamic_linker='Win32 link.exe'
10415 # Assume MSVC wrapper
10416 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10417 dynamic_linker='Win32 ld.exe'
10419 esac
10420 # FIXME: first we should search . and the directory the executable is in
10421 shlibpath_var=PATH
10424 darwin* | rhapsody*)
10425 dynamic_linker="$host_os dyld"
10426 version_type=darwin
10427 need_lib_prefix=no
10428 need_version=no
10429 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10430 soname_spec='$libname$release$major$shared_ext'
10431 shlibpath_overrides_runpath=yes
10432 shlibpath_var=DYLD_LIBRARY_PATH
10433 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10435 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10436 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10439 dgux*)
10440 version_type=linux # correct to gnu/linux during the next big refactor
10441 need_lib_prefix=no
10442 need_version=no
10443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10444 soname_spec='$libname$release$shared_ext$major'
10445 shlibpath_var=LD_LIBRARY_PATH
10448 freebsd* | dragonfly*)
10449 # DragonFly does not have aout. When/if they implement a new
10450 # versioning mechanism, adjust this.
10451 if test -x /usr/bin/objformat; then
10452 objformat=`/usr/bin/objformat`
10453 else
10454 case $host_os in
10455 freebsd[23].*) objformat=aout ;;
10456 *) objformat=elf ;;
10457 esac
10459 version_type=freebsd-$objformat
10460 case $version_type in
10461 freebsd-elf*)
10462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10463 soname_spec='$libname$release$shared_ext$major'
10464 need_version=no
10465 need_lib_prefix=no
10467 freebsd-*)
10468 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10469 need_version=yes
10471 esac
10472 shlibpath_var=LD_LIBRARY_PATH
10473 case $host_os in
10474 freebsd2.*)
10475 shlibpath_overrides_runpath=yes
10477 freebsd3.[01]* | freebsdelf3.[01]*)
10478 shlibpath_overrides_runpath=yes
10479 hardcode_into_libs=yes
10481 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10482 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10483 shlibpath_overrides_runpath=no
10484 hardcode_into_libs=yes
10486 *) # from 4.6 on, and DragonFly
10487 shlibpath_overrides_runpath=yes
10488 hardcode_into_libs=yes
10490 esac
10493 haiku*)
10494 version_type=linux # correct to gnu/linux during the next big refactor
10495 need_lib_prefix=no
10496 need_version=no
10497 dynamic_linker="$host_os runtime_loader"
10498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10499 soname_spec='$libname$release$shared_ext$major'
10500 shlibpath_var=LIBRARY_PATH
10501 shlibpath_overrides_runpath=no
10502 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10503 hardcode_into_libs=yes
10506 hpux9* | hpux10* | hpux11*)
10507 # Give a soname corresponding to the major version so that dld.sl refuses to
10508 # link against other versions.
10509 version_type=sunos
10510 need_lib_prefix=no
10511 need_version=no
10512 case $host_cpu in
10513 ia64*)
10514 shrext_cmds='.so'
10515 hardcode_into_libs=yes
10516 dynamic_linker="$host_os dld.so"
10517 shlibpath_var=LD_LIBRARY_PATH
10518 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10519 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10520 soname_spec='$libname$release$shared_ext$major'
10521 if test 32 = "$HPUX_IA64_MODE"; then
10522 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10523 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10524 else
10525 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10526 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10529 hppa*64*)
10530 shrext_cmds='.sl'
10531 hardcode_into_libs=yes
10532 dynamic_linker="$host_os dld.sl"
10533 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10534 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10535 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10536 soname_spec='$libname$release$shared_ext$major'
10537 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10538 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10541 shrext_cmds='.sl'
10542 dynamic_linker="$host_os dld.sl"
10543 shlibpath_var=SHLIB_PATH
10544 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10545 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10546 soname_spec='$libname$release$shared_ext$major'
10548 esac
10549 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10550 postinstall_cmds='chmod 555 $lib'
10551 # or fails outright, so override atomically:
10552 install_override_mode=555
10555 interix[3-9]*)
10556 version_type=linux # correct to gnu/linux during the next big refactor
10557 need_lib_prefix=no
10558 need_version=no
10559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10560 soname_spec='$libname$release$shared_ext$major'
10561 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10562 shlibpath_var=LD_LIBRARY_PATH
10563 shlibpath_overrides_runpath=no
10564 hardcode_into_libs=yes
10567 irix5* | irix6* | nonstopux*)
10568 case $host_os in
10569 nonstopux*) version_type=nonstopux ;;
10571 if test yes = "$lt_cv_prog_gnu_ld"; then
10572 version_type=linux # correct to gnu/linux during the next big refactor
10573 else
10574 version_type=irix
10575 fi ;;
10576 esac
10577 need_lib_prefix=no
10578 need_version=no
10579 soname_spec='$libname$release$shared_ext$major'
10580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10581 case $host_os in
10582 irix5* | nonstopux*)
10583 libsuff= shlibsuff=
10586 case $LD in # libtool.m4 will add one of these switches to LD
10587 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10588 libsuff= shlibsuff= libmagic=32-bit;;
10589 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10590 libsuff=32 shlibsuff=N32 libmagic=N32;;
10591 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10592 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10593 *) libsuff= shlibsuff= libmagic=never-match;;
10594 esac
10596 esac
10597 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10598 shlibpath_overrides_runpath=no
10599 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10600 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10601 hardcode_into_libs=yes
10604 # No shared lib support for Linux oldld, aout, or coff.
10605 linux*oldld* | linux*aout* | linux*coff*)
10606 dynamic_linker=no
10609 linux*android*)
10610 version_type=none # Android doesn't support versioned libraries.
10611 need_lib_prefix=no
10612 need_version=no
10613 library_names_spec='$libname$release$shared_ext'
10614 soname_spec='$libname$release$shared_ext'
10615 finish_cmds=
10616 shlibpath_var=LD_LIBRARY_PATH
10617 shlibpath_overrides_runpath=yes
10619 # This implies no fast_install, which is unacceptable.
10620 # Some rework will be needed to allow for fast_install
10621 # before this can be enabled.
10622 hardcode_into_libs=yes
10624 dynamic_linker='Android linker'
10625 # Don't embed -rpath directories since the linker doesn't support them.
10626 hardcode_libdir_flag_spec='-L$libdir'
10629 # This must be glibc/ELF.
10630 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10631 version_type=linux # correct to gnu/linux during the next big refactor
10632 need_lib_prefix=no
10633 need_version=no
10634 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10635 soname_spec='$libname$release$shared_ext$major'
10636 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10637 shlibpath_var=LD_LIBRARY_PATH
10638 shlibpath_overrides_runpath=no
10640 # Some binutils ld are patched to set DT_RUNPATH
10641 if test ${lt_cv_shlibpath_overrides_runpath+y}
10642 then :
10643 printf %s "(cached) " >&6
10644 else $as_nop
10645 lt_cv_shlibpath_overrides_runpath=no
10646 save_LDFLAGS=$LDFLAGS
10647 save_libdir=$libdir
10648 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10649 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10654 main (void)
10658 return 0;
10660 _ACEOF
10661 if ac_fn_c_try_link "$LINENO"
10662 then :
10663 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
10664 then :
10665 lt_cv_shlibpath_overrides_runpath=yes
10668 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10669 conftest$ac_exeext conftest.$ac_ext
10670 LDFLAGS=$save_LDFLAGS
10671 libdir=$save_libdir
10675 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10677 # This implies no fast_install, which is unacceptable.
10678 # Some rework will be needed to allow for fast_install
10679 # before this can be enabled.
10680 hardcode_into_libs=yes
10682 # Ideally, we could use ldconfig to report *all* directores which are
10683 # searched for libraries, however this is still not possible. Aside from not
10684 # being certain /sbin/ldconfig is available, command
10685 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10686 # even though it is searched at run-time. Try to do the best guess by
10687 # appending ld.so.conf contents (and includes) to the search path.
10688 if test -f /etc/ld.so.conf; then
10689 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10690 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10693 # We used to test for /lib/ld.so.1 and disable shared libraries on
10694 # powerpc, because MkLinux only supported shared libraries with the
10695 # GNU dynamic linker. Since this was broken with cross compilers,
10696 # most powerpc-linux boxes support dynamic linking these days and
10697 # people can always --disable-shared, the test was removed, and we
10698 # assume the GNU/Linux dynamic linker is in use.
10699 dynamic_linker='GNU/Linux ld.so'
10702 netbsdelf*-gnu)
10703 version_type=linux
10704 need_lib_prefix=no
10705 need_version=no
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10707 soname_spec='${libname}${release}${shared_ext}$major'
10708 shlibpath_var=LD_LIBRARY_PATH
10709 shlibpath_overrides_runpath=no
10710 hardcode_into_libs=yes
10711 dynamic_linker='NetBSD ld.elf_so'
10714 netbsd*)
10715 version_type=sunos
10716 need_lib_prefix=no
10717 need_version=no
10718 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10719 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10720 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10721 dynamic_linker='NetBSD (a.out) ld.so'
10722 else
10723 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10724 soname_spec='$libname$release$shared_ext$major'
10725 dynamic_linker='NetBSD ld.elf_so'
10727 shlibpath_var=LD_LIBRARY_PATH
10728 shlibpath_overrides_runpath=yes
10729 hardcode_into_libs=yes
10732 newsos6)
10733 version_type=linux # correct to gnu/linux during the next big refactor
10734 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10735 shlibpath_var=LD_LIBRARY_PATH
10736 shlibpath_overrides_runpath=yes
10739 *nto* | *qnx*)
10740 version_type=qnx
10741 need_lib_prefix=no
10742 need_version=no
10743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10744 soname_spec='$libname$release$shared_ext$major'
10745 shlibpath_var=LD_LIBRARY_PATH
10746 shlibpath_overrides_runpath=no
10747 hardcode_into_libs=yes
10748 dynamic_linker='ldqnx.so'
10751 openbsd* | bitrig*)
10752 version_type=sunos
10753 sys_lib_dlsearch_path_spec=/usr/lib
10754 need_lib_prefix=no
10755 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10756 need_version=no
10757 else
10758 need_version=yes
10760 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10762 shlibpath_var=LD_LIBRARY_PATH
10763 shlibpath_overrides_runpath=yes
10766 os2*)
10767 libname_spec='$name'
10768 version_type=windows
10769 shrext_cmds=.dll
10770 need_version=no
10771 need_lib_prefix=no
10772 # OS/2 can only load a DLL with a base name of 8 characters or less.
10773 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10774 v=$($ECHO $release$versuffix | tr -d .-);
10775 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10776 $ECHO $n$v`$shared_ext'
10777 library_names_spec='${libname}_dll.$libext'
10778 dynamic_linker='OS/2 ld.exe'
10779 shlibpath_var=BEGINLIBPATH
10780 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10782 postinstall_cmds='base_file=`basename \$file`~
10783 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10784 dldir=$destdir/`dirname \$dlpath`~
10785 test -d \$dldir || mkdir -p \$dldir~
10786 $install_prog $dir/$dlname \$dldir/$dlname~
10787 chmod a+x \$dldir/$dlname~
10788 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10789 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10791 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10792 dlpath=$dir/\$dldll~
10793 $RM \$dlpath'
10796 osf3* | osf4* | osf5*)
10797 version_type=osf
10798 need_lib_prefix=no
10799 need_version=no
10800 soname_spec='$libname$release$shared_ext$major'
10801 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10802 shlibpath_var=LD_LIBRARY_PATH
10803 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10804 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10807 rdos*)
10808 dynamic_linker=no
10811 solaris*)
10812 version_type=linux # correct to gnu/linux during the next big refactor
10813 need_lib_prefix=no
10814 need_version=no
10815 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10816 soname_spec='$libname$release$shared_ext$major'
10817 shlibpath_var=LD_LIBRARY_PATH
10818 shlibpath_overrides_runpath=yes
10819 hardcode_into_libs=yes
10820 # ldd complains unless libraries are executable
10821 postinstall_cmds='chmod +x $lib'
10824 sunos4*)
10825 version_type=sunos
10826 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10827 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10828 shlibpath_var=LD_LIBRARY_PATH
10829 shlibpath_overrides_runpath=yes
10830 if test yes = "$with_gnu_ld"; then
10831 need_lib_prefix=no
10833 need_version=yes
10836 sysv4 | sysv4.3*)
10837 version_type=linux # correct to gnu/linux during the next big refactor
10838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10839 soname_spec='$libname$release$shared_ext$major'
10840 shlibpath_var=LD_LIBRARY_PATH
10841 case $host_vendor in
10842 sni)
10843 shlibpath_overrides_runpath=no
10844 need_lib_prefix=no
10845 runpath_var=LD_RUN_PATH
10847 siemens)
10848 need_lib_prefix=no
10850 motorola)
10851 need_lib_prefix=no
10852 need_version=no
10853 shlibpath_overrides_runpath=no
10854 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10856 esac
10859 sysv4*MP*)
10860 if test -d /usr/nec; then
10861 version_type=linux # correct to gnu/linux during the next big refactor
10862 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10863 soname_spec='$libname$shared_ext.$major'
10864 shlibpath_var=LD_LIBRARY_PATH
10868 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10869 version_type=sco
10870 need_lib_prefix=no
10871 need_version=no
10872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10873 soname_spec='$libname$release$shared_ext$major'
10874 shlibpath_var=LD_LIBRARY_PATH
10875 shlibpath_overrides_runpath=yes
10876 hardcode_into_libs=yes
10877 if test yes = "$with_gnu_ld"; then
10878 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10879 else
10880 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10881 case $host_os in
10882 sco3.2v5*)
10883 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10885 esac
10887 sys_lib_dlsearch_path_spec='/usr/lib'
10890 tpf*)
10891 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10892 version_type=linux # correct to gnu/linux during the next big refactor
10893 need_lib_prefix=no
10894 need_version=no
10895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10896 shlibpath_var=LD_LIBRARY_PATH
10897 shlibpath_overrides_runpath=no
10898 hardcode_into_libs=yes
10901 uts4*)
10902 version_type=linux # correct to gnu/linux during the next big refactor
10903 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10904 soname_spec='$libname$release$shared_ext$major'
10905 shlibpath_var=LD_LIBRARY_PATH
10909 dynamic_linker=no
10911 esac
10912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10913 printf "%s\n" "$dynamic_linker" >&6; }
10914 test no = "$dynamic_linker" && can_build_shared=no
10916 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10917 if test yes = "$GCC"; then
10918 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10921 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10922 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
10925 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10926 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
10929 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
10930 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
10932 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
10933 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
10935 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
10936 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11035 printf %s "checking how to hardcode library paths into programs... " >&6; }
11036 hardcode_action=
11037 if test -n "$hardcode_libdir_flag_spec" ||
11038 test -n "$runpath_var" ||
11039 test yes = "$hardcode_automatic"; then
11041 # We can hardcode non-existent directories.
11042 if test no != "$hardcode_direct" &&
11043 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11044 # have to relink, otherwise we might link with an installed library
11045 # when we should be linking with a yet-to-be-installed one
11046 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11047 test no != "$hardcode_minus_L"; then
11048 # Linking always hardcodes the temporary library directory.
11049 hardcode_action=relink
11050 else
11051 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11052 hardcode_action=immediate
11054 else
11055 # We cannot hardcode anything, or else we can only hardcode existing
11056 # directories.
11057 hardcode_action=unsupported
11059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11060 printf "%s\n" "$hardcode_action" >&6; }
11062 if test relink = "$hardcode_action" ||
11063 test yes = "$inherit_rpath"; then
11064 # Fast installation is not supported
11065 enable_fast_install=no
11066 elif test yes = "$shlibpath_overrides_runpath" ||
11067 test no = "$enable_shared"; then
11068 # Fast installation is not necessary
11069 enable_fast_install=needless
11077 if test yes != "$enable_dlopen"; then
11078 enable_dlopen=unknown
11079 enable_dlopen_self=unknown
11080 enable_dlopen_self_static=unknown
11081 else
11082 lt_cv_dlopen=no
11083 lt_cv_dlopen_libs=
11085 case $host_os in
11086 beos*)
11087 lt_cv_dlopen=load_add_on
11088 lt_cv_dlopen_libs=
11089 lt_cv_dlopen_self=yes
11092 mingw* | pw32* | cegcc*)
11093 lt_cv_dlopen=LoadLibrary
11094 lt_cv_dlopen_libs=
11097 cygwin*)
11098 lt_cv_dlopen=dlopen
11099 lt_cv_dlopen_libs=
11102 darwin*)
11103 # if libdl is installed we need to link against it
11104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11105 printf %s "checking for dlopen in -ldl... " >&6; }
11106 if test ${ac_cv_lib_dl_dlopen+y}
11107 then :
11108 printf %s "(cached) " >&6
11109 else $as_nop
11110 ac_check_lib_save_LIBS=$LIBS
11111 LIBS="-ldl $LIBS"
11112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11113 /* end confdefs.h. */
11115 /* Override any GCC internal prototype to avoid an error.
11116 Use char because int might match the return type of a GCC
11117 builtin and then its argument prototype would still apply. */
11118 char dlopen ();
11120 main (void)
11122 return dlopen ();
11124 return 0;
11126 _ACEOF
11127 if ac_fn_c_try_link "$LINENO"
11128 then :
11129 ac_cv_lib_dl_dlopen=yes
11130 else $as_nop
11131 ac_cv_lib_dl_dlopen=no
11133 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11134 conftest$ac_exeext conftest.$ac_ext
11135 LIBS=$ac_check_lib_save_LIBS
11137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11138 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
11139 if test "x$ac_cv_lib_dl_dlopen" = xyes
11140 then :
11141 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11142 else $as_nop
11144 lt_cv_dlopen=dyld
11145 lt_cv_dlopen_libs=
11146 lt_cv_dlopen_self=yes
11152 tpf*)
11153 # Don't try to run any link tests for TPF. We know it's impossible
11154 # because TPF is a cross-compiler, and we know how we open DSOs.
11155 lt_cv_dlopen=dlopen
11156 lt_cv_dlopen_libs=
11157 lt_cv_dlopen_self=no
11161 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11162 if test "x$ac_cv_func_shl_load" = xyes
11163 then :
11164 lt_cv_dlopen=shl_load
11165 else $as_nop
11166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11167 printf %s "checking for shl_load in -ldld... " >&6; }
11168 if test ${ac_cv_lib_dld_shl_load+y}
11169 then :
11170 printf %s "(cached) " >&6
11171 else $as_nop
11172 ac_check_lib_save_LIBS=$LIBS
11173 LIBS="-ldld $LIBS"
11174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11175 /* end confdefs.h. */
11177 /* Override any GCC internal prototype to avoid an error.
11178 Use char because int might match the return type of a GCC
11179 builtin and then its argument prototype would still apply. */
11180 char shl_load ();
11182 main (void)
11184 return shl_load ();
11186 return 0;
11188 _ACEOF
11189 if ac_fn_c_try_link "$LINENO"
11190 then :
11191 ac_cv_lib_dld_shl_load=yes
11192 else $as_nop
11193 ac_cv_lib_dld_shl_load=no
11195 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11196 conftest$ac_exeext conftest.$ac_ext
11197 LIBS=$ac_check_lib_save_LIBS
11199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11200 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
11201 if test "x$ac_cv_lib_dld_shl_load" = xyes
11202 then :
11203 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11204 else $as_nop
11205 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11206 if test "x$ac_cv_func_dlopen" = xyes
11207 then :
11208 lt_cv_dlopen=dlopen
11209 else $as_nop
11210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11211 printf %s "checking for dlopen in -ldl... " >&6; }
11212 if test ${ac_cv_lib_dl_dlopen+y}
11213 then :
11214 printf %s "(cached) " >&6
11215 else $as_nop
11216 ac_check_lib_save_LIBS=$LIBS
11217 LIBS="-ldl $LIBS"
11218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11219 /* end confdefs.h. */
11221 /* Override any GCC internal prototype to avoid an error.
11222 Use char because int might match the return type of a GCC
11223 builtin and then its argument prototype would still apply. */
11224 char dlopen ();
11226 main (void)
11228 return dlopen ();
11230 return 0;
11232 _ACEOF
11233 if ac_fn_c_try_link "$LINENO"
11234 then :
11235 ac_cv_lib_dl_dlopen=yes
11236 else $as_nop
11237 ac_cv_lib_dl_dlopen=no
11239 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11240 conftest$ac_exeext conftest.$ac_ext
11241 LIBS=$ac_check_lib_save_LIBS
11243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11244 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
11245 if test "x$ac_cv_lib_dl_dlopen" = xyes
11246 then :
11247 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11248 else $as_nop
11249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11250 printf %s "checking for dlopen in -lsvld... " >&6; }
11251 if test ${ac_cv_lib_svld_dlopen+y}
11252 then :
11253 printf %s "(cached) " >&6
11254 else $as_nop
11255 ac_check_lib_save_LIBS=$LIBS
11256 LIBS="-lsvld $LIBS"
11257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11258 /* end confdefs.h. */
11260 /* Override any GCC internal prototype to avoid an error.
11261 Use char because int might match the return type of a GCC
11262 builtin and then its argument prototype would still apply. */
11263 char dlopen ();
11265 main (void)
11267 return dlopen ();
11269 return 0;
11271 _ACEOF
11272 if ac_fn_c_try_link "$LINENO"
11273 then :
11274 ac_cv_lib_svld_dlopen=yes
11275 else $as_nop
11276 ac_cv_lib_svld_dlopen=no
11278 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11279 conftest$ac_exeext conftest.$ac_ext
11280 LIBS=$ac_check_lib_save_LIBS
11282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11283 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
11284 if test "x$ac_cv_lib_svld_dlopen" = xyes
11285 then :
11286 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11287 else $as_nop
11288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11289 printf %s "checking for dld_link in -ldld... " >&6; }
11290 if test ${ac_cv_lib_dld_dld_link+y}
11291 then :
11292 printf %s "(cached) " >&6
11293 else $as_nop
11294 ac_check_lib_save_LIBS=$LIBS
11295 LIBS="-ldld $LIBS"
11296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11297 /* end confdefs.h. */
11299 /* Override any GCC internal prototype to avoid an error.
11300 Use char because int might match the return type of a GCC
11301 builtin and then its argument prototype would still apply. */
11302 char dld_link ();
11304 main (void)
11306 return dld_link ();
11308 return 0;
11310 _ACEOF
11311 if ac_fn_c_try_link "$LINENO"
11312 then :
11313 ac_cv_lib_dld_dld_link=yes
11314 else $as_nop
11315 ac_cv_lib_dld_dld_link=no
11317 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11318 conftest$ac_exeext conftest.$ac_ext
11319 LIBS=$ac_check_lib_save_LIBS
11321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11322 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
11323 if test "x$ac_cv_lib_dld_dld_link" = xyes
11324 then :
11325 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11344 esac
11346 if test no = "$lt_cv_dlopen"; then
11347 enable_dlopen=no
11348 else
11349 enable_dlopen=yes
11352 case $lt_cv_dlopen in
11353 dlopen)
11354 save_CPPFLAGS=$CPPFLAGS
11355 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11357 save_LDFLAGS=$LDFLAGS
11358 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11360 save_LIBS=$LIBS
11361 LIBS="$lt_cv_dlopen_libs $LIBS"
11363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11364 printf %s "checking whether a program can dlopen itself... " >&6; }
11365 if test ${lt_cv_dlopen_self+y}
11366 then :
11367 printf %s "(cached) " >&6
11368 else $as_nop
11369 if test yes = "$cross_compiling"; then :
11370 lt_cv_dlopen_self=cross
11371 else
11372 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11373 lt_status=$lt_dlunknown
11374 cat > conftest.$ac_ext <<_LT_EOF
11375 #line $LINENO "configure"
11376 #include "confdefs.h"
11378 #if HAVE_DLFCN_H
11379 #include <dlfcn.h>
11380 #endif
11382 #include <stdio.h>
11384 #ifdef RTLD_GLOBAL
11385 # define LT_DLGLOBAL RTLD_GLOBAL
11386 #else
11387 # ifdef DL_GLOBAL
11388 # define LT_DLGLOBAL DL_GLOBAL
11389 # else
11390 # define LT_DLGLOBAL 0
11391 # endif
11392 #endif
11394 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11395 find out it does not work in some platform. */
11396 #ifndef LT_DLLAZY_OR_NOW
11397 # ifdef RTLD_LAZY
11398 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11399 # else
11400 # ifdef DL_LAZY
11401 # define LT_DLLAZY_OR_NOW DL_LAZY
11402 # else
11403 # ifdef RTLD_NOW
11404 # define LT_DLLAZY_OR_NOW RTLD_NOW
11405 # else
11406 # ifdef DL_NOW
11407 # define LT_DLLAZY_OR_NOW DL_NOW
11408 # else
11409 # define LT_DLLAZY_OR_NOW 0
11410 # endif
11411 # endif
11412 # endif
11413 # endif
11414 #endif
11416 /* When -fvisibility=hidden is used, assume the code has been annotated
11417 correspondingly for the symbols needed. */
11418 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11419 int fnord () __attribute__((visibility("default")));
11420 #endif
11422 int fnord () { return 42; }
11423 int main ()
11425 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11426 int status = $lt_dlunknown;
11428 if (self)
11430 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11431 else
11433 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11434 else puts (dlerror ());
11436 /* dlclose (self); */
11438 else
11439 puts (dlerror ());
11441 return status;
11443 _LT_EOF
11444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11445 (eval $ac_link) 2>&5
11446 ac_status=$?
11447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11448 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11449 (./conftest; exit; ) >&5 2>/dev/null
11450 lt_status=$?
11451 case x$lt_status in
11452 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11453 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11454 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11455 esac
11456 else :
11457 # compilation failed
11458 lt_cv_dlopen_self=no
11461 rm -fr conftest*
11465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11466 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
11468 if test yes = "$lt_cv_dlopen_self"; then
11469 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11471 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
11472 if test ${lt_cv_dlopen_self_static+y}
11473 then :
11474 printf %s "(cached) " >&6
11475 else $as_nop
11476 if test yes = "$cross_compiling"; then :
11477 lt_cv_dlopen_self_static=cross
11478 else
11479 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11480 lt_status=$lt_dlunknown
11481 cat > conftest.$ac_ext <<_LT_EOF
11482 #line $LINENO "configure"
11483 #include "confdefs.h"
11485 #if HAVE_DLFCN_H
11486 #include <dlfcn.h>
11487 #endif
11489 #include <stdio.h>
11491 #ifdef RTLD_GLOBAL
11492 # define LT_DLGLOBAL RTLD_GLOBAL
11493 #else
11494 # ifdef DL_GLOBAL
11495 # define LT_DLGLOBAL DL_GLOBAL
11496 # else
11497 # define LT_DLGLOBAL 0
11498 # endif
11499 #endif
11501 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11502 find out it does not work in some platform. */
11503 #ifndef LT_DLLAZY_OR_NOW
11504 # ifdef RTLD_LAZY
11505 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11506 # else
11507 # ifdef DL_LAZY
11508 # define LT_DLLAZY_OR_NOW DL_LAZY
11509 # else
11510 # ifdef RTLD_NOW
11511 # define LT_DLLAZY_OR_NOW RTLD_NOW
11512 # else
11513 # ifdef DL_NOW
11514 # define LT_DLLAZY_OR_NOW DL_NOW
11515 # else
11516 # define LT_DLLAZY_OR_NOW 0
11517 # endif
11518 # endif
11519 # endif
11520 # endif
11521 #endif
11523 /* When -fvisibility=hidden is used, assume the code has been annotated
11524 correspondingly for the symbols needed. */
11525 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11526 int fnord () __attribute__((visibility("default")));
11527 #endif
11529 int fnord () { return 42; }
11530 int main ()
11532 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11533 int status = $lt_dlunknown;
11535 if (self)
11537 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11538 else
11540 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11541 else puts (dlerror ());
11543 /* dlclose (self); */
11545 else
11546 puts (dlerror ());
11548 return status;
11550 _LT_EOF
11551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11552 (eval $ac_link) 2>&5
11553 ac_status=$?
11554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11555 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11556 (./conftest; exit; ) >&5 2>/dev/null
11557 lt_status=$?
11558 case x$lt_status in
11559 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11560 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11561 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11562 esac
11563 else :
11564 # compilation failed
11565 lt_cv_dlopen_self_static=no
11568 rm -fr conftest*
11572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11573 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
11576 CPPFLAGS=$save_CPPFLAGS
11577 LDFLAGS=$save_LDFLAGS
11578 LIBS=$save_LIBS
11580 esac
11582 case $lt_cv_dlopen_self in
11583 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11584 *) enable_dlopen_self=unknown ;;
11585 esac
11587 case $lt_cv_dlopen_self_static in
11588 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11589 *) enable_dlopen_self_static=unknown ;;
11590 esac
11609 striplib=
11610 old_striplib=
11611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11612 printf %s "checking whether stripping libraries is possible... " >&6; }
11613 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11614 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11615 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11617 printf "%s\n" "yes" >&6; }
11618 else
11619 # FIXME - insert some real tests, host_os isn't really good enough
11620 case $host_os in
11621 darwin*)
11622 if test -n "$STRIP"; then
11623 striplib="$STRIP -x"
11624 old_striplib="$STRIP -S"
11625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11626 printf "%s\n" "yes" >&6; }
11627 else
11628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629 printf "%s\n" "no" >&6; }
11633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11634 printf "%s\n" "no" >&6; }
11636 esac
11650 # Report what library types will actually be built
11651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11652 printf %s "checking if libtool supports shared libraries... " >&6; }
11653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11654 printf "%s\n" "$can_build_shared" >&6; }
11656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11657 printf %s "checking whether to build shared libraries... " >&6; }
11658 test no = "$can_build_shared" && enable_shared=no
11660 # On AIX, shared libraries and static libraries use the same namespace, and
11661 # are all built from PIC.
11662 case $host_os in
11663 aix3*)
11664 test yes = "$enable_shared" && enable_static=no
11665 if test -n "$RANLIB"; then
11666 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11667 postinstall_cmds='$RANLIB $lib'
11671 aix[4-9]*)
11672 if test ia64 != "$host_cpu"; then
11673 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11674 yes,aix,yes) ;; # shared object as lib.so file only
11675 yes,svr4,*) ;; # shared object as lib.so archive member only
11676 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11677 esac
11680 esac
11681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11682 printf "%s\n" "$enable_shared" >&6; }
11684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11685 printf %s "checking whether to build static libraries... " >&6; }
11686 # Make sure either enable_shared or enable_static is yes.
11687 test yes = "$enable_shared" || enable_static=yes
11688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11689 printf "%s\n" "$enable_static" >&6; }
11695 ac_ext=c
11696 ac_cpp='$CPP $CPPFLAGS'
11697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11701 CC=$lt_save_CC
11717 ac_config_commands="$ac_config_commands libtool"
11722 # Only expand once:
11726 # Find a good install program. We prefer a C program (faster),
11727 # so one script is as good as another. But avoid the broken or
11728 # incompatible versions:
11729 # SysV /etc/install, /usr/sbin/install
11730 # SunOS /usr/etc/install
11731 # IRIX /sbin/install
11732 # AIX /bin/install
11733 # AmigaOS /C/install, which installs bootblocks on floppy discs
11734 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11735 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11736 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11737 # OS/2's system install, which has a completely different semantic
11738 # ./install, which can be erroneously created by make from ./install.sh.
11739 # Reject install programs that cannot install multiple files.
11740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11741 printf %s "checking for a BSD-compatible install... " >&6; }
11742 if test -z "$INSTALL"; then
11743 if test ${ac_cv_path_install+y}
11744 then :
11745 printf %s "(cached) " >&6
11746 else $as_nop
11747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748 for as_dir in $PATH
11750 IFS=$as_save_IFS
11751 case $as_dir in #(((
11752 '') as_dir=./ ;;
11753 */) ;;
11754 *) as_dir=$as_dir/ ;;
11755 esac
11756 # Account for fact that we put trailing slashes in our PATH walk.
11757 case $as_dir in #((
11758 ./ | /[cC]/* | \
11759 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11760 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11761 /usr/ucb/* ) ;;
11763 # OSF1 and SCO ODT 3.0 have their own names for install.
11764 # Don't use installbsd from OSF since it installs stuff as root
11765 # by default.
11766 for ac_prog in ginstall scoinst install; do
11767 for ac_exec_ext in '' $ac_executable_extensions; do
11768 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
11769 if test $ac_prog = install &&
11770 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11771 # AIX install. It has an incompatible calling convention.
11773 elif test $ac_prog = install &&
11774 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11775 # program-specific install script used by HP pwplus--don't use.
11777 else
11778 rm -rf conftest.one conftest.two conftest.dir
11779 echo one > conftest.one
11780 echo two > conftest.two
11781 mkdir conftest.dir
11782 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
11783 test -s conftest.one && test -s conftest.two &&
11784 test -s conftest.dir/conftest.one &&
11785 test -s conftest.dir/conftest.two
11786 then
11787 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
11788 break 3
11792 done
11793 done
11795 esac
11797 done
11798 IFS=$as_save_IFS
11800 rm -rf conftest.one conftest.two conftest.dir
11803 if test ${ac_cv_path_install+y}; then
11804 INSTALL=$ac_cv_path_install
11805 else
11806 # As a last resort, use the slow shell script. Don't cache a
11807 # value for INSTALL within a source directory, because that will
11808 # break other packages using the cache if that directory is
11809 # removed, or if the value is a relative name.
11810 INSTALL=$ac_install_sh
11813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11814 printf "%s\n" "$INSTALL" >&6; }
11816 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11817 # It thinks the first close brace ends the variable substitution.
11818 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11820 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11822 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11825 #########
11826 # Enable large file support (if special flags are necessary)
11828 # Check whether --enable-largefile was given.
11829 if test ${enable_largefile+y}
11830 then :
11831 enableval=$enable_largefile;
11834 if test "$enable_largefile" != no; then
11836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11837 printf %s "checking for special C compiler options needed for large files... " >&6; }
11838 if test ${ac_cv_sys_largefile_CC+y}
11839 then :
11840 printf %s "(cached) " >&6
11841 else $as_nop
11842 ac_cv_sys_largefile_CC=no
11843 if test "$GCC" != yes; then
11844 ac_save_CC=$CC
11845 while :; do
11846 # IRIX 6.2 and later do not support large files by default,
11847 # so use the C compiler's -n32 option if that helps.
11848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11849 /* end confdefs.h. */
11850 #include <sys/types.h>
11851 /* Check that off_t can represent 2**63 - 1 correctly.
11852 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11853 since some C++ compilers masquerading as C compilers
11854 incorrectly reject 9223372036854775807. */
11855 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
11856 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11857 && LARGE_OFF_T % 2147483647 == 1)
11858 ? 1 : -1];
11860 main (void)
11864 return 0;
11866 _ACEOF
11867 if ac_fn_c_try_compile "$LINENO"
11868 then :
11869 break
11871 rm -f core conftest.err conftest.$ac_objext conftest.beam
11872 CC="$CC -n32"
11873 if ac_fn_c_try_compile "$LINENO"
11874 then :
11875 ac_cv_sys_largefile_CC=' -n32'; break
11877 rm -f core conftest.err conftest.$ac_objext conftest.beam
11878 break
11879 done
11880 CC=$ac_save_CC
11881 rm -f conftest.$ac_ext
11884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11885 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
11886 if test "$ac_cv_sys_largefile_CC" != no; then
11887 CC=$CC$ac_cv_sys_largefile_CC
11890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11891 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11892 if test ${ac_cv_sys_file_offset_bits+y}
11893 then :
11894 printf %s "(cached) " >&6
11895 else $as_nop
11896 while :; do
11897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11898 /* end confdefs.h. */
11899 #include <sys/types.h>
11900 /* Check that off_t can represent 2**63 - 1 correctly.
11901 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11902 since some C++ compilers masquerading as C compilers
11903 incorrectly reject 9223372036854775807. */
11904 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
11905 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11906 && LARGE_OFF_T % 2147483647 == 1)
11907 ? 1 : -1];
11909 main (void)
11913 return 0;
11915 _ACEOF
11916 if ac_fn_c_try_compile "$LINENO"
11917 then :
11918 ac_cv_sys_file_offset_bits=no; break
11920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11922 /* end confdefs.h. */
11923 #define _FILE_OFFSET_BITS 64
11924 #include <sys/types.h>
11925 /* Check that off_t can represent 2**63 - 1 correctly.
11926 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11927 since some C++ compilers masquerading as C compilers
11928 incorrectly reject 9223372036854775807. */
11929 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
11930 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11931 && LARGE_OFF_T % 2147483647 == 1)
11932 ? 1 : -1];
11934 main (void)
11938 return 0;
11940 _ACEOF
11941 if ac_fn_c_try_compile "$LINENO"
11942 then :
11943 ac_cv_sys_file_offset_bits=64; break
11945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11946 ac_cv_sys_file_offset_bits=unknown
11947 break
11948 done
11950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11951 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
11952 case $ac_cv_sys_file_offset_bits in #(
11953 no | unknown) ;;
11955 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
11957 esac
11958 rm -rf conftest*
11959 if test $ac_cv_sys_file_offset_bits = unknown; then
11960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11961 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
11962 if test ${ac_cv_sys_large_files+y}
11963 then :
11964 printf %s "(cached) " >&6
11965 else $as_nop
11966 while :; do
11967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h. */
11969 #include <sys/types.h>
11970 /* Check that off_t can represent 2**63 - 1 correctly.
11971 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11972 since some C++ compilers masquerading as C compilers
11973 incorrectly reject 9223372036854775807. */
11974 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
11975 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11976 && LARGE_OFF_T % 2147483647 == 1)
11977 ? 1 : -1];
11979 main (void)
11983 return 0;
11985 _ACEOF
11986 if ac_fn_c_try_compile "$LINENO"
11987 then :
11988 ac_cv_sys_large_files=no; break
11990 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992 /* end confdefs.h. */
11993 #define _LARGE_FILES 1
11994 #include <sys/types.h>
11995 /* Check that off_t can represent 2**63 - 1 correctly.
11996 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11997 since some C++ compilers masquerading as C compilers
11998 incorrectly reject 9223372036854775807. */
11999 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12000 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12001 && LARGE_OFF_T % 2147483647 == 1)
12002 ? 1 : -1];
12004 main (void)
12008 return 0;
12010 _ACEOF
12011 if ac_fn_c_try_compile "$LINENO"
12012 then :
12013 ac_cv_sys_large_files=1; break
12015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12016 ac_cv_sys_large_files=unknown
12017 break
12018 done
12020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12021 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
12022 case $ac_cv_sys_large_files in #(
12023 no | unknown) ;;
12025 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
12027 esac
12028 rm -rf conftest*
12033 #########
12034 # Check for needed/wanted data types
12035 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
12036 if test "x$ac_cv_type_int8_t" = xyes
12037 then :
12039 printf "%s\n" "#define HAVE_INT8_T 1" >>confdefs.h
12043 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
12044 if test "x$ac_cv_type_int16_t" = xyes
12045 then :
12047 printf "%s\n" "#define HAVE_INT16_T 1" >>confdefs.h
12051 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
12052 if test "x$ac_cv_type_int32_t" = xyes
12053 then :
12055 printf "%s\n" "#define HAVE_INT32_T 1" >>confdefs.h
12059 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
12060 if test "x$ac_cv_type_int64_t" = xyes
12061 then :
12063 printf "%s\n" "#define HAVE_INT64_T 1" >>confdefs.h
12067 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12068 if test "x$ac_cv_type_intptr_t" = xyes
12069 then :
12071 printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
12075 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
12076 if test "x$ac_cv_type_uint8_t" = xyes
12077 then :
12079 printf "%s\n" "#define HAVE_UINT8_T 1" >>confdefs.h
12083 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
12084 if test "x$ac_cv_type_uint16_t" = xyes
12085 then :
12087 printf "%s\n" "#define HAVE_UINT16_T 1" >>confdefs.h
12091 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
12092 if test "x$ac_cv_type_uint32_t" = xyes
12093 then :
12095 printf "%s\n" "#define HAVE_UINT32_T 1" >>confdefs.h
12099 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
12100 if test "x$ac_cv_type_uint64_t" = xyes
12101 then :
12103 printf "%s\n" "#define HAVE_UINT64_T 1" >>confdefs.h
12107 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
12108 if test "x$ac_cv_type_uintptr_t" = xyes
12109 then :
12111 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
12117 #########
12118 # Check for needed/wanted headers
12119 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12120 if test "x$ac_cv_header_sys_types_h" = xyes
12121 then :
12122 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12125 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12126 if test "x$ac_cv_header_stdlib_h" = xyes
12127 then :
12128 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
12131 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
12132 if test "x$ac_cv_header_stdint_h" = xyes
12133 then :
12134 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
12137 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12138 if test "x$ac_cv_header_inttypes_h" = xyes
12139 then :
12140 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
12143 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
12144 if test "x$ac_cv_header_malloc_h" = xyes
12145 then :
12146 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
12151 #########
12152 # Figure out whether or not we have these functions
12154 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
12155 if test "x$ac_cv_func_fdatasync" = xyes
12156 then :
12157 printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
12160 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
12161 if test "x$ac_cv_func_gmtime_r" = xyes
12162 then :
12163 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
12166 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
12167 if test "x$ac_cv_func_isnan" = xyes
12168 then :
12169 printf "%s\n" "#define HAVE_ISNAN 1" >>confdefs.h
12172 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
12173 if test "x$ac_cv_func_localtime_r" = xyes
12174 then :
12175 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
12178 ac_fn_c_check_func "$LINENO" "localtime_s" "ac_cv_func_localtime_s"
12179 if test "x$ac_cv_func_localtime_s" = xyes
12180 then :
12181 printf "%s\n" "#define HAVE_LOCALTIME_S 1" >>confdefs.h
12184 ac_fn_c_check_func "$LINENO" "malloc_usable_size" "ac_cv_func_malloc_usable_size"
12185 if test "x$ac_cv_func_malloc_usable_size" = xyes
12186 then :
12187 printf "%s\n" "#define HAVE_MALLOC_USABLE_SIZE 1" >>confdefs.h
12190 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
12191 if test "x$ac_cv_func_strchrnul" = xyes
12192 then :
12193 printf "%s\n" "#define HAVE_STRCHRNUL 1" >>confdefs.h
12196 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
12197 if test "x$ac_cv_func_usleep" = xyes
12198 then :
12199 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
12202 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
12203 if test "x$ac_cv_func_utime" = xyes
12204 then :
12205 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
12208 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
12209 if test "x$ac_cv_func_pread" = xyes
12210 then :
12211 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
12214 ac_fn_c_check_func "$LINENO" "pread64" "ac_cv_func_pread64"
12215 if test "x$ac_cv_func_pread64" = xyes
12216 then :
12217 printf "%s\n" "#define HAVE_PREAD64 1" >>confdefs.h
12220 ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
12221 if test "x$ac_cv_func_pwrite" = xyes
12222 then :
12223 printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
12226 ac_fn_c_check_func "$LINENO" "pwrite64" "ac_cv_func_pwrite64"
12227 if test "x$ac_cv_func_pwrite64" = xyes
12228 then :
12229 printf "%s\n" "#define HAVE_PWRITE64 1" >>confdefs.h
12234 #########
12235 # By default, we use the amalgamation (this may be changed below...)
12237 USE_AMALGAMATION=1
12239 #########
12240 # See whether we can run specific tclsh versions known to work well;
12241 # if not, then we fall back to plain tclsh.
12242 # TODO: try other versions before falling back?
12244 for ac_prog in tclsh8.7 tclsh8.6 tclsh8.5 tclsh
12246 # Extract the first word of "$ac_prog", so it can be a program name with args.
12247 set dummy $ac_prog; ac_word=$2
12248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12249 printf %s "checking for $ac_word... " >&6; }
12250 if test ${ac_cv_prog_TCLSH_CMD+y}
12251 then :
12252 printf %s "(cached) " >&6
12253 else $as_nop
12254 if test -n "$TCLSH_CMD"; then
12255 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
12256 else
12257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12258 for as_dir in $PATH
12260 IFS=$as_save_IFS
12261 case $as_dir in #(((
12262 '') as_dir=./ ;;
12263 */) ;;
12264 *) as_dir=$as_dir/ ;;
12265 esac
12266 for ac_exec_ext in '' $ac_executable_extensions; do
12267 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12268 ac_cv_prog_TCLSH_CMD="$ac_prog"
12269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12270 break 2
12272 done
12273 done
12274 IFS=$as_save_IFS
12278 TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
12279 if test -n "$TCLSH_CMD"; then
12280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
12281 printf "%s\n" "$TCLSH_CMD" >&6; }
12282 else
12283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12284 printf "%s\n" "no" >&6; }
12288 test -n "$TCLSH_CMD" && break
12289 done
12290 test -n "$TCLSH_CMD" || TCLSH_CMD="none"
12292 if test "$TCLSH_CMD" = "none"; then
12293 # If we can't find a local tclsh, then building the amalgamation will fail.
12294 # We act as though --disable-amalgamation has been used.
12295 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
12296 USE_AMALGAMATION=0
12297 TCLSH_CMD="tclsh"
12302 if test "x${TCLLIBDIR+set}" != "xset" ; then
12303 TCLLIBDIR='$(libdir)'
12304 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
12305 if test -d $i ; then
12306 TCLLIBDIR=$i
12307 break
12309 done
12310 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
12313 #########
12314 # Set up an appropriate program prefix
12316 if test "$program_prefix" = "NONE"; then
12317 program_prefix=""
12321 VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
12322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
12323 printf "%s\n" "$as_me: Version set to $VERSION" >&6;}
12325 RELEASE=`cat $srcdir/VERSION`
12326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
12327 printf "%s\n" "$as_me: Release set to $RELEASE" >&6;}
12330 ##########
12331 # Handle --with-wasi-sdk=DIR
12333 # This must be early because it changes the toolchain.
12336 # Check whether --with-wasi-sdk was given.
12337 if test ${with_wasi_sdk+y}
12338 then :
12339 withval=$with_wasi_sdk; with_wasisdk=${withval}
12342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for WASI SDK directory" >&5
12343 printf %s "checking for WASI SDK directory... " >&6; }
12344 if test ${ac_cv_c_wasi_sdk+y}
12345 then :
12346 printf %s "(cached) " >&6
12347 else $as_nop
12349 # First check to see if --with-tcl was specified.
12350 if test x"${with_wasi_sdk}" != x ; then
12351 if ! test -d "${with_wasi_sdk}" ; then
12352 as_fn_error $? "${with_wasi_sdk} directory doesn't exist" "$LINENO" 5
12354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${with_wasi_sdk}: using wasi-sdk clang, disabling: tcl, CLI shell, DLL" >&5
12355 printf "%s\n" "${with_wasi_sdk}: using wasi-sdk clang, disabling: tcl, CLI shell, DLL" >&6; }
12356 use_wasi_sdk=yes
12357 else
12358 use_wasi_sdk=no
12363 if test "${use_wasi_sdk}" = "no" ; then
12364 HAVE_WASI_SDK=""
12365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12366 printf "%s\n" "no" >&6; }
12367 else
12368 HAVE_WASI_SDK=1
12369 # Changing --host and --target have no effect here except to possibly
12370 # cause confusion. autoconf has finished processing them by this
12371 # point.
12373 # host_alias=wasm32-wasi
12374 # target=wasm32-wasi
12376 # Merely changing CC and LD to the wasi-sdk's is enough to get
12377 # sqlite3.o building in WASM format.
12378 CC="${with_wasi_sdk}/bin/clang"
12379 LD="${with_wasi_sdk}/bin/wasm-ld"
12380 RANLIB="${with_wasi_sdk}/bin/llvm-ranlib"
12381 cross_compiling=yes
12382 enable_threadsafe=no
12383 use_tcl=no
12384 enable_tcl=no
12385 # libtool is apparently hard-coded to use gcc for linking DLLs, so
12386 # we disable the DLL build...
12387 enable_shared=no
12388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12389 printf "%s\n" "yes" >&6; }
12394 #########
12395 # Locate a compiler for the build machine. This compiler should
12396 # generate command-line programs that run on the build machine.
12398 if test x"$cross_compiling" = xno; then
12399 BUILD_CC=$CC
12400 BUILD_CFLAGS=$CFLAGS
12401 else
12402 if test "${BUILD_CC+set}" != set; then
12403 for ac_prog in gcc cc cl
12405 # Extract the first word of "$ac_prog", so it can be a program name with args.
12406 set dummy $ac_prog; ac_word=$2
12407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12408 printf %s "checking for $ac_word... " >&6; }
12409 if test ${ac_cv_prog_BUILD_CC+y}
12410 then :
12411 printf %s "(cached) " >&6
12412 else $as_nop
12413 if test -n "$BUILD_CC"; then
12414 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12415 else
12416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12417 for as_dir in $PATH
12419 IFS=$as_save_IFS
12420 case $as_dir in #(((
12421 '') as_dir=./ ;;
12422 */) ;;
12423 *) as_dir=$as_dir/ ;;
12424 esac
12425 for ac_exec_ext in '' $ac_executable_extensions; do
12426 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12427 ac_cv_prog_BUILD_CC="$ac_prog"
12428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12429 break 2
12431 done
12432 done
12433 IFS=$as_save_IFS
12437 BUILD_CC=$ac_cv_prog_BUILD_CC
12438 if test -n "$BUILD_CC"; then
12439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12440 printf "%s\n" "$BUILD_CC" >&6; }
12441 else
12442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443 printf "%s\n" "no" >&6; }
12447 test -n "$BUILD_CC" && break
12448 done
12451 if test "${BUILD_CFLAGS+set}" != set; then
12452 BUILD_CFLAGS="-g"
12457 ##########
12458 # Do we want to support multithreaded use of sqlite
12460 # Check whether --enable-threadsafe was given.
12461 if test ${enable_threadsafe+y}
12462 then :
12463 enableval=$enable_threadsafe;
12466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
12467 printf %s "checking whether to support threadsafe operation... " >&6; }
12468 if test "$enable_threadsafe" = "no"; then
12469 SQLITE_THREADSAFE=0
12470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12471 printf "%s\n" "no" >&6; }
12472 else
12473 SQLITE_THREADSAFE=1
12474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12475 printf "%s\n" "yes" >&6; }
12479 if test "$SQLITE_THREADSAFE" = "1"; then
12480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
12481 printf %s "checking for library containing pthread_create... " >&6; }
12482 if test ${ac_cv_search_pthread_create+y}
12483 then :
12484 printf %s "(cached) " >&6
12485 else $as_nop
12486 ac_func_search_save_LIBS=$LIBS
12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h. */
12490 /* Override any GCC internal prototype to avoid an error.
12491 Use char because int might match the return type of a GCC
12492 builtin and then its argument prototype would still apply. */
12493 char pthread_create ();
12495 main (void)
12497 return pthread_create ();
12499 return 0;
12501 _ACEOF
12502 for ac_lib in '' pthread
12504 if test -z "$ac_lib"; then
12505 ac_res="none required"
12506 else
12507 ac_res=-l$ac_lib
12508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12510 if ac_fn_c_try_link "$LINENO"
12511 then :
12512 ac_cv_search_pthread_create=$ac_res
12514 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12515 conftest$ac_exeext
12516 if test ${ac_cv_search_pthread_create+y}
12517 then :
12518 break
12520 done
12521 if test ${ac_cv_search_pthread_create+y}
12522 then :
12524 else $as_nop
12525 ac_cv_search_pthread_create=no
12527 rm conftest.$ac_ext
12528 LIBS=$ac_func_search_save_LIBS
12530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
12531 printf "%s\n" "$ac_cv_search_pthread_create" >&6; }
12532 ac_res=$ac_cv_search_pthread_create
12533 if test "$ac_res" != no
12534 then :
12535 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
12540 printf %s "checking for library containing pthread_mutexattr_init... " >&6; }
12541 if test ${ac_cv_search_pthread_mutexattr_init+y}
12542 then :
12543 printf %s "(cached) " >&6
12544 else $as_nop
12545 ac_func_search_save_LIBS=$LIBS
12546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12547 /* end confdefs.h. */
12549 /* Override any GCC internal prototype to avoid an error.
12550 Use char because int might match the return type of a GCC
12551 builtin and then its argument prototype would still apply. */
12552 char pthread_mutexattr_init ();
12554 main (void)
12556 return pthread_mutexattr_init ();
12558 return 0;
12560 _ACEOF
12561 for ac_lib in '' pthread
12563 if test -z "$ac_lib"; then
12564 ac_res="none required"
12565 else
12566 ac_res=-l$ac_lib
12567 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12569 if ac_fn_c_try_link "$LINENO"
12570 then :
12571 ac_cv_search_pthread_mutexattr_init=$ac_res
12573 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12574 conftest$ac_exeext
12575 if test ${ac_cv_search_pthread_mutexattr_init+y}
12576 then :
12577 break
12579 done
12580 if test ${ac_cv_search_pthread_mutexattr_init+y}
12581 then :
12583 else $as_nop
12584 ac_cv_search_pthread_mutexattr_init=no
12586 rm conftest.$ac_ext
12587 LIBS=$ac_func_search_save_LIBS
12589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
12590 printf "%s\n" "$ac_cv_search_pthread_mutexattr_init" >&6; }
12591 ac_res=$ac_cv_search_pthread_mutexattr_init
12592 if test "$ac_res" != no
12593 then :
12594 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12600 ##########
12601 # Which crypto library do we use
12604 # Check whether --with-crypto-lib was given.
12605 if test ${with_crypto_lib+y}
12606 then :
12607 withval=$with_crypto_lib; crypto_lib=$withval
12610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypto library to use" >&5
12611 printf %s "checking for crypto library to use... " >&6; }
12612 if test "$crypto_lib" = "none"; then
12613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12614 printf "%s\n" "none" >&6; }
12615 else
12616 if test "$crypto_lib" = "commoncrypto"; then
12617 CFLAGS="$CFLAGS -DSQLCIPHER_CRYPTO_CC"
12618 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_CC"
12619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: commoncrypto" >&5
12620 printf "%s\n" "commoncrypto" >&6; }
12621 else
12622 if test "$crypto_lib" = "libtomcrypt"; then
12623 CFLAGS="$CFLAGS -DSQLCIPHER_CRYPTO_LIBTOMCRYPT"
12624 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_LIBTOMCRYPT"
12625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libtomcrypt" >&5
12626 printf "%s\n" "libtomcrypt" >&6; }
12627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for register_cipher in -ltomcrypt" >&5
12628 printf %s "checking for register_cipher in -ltomcrypt... " >&6; }
12629 if test ${ac_cv_lib_tomcrypt_register_cipher+y}
12630 then :
12631 printf %s "(cached) " >&6
12632 else $as_nop
12633 ac_check_lib_save_LIBS=$LIBS
12634 LIBS="-ltomcrypt $LIBS"
12635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12636 /* end confdefs.h. */
12638 /* Override any GCC internal prototype to avoid an error.
12639 Use char because int might match the return type of a GCC
12640 builtin and then its argument prototype would still apply. */
12641 char register_cipher ();
12643 main (void)
12645 return register_cipher ();
12647 return 0;
12649 _ACEOF
12650 if ac_fn_c_try_link "$LINENO"
12651 then :
12652 ac_cv_lib_tomcrypt_register_cipher=yes
12653 else $as_nop
12654 ac_cv_lib_tomcrypt_register_cipher=no
12656 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12657 conftest$ac_exeext conftest.$ac_ext
12658 LIBS=$ac_check_lib_save_LIBS
12660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tomcrypt_register_cipher" >&5
12661 printf "%s\n" "$ac_cv_lib_tomcrypt_register_cipher" >&6; }
12662 if test "x$ac_cv_lib_tomcrypt_register_cipher" = xyes
12663 then :
12664 printf "%s\n" "#define HAVE_LIBTOMCRYPT 1" >>confdefs.h
12666 LIBS="-ltomcrypt $LIBS"
12668 else $as_nop
12669 as_fn_error $? "Library crypto not found. Install libtomcrypt!\"" "$LINENO" 5
12672 else
12673 if test "$crypto_lib" = "nss"; then
12674 CFLAGS="$CFLAGS -DSQLCIPHER_CRYPTO_NSS"
12675 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_NSS"
12676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: nss3" >&5
12677 printf "%s\n" "nss3" >&6; }
12678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PK11_Decrypt in -lnss3" >&5
12679 printf %s "checking for PK11_Decrypt in -lnss3... " >&6; }
12680 if test ${ac_cv_lib_nss3_PK11_Decrypt+y}
12681 then :
12682 printf %s "(cached) " >&6
12683 else $as_nop
12684 ac_check_lib_save_LIBS=$LIBS
12685 LIBS="-lnss3 $LIBS"
12686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12687 /* end confdefs.h. */
12689 /* Override any GCC internal prototype to avoid an error.
12690 Use char because int might match the return type of a GCC
12691 builtin and then its argument prototype would still apply. */
12692 char PK11_Decrypt ();
12694 main (void)
12696 return PK11_Decrypt ();
12698 return 0;
12700 _ACEOF
12701 if ac_fn_c_try_link "$LINENO"
12702 then :
12703 ac_cv_lib_nss3_PK11_Decrypt=yes
12704 else $as_nop
12705 ac_cv_lib_nss3_PK11_Decrypt=no
12707 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12708 conftest$ac_exeext conftest.$ac_ext
12709 LIBS=$ac_check_lib_save_LIBS
12711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_Decrypt" >&5
12712 printf "%s\n" "$ac_cv_lib_nss3_PK11_Decrypt" >&6; }
12713 if test "x$ac_cv_lib_nss3_PK11_Decrypt" = xyes
12714 then :
12715 printf "%s\n" "#define HAVE_LIBNSS3 1" >>confdefs.h
12717 LIBS="-lnss3 $LIBS"
12719 else $as_nop
12720 as_fn_error $? "Library crypto not found. Install nss!\"" "$LINENO" 5
12723 else
12724 CFLAGS="$CFLAGS -DSQLCIPHER_CRYPTO_OPENSSL"
12725 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_OPENSSL"
12726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: openssl" >&5
12727 printf "%s\n" "openssl" >&6; }
12728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
12729 printf %s "checking for HMAC_Init_ex in -lcrypto... " >&6; }
12730 if test ${ac_cv_lib_crypto_HMAC_Init_ex+y}
12731 then :
12732 printf %s "(cached) " >&6
12733 else $as_nop
12734 ac_check_lib_save_LIBS=$LIBS
12735 LIBS="-lcrypto $LIBS"
12736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12737 /* end confdefs.h. */
12739 /* Override any GCC internal prototype to avoid an error.
12740 Use char because int might match the return type of a GCC
12741 builtin and then its argument prototype would still apply. */
12742 char HMAC_Init_ex ();
12744 main (void)
12746 return HMAC_Init_ex ();
12748 return 0;
12750 _ACEOF
12751 if ac_fn_c_try_link "$LINENO"
12752 then :
12753 ac_cv_lib_crypto_HMAC_Init_ex=yes
12754 else $as_nop
12755 ac_cv_lib_crypto_HMAC_Init_ex=no
12757 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12758 conftest$ac_exeext conftest.$ac_ext
12759 LIBS=$ac_check_lib_save_LIBS
12761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
12762 printf "%s\n" "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
12763 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes
12764 then :
12765 printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12767 LIBS="-lcrypto $LIBS"
12769 else $as_nop
12770 as_fn_error $? "Library crypto not found. Install openssl!\"" "$LINENO" 5
12778 ##########
12779 # Do we want to allow a connection created in one thread to be used
12780 # in another thread. This does not work on many Linux systems (ex: RedHat 9)
12781 # due to bugs in the threading implementations. This is thus off by default.
12783 # Check whether --enable-cross-thread-connections was given.
12784 if test ${enable_cross_thread_connections+y}
12785 then :
12786 enableval=$enable_cross_thread_connections;
12787 else $as_nop
12788 enable_xthreadconnect=no
12791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to allow connections to be shared across threads" >&5
12792 printf %s "checking whether to allow connections to be shared across threads... " >&6; }
12793 if test "$enable_xthreadconnect" = "no"; then
12794 XTHREADCONNECT=''
12795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796 printf "%s\n" "no" >&6; }
12797 else
12798 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
12799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12800 printf "%s\n" "yes" >&6; }
12804 ##########
12805 # Do we want to support release
12807 # Check whether --enable-releasemode was given.
12808 if test ${enable_releasemode+y}
12809 then :
12810 enableval=$enable_releasemode;
12811 else $as_nop
12812 enable_releasemode=no
12815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
12816 printf %s "checking whether to support shared library linked as release mode or not... " >&6; }
12817 if test "$enable_releasemode" = "no"; then
12818 ALLOWRELEASE=""
12819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12820 printf "%s\n" "no" >&6; }
12821 else
12822 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
12823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12824 printf "%s\n" "yes" >&6; }
12828 ##########
12829 # Do we want temporary databases in memory
12831 # Check whether --enable-tempstore was given.
12832 if test ${enable_tempstore+y}
12833 then :
12834 enableval=$enable_tempstore;
12835 else $as_nop
12836 enable_tempstore=no
12839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
12840 printf %s "checking whether to use an in-ram database for temporary tables... " >&6; }
12841 case "$enable_tempstore" in
12842 never )
12843 TEMP_STORE=0
12844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: never" >&5
12845 printf "%s\n" "never" >&6; }
12847 no )
12848 TEMP_STORE=1
12849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850 printf "%s\n" "no" >&6; }
12852 yes )
12853 TEMP_STORE=2
12854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12855 printf "%s\n" "yes" >&6; }
12857 always )
12858 TEMP_STORE=3
12859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: always" >&5
12860 printf "%s\n" "always" >&6; }
12863 TEMP_STORE=1
12864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12865 printf "%s\n" "no" >&6; }
12867 esac
12871 ###########
12872 # Lots of things are different if we are compiling for Windows using
12873 # the CYGWIN environment. So check for that special case and handle
12874 # things accordingly.
12876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
12877 printf %s "checking if executables have the .exe suffix... " >&6; }
12878 if test "$config_BUILD_EXEEXT" = ".exe"; then
12879 CYGWIN=yes
12880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12881 printf "%s\n" "yes" >&6; }
12882 else
12883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12884 printf "%s\n" "unknown" >&6; }
12886 if test "$CYGWIN" != "yes"; then
12888 case $host_os in
12889 *cygwin* ) CYGWIN=yes;;
12890 * ) CYGWIN=no;;
12891 esac
12894 if test "$CYGWIN" = "yes"; then
12895 BUILD_EXEEXT=.exe
12896 else
12897 BUILD_EXEEXT=$EXEEXT
12899 if test x"$cross_compiling" = xno; then
12900 TARGET_EXEEXT=$BUILD_EXEEXT
12901 else
12902 TARGET_EXEEXT=$config_TARGET_EXEEXT
12904 if test "$TARGET_EXEEXT" = ".exe"; then
12905 SQLITE_OS_UNIX=0
12906 SQLITE_OS_WIN=1
12907 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
12908 else
12909 SQLITE_OS_UNIX=1
12910 SQLITE_OS_WIN=0
12911 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
12919 ##########
12920 # Figure out all the parameters needed to compile against Tcl.
12922 # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
12923 # macros in the in the tcl.m4 file of the standard TCL distribution.
12924 # Those macros could not be used directly since we have to make some
12925 # minor changes to accomodate systems that do not have TCL installed.
12927 # Check whether --enable-tcl was given.
12928 if test ${enable_tcl+y}
12929 then :
12930 enableval=$enable_tcl; use_tcl=$enableval
12931 else $as_nop
12932 use_tcl=yes
12935 if test "${use_tcl}" = "yes" ; then
12937 # Check whether --with-tcl was given.
12938 if test ${with_tcl+y}
12939 then :
12940 withval=$with_tcl; with_tclconfig=${withval}
12943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
12944 printf %s "checking for Tcl configuration... " >&6; }
12945 if test ${ac_cv_c_tclconfig+y}
12946 then :
12947 printf %s "(cached) " >&6
12948 else $as_nop
12950 # First check to see if --with-tcl was specified.
12951 if test x"${with_tclconfig}" != x ; then
12952 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12953 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
12954 else
12955 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
12959 # Start autosearch by asking tclsh
12960 if test x"${ac_cv_c_tclconfig}" = x ; then
12961 if test x"$cross_compiling" = xno; then
12962 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
12964 if test -f "$i/tclConfig.sh" ; then
12965 ac_cv_c_tclconfig="$i"
12966 break
12968 done
12972 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
12973 # So try again after applying corrections.
12974 if test x"${ac_cv_c_tclconfig}" = x ; then
12975 if test x"$cross_compiling" = xno; then
12976 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
12978 if test -f "$i/tclConfig.sh" ; then
12979 ac_cv_c_tclconfig="$i"
12980 break
12982 done
12986 # Recent versions of Xcode on Macs hid the tclConfig.sh file
12987 # in a strange place.
12988 if test x"${ac_cv_c_tclconfig}" = x ; then
12989 if test x"$cross_compiling" = xno; then
12990 for i in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.sdk/usr/lib
12992 if test -f "$i/tclConfig.sh" ; then
12993 ac_cv_c_tclconfig="$i"
12994 break
12996 done
13000 # then check for a private Tcl installation
13001 if test x"${ac_cv_c_tclconfig}" = x ; then
13002 for i in \
13003 ../tcl \
13004 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13005 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
13006 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
13007 ../../tcl \
13008 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13009 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
13010 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
13011 ../../../tcl \
13012 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13013 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
13014 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
13016 if test -f "$i/unix/tclConfig.sh" ; then
13017 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
13018 break
13020 done
13023 # check in a few common install locations
13024 if test x"${ac_cv_c_tclconfig}" = x ; then
13025 for i in \
13026 `ls -d ${libdir} 2>/dev/null` \
13027 `ls -d /usr/local/lib 2>/dev/null` \
13028 `ls -d /usr/contrib/lib 2>/dev/null` \
13029 `ls -d /usr/lib 2>/dev/null`
13031 if test -f "$i/tclConfig.sh" ; then
13032 ac_cv_c_tclconfig=`(cd $i; pwd)`
13033 break
13035 done
13038 # check in a few other private locations
13039 if test x"${ac_cv_c_tclconfig}" = x ; then
13040 for i in \
13041 ${srcdir}/../tcl \
13042 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13043 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
13044 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
13046 if test -f "$i/unix/tclConfig.sh" ; then
13047 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
13048 break
13050 done
13056 if test x"${ac_cv_c_tclconfig}" = x ; then
13057 use_tcl=no
13058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
13059 printf "%s\n" "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
13060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
13061 printf "%s\n" "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
13062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
13063 printf "%s\n" "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
13064 else
13065 TCL_BIN_DIR=${ac_cv_c_tclconfig}
13066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
13067 printf "%s\n" "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
13069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
13070 printf %s "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
13071 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
13072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: loading" >&5
13073 printf "%s\n" "loading" >&6; }
13074 . $TCL_BIN_DIR/tclConfig.sh
13075 else
13076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
13077 printf "%s\n" "file not found" >&6; }
13081 # If the TCL_BIN_DIR is the build directory (not the install directory),
13082 # then set the common variable name to the value of the build variables.
13083 # For example, the variable TCL_LIB_SPEC will be set to the value
13084 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
13085 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
13086 # installed and uninstalled version of Tcl.
13089 if test -f $TCL_BIN_DIR/Makefile ; then
13090 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
13091 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
13092 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
13096 # eval is required to do the TCL_DBGX substitution
13099 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
13100 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
13101 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
13103 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
13104 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
13105 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
13122 if test "${use_tcl}" = "no" ; then
13123 HAVE_TCL=""
13124 else
13125 HAVE_TCL=1
13129 ##########
13130 # Figure out what C libraries are required to compile programs
13131 # that use "readline()" library.
13133 TARGET_READLINE_LIBS=""
13134 TARGET_READLINE_INC=""
13135 TARGET_HAVE_READLINE=0
13136 TARGET_HAVE_EDITLINE=0
13137 # Check whether --enable-editline was given.
13138 if test ${enable_editline+y}
13139 then :
13140 enableval=$enable_editline; with_editline=$enableval
13141 else $as_nop
13142 with_editline=auto
13145 # Check whether --enable-readline was given.
13146 if test ${enable_readline+y}
13147 then :
13148 enableval=$enable_readline; with_readline=$enableval
13149 else $as_nop
13150 with_readline=auto
13154 if test x"$with_editline" != xno; then
13155 sLIBS=$LIBS
13156 LIBS=""
13157 TARGET_HAVE_EDITLINE=1
13158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
13159 printf %s "checking for library containing readline... " >&6; }
13160 if test ${ac_cv_search_readline+y}
13161 then :
13162 printf %s "(cached) " >&6
13163 else $as_nop
13164 ac_func_search_save_LIBS=$LIBS
13165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166 /* end confdefs.h. */
13168 /* Override any GCC internal prototype to avoid an error.
13169 Use char because int might match the return type of a GCC
13170 builtin and then its argument prototype would still apply. */
13171 char readline ();
13173 main (void)
13175 return readline ();
13177 return 0;
13179 _ACEOF
13180 for ac_lib in '' edit
13182 if test -z "$ac_lib"; then
13183 ac_res="none required"
13184 else
13185 ac_res=-l$ac_lib
13186 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13188 if ac_fn_c_try_link "$LINENO"
13189 then :
13190 ac_cv_search_readline=$ac_res
13192 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13193 conftest$ac_exeext
13194 if test ${ac_cv_search_readline+y}
13195 then :
13196 break
13198 done
13199 if test ${ac_cv_search_readline+y}
13200 then :
13202 else $as_nop
13203 ac_cv_search_readline=no
13205 rm conftest.$ac_ext
13206 LIBS=$ac_func_search_save_LIBS
13208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
13209 printf "%s\n" "$ac_cv_search_readline" >&6; }
13210 ac_res=$ac_cv_search_readline
13211 if test "$ac_res" != no
13212 then :
13213 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13214 with_readline=no
13215 else $as_nop
13216 TARGET_HAVE_EDITLINE=0
13219 TARGET_READLINE_LIBS=$LIBS
13220 LIBS=$sLIBS
13222 if test x"$with_readline" != xno; then
13223 found="yes"
13226 # Check whether --with-readline-lib was given.
13227 if test ${with_readline_lib+y}
13228 then :
13229 withval=$with_readline_lib; with_readline_lib=$withval
13230 else $as_nop
13231 with_readline_lib="auto"
13234 if test "x$with_readline_lib" = xauto; then
13235 save_LIBS="$LIBS"
13236 LIBS=""
13237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13238 printf %s "checking for library containing tgetent... " >&6; }
13239 if test ${ac_cv_search_tgetent+y}
13240 then :
13241 printf %s "(cached) " >&6
13242 else $as_nop
13243 ac_func_search_save_LIBS=$LIBS
13244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13245 /* end confdefs.h. */
13247 /* Override any GCC internal prototype to avoid an error.
13248 Use char because int might match the return type of a GCC
13249 builtin and then its argument prototype would still apply. */
13250 char tgetent ();
13252 main (void)
13254 return tgetent ();
13256 return 0;
13258 _ACEOF
13259 for ac_lib in '' readline ncurses curses termcap
13261 if test -z "$ac_lib"; then
13262 ac_res="none required"
13263 else
13264 ac_res=-l$ac_lib
13265 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13267 if ac_fn_c_try_link "$LINENO"
13268 then :
13269 ac_cv_search_tgetent=$ac_res
13271 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13272 conftest$ac_exeext
13273 if test ${ac_cv_search_tgetent+y}
13274 then :
13275 break
13277 done
13278 if test ${ac_cv_search_tgetent+y}
13279 then :
13281 else $as_nop
13282 ac_cv_search_tgetent=no
13284 rm conftest.$ac_ext
13285 LIBS=$ac_func_search_save_LIBS
13287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13288 printf "%s\n" "$ac_cv_search_tgetent" >&6; }
13289 ac_res=$ac_cv_search_tgetent
13290 if test "$ac_res" != no
13291 then :
13292 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13293 term_LIBS="$LIBS"
13294 else $as_nop
13295 term_LIBS=""
13298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13299 printf %s "checking for readline in -lreadline... " >&6; }
13300 if test ${ac_cv_lib_readline_readline+y}
13301 then :
13302 printf %s "(cached) " >&6
13303 else $as_nop
13304 ac_check_lib_save_LIBS=$LIBS
13305 LIBS="-lreadline $LIBS"
13306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13307 /* end confdefs.h. */
13309 /* Override any GCC internal prototype to avoid an error.
13310 Use char because int might match the return type of a GCC
13311 builtin and then its argument prototype would still apply. */
13312 char readline ();
13314 main (void)
13316 return readline ();
13318 return 0;
13320 _ACEOF
13321 if ac_fn_c_try_link "$LINENO"
13322 then :
13323 ac_cv_lib_readline_readline=yes
13324 else $as_nop
13325 ac_cv_lib_readline_readline=no
13327 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13328 conftest$ac_exeext conftest.$ac_ext
13329 LIBS=$ac_check_lib_save_LIBS
13331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
13332 printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
13333 if test "x$ac_cv_lib_readline_readline" = xyes
13334 then :
13335 TARGET_READLINE_LIBS="-lreadline"
13336 else $as_nop
13337 found="no"
13340 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
13341 LIBS="$save_LIBS"
13342 else
13343 TARGET_READLINE_LIBS="$with_readline_lib"
13347 # Check whether --with-readline-inc was given.
13348 if test ${with_readline_inc+y}
13349 then :
13350 withval=$with_readline_inc; with_readline_inc=$withval
13351 else $as_nop
13352 with_readline_inc="auto"
13355 if test "x$with_readline_inc" = xauto; then
13356 ac_fn_c_check_header_compile "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
13357 if test "x$ac_cv_header_readline_h" = xyes
13358 then :
13359 found="yes"
13360 else $as_nop
13362 found="no"
13363 if test "$cross_compiling" != yes; then
13364 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
13365 for subdir in include include/readline; do
13366 as_ac_File=`printf "%s\n" "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
13367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
13368 printf %s "checking for $dir/$subdir/readline.h... " >&6; }
13369 if eval test \${$as_ac_File+y}
13370 then :
13371 printf %s "(cached) " >&6
13372 else $as_nop
13373 test "$cross_compiling" = yes &&
13374 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
13375 if test -r "$dir/$subdir/readline.h"; then
13376 eval "$as_ac_File=yes"
13377 else
13378 eval "$as_ac_File=no"
13381 eval ac_res=\$$as_ac_File
13382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13383 printf "%s\n" "$ac_res" >&6; }
13384 if eval test \"x\$"$as_ac_File"\" = x"yes"
13385 then :
13386 found=yes
13389 if test "$found" = "yes"; then
13390 TARGET_READLINE_INC="-I$dir/$subdir"
13391 break
13393 done
13394 test "$found" = "yes" && break
13395 done
13400 else
13401 TARGET_READLINE_INC="$with_readline_inc"
13404 if test x"$found" = xno; then
13405 TARGET_READLINE_LIBS=""
13406 TARGET_READLINE_INC=""
13407 TARGET_HAVE_READLINE=0
13408 else
13409 TARGET_HAVE_READLINE=1
13413 # Check whether --with-linenoise was given.
13414 if test ${with_linenoise+y}
13415 then :
13416 withval=$with_linenoise; with_linenoise=$withval
13417 else $as_nop
13418 with_linenoise="no"
13421 if test "x$with_linenoise" != "xno"; then
13422 TARGET_HAVE_READLINE=0
13423 TARGET_HAVE_EDITLINE=0
13424 TARGET_HAVE_LINENOISE=1
13425 TARGET_READLINE_INC="-I${with_linenoise}"
13426 TARGET_READLINE_LIBS="${with_linenoise}/linenoise.c"
13427 echo "using linenoise source code at ${with_linenoise}"
13428 else
13429 TARGET_HAVE_LINENOISE=0
13430 echo "not using linenoise"
13440 ##########
13441 # Figure out what C libraries are required to compile programs
13442 # that use "fdatasync()" function.
13444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
13445 printf %s "checking for library containing fdatasync... " >&6; }
13446 if test ${ac_cv_search_fdatasync+y}
13447 then :
13448 printf %s "(cached) " >&6
13449 else $as_nop
13450 ac_func_search_save_LIBS=$LIBS
13451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13452 /* end confdefs.h. */
13454 /* Override any GCC internal prototype to avoid an error.
13455 Use char because int might match the return type of a GCC
13456 builtin and then its argument prototype would still apply. */
13457 char fdatasync ();
13459 main (void)
13461 return fdatasync ();
13463 return 0;
13465 _ACEOF
13466 for ac_lib in '' rt
13468 if test -z "$ac_lib"; then
13469 ac_res="none required"
13470 else
13471 ac_res=-l$ac_lib
13472 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13474 if ac_fn_c_try_link "$LINENO"
13475 then :
13476 ac_cv_search_fdatasync=$ac_res
13478 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13479 conftest$ac_exeext
13480 if test ${ac_cv_search_fdatasync+y}
13481 then :
13482 break
13484 done
13485 if test ${ac_cv_search_fdatasync+y}
13486 then :
13488 else $as_nop
13489 ac_cv_search_fdatasync=no
13491 rm conftest.$ac_ext
13492 LIBS=$ac_func_search_save_LIBS
13494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
13495 printf "%s\n" "$ac_cv_search_fdatasync" >&6; }
13496 ac_res=$ac_cv_search_fdatasync
13497 if test "$ac_res" != no
13498 then :
13499 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13504 #########
13505 # check for debug enabled
13506 # Check whether --enable-debug was given.
13507 if test ${enable_debug+y}
13508 then :
13509 enableval=$enable_debug;
13512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build type" >&5
13513 printf %s "checking build type... " >&6; }
13514 if test "${enable_debug}" = "yes" ; then
13515 TARGET_DEBUG="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0 -Wall"
13516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: debug" >&5
13517 printf "%s\n" "debug" >&6; }
13518 else
13519 TARGET_DEBUG="-DNDEBUG"
13520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: release" >&5
13521 printf "%s\n" "release" >&6; }
13525 #########
13526 # See whether we should use the amalgamation to build
13528 # Check whether --enable-amalgamation was given.
13529 if test ${enable_amalgamation+y}
13530 then :
13531 enableval=$enable_amalgamation;
13534 if test "${enable_amalgamation}" = "no" ; then
13535 USE_AMALGAMATION=0
13539 #########
13540 # By default, amalgamation sqlite3.c will have #line directives.
13541 # This is a build option not shown by ./configure --help
13542 # To control it, use configure option: amalgamation_line_macros=?
13543 # where ? is no to suppress #line directives or yes to create them.
13544 AMALGAMATION_LINE_MACROS=--linemacros=1
13547 if test "${amalgamation_line_macros+set}" = set; then :
13548 enableval=$amalgamation_line_macros;
13550 if test "${amalgamation_line_macros}" = "yes" ; then
13551 AMALGAMATION_LINE_MACROS=--linemacros=1
13553 if test "${amalgamation_line_macros}" = "no" ; then
13554 AMALGAMATION_LINE_MACROS=--linemacros=0
13557 #########
13558 # Look for zlib. Only needed by extensions and by the sqlite3.exe shell
13559 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13560 if test "x$ac_cv_header_zlib_h" = xyes
13561 then :
13562 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
13566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
13567 printf %s "checking for library containing deflate... " >&6; }
13568 if test ${ac_cv_search_deflate+y}
13569 then :
13570 printf %s "(cached) " >&6
13571 else $as_nop
13572 ac_func_search_save_LIBS=$LIBS
13573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13574 /* end confdefs.h. */
13576 /* Override any GCC internal prototype to avoid an error.
13577 Use char because int might match the return type of a GCC
13578 builtin and then its argument prototype would still apply. */
13579 char deflate ();
13581 main (void)
13583 return deflate ();
13585 return 0;
13587 _ACEOF
13588 for ac_lib in '' z
13590 if test -z "$ac_lib"; then
13591 ac_res="none required"
13592 else
13593 ac_res=-l$ac_lib
13594 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13596 if ac_fn_c_try_link "$LINENO"
13597 then :
13598 ac_cv_search_deflate=$ac_res
13600 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13601 conftest$ac_exeext
13602 if test ${ac_cv_search_deflate+y}
13603 then :
13604 break
13606 done
13607 if test ${ac_cv_search_deflate+y}
13608 then :
13610 else $as_nop
13611 ac_cv_search_deflate=no
13613 rm conftest.$ac_ext
13614 LIBS=$ac_func_search_save_LIBS
13616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
13617 printf "%s\n" "$ac_cv_search_deflate" >&6; }
13618 ac_res=$ac_cv_search_deflate
13619 if test "$ac_res" != no
13620 then :
13621 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13622 HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1"
13623 else $as_nop
13624 HAVE_ZLIB=""
13629 #########
13630 # See whether we should allow loadable extensions
13631 # Check whether --enable-load-extension was given.
13632 if test ${enable_load_extension+y}
13633 then :
13634 enableval=$enable_load_extension;
13635 else $as_nop
13636 enable_load_extension=yes
13639 if test "${enable_load_extension}" = "yes" ; then
13640 OPT_FEATURE_FLAGS=""
13641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13642 printf %s "checking for library containing dlopen... " >&6; }
13643 if test ${ac_cv_search_dlopen+y}
13644 then :
13645 printf %s "(cached) " >&6
13646 else $as_nop
13647 ac_func_search_save_LIBS=$LIBS
13648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13649 /* end confdefs.h. */
13651 /* Override any GCC internal prototype to avoid an error.
13652 Use char because int might match the return type of a GCC
13653 builtin and then its argument prototype would still apply. */
13654 char dlopen ();
13656 main (void)
13658 return dlopen ();
13660 return 0;
13662 _ACEOF
13663 for ac_lib in '' dl
13665 if test -z "$ac_lib"; then
13666 ac_res="none required"
13667 else
13668 ac_res=-l$ac_lib
13669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13671 if ac_fn_c_try_link "$LINENO"
13672 then :
13673 ac_cv_search_dlopen=$ac_res
13675 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13676 conftest$ac_exeext
13677 if test ${ac_cv_search_dlopen+y}
13678 then :
13679 break
13681 done
13682 if test ${ac_cv_search_dlopen+y}
13683 then :
13685 else $as_nop
13686 ac_cv_search_dlopen=no
13688 rm conftest.$ac_ext
13689 LIBS=$ac_func_search_save_LIBS
13691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13692 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
13693 ac_res=$ac_cv_search_dlopen
13694 if test "$ac_res" != no
13695 then :
13696 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13700 else
13701 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
13704 ##########
13705 # Do we want to support math functions
13707 # Check whether --enable-math was given.
13708 if test ${enable_math+y}
13709 then :
13710 enableval=$enable_math;
13713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support math functions" >&5
13714 printf %s "checking whether to support math functions... " >&6; }
13715 if test "$enable_math" = "no"; then
13716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13717 printf "%s\n" "no" >&6; }
13718 else
13719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13720 printf "%s\n" "yes" >&6; }
13721 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MATH_FUNCTIONS"
13722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5
13723 printf %s "checking for library containing ceil... " >&6; }
13724 if test ${ac_cv_search_ceil+y}
13725 then :
13726 printf %s "(cached) " >&6
13727 else $as_nop
13728 ac_func_search_save_LIBS=$LIBS
13729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13730 /* end confdefs.h. */
13732 /* Override any GCC internal prototype to avoid an error.
13733 Use char because int might match the return type of a GCC
13734 builtin and then its argument prototype would still apply. */
13735 char ceil ();
13737 main (void)
13739 return ceil ();
13741 return 0;
13743 _ACEOF
13744 for ac_lib in '' m
13746 if test -z "$ac_lib"; then
13747 ac_res="none required"
13748 else
13749 ac_res=-l$ac_lib
13750 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13752 if ac_fn_c_try_link "$LINENO"
13753 then :
13754 ac_cv_search_ceil=$ac_res
13756 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13757 conftest$ac_exeext
13758 if test ${ac_cv_search_ceil+y}
13759 then :
13760 break
13762 done
13763 if test ${ac_cv_search_ceil+y}
13764 then :
13766 else $as_nop
13767 ac_cv_search_ceil=no
13769 rm conftest.$ac_ext
13770 LIBS=$ac_func_search_save_LIBS
13772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5
13773 printf "%s\n" "$ac_cv_search_ceil" >&6; }
13774 ac_res=$ac_cv_search_ceil
13775 if test "$ac_res" != no
13776 then :
13777 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13783 ##########
13784 # Do we want to support JSON functions
13786 # Check whether --enable-json was given.
13787 if test ${enable_json+y}
13788 then :
13789 enableval=$enable_json;
13792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support JSON functions" >&5
13793 printf %s "checking whether to support JSON functions... " >&6; }
13794 if test "$enable_json" = "no"; then
13795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13796 printf "%s\n" "no" >&6; }
13797 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_OMIT_JSON"
13798 else
13799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13800 printf "%s\n" "yes" >&6; }
13803 ########
13804 # The --enable-all argument is short-hand to enable
13805 # multiple extensions.
13806 # Check whether --enable-all was given.
13807 if test ${enable_all+y}
13808 then :
13809 enableval=$enable_all;
13813 ##########
13814 # Do we want to support memsys3 and/or memsys5
13816 # Check whether --enable-memsys5 was given.
13817 if test ${enable_memsys5+y}
13818 then :
13819 enableval=$enable_memsys5;
13822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5
13823 printf %s "checking whether to support MEMSYS5... " >&6; }
13824 if test "${enable_memsys5}" = "yes"; then
13825 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5"
13826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13827 printf "%s\n" "yes" >&6; }
13828 else
13829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13830 printf "%s\n" "no" >&6; }
13832 # Check whether --enable-memsys3 was given.
13833 if test ${enable_memsys3+y}
13834 then :
13835 enableval=$enable_memsys3;
13838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5
13839 printf %s "checking whether to support MEMSYS3... " >&6; }
13840 if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then
13841 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3"
13842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13843 printf "%s\n" "yes" >&6; }
13844 else
13845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13846 printf "%s\n" "no" >&6; }
13849 #########
13850 # See whether we should enable Full Text Search extensions
13851 # Check whether --enable-fts3 was given.
13852 if test ${enable_fts3+y}
13853 then :
13854 enableval=$enable_fts3;
13857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support FTS3" >&5
13858 printf %s "checking whether to support FTS3... " >&6; }
13859 if test "${enable_fts3}" = "yes" ; then
13860 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3"
13861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13862 printf "%s\n" "yes" >&6; }
13863 else
13864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13865 printf "%s\n" "no" >&6; }
13867 # Check whether --enable-fts4 was given.
13868 if test ${enable_fts4+y}
13869 then :
13870 enableval=$enable_fts4;
13873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support FTS4" >&5
13874 printf %s "checking whether to support FTS4... " >&6; }
13875 if test "${enable_fts4}" = "yes" -o "${enable_all}" = "yes" ; then
13876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13877 printf "%s\n" "yes" >&6; }
13878 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4"
13879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
13880 printf %s "checking for library containing log... " >&6; }
13881 if test ${ac_cv_search_log+y}
13882 then :
13883 printf %s "(cached) " >&6
13884 else $as_nop
13885 ac_func_search_save_LIBS=$LIBS
13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887 /* end confdefs.h. */
13889 /* Override any GCC internal prototype to avoid an error.
13890 Use char because int might match the return type of a GCC
13891 builtin and then its argument prototype would still apply. */
13892 char log ();
13894 main (void)
13896 return log ();
13898 return 0;
13900 _ACEOF
13901 for ac_lib in '' m
13903 if test -z "$ac_lib"; then
13904 ac_res="none required"
13905 else
13906 ac_res=-l$ac_lib
13907 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13909 if ac_fn_c_try_link "$LINENO"
13910 then :
13911 ac_cv_search_log=$ac_res
13913 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13914 conftest$ac_exeext
13915 if test ${ac_cv_search_log+y}
13916 then :
13917 break
13919 done
13920 if test ${ac_cv_search_log+y}
13921 then :
13923 else $as_nop
13924 ac_cv_search_log=no
13926 rm conftest.$ac_ext
13927 LIBS=$ac_func_search_save_LIBS
13929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
13930 printf "%s\n" "$ac_cv_search_log" >&6; }
13931 ac_res=$ac_cv_search_log
13932 if test "$ac_res" != no
13933 then :
13934 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13938 else
13939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13940 printf "%s\n" "no" >&6; }
13942 # Check whether --enable-fts5 was given.
13943 if test ${enable_fts5+y}
13944 then :
13945 enableval=$enable_fts5;
13948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support FTS5" >&5
13949 printf %s "checking whether to support FTS5... " >&6; }
13950 if test "${enable_fts5}" = "yes" -o "${enable_all}" = "yes" ; then
13951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13952 printf "%s\n" "yes" >&6; }
13953 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5"
13954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
13955 printf %s "checking for library containing log... " >&6; }
13956 if test ${ac_cv_search_log+y}
13957 then :
13958 printf %s "(cached) " >&6
13959 else $as_nop
13960 ac_func_search_save_LIBS=$LIBS
13961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13962 /* end confdefs.h. */
13964 /* Override any GCC internal prototype to avoid an error.
13965 Use char because int might match the return type of a GCC
13966 builtin and then its argument prototype would still apply. */
13967 char log ();
13969 main (void)
13971 return log ();
13973 return 0;
13975 _ACEOF
13976 for ac_lib in '' m
13978 if test -z "$ac_lib"; then
13979 ac_res="none required"
13980 else
13981 ac_res=-l$ac_lib
13982 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13984 if ac_fn_c_try_link "$LINENO"
13985 then :
13986 ac_cv_search_log=$ac_res
13988 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13989 conftest$ac_exeext
13990 if test ${ac_cv_search_log+y}
13991 then :
13992 break
13994 done
13995 if test ${ac_cv_search_log+y}
13996 then :
13998 else $as_nop
13999 ac_cv_search_log=no
14001 rm conftest.$ac_ext
14002 LIBS=$ac_func_search_save_LIBS
14004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
14005 printf "%s\n" "$ac_cv_search_log" >&6; }
14006 ac_res=$ac_cv_search_log
14007 if test "$ac_res" != no
14008 then :
14009 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14013 else
14014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14015 printf "%s\n" "no" >&6; }
14018 #########
14019 # See whether we should enable the LIMIT clause on UPDATE and DELETE
14020 # statements.
14021 # Check whether --enable-update-limit was given.
14022 if test ${enable_update_limit+y}
14023 then :
14024 enableval=$enable_update_limit;
14027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support LIMIT on UPDATE and DELETE statements" >&5
14028 printf %s "checking whether to support LIMIT on UPDATE and DELETE statements... " >&6; }
14029 if test "${enable_update_limit}" = "yes" ; then
14030 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT"
14031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14032 printf "%s\n" "yes" >&6; }
14033 else
14034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14035 printf "%s\n" "no" >&6; }
14038 #########
14039 # See whether we should enable GEOPOLY
14040 # Check whether --enable-geopoly was given.
14041 if test ${enable_geopoly+y}
14042 then :
14043 enableval=$enable_geopoly; enable_geopoly=yes
14044 else $as_nop
14045 enable_geopoly=no
14048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support GEOPOLY" >&5
14049 printf %s "checking whether to support GEOPOLY... " >&6; }
14050 if test "${enable_geopoly}" = "yes" -o "${enable_all}" = "yes" ; then
14051 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_GEOPOLY"
14052 enable_rtree=yes
14053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14054 printf "%s\n" "yes" >&6; }
14055 else
14056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14057 printf "%s\n" "no" >&6; }
14060 #########
14061 # See whether we should enable RTREE
14062 # Check whether --enable-rtree was given.
14063 if test ${enable_rtree+y}
14064 then :
14065 enableval=$enable_rtree;
14068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support RTREE" >&5
14069 printf %s "checking whether to support RTREE... " >&6; }
14070 if test "${enable_rtree}" = "yes" ; then
14071 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE"
14072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14073 printf "%s\n" "yes" >&6; }
14074 else
14075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14076 printf "%s\n" "no" >&6; }
14079 #########
14080 # See whether we should enable the SESSION extension
14081 # Check whether --enable-session was given.
14082 if test ${enable_session+y}
14083 then :
14084 enableval=$enable_session;
14087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support SESSION" >&5
14088 printf %s "checking whether to support SESSION... " >&6; }
14089 if test "${enable_session}" = "yes" -o "${enable_all}" = "yes" ; then
14090 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION"
14091 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK"
14092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14093 printf "%s\n" "yes" >&6; }
14094 else
14095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14096 printf "%s\n" "no" >&6; }
14099 #########
14100 # attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter
14101 for option in $CFLAGS $CPPFLAGS
14103 case $option in
14104 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
14105 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
14106 esac
14107 done
14111 # attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
14112 ac_temp_CFLAGS=""
14113 for option in $CFLAGS
14115 case $option in
14116 -DSQLITE_OMIT*) ;;
14117 -DSQLITE_ENABLE*) ;;
14118 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
14119 esac
14120 done
14121 CFLAGS=$ac_temp_CFLAGS
14124 # attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
14125 ac_temp_CPPFLAGS=""
14126 for option in $CPPFLAGS
14128 case $option in
14129 -DSQLITE_OMIT*) ;;
14130 -DSQLITE_ENABLE*) ;;
14131 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
14132 esac
14133 done
14134 CPPFLAGS=$ac_temp_CPPFLAGS
14137 # attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
14138 ac_temp_BUILD_CFLAGS=""
14139 for option in $BUILD_CFLAGS
14141 case $option in
14142 -DSQLITE_OMIT*) ;;
14143 -DSQLITE_ENABLE*) ;;
14144 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
14145 esac
14146 done
14147 BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
14150 #########
14151 # See whether we should use GCOV
14152 # Check whether --enable-gcov was given.
14153 if test ${enable_gcov+y}
14154 then :
14155 enableval=$enable_gcov;
14158 if test "${use_gcov}" = "yes" ; then
14159 USE_GCOV=1
14160 else
14161 USE_GCOV=0
14165 #########
14166 # Enable/disabled amalagamation line macros
14167 ########
14168 AMALGAMATION_LINE_MACROS=--linemacros=0
14169 if test "${amalgamation_line_macros}" = "yes" ; then
14170 AMALGAMATION_LINE_MACROS=--linemacros=1
14172 if test "${amalgamation_line_macros}" = "no" ; then
14173 AMALGAMATION_LINE_MACROS=--linemacros=0
14177 #########
14178 # Output the config header
14179 ac_config_headers="$ac_config_headers sqlite_cfg.h"
14182 #########
14183 # Generate the output files.
14186 ac_config_files="$ac_config_files Makefile sqlcipher.pc"
14188 cat >confcache <<\_ACEOF
14189 # This file is a shell script that caches the results of configure
14190 # tests run on this system so they can be shared between configure
14191 # scripts and configure runs, see configure's option --config-cache.
14192 # It is not useful on other systems. If it contains results you don't
14193 # want to keep, you may remove or edit it.
14195 # config.status only pays attention to the cache file if you give it
14196 # the --recheck option to rerun configure.
14198 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14199 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14200 # following values.
14202 _ACEOF
14204 # The following way of writing the cache mishandles newlines in values,
14205 # but we know of no workaround that is simple, portable, and efficient.
14206 # So, we kill variables containing newlines.
14207 # Ultrix sh set writes to stderr and can't be redirected directly,
14208 # and sets the high bit in the cache file unless we assign to the vars.
14210 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14211 eval ac_val=\$$ac_var
14212 case $ac_val in #(
14213 *${as_nl}*)
14214 case $ac_var in #(
14215 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14216 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14217 esac
14218 case $ac_var in #(
14219 _ | IFS | as_nl) ;; #(
14220 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14221 *) { eval $ac_var=; unset $ac_var;} ;;
14222 esac ;;
14223 esac
14224 done
14226 (set) 2>&1 |
14227 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14228 *${as_nl}ac_space=\ *)
14229 # `set' does not quote correctly, so add quotes: double-quote
14230 # substitution turns \\\\ into \\, and sed turns \\ into \.
14231 sed -n \
14232 "s/'/'\\\\''/g;
14233 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14234 ;; #(
14236 # `set' quotes correctly as required by POSIX, so do not add quotes.
14237 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14239 esac |
14240 sort
14242 sed '
14243 /^ac_cv_env_/b end
14244 t clear
14245 :clear
14246 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14247 t end
14248 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14249 :end' >>confcache
14250 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14251 if test -w "$cache_file"; then
14252 if test "x$cache_file" != "x/dev/null"; then
14253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14254 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14255 if test ! -f "$cache_file" || test -h "$cache_file"; then
14256 cat confcache >"$cache_file"
14257 else
14258 case $cache_file in #(
14259 */* | ?:*)
14260 mv -f confcache "$cache_file"$$ &&
14261 mv -f "$cache_file"$$ "$cache_file" ;; #(
14263 mv -f confcache "$cache_file" ;;
14264 esac
14267 else
14268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14269 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14272 rm -f confcache
14274 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14275 # Let make expand exec_prefix.
14276 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14278 DEFS=-DHAVE_CONFIG_H
14280 ac_libobjs=
14281 ac_ltlibobjs=
14283 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14284 # 1. Remove the extension, and $U if already installed.
14285 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14286 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
14287 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14288 # will be set to the directory where LIBOBJS objects are built.
14289 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14290 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14291 done
14292 LIBOBJS=$ac_libobjs
14294 LTLIBOBJS=$ac_ltlibobjs
14298 : "${CONFIG_STATUS=./config.status}"
14299 ac_write_fail=0
14300 ac_clean_files_save=$ac_clean_files
14301 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14303 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
14304 as_write_fail=0
14305 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14306 #! $SHELL
14307 # Generated by $as_me.
14308 # Run this file to recreate the current configuration.
14309 # Compiler output produced by configure, useful for debugging
14310 # configure, is in config.log if it exists.
14312 debug=false
14313 ac_cs_recheck=false
14314 ac_cs_silent=false
14316 SHELL=\${CONFIG_SHELL-$SHELL}
14317 export SHELL
14318 _ASEOF
14319 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14320 ## -------------------- ##
14321 ## M4sh Initialization. ##
14322 ## -------------------- ##
14324 # Be more Bourne compatible
14325 DUALCASE=1; export DUALCASE # for MKS sh
14326 as_nop=:
14327 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
14328 then :
14329 emulate sh
14330 NULLCMD=:
14331 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14332 # is contrary to our usage. Disable this feature.
14333 alias -g '${1+"$@"}'='"$@"'
14334 setopt NO_GLOB_SUBST
14335 else $as_nop
14336 case `(set -o) 2>/dev/null` in #(
14337 *posix*) :
14338 set -o posix ;; #(
14339 *) :
14341 esac
14346 # Reset variables that may have inherited troublesome values from
14347 # the environment.
14349 # IFS needs to be set, to space, tab, and newline, in precisely that order.
14350 # (If _AS_PATH_WALK were called with IFS unset, it would have the
14351 # side effect of setting IFS to empty, thus disabling word splitting.)
14352 # Quoting is to prevent editors from complaining about space-tab.
14353 as_nl='
14355 export as_nl
14356 IFS=" "" $as_nl"
14358 PS1='$ '
14359 PS2='> '
14360 PS4='+ '
14362 # Ensure predictable behavior from utilities with locale-dependent output.
14363 LC_ALL=C
14364 export LC_ALL
14365 LANGUAGE=C
14366 export LANGUAGE
14368 # We cannot yet rely on "unset" to work, but we need these variables
14369 # to be unset--not just set to an empty or harmless value--now, to
14370 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
14371 # also avoids known problems related to "unset" and subshell syntax
14372 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
14373 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
14374 do eval test \${$as_var+y} \
14375 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14376 done
14378 # Ensure that fds 0, 1, and 2 are open.
14379 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
14380 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
14381 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
14383 # The user is always right.
14384 if ${PATH_SEPARATOR+false} :; then
14385 PATH_SEPARATOR=:
14386 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14387 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14388 PATH_SEPARATOR=';'
14393 # Find who we are. Look in the path if we contain no directory separator.
14394 as_myself=
14395 case $0 in #((
14396 *[\\/]* ) as_myself=$0 ;;
14397 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14398 for as_dir in $PATH
14400 IFS=$as_save_IFS
14401 case $as_dir in #(((
14402 '') as_dir=./ ;;
14403 */) ;;
14404 *) as_dir=$as_dir/ ;;
14405 esac
14406 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
14407 done
14408 IFS=$as_save_IFS
14411 esac
14412 # We did not find ourselves, most probably we were run as `sh COMMAND'
14413 # in which case we are not to be found in the path.
14414 if test "x$as_myself" = x; then
14415 as_myself=$0
14417 if test ! -f "$as_myself"; then
14418 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14419 exit 1
14424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14425 # ----------------------------------------
14426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14428 # script with STATUS, using 1 if that was 0.
14429 as_fn_error ()
14431 as_status=$1; test $as_status -eq 0 && as_status=1
14432 if test "$4"; then
14433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14436 printf "%s\n" "$as_me: error: $2" >&2
14437 as_fn_exit $as_status
14438 } # as_fn_error
14442 # as_fn_set_status STATUS
14443 # -----------------------
14444 # Set $? to STATUS, without forking.
14445 as_fn_set_status ()
14447 return $1
14448 } # as_fn_set_status
14450 # as_fn_exit STATUS
14451 # -----------------
14452 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14453 as_fn_exit ()
14455 set +e
14456 as_fn_set_status $1
14457 exit $1
14458 } # as_fn_exit
14460 # as_fn_unset VAR
14461 # ---------------
14462 # Portably unset VAR.
14463 as_fn_unset ()
14465 { eval $1=; unset $1;}
14467 as_unset=as_fn_unset
14469 # as_fn_append VAR VALUE
14470 # ----------------------
14471 # Append the text in VALUE to the end of the definition contained in VAR. Take
14472 # advantage of any shell optimizations that allow amortized linear growth over
14473 # repeated appends, instead of the typical quadratic growth present in naive
14474 # implementations.
14475 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
14476 then :
14477 eval 'as_fn_append ()
14479 eval $1+=\$2
14481 else $as_nop
14482 as_fn_append ()
14484 eval $1=\$$1\$2
14486 fi # as_fn_append
14488 # as_fn_arith ARG...
14489 # ------------------
14490 # Perform arithmetic evaluation on the ARGs, and store the result in the
14491 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14492 # must be portable across $(()) and expr.
14493 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
14494 then :
14495 eval 'as_fn_arith ()
14497 as_val=$(( $* ))
14499 else $as_nop
14500 as_fn_arith ()
14502 as_val=`expr "$@" || test $? -eq 1`
14504 fi # as_fn_arith
14507 if expr a : '\(a\)' >/dev/null 2>&1 &&
14508 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14509 as_expr=expr
14510 else
14511 as_expr=false
14514 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14515 as_basename=basename
14516 else
14517 as_basename=false
14520 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14521 as_dirname=dirname
14522 else
14523 as_dirname=false
14526 as_me=`$as_basename -- "$0" ||
14527 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14528 X"$0" : 'X\(//\)$' \| \
14529 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14530 printf "%s\n" X/"$0" |
14531 sed '/^.*\/\([^/][^/]*\)\/*$/{
14532 s//\1/
14535 /^X\/\(\/\/\)$/{
14536 s//\1/
14539 /^X\/\(\/\).*/{
14540 s//\1/
14543 s/.*/./; q'`
14545 # Avoid depending upon Character Ranges.
14546 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14547 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14548 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14549 as_cr_digits='0123456789'
14550 as_cr_alnum=$as_cr_Letters$as_cr_digits
14553 # Determine whether it's possible to make 'echo' print without a newline.
14554 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
14555 # for compatibility with existing Makefiles.
14556 ECHO_C= ECHO_N= ECHO_T=
14557 case `echo -n x` in #(((((
14558 -n*)
14559 case `echo 'xy\c'` in
14560 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14561 xy) ECHO_C='\c';;
14562 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14563 ECHO_T=' ';;
14564 esac;;
14566 ECHO_N='-n';;
14567 esac
14569 # For backward compatibility with old third-party macros, we provide
14570 # the shell variables $as_echo and $as_echo_n. New code should use
14571 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
14572 as_echo='printf %s\n'
14573 as_echo_n='printf %s'
14575 rm -f conf$$ conf$$.exe conf$$.file
14576 if test -d conf$$.dir; then
14577 rm -f conf$$.dir/conf$$.file
14578 else
14579 rm -f conf$$.dir
14580 mkdir conf$$.dir 2>/dev/null
14582 if (echo >conf$$.file) 2>/dev/null; then
14583 if ln -s conf$$.file conf$$ 2>/dev/null; then
14584 as_ln_s='ln -s'
14585 # ... but there are two gotchas:
14586 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14587 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14588 # In both cases, we have to default to `cp -pR'.
14589 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14590 as_ln_s='cp -pR'
14591 elif ln conf$$.file conf$$ 2>/dev/null; then
14592 as_ln_s=ln
14593 else
14594 as_ln_s='cp -pR'
14596 else
14597 as_ln_s='cp -pR'
14599 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14600 rmdir conf$$.dir 2>/dev/null
14603 # as_fn_mkdir_p
14604 # -------------
14605 # Create "$as_dir" as a directory, including parents if necessary.
14606 as_fn_mkdir_p ()
14609 case $as_dir in #(
14610 -*) as_dir=./$as_dir;;
14611 esac
14612 test -d "$as_dir" || eval $as_mkdir_p || {
14613 as_dirs=
14614 while :; do
14615 case $as_dir in #(
14616 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14617 *) as_qdir=$as_dir;;
14618 esac
14619 as_dirs="'$as_qdir' $as_dirs"
14620 as_dir=`$as_dirname -- "$as_dir" ||
14621 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14622 X"$as_dir" : 'X\(//\)[^/]' \| \
14623 X"$as_dir" : 'X\(//\)$' \| \
14624 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14625 printf "%s\n" X"$as_dir" |
14626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14627 s//\1/
14630 /^X\(\/\/\)[^/].*/{
14631 s//\1/
14634 /^X\(\/\/\)$/{
14635 s//\1/
14638 /^X\(\/\).*/{
14639 s//\1/
14642 s/.*/./; q'`
14643 test -d "$as_dir" && break
14644 done
14645 test -z "$as_dirs" || eval "mkdir $as_dirs"
14646 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14649 } # as_fn_mkdir_p
14650 if mkdir -p . 2>/dev/null; then
14651 as_mkdir_p='mkdir -p "$as_dir"'
14652 else
14653 test -d ./-p && rmdir ./-p
14654 as_mkdir_p=false
14658 # as_fn_executable_p FILE
14659 # -----------------------
14660 # Test if FILE is an executable regular file.
14661 as_fn_executable_p ()
14663 test -f "$1" && test -x "$1"
14664 } # as_fn_executable_p
14665 as_test_x='test -x'
14666 as_executable_p=as_fn_executable_p
14668 # Sed expression to map a string onto a valid CPP name.
14669 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14671 # Sed expression to map a string onto a valid variable name.
14672 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14675 exec 6>&1
14676 ## ----------------------------------- ##
14677 ## Main body of $CONFIG_STATUS script. ##
14678 ## ----------------------------------- ##
14679 _ASEOF
14680 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14683 # Save the log message, to keep $0 and so on meaningful, and to
14684 # report actual input values of CONFIG_FILES etc. instead of their
14685 # values after options handling.
14686 ac_log="
14687 This file was extended by sqlcipher $as_me 3.45.3, which was
14688 generated by GNU Autoconf 2.71. Invocation command line was
14690 CONFIG_FILES = $CONFIG_FILES
14691 CONFIG_HEADERS = $CONFIG_HEADERS
14692 CONFIG_LINKS = $CONFIG_LINKS
14693 CONFIG_COMMANDS = $CONFIG_COMMANDS
14694 $ $0 $@
14696 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14699 _ACEOF
14701 case $ac_config_files in *"
14702 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14703 esac
14705 case $ac_config_headers in *"
14706 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14707 esac
14710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14711 # Files that config.status was made for.
14712 config_files="$ac_config_files"
14713 config_headers="$ac_config_headers"
14714 config_commands="$ac_config_commands"
14716 _ACEOF
14718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14719 ac_cs_usage="\
14720 \`$as_me' instantiates files and other configuration actions
14721 from templates according to the current configuration. Unless the files
14722 and actions are specified as TAGs, all are instantiated by default.
14724 Usage: $0 [OPTION]... [TAG]...
14726 -h, --help print this help, then exit
14727 -V, --version print version number and configuration settings, then exit
14728 --config print configuration, then exit
14729 -q, --quiet, --silent
14730 do not print progress messages
14731 -d, --debug don't remove temporary files
14732 --recheck update $as_me by reconfiguring in the same conditions
14733 --file=FILE[:TEMPLATE]
14734 instantiate the configuration file FILE
14735 --header=FILE[:TEMPLATE]
14736 instantiate the configuration header FILE
14738 Configuration files:
14739 $config_files
14741 Configuration headers:
14742 $config_headers
14744 Configuration commands:
14745 $config_commands
14747 Report bugs to the package provider."
14749 _ACEOF
14750 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
14751 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
14752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14753 ac_cs_config='$ac_cs_config_escaped'
14754 ac_cs_version="\\
14755 sqlcipher config.status 3.45.3
14756 configured by $0, generated by GNU Autoconf 2.71,
14757 with options \\"\$ac_cs_config\\"
14759 Copyright (C) 2021 Free Software Foundation, Inc.
14760 This config.status script is free software; the Free Software Foundation
14761 gives unlimited permission to copy, distribute and modify it."
14763 ac_pwd='$ac_pwd'
14764 srcdir='$srcdir'
14765 INSTALL='$INSTALL'
14766 AWK='$AWK'
14767 test -n "\$AWK" || AWK=awk
14768 _ACEOF
14770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14771 # The default lists apply if the user does not specify any file.
14772 ac_need_defaults=:
14773 while test $# != 0
14775 case $1 in
14776 --*=?*)
14777 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14778 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14779 ac_shift=:
14781 --*=)
14782 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14783 ac_optarg=
14784 ac_shift=:
14787 ac_option=$1
14788 ac_optarg=$2
14789 ac_shift=shift
14791 esac
14793 case $ac_option in
14794 # Handling of the options.
14795 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14796 ac_cs_recheck=: ;;
14797 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14798 printf "%s\n" "$ac_cs_version"; exit ;;
14799 --config | --confi | --conf | --con | --co | --c )
14800 printf "%s\n" "$ac_cs_config"; exit ;;
14801 --debug | --debu | --deb | --de | --d | -d )
14802 debug=: ;;
14803 --file | --fil | --fi | --f )
14804 $ac_shift
14805 case $ac_optarg in
14806 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14807 '') as_fn_error $? "missing file argument" ;;
14808 esac
14809 as_fn_append CONFIG_FILES " '$ac_optarg'"
14810 ac_need_defaults=false;;
14811 --header | --heade | --head | --hea )
14812 $ac_shift
14813 case $ac_optarg in
14814 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14815 esac
14816 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14817 ac_need_defaults=false;;
14818 --he | --h)
14819 # Conflict between --help and --header
14820 as_fn_error $? "ambiguous option: \`$1'
14821 Try \`$0 --help' for more information.";;
14822 --help | --hel | -h )
14823 printf "%s\n" "$ac_cs_usage"; exit ;;
14824 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14825 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14826 ac_cs_silent=: ;;
14828 # This is an error.
14829 -*) as_fn_error $? "unrecognized option: \`$1'
14830 Try \`$0 --help' for more information." ;;
14832 *) as_fn_append ac_config_targets " $1"
14833 ac_need_defaults=false ;;
14835 esac
14836 shift
14837 done
14839 ac_configure_extra_args=
14841 if $ac_cs_silent; then
14842 exec 6>/dev/null
14843 ac_configure_extra_args="$ac_configure_extra_args --silent"
14846 _ACEOF
14847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14848 if \$ac_cs_recheck; then
14849 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14850 shift
14851 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
14852 CONFIG_SHELL='$SHELL'
14853 export CONFIG_SHELL
14854 exec "\$@"
14857 _ACEOF
14858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14859 exec 5>>config.log
14861 echo
14862 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14863 ## Running $as_me. ##
14864 _ASBOX
14865 printf "%s\n" "$ac_log"
14866 } >&5
14868 _ACEOF
14869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14871 # INIT-COMMANDS
14875 # The HP-UX ksh and POSIX shell print the target directory to stdout
14876 # if CDPATH is set.
14877 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14879 sed_quote_subst='$sed_quote_subst'
14880 double_quote_subst='$double_quote_subst'
14881 delay_variable_subst='$delay_variable_subst'
14882 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14883 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14884 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14885 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14886 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14887 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14888 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14889 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14890 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14891 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14892 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14893 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14894 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14895 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14896 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14897 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14898 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14899 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14900 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14901 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14902 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14903 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14904 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14905 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14906 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14907 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14908 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14909 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14910 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14911 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14912 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14913 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14914 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14915 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14916 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14917 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14918 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14919 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14920 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14921 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14922 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14923 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14924 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14925 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14926 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14927 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14928 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14929 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14930 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14931 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14932 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14933 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14934 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14935 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14936 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14937 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14938 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14939 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14940 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14941 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14942 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14943 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14944 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14945 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14946 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14947 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14948 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14949 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14950 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14951 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14952 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14953 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14954 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14955 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14956 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14957 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14958 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14959 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14960 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14961 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14962 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14963 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14964 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14965 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14966 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14967 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14968 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14969 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14970 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14971 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14972 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14973 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14974 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14975 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14976 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14977 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14978 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14979 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14980 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14981 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14982 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14983 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14984 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14985 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14986 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14987 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14988 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14989 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14990 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14991 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14992 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14993 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14994 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14995 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14996 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14997 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14998 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14999 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15000 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15001 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15002 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15003 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15004 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15005 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15006 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15007 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15008 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15009 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15010 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15011 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15012 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15013 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15014 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15015 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15016 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15018 LTCC='$LTCC'
15019 LTCFLAGS='$LTCFLAGS'
15020 compiler='$compiler_DEFAULT'
15022 # A function that is used when there is no print builtin or printf.
15023 func_fallback_echo ()
15025 eval 'cat <<_LTECHO_EOF
15027 _LTECHO_EOF'
15030 # Quote evaled strings.
15031 for var in SHELL \
15032 ECHO \
15033 PATH_SEPARATOR \
15034 SED \
15035 GREP \
15036 EGREP \
15037 FGREP \
15038 LD \
15039 NM \
15040 LN_S \
15041 lt_SP2NL \
15042 lt_NL2SP \
15043 reload_flag \
15044 OBJDUMP \
15045 deplibs_check_method \
15046 file_magic_cmd \
15047 file_magic_glob \
15048 want_nocaseglob \
15049 DLLTOOL \
15050 sharedlib_from_linklib_cmd \
15051 AR \
15052 AR_FLAGS \
15053 archiver_list_spec \
15054 STRIP \
15055 RANLIB \
15056 CC \
15057 CFLAGS \
15058 compiler \
15059 lt_cv_sys_global_symbol_pipe \
15060 lt_cv_sys_global_symbol_to_cdecl \
15061 lt_cv_sys_global_symbol_to_import \
15062 lt_cv_sys_global_symbol_to_c_name_address \
15063 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15064 lt_cv_nm_interface \
15065 nm_file_list_spec \
15066 lt_cv_truncate_bin \
15067 lt_prog_compiler_no_builtin_flag \
15068 lt_prog_compiler_pic \
15069 lt_prog_compiler_wl \
15070 lt_prog_compiler_static \
15071 lt_cv_prog_compiler_c_o \
15072 need_locks \
15073 MANIFEST_TOOL \
15074 DSYMUTIL \
15075 NMEDIT \
15076 LIPO \
15077 OTOOL \
15078 OTOOL64 \
15079 shrext_cmds \
15080 export_dynamic_flag_spec \
15081 whole_archive_flag_spec \
15082 compiler_needs_object \
15083 with_gnu_ld \
15084 allow_undefined_flag \
15085 no_undefined_flag \
15086 hardcode_libdir_flag_spec \
15087 hardcode_libdir_separator \
15088 exclude_expsyms \
15089 include_expsyms \
15090 file_list_spec \
15091 variables_saved_for_relink \
15092 libname_spec \
15093 library_names_spec \
15094 soname_spec \
15095 install_override_mode \
15096 finish_eval \
15097 old_striplib \
15098 striplib; do
15099 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15100 *[\\\\\\\`\\"\\\$]*)
15101 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15104 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15106 esac
15107 done
15109 # Double-quote double-evaled strings.
15110 for var in reload_cmds \
15111 old_postinstall_cmds \
15112 old_postuninstall_cmds \
15113 old_archive_cmds \
15114 extract_expsyms_cmds \
15115 old_archive_from_new_cmds \
15116 old_archive_from_expsyms_cmds \
15117 archive_cmds \
15118 archive_expsym_cmds \
15119 module_cmds \
15120 module_expsym_cmds \
15121 export_symbols_cmds \
15122 prelink_cmds \
15123 postlink_cmds \
15124 postinstall_cmds \
15125 postuninstall_cmds \
15126 finish_cmds \
15127 sys_lib_search_path_spec \
15128 configure_time_dlsearch_path \
15129 configure_time_lt_sys_library_path; do
15130 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15131 *[\\\\\\\`\\"\\\$]*)
15132 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15135 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15137 esac
15138 done
15140 ac_aux_dir='$ac_aux_dir'
15142 # See if we are running on zsh, and set the options that allow our
15143 # commands through without removal of \ escapes INIT.
15144 if test -n "\${ZSH_VERSION+set}"; then
15145 setopt NO_GLOB_SUBST
15149 PACKAGE='$PACKAGE'
15150 VERSION='$VERSION'
15151 RM='$RM'
15152 ofile='$ofile'
15157 _ACEOF
15159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15161 # Handling of arguments.
15162 for ac_config_target in $ac_config_targets
15164 case $ac_config_target in
15165 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15166 "sqlite_cfg.h") CONFIG_HEADERS="$CONFIG_HEADERS sqlite_cfg.h" ;;
15167 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15168 "sqlcipher.pc") CONFIG_FILES="$CONFIG_FILES sqlcipher.pc" ;;
15170 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15171 esac
15172 done
15175 # If the user did not use the arguments to specify the items to instantiate,
15176 # then the envvar interface is used. Set only those that are not.
15177 # We use the long form for the default assignment because of an extremely
15178 # bizarre bug on SunOS 4.1.3.
15179 if $ac_need_defaults; then
15180 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15181 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
15182 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
15185 # Have a temporary directory for convenience. Make it in the build tree
15186 # simply because there is no reason against having it here, and in addition,
15187 # creating and moving files from /tmp can sometimes cause problems.
15188 # Hook for its removal unless debugging.
15189 # Note that there is a small window in which the directory will not be cleaned:
15190 # after its creation but before its name has been assigned to `$tmp'.
15191 $debug ||
15193 tmp= ac_tmp=
15194 trap 'exit_status=$?
15195 : "${ac_tmp:=$tmp}"
15196 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15198 trap 'as_fn_exit 1' 1 2 13 15
15200 # Create a (secure) tmp directory for tmp files.
15203 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15204 test -d "$tmp"
15205 } ||
15207 tmp=./conf$$-$RANDOM
15208 (umask 077 && mkdir "$tmp")
15209 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15210 ac_tmp=$tmp
15212 # Set up the scripts for CONFIG_FILES section.
15213 # No need to generate them if there are no CONFIG_FILES.
15214 # This happens for instance with `./config.status config.h'.
15215 if test -n "$CONFIG_FILES"; then
15218 ac_cr=`echo X | tr X '\015'`
15219 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15220 # But we know of no other shell where ac_cr would be empty at this
15221 # point, so we can use a bashism as a fallback.
15222 if test "x$ac_cr" = x; then
15223 eval ac_cr=\$\'\\r\'
15225 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15226 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15227 ac_cs_awk_cr='\\r'
15228 else
15229 ac_cs_awk_cr=$ac_cr
15232 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15233 _ACEOF
15237 echo "cat >conf$$subs.awk <<_ACEOF" &&
15238 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15239 echo "_ACEOF"
15240 } >conf$$subs.sh ||
15241 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15242 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15243 ac_delim='%!_!# '
15244 for ac_last_try in false false false false false :; do
15245 . ./conf$$subs.sh ||
15246 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15248 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15249 if test $ac_delim_n = $ac_delim_num; then
15250 break
15251 elif $ac_last_try; then
15252 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15253 else
15254 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15256 done
15257 rm -f conf$$subs.sh
15259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15260 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15261 _ACEOF
15262 sed -n '
15264 s/^/S["/; s/!.*/"]=/
15267 s/^[^!]*!//
15268 :repl
15269 t repl
15270 s/'"$ac_delim"'$//
15271 t delim
15274 s/\(.\{148\}\)..*/\1/
15275 t more1
15276 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15279 b repl
15280 :more1
15281 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15284 s/.\{148\}//
15285 t nl
15286 :delim
15288 s/\(.\{148\}\)..*/\1/
15289 t more2
15290 s/["\\]/\\&/g; s/^/"/; s/$/"/
15293 :more2
15294 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15297 s/.\{148\}//
15298 t delim
15299 ' <conf$$subs.awk | sed '
15300 /^[^""]/{
15302 s/\n//
15304 ' >>$CONFIG_STATUS || ac_write_fail=1
15305 rm -f conf$$subs.awk
15306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15307 _ACAWK
15308 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15309 for (key in S) S_is_set[key] = 1
15310 FS = "\a"
15314 line = $ 0
15315 nfields = split(line, field, "@")
15316 substed = 0
15317 len = length(field[1])
15318 for (i = 2; i < nfields; i++) {
15319 key = field[i]
15320 keylen = length(key)
15321 if (S_is_set[key]) {
15322 value = S[key]
15323 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15324 len += length(value) + length(field[++i])
15325 substed = 1
15326 } else
15327 len += 1 + keylen
15330 print line
15333 _ACAWK
15334 _ACEOF
15335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15336 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15337 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15338 else
15340 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15341 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15342 _ACEOF
15344 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15345 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15346 # trailing colons and then remove the whole line if VPATH becomes empty
15347 # (actually we leave an empty line to preserve line numbers).
15348 if test "x$srcdir" = x.; then
15349 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15351 s///
15352 s/^/:/
15353 s/[ ]*$/:/
15354 s/:\$(srcdir):/:/g
15355 s/:\${srcdir}:/:/g
15356 s/:@srcdir@:/:/g
15357 s/^:*//
15358 s/:*$//
15360 s/\(=[ ]*\).*/\1/
15362 s/\n//
15363 s/^[^=]*=[ ]*$//
15367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15368 fi # test -n "$CONFIG_FILES"
15370 # Set up the scripts for CONFIG_HEADERS section.
15371 # No need to generate them if there are no CONFIG_HEADERS.
15372 # This happens for instance with `./config.status Makefile'.
15373 if test -n "$CONFIG_HEADERS"; then
15374 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15375 BEGIN {
15376 _ACEOF
15378 # Transform confdefs.h into an awk script `defines.awk', embedded as
15379 # here-document in config.status, that substitutes the proper values into
15380 # config.h.in to produce config.h.
15382 # Create a delimiter string that does not exist in confdefs.h, to ease
15383 # handling of long lines.
15384 ac_delim='%!_!# '
15385 for ac_last_try in false false :; do
15386 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15387 if test -z "$ac_tt"; then
15388 break
15389 elif $ac_last_try; then
15390 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15391 else
15392 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15394 done
15396 # For the awk script, D is an array of macro values keyed by name,
15397 # likewise P contains macro parameters if any. Preserve backslash
15398 # newline sequences.
15400 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15401 sed -n '
15402 s/.\{148\}/&'"$ac_delim"'/g
15403 t rset
15404 :rset
15405 s/^[ ]*#[ ]*define[ ][ ]*/ /
15406 t def
15408 :def
15409 s/\\$//
15410 t bsnl
15411 s/["\\]/\\&/g
15412 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15413 D["\1"]=" \3"/p
15414 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15416 :bsnl
15417 s/["\\]/\\&/g
15418 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15419 D["\1"]=" \3\\\\\\n"\\/p
15420 t cont
15421 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15422 t cont
15424 :cont
15426 s/.\{148\}/&'"$ac_delim"'/g
15427 t clear
15428 :clear
15429 s/\\$//
15430 t bsnlc
15431 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15433 :bsnlc
15434 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15435 b cont
15436 ' <confdefs.h | sed '
15437 s/'"$ac_delim"'/"\\\
15438 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15441 for (key in D) D_is_set[key] = 1
15442 FS = "\a"
15444 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15445 line = \$ 0
15446 split(line, arg, " ")
15447 if (arg[1] == "#") {
15448 defundef = arg[2]
15449 mac1 = arg[3]
15450 } else {
15451 defundef = substr(arg[1], 2)
15452 mac1 = arg[2]
15454 split(mac1, mac2, "(") #)
15455 macro = mac2[1]
15456 prefix = substr(line, 1, index(line, defundef) - 1)
15457 if (D_is_set[macro]) {
15458 # Preserve the white space surrounding the "#".
15459 print prefix "define", macro P[macro] D[macro]
15460 next
15461 } else {
15462 # Replace #undef with comments. This is necessary, for example,
15463 # in the case of _POSIX_SOURCE, which is predefined and required
15464 # on some systems where configure will not decide to define it.
15465 if (defundef == "undef") {
15466 print "/*", prefix defundef, macro, "*/"
15467 next
15471 { print }
15472 _ACAWK
15473 _ACEOF
15474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15475 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15476 fi # test -n "$CONFIG_HEADERS"
15479 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15480 shift
15481 for ac_tag
15483 case $ac_tag in
15484 :[FHLC]) ac_mode=$ac_tag; continue;;
15485 esac
15486 case $ac_mode$ac_tag in
15487 :[FHL]*:*);;
15488 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15489 :[FH]-) ac_tag=-:-;;
15490 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15491 esac
15492 ac_save_IFS=$IFS
15493 IFS=:
15494 set x $ac_tag
15495 IFS=$ac_save_IFS
15496 shift
15497 ac_file=$1
15498 shift
15500 case $ac_mode in
15501 :L) ac_source=$1;;
15502 :[FH])
15503 ac_file_inputs=
15504 for ac_f
15506 case $ac_f in
15507 -) ac_f="$ac_tmp/stdin";;
15508 *) # Look for the file first in the build tree, then in the source tree
15509 # (if the path is not absolute). The absolute path cannot be DOS-style,
15510 # because $ac_f cannot contain `:'.
15511 test -f "$ac_f" ||
15512 case $ac_f in
15513 [\\/$]*) false;;
15514 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15515 esac ||
15516 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15517 esac
15518 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15519 as_fn_append ac_file_inputs " '$ac_f'"
15520 done
15522 # Let's still pretend it is `configure' which instantiates (i.e., don't
15523 # use $as_me), people would be surprised to read:
15524 # /* config.h. Generated by config.status. */
15525 configure_input='Generated from '`
15526 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15527 `' by configure.'
15528 if test x"$ac_file" != x-; then
15529 configure_input="$ac_file. $configure_input"
15530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15531 printf "%s\n" "$as_me: creating $ac_file" >&6;}
15533 # Neutralize special characters interpreted by sed in replacement strings.
15534 case $configure_input in #(
15535 *\&* | *\|* | *\\* )
15536 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
15537 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15538 *) ac_sed_conf_input=$configure_input;;
15539 esac
15541 case $ac_tag in
15542 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15543 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15544 esac
15546 esac
15548 ac_dir=`$as_dirname -- "$ac_file" ||
15549 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15550 X"$ac_file" : 'X\(//\)[^/]' \| \
15551 X"$ac_file" : 'X\(//\)$' \| \
15552 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15553 printf "%s\n" X"$ac_file" |
15554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15555 s//\1/
15558 /^X\(\/\/\)[^/].*/{
15559 s//\1/
15562 /^X\(\/\/\)$/{
15563 s//\1/
15566 /^X\(\/\).*/{
15567 s//\1/
15570 s/.*/./; q'`
15571 as_dir="$ac_dir"; as_fn_mkdir_p
15572 ac_builddir=.
15574 case "$ac_dir" in
15575 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15577 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15578 # A ".." for each directory in $ac_dir_suffix.
15579 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15580 case $ac_top_builddir_sub in
15581 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15582 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15583 esac ;;
15584 esac
15585 ac_abs_top_builddir=$ac_pwd
15586 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15587 # for backward compatibility:
15588 ac_top_builddir=$ac_top_build_prefix
15590 case $srcdir in
15591 .) # We are building in place.
15592 ac_srcdir=.
15593 ac_top_srcdir=$ac_top_builddir_sub
15594 ac_abs_top_srcdir=$ac_pwd ;;
15595 [\\/]* | ?:[\\/]* ) # Absolute name.
15596 ac_srcdir=$srcdir$ac_dir_suffix;
15597 ac_top_srcdir=$srcdir
15598 ac_abs_top_srcdir=$srcdir ;;
15599 *) # Relative name.
15600 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15601 ac_top_srcdir=$ac_top_build_prefix$srcdir
15602 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15603 esac
15604 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15607 case $ac_mode in
15610 # CONFIG_FILE
15613 case $INSTALL in
15614 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15615 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15616 esac
15617 _ACEOF
15619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15620 # If the template does not know about datarootdir, expand it.
15621 # FIXME: This hack should be removed a few years after 2.60.
15622 ac_datarootdir_hack=; ac_datarootdir_seen=
15623 ac_sed_dataroot='
15624 /datarootdir/ {
15628 /@datadir@/p
15629 /@docdir@/p
15630 /@infodir@/p
15631 /@localedir@/p
15632 /@mandir@/p'
15633 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15634 *datarootdir*) ac_datarootdir_seen=yes;;
15635 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15637 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15638 _ACEOF
15639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15640 ac_datarootdir_hack='
15641 s&@datadir@&$datadir&g
15642 s&@docdir@&$docdir&g
15643 s&@infodir@&$infodir&g
15644 s&@localedir@&$localedir&g
15645 s&@mandir@&$mandir&g
15646 s&\\\${datarootdir}&$datarootdir&g' ;;
15647 esac
15648 _ACEOF
15650 # Neutralize VPATH when `$srcdir' = `.'.
15651 # Shell code in configure.ac might set extrasub.
15652 # FIXME: do we really want to maintain this feature?
15653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15654 ac_sed_extra="$ac_vpsub
15655 $extrasub
15656 _ACEOF
15657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15659 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15660 s|@configure_input@|$ac_sed_conf_input|;t t
15661 s&@top_builddir@&$ac_top_builddir_sub&;t t
15662 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15663 s&@srcdir@&$ac_srcdir&;t t
15664 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15665 s&@top_srcdir@&$ac_top_srcdir&;t t
15666 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15667 s&@builddir@&$ac_builddir&;t t
15668 s&@abs_builddir@&$ac_abs_builddir&;t t
15669 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15670 s&@INSTALL@&$ac_INSTALL&;t t
15671 $ac_datarootdir_hack
15673 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15674 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15676 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15677 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15678 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15679 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15681 which seems to be undefined. Please make sure it is defined" >&5
15682 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15683 which seems to be undefined. Please make sure it is defined" >&2;}
15685 rm -f "$ac_tmp/stdin"
15686 case $ac_file in
15687 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15688 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15689 esac \
15690 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15694 # CONFIG_HEADER
15696 if test x"$ac_file" != x-; then
15698 printf "%s\n" "/* $configure_input */" >&1 \
15699 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15700 } >"$ac_tmp/config.h" \
15701 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15702 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15704 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
15705 else
15706 rm -f "$ac_file"
15707 mv "$ac_tmp/config.h" "$ac_file" \
15708 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15710 else
15711 printf "%s\n" "/* $configure_input */" >&1 \
15712 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15713 || as_fn_error $? "could not create -" "$LINENO" 5
15717 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15718 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
15720 esac
15723 case $ac_file$ac_mode in
15724 "libtool":C)
15726 # See if we are running on zsh, and set the options that allow our
15727 # commands through without removal of \ escapes.
15728 if test -n "${ZSH_VERSION+set}"; then
15729 setopt NO_GLOB_SUBST
15732 cfgfile=${ofile}T
15733 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15734 $RM "$cfgfile"
15736 cat <<_LT_EOF >> "$cfgfile"
15737 #! $SHELL
15738 # Generated automatically by $as_me ($PACKAGE) $VERSION
15739 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15741 # Provide generalized library-building support services.
15742 # Written by Gordon Matzigkeit, 1996
15744 # Copyright (C) 2014 Free Software Foundation, Inc.
15745 # This is free software; see the source for copying conditions. There is NO
15746 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15748 # GNU Libtool is free software; you can redistribute it and/or modify
15749 # it under the terms of the GNU General Public License as published by
15750 # the Free Software Foundation; either version 2 of of the License, or
15751 # (at your option) any later version.
15753 # As a special exception to the GNU General Public License, if you
15754 # distribute this file as part of a program or library that is built
15755 # using GNU Libtool, you may include this file under the same
15756 # distribution terms that you use for the rest of that program.
15758 # GNU Libtool is distributed in the hope that it will be useful, but
15759 # WITHOUT ANY WARRANTY; without even the implied warranty of
15760 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15761 # GNU General Public License for more details.
15763 # You should have received a copy of the GNU General Public License
15764 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15767 # The names of the tagged configurations supported by this script.
15768 available_tags=''
15770 # Configured defaults for sys_lib_dlsearch_path munging.
15771 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15773 # ### BEGIN LIBTOOL CONFIG
15775 # Which release of libtool.m4 was used?
15776 macro_version=$macro_version
15777 macro_revision=$macro_revision
15779 # Whether or not to build shared libraries.
15780 build_libtool_libs=$enable_shared
15782 # Whether or not to build static libraries.
15783 build_old_libs=$enable_static
15785 # What type of objects to build.
15786 pic_mode=$pic_mode
15788 # Whether or not to optimize for fast installation.
15789 fast_install=$enable_fast_install
15791 # Shared archive member basename,for filename based shared library versioning on AIX.
15792 shared_archive_member_spec=$shared_archive_member_spec
15794 # Shell to use when invoking shell scripts.
15795 SHELL=$lt_SHELL
15797 # An echo program that protects backslashes.
15798 ECHO=$lt_ECHO
15800 # The PATH separator for the build system.
15801 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15803 # The host system.
15804 host_alias=$host_alias
15805 host=$host
15806 host_os=$host_os
15808 # The build system.
15809 build_alias=$build_alias
15810 build=$build
15811 build_os=$build_os
15813 # A sed program that does not truncate output.
15814 SED=$lt_SED
15816 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15817 Xsed="\$SED -e 1s/^X//"
15819 # A grep program that handles long lines.
15820 GREP=$lt_GREP
15822 # An ERE matcher.
15823 EGREP=$lt_EGREP
15825 # A literal string matcher.
15826 FGREP=$lt_FGREP
15828 # A BSD- or MS-compatible name lister.
15829 NM=$lt_NM
15831 # Whether we need soft or hard links.
15832 LN_S=$lt_LN_S
15834 # What is the maximum length of a command?
15835 max_cmd_len=$max_cmd_len
15837 # Object file suffix (normally "o").
15838 objext=$ac_objext
15840 # Executable file suffix (normally "").
15841 exeext=$exeext
15843 # whether the shell understands "unset".
15844 lt_unset=$lt_unset
15846 # turn spaces into newlines.
15847 SP2NL=$lt_lt_SP2NL
15849 # turn newlines into spaces.
15850 NL2SP=$lt_lt_NL2SP
15852 # convert \$build file names to \$host format.
15853 to_host_file_cmd=$lt_cv_to_host_file_cmd
15855 # convert \$build files to toolchain format.
15856 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15858 # An object symbol dumper.
15859 OBJDUMP=$lt_OBJDUMP
15861 # Method to check whether dependent libraries are shared objects.
15862 deplibs_check_method=$lt_deplibs_check_method
15864 # Command to use when deplibs_check_method = "file_magic".
15865 file_magic_cmd=$lt_file_magic_cmd
15867 # How to find potential files when deplibs_check_method = "file_magic".
15868 file_magic_glob=$lt_file_magic_glob
15870 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15871 want_nocaseglob=$lt_want_nocaseglob
15873 # DLL creation program.
15874 DLLTOOL=$lt_DLLTOOL
15876 # Command to associate shared and link libraries.
15877 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15879 # The archiver.
15880 AR=$lt_AR
15882 # Flags to create an archive.
15883 AR_FLAGS=$lt_AR_FLAGS
15885 # How to feed a file listing to the archiver.
15886 archiver_list_spec=$lt_archiver_list_spec
15888 # A symbol stripping program.
15889 STRIP=$lt_STRIP
15891 # Commands used to install an old-style archive.
15892 RANLIB=$lt_RANLIB
15893 old_postinstall_cmds=$lt_old_postinstall_cmds
15894 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15896 # Whether to use a lock for old archive extraction.
15897 lock_old_archive_extraction=$lock_old_archive_extraction
15899 # A C compiler.
15900 LTCC=$lt_CC
15902 # LTCC compiler flags.
15903 LTCFLAGS=$lt_CFLAGS
15905 # Take the output of nm and produce a listing of raw symbols and C names.
15906 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15908 # Transform the output of nm in a proper C declaration.
15909 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15911 # Transform the output of nm into a list of symbols to manually relocate.
15912 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15914 # Transform the output of nm in a C name address pair.
15915 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15917 # Transform the output of nm in a C name address pair when lib prefix is needed.
15918 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15920 # The name lister interface.
15921 nm_interface=$lt_lt_cv_nm_interface
15923 # Specify filename containing input files for \$NM.
15924 nm_file_list_spec=$lt_nm_file_list_spec
15926 # The root where to search for dependent libraries,and where our libraries should be installed.
15927 lt_sysroot=$lt_sysroot
15929 # Command to truncate a binary pipe.
15930 lt_truncate_bin=$lt_lt_cv_truncate_bin
15932 # The name of the directory that contains temporary libtool files.
15933 objdir=$objdir
15935 # Used to examine libraries when file_magic_cmd begins with "file".
15936 MAGIC_CMD=$MAGIC_CMD
15938 # Must we lock files when doing compilation?
15939 need_locks=$lt_need_locks
15941 # Manifest tool.
15942 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15944 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15945 DSYMUTIL=$lt_DSYMUTIL
15947 # Tool to change global to local symbols on Mac OS X.
15948 NMEDIT=$lt_NMEDIT
15950 # Tool to manipulate fat objects and archives on Mac OS X.
15951 LIPO=$lt_LIPO
15953 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15954 OTOOL=$lt_OTOOL
15956 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15957 OTOOL64=$lt_OTOOL64
15959 # Old archive suffix (normally "a").
15960 libext=$libext
15962 # Shared library suffix (normally ".so").
15963 shrext_cmds=$lt_shrext_cmds
15965 # The commands to extract the exported symbol list from a shared archive.
15966 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15968 # Variables whose values should be saved in libtool wrapper scripts and
15969 # restored at link time.
15970 variables_saved_for_relink=$lt_variables_saved_for_relink
15972 # Do we need the "lib" prefix for modules?
15973 need_lib_prefix=$need_lib_prefix
15975 # Do we need a version for libraries?
15976 need_version=$need_version
15978 # Library versioning type.
15979 version_type=$version_type
15981 # Shared library runtime path variable.
15982 runpath_var=$runpath_var
15984 # Shared library path variable.
15985 shlibpath_var=$shlibpath_var
15987 # Is shlibpath searched before the hard-coded library search path?
15988 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15990 # Format of library name prefix.
15991 libname_spec=$lt_libname_spec
15993 # List of archive names. First name is the real one, the rest are links.
15994 # The last name is the one that the linker finds with -lNAME
15995 library_names_spec=$lt_library_names_spec
15997 # The coded name of the library, if different from the real name.
15998 soname_spec=$lt_soname_spec
16000 # Permission mode override for installation of shared libraries.
16001 install_override_mode=$lt_install_override_mode
16003 # Command to use after installation of a shared archive.
16004 postinstall_cmds=$lt_postinstall_cmds
16006 # Command to use after uninstallation of a shared archive.
16007 postuninstall_cmds=$lt_postuninstall_cmds
16009 # Commands used to finish a libtool library installation in a directory.
16010 finish_cmds=$lt_finish_cmds
16012 # As "finish_cmds", except a single script fragment to be evaled but
16013 # not shown.
16014 finish_eval=$lt_finish_eval
16016 # Whether we should hardcode library paths into libraries.
16017 hardcode_into_libs=$hardcode_into_libs
16019 # Compile-time system search path for libraries.
16020 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16022 # Detected run-time system search path for libraries.
16023 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16025 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16026 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16028 # Whether dlopen is supported.
16029 dlopen_support=$enable_dlopen
16031 # Whether dlopen of programs is supported.
16032 dlopen_self=$enable_dlopen_self
16034 # Whether dlopen of statically linked programs is supported.
16035 dlopen_self_static=$enable_dlopen_self_static
16037 # Commands to strip libraries.
16038 old_striplib=$lt_old_striplib
16039 striplib=$lt_striplib
16042 # The linker used to build libraries.
16043 LD=$lt_LD
16045 # How to create reloadable object files.
16046 reload_flag=$lt_reload_flag
16047 reload_cmds=$lt_reload_cmds
16049 # Commands used to build an old-style archive.
16050 old_archive_cmds=$lt_old_archive_cmds
16052 # A language specific compiler.
16053 CC=$lt_compiler
16055 # Is the compiler the GNU compiler?
16056 with_gcc=$GCC
16058 # Compiler flag to turn off builtin functions.
16059 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16061 # Additional compiler flags for building library objects.
16062 pic_flag=$lt_lt_prog_compiler_pic
16064 # How to pass a linker flag through the compiler.
16065 wl=$lt_lt_prog_compiler_wl
16067 # Compiler flag to prevent dynamic linking.
16068 link_static_flag=$lt_lt_prog_compiler_static
16070 # Does compiler simultaneously support -c and -o options?
16071 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16073 # Whether or not to add -lc for building shared libraries.
16074 build_libtool_need_lc=$archive_cmds_need_lc
16076 # Whether or not to disallow shared libs when runtime libs are static.
16077 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16079 # Compiler flag to allow reflexive dlopens.
16080 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16082 # Compiler flag to generate shared objects directly from archives.
16083 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16085 # Whether the compiler copes with passing no objects directly.
16086 compiler_needs_object=$lt_compiler_needs_object
16088 # Create an old-style archive from a shared archive.
16089 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16091 # Create a temporary old-style archive to link instead of a shared archive.
16092 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16094 # Commands used to build a shared archive.
16095 archive_cmds=$lt_archive_cmds
16096 archive_expsym_cmds=$lt_archive_expsym_cmds
16098 # Commands used to build a loadable module if different from building
16099 # a shared archive.
16100 module_cmds=$lt_module_cmds
16101 module_expsym_cmds=$lt_module_expsym_cmds
16103 # Whether we are building with GNU ld or not.
16104 with_gnu_ld=$lt_with_gnu_ld
16106 # Flag that allows shared libraries with undefined symbols to be built.
16107 allow_undefined_flag=$lt_allow_undefined_flag
16109 # Flag that enforces no undefined symbols.
16110 no_undefined_flag=$lt_no_undefined_flag
16112 # Flag to hardcode \$libdir into a binary during linking.
16113 # This must work even if \$libdir does not exist
16114 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16116 # Whether we need a single "-rpath" flag with a separated argument.
16117 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16119 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16120 # DIR into the resulting binary.
16121 hardcode_direct=$hardcode_direct
16123 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16124 # DIR into the resulting binary and the resulting library dependency is
16125 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16126 # library is relocated.
16127 hardcode_direct_absolute=$hardcode_direct_absolute
16129 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16130 # into the resulting binary.
16131 hardcode_minus_L=$hardcode_minus_L
16133 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16134 # into the resulting binary.
16135 hardcode_shlibpath_var=$hardcode_shlibpath_var
16137 # Set to "yes" if building a shared library automatically hardcodes DIR
16138 # into the library and all subsequent libraries and executables linked
16139 # against it.
16140 hardcode_automatic=$hardcode_automatic
16142 # Set to yes if linker adds runtime paths of dependent libraries
16143 # to runtime path list.
16144 inherit_rpath=$inherit_rpath
16146 # Whether libtool must link a program against all its dependency libraries.
16147 link_all_deplibs=$link_all_deplibs
16149 # Set to "yes" if exported symbols are required.
16150 always_export_symbols=$always_export_symbols
16152 # The commands to list exported symbols.
16153 export_symbols_cmds=$lt_export_symbols_cmds
16155 # Symbols that should not be listed in the preloaded symbols.
16156 exclude_expsyms=$lt_exclude_expsyms
16158 # Symbols that must always be exported.
16159 include_expsyms=$lt_include_expsyms
16161 # Commands necessary for linking programs (against libraries) with templates.
16162 prelink_cmds=$lt_prelink_cmds
16164 # Commands necessary for finishing linking programs.
16165 postlink_cmds=$lt_postlink_cmds
16167 # Specify filename containing input files.
16168 file_list_spec=$lt_file_list_spec
16170 # How to hardcode a shared library path into an executable.
16171 hardcode_action=$hardcode_action
16173 # ### END LIBTOOL CONFIG
16175 _LT_EOF
16177 cat <<'_LT_EOF' >> "$cfgfile"
16179 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16181 # func_munge_path_list VARIABLE PATH
16182 # -----------------------------------
16183 # VARIABLE is name of variable containing _space_ separated list of
16184 # directories to be munged by the contents of PATH, which is string
16185 # having a format:
16186 # "DIR[:DIR]:"
16187 # string "DIR[ DIR]" will be prepended to VARIABLE
16188 # ":DIR[:DIR]"
16189 # string "DIR[ DIR]" will be appended to VARIABLE
16190 # "DIRP[:DIRP]::[DIRA:]DIRA"
16191 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16192 # "DIRA[ DIRA]" will be appended to VARIABLE
16193 # "DIR[:DIR]"
16194 # VARIABLE will be replaced by "DIR[ DIR]"
16195 func_munge_path_list ()
16197 case x$2 in
16201 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16203 x:*)
16204 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16206 *::*)
16207 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16208 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16211 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16213 esac
16217 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16218 func_cc_basename ()
16220 for cc_temp in $*""; do
16221 case $cc_temp in
16222 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16223 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16224 \-*) ;;
16225 *) break;;
16226 esac
16227 done
16228 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16232 # ### END FUNCTIONS SHARED WITH CONFIGURE
16234 _LT_EOF
16236 case $host_os in
16237 aix3*)
16238 cat <<\_LT_EOF >> "$cfgfile"
16239 # AIX sometimes has problems with the GCC collect2 program. For some
16240 # reason, if we set the COLLECT_NAMES environment variable, the problems
16241 # vanish in a puff of smoke.
16242 if test set != "${COLLECT_NAMES+set}"; then
16243 COLLECT_NAMES=
16244 export COLLECT_NAMES
16246 _LT_EOF
16248 esac
16252 ltmain=$ac_aux_dir/ltmain.sh
16255 # We use sed instead of cat because bash on DJGPP gets confused if
16256 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16257 # text mode, it properly converts lines to CR/LF. This bash problem
16258 # is reportedly fixed, but why not run on old versions too?
16259 sed '$q' "$ltmain" >> "$cfgfile" \
16260 || (rm -f "$cfgfile"; exit 1)
16262 mv -f "$cfgfile" "$ofile" ||
16263 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16264 chmod +x "$ofile"
16268 esac
16269 done # for ac_tag
16272 as_fn_exit 0
16273 _ACEOF
16274 ac_clean_files=$ac_clean_files_save
16276 test $ac_write_fail = 0 ||
16277 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16280 # configure is writing to config.log, and then calls config.status.
16281 # config.status does its own redirection, appending to config.log.
16282 # Unfortunately, on DOS this fails, as config.log is still kept open
16283 # by configure, so config.status won't be able to write to it; its
16284 # output is simply discarded. So we exec the FD to /dev/null,
16285 # effectively closing config.log, so it can be properly (re)opened and
16286 # appended to by config.status. When coming back to configure, we
16287 # need to make the FD available again.
16288 if test "$no_create" != yes; then
16289 ac_cs_success=:
16290 ac_config_status_args=
16291 test "$silent" = yes &&
16292 ac_config_status_args="$ac_config_status_args --quiet"
16293 exec 5>/dev/null
16294 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16295 exec 5>>config.log
16296 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16297 # would make configure fail if this is the last instruction.
16298 $ac_cs_success || as_fn_exit 1
16300 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16302 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}