Add check for SQLITE_OS_WINRT for fopen_s usage
[sqlcipher.git] / configure
blobec79279fdfcdf9e8c59838bbbe506ca24b4e02d8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sqlcipher 3.11.0.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; 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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='sqlcipher'
589 PACKAGE_TARNAME='sqlcipher'
590 PACKAGE_VERSION='3.11.0'
591 PACKAGE_STRING='sqlcipher 3.11.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
631 ac_subst_vars='LTLIBOBJS
632 LIBOBJS
633 BUILD_CFLAGS
634 USE_GCOV
635 OPT_FEATURE_FLAGS
636 USE_AMALGAMATION
637 TARGET_DEBUG
638 TARGET_HAVE_EDITLINE
639 TARGET_HAVE_READLINE
640 TARGET_READLINE_INC
641 TARGET_READLINE_LIBS
642 HAVE_TCL
643 TCL_SHLIB_SUFFIX
644 TCL_STUB_LIB_SPEC
645 TCL_STUB_LIB_FLAG
646 TCL_STUB_LIB_FILE
647 TCL_LIB_SPEC
648 TCL_LIB_FLAG
649 TCL_LIB_FILE
650 TCL_INCLUDE_SPEC
651 TCL_SRC_DIR
652 TCL_BIN_DIR
653 TCL_VERSION
654 TARGET_EXEEXT
655 SQLITE_OS_WIN
656 SQLITE_OS_UNIX
657 BUILD_EXEEXT
658 TEMP_STORE
659 ALLOWRELEASE
660 XTHREADCONNECT
661 SQLITE_THREADSAFE
662 BUILD_CC
663 VERSION_NUMBER
664 RELEASE
665 VERSION
666 program_prefix
667 TCLLIBDIR
668 TCLSH_CMD
669 INSTALL_DATA
670 INSTALL_SCRIPT
671 INSTALL_PROGRAM
673 LT_SYS_LIBRARY_PATH
674 OTOOL64
675 OTOOL
676 LIPO
677 NMEDIT
678 DSYMUTIL
679 MANIFEST_TOOL
681 RANLIB
682 STRIP
683 ac_ct_AR
685 DLLTOOL
686 OBJDUMP
687 LN_S
689 ac_ct_DUMPBIN
690 DUMPBIN
692 FGREP
693 EGREP
694 GREP
696 OBJEXT
697 EXEEXT
698 ac_ct_CC
699 CPPFLAGS
700 LDFLAGS
701 CFLAGS
703 host_os
704 host_vendor
705 host_cpu
706 host
707 build_os
708 build_vendor
709 build_cpu
710 build
711 LIBTOOL
712 target_alias
713 host_alias
714 build_alias
715 LIBS
716 ECHO_T
717 ECHO_N
718 ECHO_C
719 DEFS
720 mandir
721 localedir
722 libdir
723 psdir
724 pdfdir
725 dvidir
726 htmldir
727 infodir
728 docdir
729 oldincludedir
730 includedir
731 localstatedir
732 sharedstatedir
733 sysconfdir
734 datadir
735 datarootdir
736 libexecdir
737 sbindir
738 bindir
739 program_transform_name
740 prefix
741 exec_prefix
742 PACKAGE_URL
743 PACKAGE_BUGREPORT
744 PACKAGE_STRING
745 PACKAGE_VERSION
746 PACKAGE_TARNAME
747 PACKAGE_NAME
748 PATH_SEPARATOR
749 SHELL'
750 ac_subst_files=''
751 ac_user_opts='
752 enable_option_checking
753 enable_shared
754 enable_static
755 with_pic
756 enable_fast_install
757 with_aix_soname
758 with_gnu_ld
759 with_sysroot
760 enable_libtool_lock
761 enable_largefile
762 enable_threadsafe
763 with_crypto_lib
764 enable_cross_thread_connections
765 enable_releasemode
766 enable_tempstore
767 enable_tcl
768 with_tcl
769 enable_editline
770 enable_readline
771 with_readline_lib
772 with_readline_inc
773 enable_debug
774 enable_amalgamation
775 enable_load_extension
776 enable_fts3
777 enable_fts4
778 enable_fts5
779 enable_json1
780 enable_rtree
781 enable_gcov
783 ac_precious_vars='build_alias
784 host_alias
785 target_alias
787 CFLAGS
788 LDFLAGS
789 LIBS
790 CPPFLAGS
791 LT_SYS_LIBRARY_PATH
793 TCLLIBDIR'
796 # Initialize some variables set by options.
797 ac_init_help=
798 ac_init_version=false
799 ac_unrecognized_opts=
800 ac_unrecognized_sep=
801 # The variables have the same names as the options, with
802 # dashes changed to underlines.
803 cache_file=/dev/null
804 exec_prefix=NONE
805 no_create=
806 no_recursion=
807 prefix=NONE
808 program_prefix=NONE
809 program_suffix=NONE
810 program_transform_name=s,x,x,
811 silent=
812 site=
813 srcdir=
814 verbose=
815 x_includes=NONE
816 x_libraries=NONE
818 # Installation directory options.
819 # These are left unexpanded so users can "make install exec_prefix=/foo"
820 # and all the variables that are supposed to be based on exec_prefix
821 # by default will actually change.
822 # Use braces instead of parens because sh, perl, etc. also accept them.
823 # (The list follows the same order as the GNU Coding Standards.)
824 bindir='${exec_prefix}/bin'
825 sbindir='${exec_prefix}/sbin'
826 libexecdir='${exec_prefix}/libexec'
827 datarootdir='${prefix}/share'
828 datadir='${datarootdir}'
829 sysconfdir='${prefix}/etc'
830 sharedstatedir='${prefix}/com'
831 localstatedir='${prefix}/var'
832 includedir='${prefix}/include'
833 oldincludedir='/usr/include'
834 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
835 infodir='${datarootdir}/info'
836 htmldir='${docdir}'
837 dvidir='${docdir}'
838 pdfdir='${docdir}'
839 psdir='${docdir}'
840 libdir='${exec_prefix}/lib'
841 localedir='${datarootdir}/locale'
842 mandir='${datarootdir}/man'
844 ac_prev=
845 ac_dashdash=
846 for ac_option
848 # If the previous option needs an argument, assign it.
849 if test -n "$ac_prev"; then
850 eval $ac_prev=\$ac_option
851 ac_prev=
852 continue
855 case $ac_option in
856 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857 *=) ac_optarg= ;;
858 *) ac_optarg=yes ;;
859 esac
861 # Accept the important Cygnus configure options, so we can diagnose typos.
863 case $ac_dashdash$ac_option in
865 ac_dashdash=yes ;;
867 -bindir | --bindir | --bindi | --bind | --bin | --bi)
868 ac_prev=bindir ;;
869 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
870 bindir=$ac_optarg ;;
872 -build | --build | --buil | --bui | --bu)
873 ac_prev=build_alias ;;
874 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
875 build_alias=$ac_optarg ;;
877 -cache-file | --cache-file | --cache-fil | --cache-fi \
878 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879 ac_prev=cache_file ;;
880 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
882 cache_file=$ac_optarg ;;
884 --config-cache | -C)
885 cache_file=config.cache ;;
887 -datadir | --datadir | --datadi | --datad)
888 ac_prev=datadir ;;
889 -datadir=* | --datadir=* | --datadi=* | --datad=*)
890 datadir=$ac_optarg ;;
892 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893 | --dataroo | --dataro | --datar)
894 ac_prev=datarootdir ;;
895 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897 datarootdir=$ac_optarg ;;
899 -disable-* | --disable-*)
900 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903 as_fn_error $? "invalid feature name: $ac_useropt"
904 ac_useropt_orig=$ac_useropt
905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906 case $ac_user_opts in
908 "enable_$ac_useropt"
909 "*) ;;
910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911 ac_unrecognized_sep=', ';;
912 esac
913 eval enable_$ac_useropt=no ;;
915 -docdir | --docdir | --docdi | --doc | --do)
916 ac_prev=docdir ;;
917 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918 docdir=$ac_optarg ;;
920 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921 ac_prev=dvidir ;;
922 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923 dvidir=$ac_optarg ;;
925 -enable-* | --enable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
934 "enable_$ac_useropt"
935 "*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=\$ac_optarg ;;
941 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943 | --exec | --exe | --ex)
944 ac_prev=exec_prefix ;;
945 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947 | --exec=* | --exe=* | --ex=*)
948 exec_prefix=$ac_optarg ;;
950 -gas | --gas | --ga | --g)
951 # Obsolete; use --with-gas.
952 with_gas=yes ;;
954 -help | --help | --hel | --he | -h)
955 ac_init_help=long ;;
956 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957 ac_init_help=recursive ;;
958 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959 ac_init_help=short ;;
961 -host | --host | --hos | --ho)
962 ac_prev=host_alias ;;
963 -host=* | --host=* | --hos=* | --ho=*)
964 host_alias=$ac_optarg ;;
966 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967 ac_prev=htmldir ;;
968 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969 | --ht=*)
970 htmldir=$ac_optarg ;;
972 -includedir | --includedir | --includedi | --included | --include \
973 | --includ | --inclu | --incl | --inc)
974 ac_prev=includedir ;;
975 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976 | --includ=* | --inclu=* | --incl=* | --inc=*)
977 includedir=$ac_optarg ;;
979 -infodir | --infodir | --infodi | --infod | --info | --inf)
980 ac_prev=infodir ;;
981 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982 infodir=$ac_optarg ;;
984 -libdir | --libdir | --libdi | --libd)
985 ac_prev=libdir ;;
986 -libdir=* | --libdir=* | --libdi=* | --libd=*)
987 libdir=$ac_optarg ;;
989 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990 | --libexe | --libex | --libe)
991 ac_prev=libexecdir ;;
992 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993 | --libexe=* | --libex=* | --libe=*)
994 libexecdir=$ac_optarg ;;
996 -localedir | --localedir | --localedi | --localed | --locale)
997 ac_prev=localedir ;;
998 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999 localedir=$ac_optarg ;;
1001 -localstatedir | --localstatedir | --localstatedi | --localstated \
1002 | --localstate | --localstat | --localsta | --localst | --locals)
1003 ac_prev=localstatedir ;;
1004 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006 localstatedir=$ac_optarg ;;
1008 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009 ac_prev=mandir ;;
1010 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011 mandir=$ac_optarg ;;
1013 -nfp | --nfp | --nf)
1014 # Obsolete; use --without-fp.
1015 with_fp=no ;;
1017 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018 | --no-cr | --no-c | -n)
1019 no_create=yes ;;
1021 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023 no_recursion=yes ;;
1025 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027 | --oldin | --oldi | --old | --ol | --o)
1028 ac_prev=oldincludedir ;;
1029 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032 oldincludedir=$ac_optarg ;;
1034 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035 ac_prev=prefix ;;
1036 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037 prefix=$ac_optarg ;;
1039 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040 | --program-pre | --program-pr | --program-p)
1041 ac_prev=program_prefix ;;
1042 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044 program_prefix=$ac_optarg ;;
1046 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047 | --program-suf | --program-su | --program-s)
1048 ac_prev=program_suffix ;;
1049 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051 program_suffix=$ac_optarg ;;
1053 -program-transform-name | --program-transform-name \
1054 | --program-transform-nam | --program-transform-na \
1055 | --program-transform-n | --program-transform- \
1056 | --program-transform | --program-transfor \
1057 | --program-transfo | --program-transf \
1058 | --program-trans | --program-tran \
1059 | --progr-tra | --program-tr | --program-t)
1060 ac_prev=program_transform_name ;;
1061 -program-transform-name=* | --program-transform-name=* \
1062 | --program-transform-nam=* | --program-transform-na=* \
1063 | --program-transform-n=* | --program-transform-=* \
1064 | --program-transform=* | --program-transfor=* \
1065 | --program-transfo=* | --program-transf=* \
1066 | --program-trans=* | --program-tran=* \
1067 | --progr-tra=* | --program-tr=* | --program-t=*)
1068 program_transform_name=$ac_optarg ;;
1070 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071 ac_prev=pdfdir ;;
1072 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073 pdfdir=$ac_optarg ;;
1075 -psdir | --psdir | --psdi | --psd | --ps)
1076 ac_prev=psdir ;;
1077 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078 psdir=$ac_optarg ;;
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1082 silent=yes ;;
1084 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085 ac_prev=sbindir ;;
1086 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087 | --sbi=* | --sb=*)
1088 sbindir=$ac_optarg ;;
1090 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092 | --sharedst | --shareds | --shared | --share | --shar \
1093 | --sha | --sh)
1094 ac_prev=sharedstatedir ;;
1095 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098 | --sha=* | --sh=*)
1099 sharedstatedir=$ac_optarg ;;
1101 -site | --site | --sit)
1102 ac_prev=site ;;
1103 -site=* | --site=* | --sit=*)
1104 site=$ac_optarg ;;
1106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107 ac_prev=srcdir ;;
1108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109 srcdir=$ac_optarg ;;
1111 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112 | --syscon | --sysco | --sysc | --sys | --sy)
1113 ac_prev=sysconfdir ;;
1114 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116 sysconfdir=$ac_optarg ;;
1118 -target | --target | --targe | --targ | --tar | --ta | --t)
1119 ac_prev=target_alias ;;
1120 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121 target_alias=$ac_optarg ;;
1123 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124 verbose=yes ;;
1126 -version | --version | --versio | --versi | --vers | -V)
1127 ac_init_version=: ;;
1129 -with-* | --with-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1138 "with_$ac_useropt"
1139 "*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=\$ac_optarg ;;
1145 -without-* | --without-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid package name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1154 "with_$ac_useropt"
1155 "*) ;;
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1158 esac
1159 eval with_$ac_useropt=no ;;
1161 --x)
1162 # Obsolete; use --with-x.
1163 with_x=yes ;;
1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166 | --x-incl | --x-inc | --x-in | --x-i)
1167 ac_prev=x_includes ;;
1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170 x_includes=$ac_optarg ;;
1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174 ac_prev=x_libraries ;;
1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177 x_libraries=$ac_optarg ;;
1179 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1180 Try \`$0 --help' for more information"
1183 *=*)
1184 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185 # Reject names that are not valid shell variable names.
1186 case $ac_envvar in #(
1187 '' | [0-9]* | *[!_$as_cr_alnum]* )
1188 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1189 esac
1190 eval $ac_envvar=\$ac_optarg
1191 export $ac_envvar ;;
1194 # FIXME: should be removed in autoconf 3.0.
1195 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1201 esac
1202 done
1204 if test -n "$ac_prev"; then
1205 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206 as_fn_error $? "missing argument to $ac_option"
1209 if test -n "$ac_unrecognized_opts"; then
1210 case $enable_option_checking in
1211 no) ;;
1212 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1213 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214 esac
1217 # Check all directory arguments for consistency.
1218 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219 datadir sysconfdir sharedstatedir localstatedir includedir \
1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221 libdir localedir mandir
1223 eval ac_val=\$$ac_var
1224 # Remove trailing slashes.
1225 case $ac_val in
1226 */ )
1227 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228 eval $ac_var=\$ac_val;;
1229 esac
1230 # Be sure to have absolute directory names.
1231 case $ac_val in
1232 [\\/$]* | ?:[\\/]* ) continue;;
1233 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1234 esac
1235 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1236 done
1238 # There might be people who depend on the old broken behavior: `$host'
1239 # used to hold the argument of --host etc.
1240 # FIXME: To remove some day.
1241 build=$build_alias
1242 host=$host_alias
1243 target=$target_alias
1245 # FIXME: To remove some day.
1246 if test "x$host_alias" != x; then
1247 if test "x$build_alias" = x; then
1248 cross_compiling=maybe
1249 elif test "x$build_alias" != "x$host_alias"; then
1250 cross_compiling=yes
1254 ac_tool_prefix=
1255 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257 test "$silent" = yes && exec 6>/dev/null
1260 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1261 ac_ls_di=`ls -di .` &&
1262 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1263 as_fn_error $? "working directory cannot be determined"
1264 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265 as_fn_error $? "pwd does not report name of working directory"
1268 # Find the source files, if location was not specified.
1269 if test -z "$srcdir"; then
1270 ac_srcdir_defaulted=yes
1271 # Try the directory containing this script, then the parent directory.
1272 ac_confdir=`$as_dirname -- "$as_myself" ||
1273 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274 X"$as_myself" : 'X\(//\)[^/]' \| \
1275 X"$as_myself" : 'X\(//\)$' \| \
1276 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1277 $as_echo X"$as_myself" |
1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 s//\1/
1282 /^X\(\/\/\)[^/].*/{
1283 s//\1/
1286 /^X\(\/\/\)$/{
1287 s//\1/
1290 /^X\(\/\).*/{
1291 s//\1/
1294 s/.*/./; q'`
1295 srcdir=$ac_confdir
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 srcdir=..
1299 else
1300 ac_srcdir_defaulted=no
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1306 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1307 ac_abs_confdir=`(
1308 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1309 pwd)`
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 srcdir=.
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1317 case $srcdir in
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319 esac
1320 for ac_var in $ac_precious_vars; do
1321 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_env_${ac_var}_value=\$${ac_var}
1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325 done
1328 # Report the --help message.
1330 if test "$ac_init_help" = "long"; then
1331 # Omit some internal or obsolete options to make the list less imposing.
1332 # This message is too long to be a string in the A/UX 3.1 sh.
1333 cat <<_ACEOF
1334 \`configure' configures sqlcipher 3.11.0 to adapt to many kinds of systems.
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE. See below for descriptions of some of the useful variables.
1341 Defaults for the options are specified in brackets.
1343 Configuration:
1344 -h, --help display this help and exit
1345 --help=short display options specific to this package
1346 --help=recursive display the short help of all the included packages
1347 -V, --version display version information and exit
1348 -q, --quiet, --silent do not print \`checking ...' messages
1349 --cache-file=FILE cache test results in FILE [disabled]
1350 -C, --config-cache alias for \`--cache-file=config.cache'
1351 -n, --no-create do not create output files
1352 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1354 Installation directories:
1355 --prefix=PREFIX install architecture-independent files in PREFIX
1356 [$ac_default_prefix]
1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358 [PREFIX]
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1365 For better control, use the options below.
1367 Fine tuning of the installation directories:
1368 --bindir=DIR user executables [EPREFIX/bin]
1369 --sbindir=DIR system admin executables [EPREFIX/sbin]
1370 --libexecdir=DIR program executables [EPREFIX/libexec]
1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1374 --libdir=DIR object code libraries [EPREFIX/lib]
1375 --includedir=DIR C header files [PREFIX/include]
1376 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1379 --infodir=DIR info documentation [DATAROOTDIR/info]
1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1381 --mandir=DIR man documentation [DATAROOTDIR/man]
1382 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlcipher]
1383 --htmldir=DIR html documentation [DOCDIR]
1384 --dvidir=DIR dvi documentation [DOCDIR]
1385 --pdfdir=DIR pdf documentation [DOCDIR]
1386 --psdir=DIR ps documentation [DOCDIR]
1387 _ACEOF
1389 cat <<\_ACEOF
1391 System types:
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 _ACEOF
1397 if test -n "$ac_init_help"; then
1398 case $ac_init_help in
1399 short | recursive ) echo "Configuration of sqlcipher 3.11.0:";;
1400 esac
1401 cat <<\_ACEOF
1403 Optional Features:
1404 --disable-option-checking ignore unrecognized --enable/--with options
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1407 --enable-shared[=PKGS] build shared libraries [default=yes]
1408 --enable-static[=PKGS] build static libraries [default=yes]
1409 --enable-fast-install[=PKGS]
1410 optimize for fast installation [default=yes]
1411 --disable-libtool-lock avoid locking (might break parallel builds)
1412 --disable-largefile omit support for large files
1413 --disable-threadsafe Disable mutexing
1414 --enable-cross-thread-connections
1415 Allow connection sharing across threads
1416 --enable-releasemode Support libtool link to release mode
1417 --enable-tempstore Use an in-ram database for temporary tables
1418 (never,no,yes,always)
1419 --disable-tcl do not build TCL extension
1420 --enable-editline enable BSD editline support
1421 --disable-readline disable readline support
1422 --enable-debug enable debugging & verbose explain
1423 --disable-amalgamation Disable the amalgamation and instead build all files
1424 separately
1425 --disable-load-extension
1426 Disable loading of external extensions
1427 --enable-fts3 Enable the FTS3 extension
1428 --enable-fts4 Enable the FTS4 extension
1429 --enable-fts5 Enable the FTS5 extension
1430 --enable-json1 Enable the JSON1 extension
1431 --enable-rtree Enable the RTREE extension
1432 --enable-gcov Enable coverage testing using gcov
1434 Optional Packages:
1435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1437 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1438 both]
1439 --with-aix-soname=aix|svr4|both
1440 shared library versioning (aka "SONAME") variant to
1441 provide on AIX, [default=aix].
1442 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1443 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1444 compiler's sysroot if not specified).
1445 --with-crypto-lib Specify which crypto library to use
1446 --with-tcl=DIR directory containing tcl configuration
1447 (tclConfig.sh)
1448 --with-readline-lib specify readline library
1449 --with-readline-inc specify readline include paths
1451 Some influential environment variables:
1452 CC C compiler command
1453 CFLAGS C compiler flags
1454 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1455 nonstandard directory <lib dir>
1456 LIBS libraries to pass to the linker, e.g. -l<library>
1457 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1458 you have headers in a nonstandard directory <include dir>
1459 LT_SYS_LIBRARY_PATH
1460 User-defined run-time library search path.
1461 CPP C preprocessor
1462 TCLLIBDIR Where to install tcl plugin
1464 Use these variables to override the choices made by `configure' or to help
1465 it to find libraries and programs with nonstandard names/locations.
1467 Report bugs to the package provider.
1468 _ACEOF
1469 ac_status=$?
1472 if test "$ac_init_help" = "recursive"; then
1473 # If there are subdirs, report their specific --help.
1474 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1475 test -d "$ac_dir" ||
1476 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477 continue
1478 ac_builddir=.
1480 case "$ac_dir" in
1481 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1484 # A ".." for each directory in $ac_dir_suffix.
1485 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1486 case $ac_top_builddir_sub in
1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489 esac ;;
1490 esac
1491 ac_abs_top_builddir=$ac_pwd
1492 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493 # for backward compatibility:
1494 ac_top_builddir=$ac_top_build_prefix
1496 case $srcdir in
1497 .) # We are building in place.
1498 ac_srcdir=.
1499 ac_top_srcdir=$ac_top_builddir_sub
1500 ac_abs_top_srcdir=$ac_pwd ;;
1501 [\\/]* | ?:[\\/]* ) # Absolute name.
1502 ac_srcdir=$srcdir$ac_dir_suffix;
1503 ac_top_srcdir=$srcdir
1504 ac_abs_top_srcdir=$srcdir ;;
1505 *) # Relative name.
1506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507 ac_top_srcdir=$ac_top_build_prefix$srcdir
1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1509 esac
1510 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1512 cd "$ac_dir" || { ac_status=$?; continue; }
1513 # Check for guested configure.
1514 if test -f "$ac_srcdir/configure.gnu"; then
1515 echo &&
1516 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1517 elif test -f "$ac_srcdir/configure"; then
1518 echo &&
1519 $SHELL "$ac_srcdir/configure" --help=recursive
1520 else
1521 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1522 fi || ac_status=$?
1523 cd "$ac_pwd" || { ac_status=$?; break; }
1524 done
1527 test -n "$ac_init_help" && exit $ac_status
1528 if $ac_init_version; then
1529 cat <<\_ACEOF
1530 sqlcipher configure 3.11.0
1531 generated by GNU Autoconf 2.69
1533 Copyright (C) 2012 Free Software Foundation, Inc.
1534 This configure script is free software; the Free Software Foundation
1535 gives unlimited permission to copy, distribute and modify it.
1536 _ACEOF
1537 exit
1540 ## ------------------------ ##
1541 ## Autoconf initialization. ##
1542 ## ------------------------ ##
1544 # ac_fn_c_try_compile LINENO
1545 # --------------------------
1546 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1547 ac_fn_c_try_compile ()
1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550 rm -f conftest.$ac_objext
1551 if { { ac_try="$ac_compile"
1552 case "(($ac_try" in
1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554 *) ac_try_echo=$ac_try;;
1555 esac
1556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557 $as_echo "$ac_try_echo"; } >&5
1558 (eval "$ac_compile") 2>conftest.err
1559 ac_status=$?
1560 if test -s conftest.err; then
1561 grep -v '^ *+' conftest.err >conftest.er1
1562 cat conftest.er1 >&5
1563 mv -f conftest.er1 conftest.err
1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566 test $ac_status = 0; } && {
1567 test -z "$ac_c_werror_flag" ||
1568 test ! -s conftest.err
1569 } && test -s conftest.$ac_objext; then :
1570 ac_retval=0
1571 else
1572 $as_echo "$as_me: failed program was:" >&5
1573 sed 's/^/| /' conftest.$ac_ext >&5
1575 ac_retval=1
1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578 as_fn_set_status $ac_retval
1580 } # ac_fn_c_try_compile
1582 # ac_fn_c_try_link LINENO
1583 # -----------------------
1584 # Try to link conftest.$ac_ext, and return whether this succeeded.
1585 ac_fn_c_try_link ()
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 rm -f conftest.$ac_objext conftest$ac_exeext
1589 if { { ac_try="$ac_link"
1590 case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_link") 2>conftest.err
1597 ac_status=$?
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } && {
1605 test -z "$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 } && test -s conftest$ac_exeext && {
1608 test "$cross_compiling" = yes ||
1609 test -x conftest$ac_exeext
1610 }; then :
1611 ac_retval=0
1612 else
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1616 ac_retval=1
1618 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1619 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1620 # interfere with the next link command; also delete a directory that is
1621 # left behind by Apple's compiler. We do this before executing the actions.
1622 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1626 } # ac_fn_c_try_link
1628 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1629 # -------------------------------------------------------
1630 # Tests whether HEADER exists and can be compiled using the include files in
1631 # INCLUDES, setting the cache variable VAR accordingly.
1632 ac_fn_c_check_header_compile ()
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636 $as_echo_n "checking for $2... " >&6; }
1637 if eval \${$3+:} false; then :
1638 $as_echo_n "(cached) " >&6
1639 else
1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641 /* end confdefs.h. */
1643 #include <$2>
1644 _ACEOF
1645 if ac_fn_c_try_compile "$LINENO"; then :
1646 eval "$3=yes"
1647 else
1648 eval "$3=no"
1650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1652 eval ac_res=\$$3
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654 $as_echo "$ac_res" >&6; }
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 } # ac_fn_c_check_header_compile
1659 # ac_fn_c_try_cpp LINENO
1660 # ----------------------
1661 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_c_try_cpp ()
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 if { { ac_try="$ac_cpp conftest.$ac_ext"
1666 case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1673 ac_status=$?
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } > conftest.i && {
1681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 }; then :
1684 ac_retval=0
1685 else
1686 $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1689 ac_retval=1
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 as_fn_set_status $ac_retval
1694 } # ac_fn_c_try_cpp
1696 # ac_fn_c_try_run LINENO
1697 # ----------------------
1698 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1699 # that executables *can* be run.
1700 ac_fn_c_try_run ()
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 if { { ac_try="$ac_link"
1704 case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_link") 2>&5
1711 ac_status=$?
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1714 { { case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_try") 2>&5
1721 ac_status=$?
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; }; }; then :
1724 ac_retval=0
1725 else
1726 $as_echo "$as_me: program exited with status $ac_status" >&5
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1730 ac_retval=$ac_status
1732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 as_fn_set_status $ac_retval
1736 } # ac_fn_c_try_run
1738 # ac_fn_c_check_func LINENO FUNC VAR
1739 # ----------------------------------
1740 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1741 ac_fn_c_check_func ()
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval \${$3+:} false; then :
1747 $as_echo_n "(cached) " >&6
1748 else
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1753 #define $2 innocuous_$2
1755 /* System header to define __stub macros and hopefully few prototypes,
1756 which can conflict with char $2 (); below.
1757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1758 <limits.h> exists even on freestanding compilers. */
1760 #ifdef __STDC__
1761 # include <limits.h>
1762 #else
1763 # include <assert.h>
1764 #endif
1766 #undef $2
1768 /* Override any GCC internal prototype to avoid an error.
1769 Use char because int might match the return type of a GCC
1770 builtin and then its argument prototype would still apply. */
1771 #ifdef __cplusplus
1772 extern "C"
1773 #endif
1774 char $2 ();
1775 /* The GNU C library defines this for functions which it implements
1776 to always fail with ENOSYS. Some functions are actually named
1777 something starting with __ and the normal name is an alias. */
1778 #if defined __stub_$2 || defined __stub___$2
1779 choke me
1780 #endif
1783 main ()
1785 return $2 ();
1787 return 0;
1789 _ACEOF
1790 if ac_fn_c_try_link "$LINENO"; then :
1791 eval "$3=yes"
1792 else
1793 eval "$3=no"
1795 rm -f core conftest.err conftest.$ac_objext \
1796 conftest$ac_exeext conftest.$ac_ext
1798 eval ac_res=\$$3
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 $as_echo "$ac_res" >&6; }
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 } # ac_fn_c_check_func
1805 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1806 # -------------------------------------------
1807 # Tests whether TYPE exists after having included INCLUDES, setting cache
1808 # variable VAR accordingly.
1809 ac_fn_c_check_type ()
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1813 $as_echo_n "checking for $2... " >&6; }
1814 if eval \${$3+:} false; then :
1815 $as_echo_n "(cached) " >&6
1816 else
1817 eval "$3=no"
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1822 main ()
1824 if (sizeof ($2))
1825 return 0;
1827 return 0;
1829 _ACEOF
1830 if ac_fn_c_try_compile "$LINENO"; then :
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1835 main ()
1837 if (sizeof (($2)))
1838 return 0;
1840 return 0;
1842 _ACEOF
1843 if ac_fn_c_try_compile "$LINENO"; then :
1845 else
1846 eval "$3=yes"
1848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852 eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 } # ac_fn_c_check_type
1859 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1860 # -------------------------------------------------------
1861 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1862 # the include files in INCLUDES and setting the cache variable VAR
1863 # accordingly.
1864 ac_fn_c_check_header_mongrel ()
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 if eval \${$3+:} false; then :
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871 $as_echo_n "(cached) " >&6
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 else
1877 # Is the header compilable?
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1879 $as_echo_n "checking $2 usability... " >&6; }
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1883 #include <$2>
1884 _ACEOF
1885 if ac_fn_c_try_compile "$LINENO"; then :
1886 ac_header_compiler=yes
1887 else
1888 ac_header_compiler=no
1890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1892 $as_echo "$ac_header_compiler" >&6; }
1894 # Is the header present?
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1896 $as_echo_n "checking $2 presence... " >&6; }
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1899 #include <$2>
1900 _ACEOF
1901 if ac_fn_c_try_cpp "$LINENO"; then :
1902 ac_header_preproc=yes
1903 else
1904 ac_header_preproc=no
1906 rm -f conftest.err conftest.i conftest.$ac_ext
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1908 $as_echo "$ac_header_preproc" >&6; }
1910 # So? What about this header?
1911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1912 yes:no: )
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1914 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1916 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1918 no:yes:* )
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1920 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1922 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1924 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1926 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1928 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1930 esac
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932 $as_echo_n "checking for $2... " >&6; }
1933 if eval \${$3+:} false; then :
1934 $as_echo_n "(cached) " >&6
1935 else
1936 eval "$3=\$ac_header_compiler"
1938 eval ac_res=\$$3
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944 } # ac_fn_c_check_header_mongrel
1945 cat >config.log <<_ACEOF
1946 This file contains any messages produced by compilers while
1947 running configure, to aid debugging if configure makes a mistake.
1949 It was created by sqlcipher $as_me 3.11.0, which was
1950 generated by GNU Autoconf 2.69. Invocation command line was
1952 $ $0 $@
1954 _ACEOF
1955 exec 5>>config.log
1957 cat <<_ASUNAME
1958 ## --------- ##
1959 ## Platform. ##
1960 ## --------- ##
1962 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1963 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1964 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1965 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1966 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1968 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1969 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1971 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1972 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1973 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1974 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1975 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1976 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1977 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1979 _ASUNAME
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 for as_dir in $PATH
1984 IFS=$as_save_IFS
1985 test -z "$as_dir" && as_dir=.
1986 $as_echo "PATH: $as_dir"
1987 done
1988 IFS=$as_save_IFS
1990 } >&5
1992 cat >&5 <<_ACEOF
1995 ## ----------- ##
1996 ## Core tests. ##
1997 ## ----------- ##
1999 _ACEOF
2002 # Keep a trace of the command line.
2003 # Strip out --no-create and --no-recursion so they do not pile up.
2004 # Strip out --silent because we don't want to record it for future runs.
2005 # Also quote any args containing shell meta-characters.
2006 # Make two passes to allow for proper duplicate-argument suppression.
2007 ac_configure_args=
2008 ac_configure_args0=
2009 ac_configure_args1=
2010 ac_must_keep_next=false
2011 for ac_pass in 1 2
2013 for ac_arg
2015 case $ac_arg in
2016 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2018 | -silent | --silent | --silen | --sile | --sil)
2019 continue ;;
2020 *\'*)
2021 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2022 esac
2023 case $ac_pass in
2024 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2026 as_fn_append ac_configure_args1 " '$ac_arg'"
2027 if test $ac_must_keep_next = true; then
2028 ac_must_keep_next=false # Got value, back to normal.
2029 else
2030 case $ac_arg in
2031 *=* | --config-cache | -C | -disable-* | --disable-* \
2032 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2033 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2034 | -with-* | --with-* | -without-* | --without-* | --x)
2035 case "$ac_configure_args0 " in
2036 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2037 esac
2039 -* ) ac_must_keep_next=true ;;
2040 esac
2042 as_fn_append ac_configure_args " '$ac_arg'"
2044 esac
2045 done
2046 done
2047 { ac_configure_args0=; unset ac_configure_args0;}
2048 { ac_configure_args1=; unset ac_configure_args1;}
2050 # When interrupted or exit'd, cleanup temporary files, and complete
2051 # config.log. We remove comments because anyway the quotes in there
2052 # would cause problems or look ugly.
2053 # WARNING: Use '\'' to represent an apostrophe within the trap.
2054 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2055 trap 'exit_status=$?
2056 # Save into config.log some information that might help in debugging.
2058 echo
2060 $as_echo "## ---------------- ##
2061 ## Cache variables. ##
2062 ## ---------------- ##"
2063 echo
2064 # The following way of writing the cache mishandles newlines in values,
2066 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2067 eval ac_val=\$$ac_var
2068 case $ac_val in #(
2069 *${as_nl}*)
2070 case $ac_var in #(
2071 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2072 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2073 esac
2074 case $ac_var in #(
2075 _ | IFS | as_nl) ;; #(
2076 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2077 *) { eval $ac_var=; unset $ac_var;} ;;
2078 esac ;;
2079 esac
2080 done
2081 (set) 2>&1 |
2082 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2083 *${as_nl}ac_space=\ *)
2084 sed -n \
2085 "s/'\''/'\''\\\\'\'''\''/g;
2086 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2087 ;; #(
2089 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2091 esac |
2092 sort
2094 echo
2096 $as_echo "## ----------------- ##
2097 ## Output variables. ##
2098 ## ----------------- ##"
2099 echo
2100 for ac_var in $ac_subst_vars
2102 eval ac_val=\$$ac_var
2103 case $ac_val in
2104 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2105 esac
2106 $as_echo "$ac_var='\''$ac_val'\''"
2107 done | sort
2108 echo
2110 if test -n "$ac_subst_files"; then
2111 $as_echo "## ------------------- ##
2112 ## File substitutions. ##
2113 ## ------------------- ##"
2114 echo
2115 for ac_var in $ac_subst_files
2117 eval ac_val=\$$ac_var
2118 case $ac_val in
2119 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2120 esac
2121 $as_echo "$ac_var='\''$ac_val'\''"
2122 done | sort
2123 echo
2126 if test -s confdefs.h; then
2127 $as_echo "## ----------- ##
2128 ## confdefs.h. ##
2129 ## ----------- ##"
2130 echo
2131 cat confdefs.h
2132 echo
2134 test "$ac_signal" != 0 &&
2135 $as_echo "$as_me: caught signal $ac_signal"
2136 $as_echo "$as_me: exit $exit_status"
2137 } >&5
2138 rm -f core *.core core.conftest.* &&
2139 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2140 exit $exit_status
2142 for ac_signal in 1 2 13 15; do
2143 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2144 done
2145 ac_signal=0
2147 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2148 rm -f -r conftest* confdefs.h
2150 $as_echo "/* confdefs.h */" > confdefs.h
2152 # Predefined preprocessor variables.
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_NAME "$PACKAGE_NAME"
2156 _ACEOF
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2160 _ACEOF
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2164 _ACEOF
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_STRING "$PACKAGE_STRING"
2168 _ACEOF
2170 cat >>confdefs.h <<_ACEOF
2171 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2172 _ACEOF
2174 cat >>confdefs.h <<_ACEOF
2175 #define PACKAGE_URL "$PACKAGE_URL"
2176 _ACEOF
2179 # Let the site file select an alternate cache file if it wants to.
2180 # Prefer an explicitly selected file to automatically selected ones.
2181 ac_site_file1=NONE
2182 ac_site_file2=NONE
2183 if test -n "$CONFIG_SITE"; then
2184 # We do not want a PATH search for config.site.
2185 case $CONFIG_SITE in #((
2186 -*) ac_site_file1=./$CONFIG_SITE;;
2187 */*) ac_site_file1=$CONFIG_SITE;;
2188 *) ac_site_file1=./$CONFIG_SITE;;
2189 esac
2190 elif test "x$prefix" != xNONE; then
2191 ac_site_file1=$prefix/share/config.site
2192 ac_site_file2=$prefix/etc/config.site
2193 else
2194 ac_site_file1=$ac_default_prefix/share/config.site
2195 ac_site_file2=$ac_default_prefix/etc/config.site
2197 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2199 test "x$ac_site_file" = xNONE && continue
2200 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2202 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2203 sed 's/^/| /' "$ac_site_file" >&5
2204 . "$ac_site_file" \
2205 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2207 as_fn_error $? "failed to load site script $ac_site_file
2208 See \`config.log' for more details" "$LINENO" 5; }
2210 done
2212 if test -r "$cache_file"; then
2213 # Some versions of bash will fail to source /dev/null (special files
2214 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2215 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2217 $as_echo "$as_me: loading cache $cache_file" >&6;}
2218 case $cache_file in
2219 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2220 *) . "./$cache_file";;
2221 esac
2223 else
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2225 $as_echo "$as_me: creating cache $cache_file" >&6;}
2226 >$cache_file
2229 # Check that the precious variables saved in the cache have kept the same
2230 # value.
2231 ac_cache_corrupted=false
2232 for ac_var in $ac_precious_vars; do
2233 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2234 eval ac_new_set=\$ac_env_${ac_var}_set
2235 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2236 eval ac_new_val=\$ac_env_${ac_var}_value
2237 case $ac_old_set,$ac_new_set in
2238 set,)
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2240 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2241 ac_cache_corrupted=: ;;
2242 ,set)
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2244 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2245 ac_cache_corrupted=: ;;
2246 ,);;
2248 if test "x$ac_old_val" != "x$ac_new_val"; then
2249 # differences in whitespace do not lead to failure.
2250 ac_old_val_w=`echo x $ac_old_val`
2251 ac_new_val_w=`echo x $ac_new_val`
2252 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2254 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2255 ac_cache_corrupted=:
2256 else
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2258 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2259 eval $ac_var=\$ac_old_val
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2262 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2264 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2265 fi;;
2266 esac
2267 # Pass precious variables to config.status.
2268 if test "$ac_new_set" = set; then
2269 case $ac_new_val in
2270 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2271 *) ac_arg=$ac_var=$ac_new_val ;;
2272 esac
2273 case " $ac_configure_args " in
2274 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2275 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2276 esac
2278 done
2279 if $ac_cache_corrupted; then
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2283 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2284 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2286 ## -------------------- ##
2287 ## Main body of script. ##
2288 ## -------------------- ##
2290 ac_ext=c
2291 ac_cpp='$CPP $CPPFLAGS'
2292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2298 sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
2299 if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2300 as_fn_error $? "configure script is out of date:
2301 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2302 top level VERSION file = $sqlite_version_sanity_check
2303 please regen with autoconf" "$LINENO" 5
2306 #########
2307 # Programs needed
2309 ac_aux_dir=
2310 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2311 if test -f "$ac_dir/install-sh"; then
2312 ac_aux_dir=$ac_dir
2313 ac_install_sh="$ac_aux_dir/install-sh -c"
2314 break
2315 elif test -f "$ac_dir/install.sh"; then
2316 ac_aux_dir=$ac_dir
2317 ac_install_sh="$ac_aux_dir/install.sh -c"
2318 break
2319 elif test -f "$ac_dir/shtool"; then
2320 ac_aux_dir=$ac_dir
2321 ac_install_sh="$ac_aux_dir/shtool install -c"
2322 break
2324 done
2325 if test -z "$ac_aux_dir"; then
2326 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2329 # These three variables are undocumented and unsupported,
2330 # and are intended to be withdrawn in a future Autoconf release.
2331 # They can cause serious problems if a builder's source tree is in a directory
2332 # whose full name contains unusual characters.
2333 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2334 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2335 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2338 case `pwd` in
2339 *\ * | *\ *)
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2341 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2342 esac
2346 macro_version='2.4.6'
2347 macro_revision='2.4.6'
2361 ltmain=$ac_aux_dir/ltmain.sh
2363 # Make sure we can run config.sub.
2364 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2365 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2368 $as_echo_n "checking build system type... " >&6; }
2369 if ${ac_cv_build+:} false; then :
2370 $as_echo_n "(cached) " >&6
2371 else
2372 ac_build_alias=$build_alias
2373 test "x$ac_build_alias" = x &&
2374 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2375 test "x$ac_build_alias" = x &&
2376 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2377 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2378 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2382 $as_echo "$ac_cv_build" >&6; }
2383 case $ac_cv_build in
2384 *-*-*) ;;
2385 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2386 esac
2387 build=$ac_cv_build
2388 ac_save_IFS=$IFS; IFS='-'
2389 set x $ac_cv_build
2390 shift
2391 build_cpu=$1
2392 build_vendor=$2
2393 shift; shift
2394 # Remember, the first character of IFS is used to create $*,
2395 # except with old shells:
2396 build_os=$*
2397 IFS=$ac_save_IFS
2398 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2402 $as_echo_n "checking host system type... " >&6; }
2403 if ${ac_cv_host+:} false; then :
2404 $as_echo_n "(cached) " >&6
2405 else
2406 if test "x$host_alias" = x; then
2407 ac_cv_host=$ac_cv_build
2408 else
2409 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2410 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2415 $as_echo "$ac_cv_host" >&6; }
2416 case $ac_cv_host in
2417 *-*-*) ;;
2418 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2419 esac
2420 host=$ac_cv_host
2421 ac_save_IFS=$IFS; IFS='-'
2422 set x $ac_cv_host
2423 shift
2424 host_cpu=$1
2425 host_vendor=$2
2426 shift; shift
2427 # Remember, the first character of IFS is used to create $*,
2428 # except with old shells:
2429 host_os=$*
2430 IFS=$ac_save_IFS
2431 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2434 # Backslashify metacharacters that are still active within
2435 # double-quoted strings.
2436 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2438 # Same as above, but do not quote variable references.
2439 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2441 # Sed substitution to delay expansion of an escaped shell variable in a
2442 # double_quote_subst'ed string.
2443 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2445 # Sed substitution to delay expansion of an escaped single quote.
2446 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2448 # Sed substitution to avoid accidental globbing in evaled expressions
2449 no_glob_subst='s/\*/\\\*/g'
2451 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2452 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2453 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2456 $as_echo_n "checking how to print strings... " >&6; }
2457 # Test print first, because it will be a builtin if present.
2458 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2459 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2460 ECHO='print -r --'
2461 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2462 ECHO='printf %s\n'
2463 else
2464 # Use this function as a fallback that always works.
2465 func_fallback_echo ()
2467 eval 'cat <<_LTECHO_EOF
2469 _LTECHO_EOF'
2471 ECHO='func_fallback_echo'
2474 # func_echo_all arg...
2475 # Invoke $ECHO with all args, space-separated.
2476 func_echo_all ()
2478 $ECHO ""
2481 case $ECHO in
2482 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2483 $as_echo "printf" >&6; } ;;
2484 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2485 $as_echo "print -r" >&6; } ;;
2486 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2487 $as_echo "cat" >&6; } ;;
2488 esac
2503 ac_ext=c
2504 ac_cpp='$CPP $CPPFLAGS'
2505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2508 if test -n "$ac_tool_prefix"; then
2509 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2510 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2512 $as_echo_n "checking for $ac_word... " >&6; }
2513 if ${ac_cv_prog_CC+:} false; then :
2514 $as_echo_n "(cached) " >&6
2515 else
2516 if test -n "$CC"; then
2517 ac_cv_prog_CC="$CC" # Let the user override the test.
2518 else
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520 for as_dir in $PATH
2522 IFS=$as_save_IFS
2523 test -z "$as_dir" && as_dir=.
2524 for ac_exec_ext in '' $ac_executable_extensions; do
2525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2526 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2528 break 2
2530 done
2531 done
2532 IFS=$as_save_IFS
2536 CC=$ac_cv_prog_CC
2537 if test -n "$CC"; then
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2539 $as_echo "$CC" >&6; }
2540 else
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2542 $as_echo "no" >&6; }
2547 if test -z "$ac_cv_prog_CC"; then
2548 ac_ct_CC=$CC
2549 # Extract the first word of "gcc", so it can be a program name with args.
2550 set dummy gcc; ac_word=$2
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2552 $as_echo_n "checking for $ac_word... " >&6; }
2553 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2554 $as_echo_n "(cached) " >&6
2555 else
2556 if test -n "$ac_ct_CC"; then
2557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2562 IFS=$as_save_IFS
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2566 ac_cv_prog_ac_ct_CC="gcc"
2567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2568 break 2
2570 done
2571 done
2572 IFS=$as_save_IFS
2576 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2577 if test -n "$ac_ct_CC"; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2579 $as_echo "$ac_ct_CC" >&6; }
2580 else
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582 $as_echo "no" >&6; }
2585 if test "x$ac_ct_CC" = x; then
2586 CC=""
2587 else
2588 case $cross_compiling:$ac_tool_warned in
2589 yes:)
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2592 ac_tool_warned=yes ;;
2593 esac
2594 CC=$ac_ct_CC
2596 else
2597 CC="$ac_cv_prog_CC"
2600 if test -z "$CC"; then
2601 if test -n "$ac_tool_prefix"; then
2602 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2603 set dummy ${ac_tool_prefix}cc; ac_word=$2
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if ${ac_cv_prog_CC+:} false; then :
2607 $as_echo_n "(cached) " >&6
2608 else
2609 if test -n "$CC"; then
2610 ac_cv_prog_CC="$CC" # Let the user override the test.
2611 else
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619 ac_cv_prog_CC="${ac_tool_prefix}cc"
2620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 break 2
2623 done
2624 done
2625 IFS=$as_save_IFS
2629 CC=$ac_cv_prog_CC
2630 if test -n "$CC"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2632 $as_echo "$CC" >&6; }
2633 else
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635 $as_echo "no" >&6; }
2641 if test -z "$CC"; then
2642 # Extract the first word of "cc", so it can be a program name with args.
2643 set dummy cc; ac_word=$2
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2645 $as_echo_n "checking for $ac_word... " >&6; }
2646 if ${ac_cv_prog_CC+:} false; then :
2647 $as_echo_n "(cached) " >&6
2648 else
2649 if test -n "$CC"; then
2650 ac_cv_prog_CC="$CC" # Let the user override the test.
2651 else
2652 ac_prog_rejected=no
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2656 IFS=$as_save_IFS
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2660 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2661 ac_prog_rejected=yes
2662 continue
2664 ac_cv_prog_CC="cc"
2665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 break 2
2668 done
2669 done
2670 IFS=$as_save_IFS
2672 if test $ac_prog_rejected = yes; then
2673 # We found a bogon in the path, so make sure we never use it.
2674 set dummy $ac_cv_prog_CC
2675 shift
2676 if test $# != 0; then
2677 # We chose a different compiler from the bogus one.
2678 # However, it has the same basename, so the bogon will be chosen
2679 # first if we set CC to just the basename; use the full file name.
2680 shift
2681 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2686 CC=$ac_cv_prog_CC
2687 if test -n "$CC"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2689 $as_echo "$CC" >&6; }
2690 else
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 $as_echo "no" >&6; }
2697 if test -z "$CC"; then
2698 if test -n "$ac_tool_prefix"; then
2699 for ac_prog in cl.exe
2701 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2702 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2704 $as_echo_n "checking for $ac_word... " >&6; }
2705 if ${ac_cv_prog_CC+:} false; then :
2706 $as_echo_n "(cached) " >&6
2707 else
2708 if test -n "$CC"; then
2709 ac_cv_prog_CC="$CC" # Let the user override the test.
2710 else
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2718 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 break 2
2722 done
2723 done
2724 IFS=$as_save_IFS
2728 CC=$ac_cv_prog_CC
2729 if test -n "$CC"; then
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2731 $as_echo "$CC" >&6; }
2732 else
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734 $as_echo "no" >&6; }
2738 test -n "$CC" && break
2739 done
2741 if test -z "$CC"; then
2742 ac_ct_CC=$CC
2743 for ac_prog in cl.exe
2745 # Extract the first word of "$ac_prog", so it can be a program name with args.
2746 set dummy $ac_prog; ac_word=$2
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748 $as_echo_n "checking for $ac_word... " >&6; }
2749 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2750 $as_echo_n "(cached) " >&6
2751 else
2752 if test -n "$ac_ct_CC"; then
2753 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2754 else
2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 for as_dir in $PATH
2758 IFS=$as_save_IFS
2759 test -z "$as_dir" && as_dir=.
2760 for ac_exec_ext in '' $ac_executable_extensions; do
2761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2762 ac_cv_prog_ac_ct_CC="$ac_prog"
2763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2764 break 2
2766 done
2767 done
2768 IFS=$as_save_IFS
2772 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2773 if test -n "$ac_ct_CC"; then
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2775 $as_echo "$ac_ct_CC" >&6; }
2776 else
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778 $as_echo "no" >&6; }
2782 test -n "$ac_ct_CC" && break
2783 done
2785 if test "x$ac_ct_CC" = x; then
2786 CC=""
2787 else
2788 case $cross_compiling:$ac_tool_warned in
2789 yes:)
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2792 ac_tool_warned=yes ;;
2793 esac
2794 CC=$ac_ct_CC
2801 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2803 as_fn_error $? "no acceptable C compiler found in \$PATH
2804 See \`config.log' for more details" "$LINENO" 5; }
2806 # Provide some information about the compiler.
2807 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2808 set X $ac_compile
2809 ac_compiler=$2
2810 for ac_option in --version -v -V -qversion; do
2811 { { ac_try="$ac_compiler $ac_option >&5"
2812 case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815 esac
2816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2817 $as_echo "$ac_try_echo"; } >&5
2818 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2819 ac_status=$?
2820 if test -s conftest.err; then
2821 sed '10a\
2822 ... rest of stderr output deleted ...
2823 10q' conftest.err >conftest.er1
2824 cat conftest.er1 >&5
2826 rm -f conftest.er1 conftest.err
2827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2828 test $ac_status = 0; }
2829 done
2831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2832 /* end confdefs.h. */
2835 main ()
2839 return 0;
2841 _ACEOF
2842 ac_clean_files_save=$ac_clean_files
2843 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2844 # Try to create an executable without -o first, disregard a.out.
2845 # It will help us diagnose broken compilers, and finding out an intuition
2846 # of exeext.
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2848 $as_echo_n "checking whether the C compiler works... " >&6; }
2849 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2851 # The possible output files:
2852 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2854 ac_rmfiles=
2855 for ac_file in $ac_files
2857 case $ac_file in
2858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2859 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2860 esac
2861 done
2862 rm -f $ac_rmfiles
2864 if { { ac_try="$ac_link_default"
2865 case "(($ac_try" in
2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2868 esac
2869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2870 $as_echo "$ac_try_echo"; } >&5
2871 (eval "$ac_link_default") 2>&5
2872 ac_status=$?
2873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2874 test $ac_status = 0; }; then :
2875 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2876 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2877 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2878 # so that the user can short-circuit this test for compilers unknown to
2879 # Autoconf.
2880 for ac_file in $ac_files ''
2882 test -f "$ac_file" || continue
2883 case $ac_file in
2884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2886 [ab].out )
2887 # We found the default executable, but exeext='' is most
2888 # certainly right.
2889 break;;
2890 *.* )
2891 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2892 then :; else
2893 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2895 # We set ac_cv_exeext here because the later test for it is not
2896 # safe: cross compilers may not add the suffix if given an `-o'
2897 # argument, so we may need to know it at that point already.
2898 # Even if this section looks crufty: it has the advantage of
2899 # actually working.
2900 break;;
2902 break;;
2903 esac
2904 done
2905 test "$ac_cv_exeext" = no && ac_cv_exeext=
2907 else
2908 ac_file=''
2910 if test -z "$ac_file"; then :
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2913 $as_echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2918 as_fn_error 77 "C compiler cannot create executables
2919 See \`config.log' for more details" "$LINENO" 5; }
2920 else
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2922 $as_echo "yes" >&6; }
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2925 $as_echo_n "checking for C compiler default output file name... " >&6; }
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2927 $as_echo "$ac_file" >&6; }
2928 ac_exeext=$ac_cv_exeext
2930 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2931 ac_clean_files=$ac_clean_files_save
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2933 $as_echo_n "checking for suffix of executables... " >&6; }
2934 if { { ac_try="$ac_link"
2935 case "(($ac_try" in
2936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937 *) ac_try_echo=$ac_try;;
2938 esac
2939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2940 $as_echo "$ac_try_echo"; } >&5
2941 (eval "$ac_link") 2>&5
2942 ac_status=$?
2943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2944 test $ac_status = 0; }; then :
2945 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2946 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2947 # work properly (i.e., refer to `conftest.exe'), while it won't with
2948 # `rm'.
2949 for ac_file in conftest.exe conftest conftest.*; do
2950 test -f "$ac_file" || continue
2951 case $ac_file in
2952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2953 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2954 break;;
2955 * ) break;;
2956 esac
2957 done
2958 else
2959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2961 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2962 See \`config.log' for more details" "$LINENO" 5; }
2964 rm -f conftest conftest$ac_cv_exeext
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2966 $as_echo "$ac_cv_exeext" >&6; }
2968 rm -f conftest.$ac_ext
2969 EXEEXT=$ac_cv_exeext
2970 ac_exeext=$EXEEXT
2971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2972 /* end confdefs.h. */
2973 #include <stdio.h>
2975 main ()
2977 FILE *f = fopen ("conftest.out", "w");
2978 return ferror (f) || fclose (f) != 0;
2981 return 0;
2983 _ACEOF
2984 ac_clean_files="$ac_clean_files conftest.out"
2985 # Check that the compiler produces executables we can run. If not, either
2986 # the compiler is broken, or we cross compile.
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2988 $as_echo_n "checking whether we are cross compiling... " >&6; }
2989 if test "$cross_compiling" != yes; then
2990 { { ac_try="$ac_link"
2991 case "(($ac_try" in
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2994 esac
2995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2996 $as_echo "$ac_try_echo"; } >&5
2997 (eval "$ac_link") 2>&5
2998 ac_status=$?
2999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3000 test $ac_status = 0; }
3001 if { ac_try='./conftest$ac_cv_exeext'
3002 { { case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005 esac
3006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3007 $as_echo "$ac_try_echo"; } >&5
3008 (eval "$ac_try") 2>&5
3009 ac_status=$?
3010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3011 test $ac_status = 0; }; }; then
3012 cross_compiling=no
3013 else
3014 if test "$cross_compiling" = maybe; then
3015 cross_compiling=yes
3016 else
3017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019 as_fn_error $? "cannot run C compiled programs.
3020 If you meant to cross compile, use \`--host'.
3021 See \`config.log' for more details" "$LINENO" 5; }
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3026 $as_echo "$cross_compiling" >&6; }
3028 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3029 ac_clean_files=$ac_clean_files_save
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3031 $as_echo_n "checking for suffix of object files... " >&6; }
3032 if ${ac_cv_objext+:} false; then :
3033 $as_echo_n "(cached) " >&6
3034 else
3035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3036 /* end confdefs.h. */
3039 main ()
3043 return 0;
3045 _ACEOF
3046 rm -f conftest.o conftest.obj
3047 if { { ac_try="$ac_compile"
3048 case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051 esac
3052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3053 $as_echo "$ac_try_echo"; } >&5
3054 (eval "$ac_compile") 2>&5
3055 ac_status=$?
3056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3057 test $ac_status = 0; }; then :
3058 for ac_file in conftest.o conftest.obj conftest.*; do
3059 test -f "$ac_file" || continue;
3060 case $ac_file in
3061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3062 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3063 break;;
3064 esac
3065 done
3066 else
3067 $as_echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3072 as_fn_error $? "cannot compute suffix of object files: cannot compile
3073 See \`config.log' for more details" "$LINENO" 5; }
3075 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3078 $as_echo "$ac_cv_objext" >&6; }
3079 OBJEXT=$ac_cv_objext
3080 ac_objext=$OBJEXT
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3082 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3083 if ${ac_cv_c_compiler_gnu+:} false; then :
3084 $as_echo_n "(cached) " >&6
3085 else
3086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3087 /* end confdefs.h. */
3090 main ()
3092 #ifndef __GNUC__
3093 choke me
3094 #endif
3097 return 0;
3099 _ACEOF
3100 if ac_fn_c_try_compile "$LINENO"; then :
3101 ac_compiler_gnu=yes
3102 else
3103 ac_compiler_gnu=no
3105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3106 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3110 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3111 if test $ac_compiler_gnu = yes; then
3112 GCC=yes
3113 else
3114 GCC=
3116 ac_test_CFLAGS=${CFLAGS+set}
3117 ac_save_CFLAGS=$CFLAGS
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3119 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3120 if ${ac_cv_prog_cc_g+:} false; then :
3121 $as_echo_n "(cached) " >&6
3122 else
3123 ac_save_c_werror_flag=$ac_c_werror_flag
3124 ac_c_werror_flag=yes
3125 ac_cv_prog_cc_g=no
3126 CFLAGS="-g"
3127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3128 /* end confdefs.h. */
3131 main ()
3135 return 0;
3137 _ACEOF
3138 if ac_fn_c_try_compile "$LINENO"; then :
3139 ac_cv_prog_cc_g=yes
3140 else
3141 CFLAGS=""
3142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143 /* end confdefs.h. */
3146 main ()
3150 return 0;
3152 _ACEOF
3153 if ac_fn_c_try_compile "$LINENO"; then :
3155 else
3156 ac_c_werror_flag=$ac_save_c_werror_flag
3157 CFLAGS="-g"
3158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h. */
3162 main ()
3166 return 0;
3168 _ACEOF
3169 if ac_fn_c_try_compile "$LINENO"; then :
3170 ac_cv_prog_cc_g=yes
3172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177 ac_c_werror_flag=$ac_save_c_werror_flag
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3180 $as_echo "$ac_cv_prog_cc_g" >&6; }
3181 if test "$ac_test_CFLAGS" = set; then
3182 CFLAGS=$ac_save_CFLAGS
3183 elif test $ac_cv_prog_cc_g = yes; then
3184 if test "$GCC" = yes; then
3185 CFLAGS="-g -O2"
3186 else
3187 CFLAGS="-g"
3189 else
3190 if test "$GCC" = yes; then
3191 CFLAGS="-O2"
3192 else
3193 CFLAGS=
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3197 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3198 if ${ac_cv_prog_cc_c89+:} false; then :
3199 $as_echo_n "(cached) " >&6
3200 else
3201 ac_cv_prog_cc_c89=no
3202 ac_save_CC=$CC
3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204 /* end confdefs.h. */
3205 #include <stdarg.h>
3206 #include <stdio.h>
3207 struct stat;
3208 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3209 struct buf { int x; };
3210 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3211 static char *e (p, i)
3212 char **p;
3213 int i;
3215 return p[i];
3217 static char *f (char * (*g) (char **, int), char **p, ...)
3219 char *s;
3220 va_list v;
3221 va_start (v,p);
3222 s = g (p, va_arg (v,int));
3223 va_end (v);
3224 return s;
3227 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3228 function prototypes and stuff, but not '\xHH' hex character constants.
3229 These don't provoke an error unfortunately, instead are silently treated
3230 as 'x'. The following induces an error, until -std is added to get
3231 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3232 array size at least. It's necessary to write '\x00'==0 to get something
3233 that's true only with -std. */
3234 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3236 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3237 inside strings and character constants. */
3238 #define FOO(x) 'x'
3239 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3241 int test (int i, double x);
3242 struct s1 {int (*f) (int a);};
3243 struct s2 {int (*f) (double a);};
3244 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3245 int argc;
3246 char **argv;
3248 main ()
3250 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3252 return 0;
3254 _ACEOF
3255 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3256 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3258 CC="$ac_save_CC $ac_arg"
3259 if ac_fn_c_try_compile "$LINENO"; then :
3260 ac_cv_prog_cc_c89=$ac_arg
3262 rm -f core conftest.err conftest.$ac_objext
3263 test "x$ac_cv_prog_cc_c89" != "xno" && break
3264 done
3265 rm -f conftest.$ac_ext
3266 CC=$ac_save_CC
3269 # AC_CACHE_VAL
3270 case "x$ac_cv_prog_cc_c89" in
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3273 $as_echo "none needed" >&6; } ;;
3274 xno)
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3276 $as_echo "unsupported" >&6; } ;;
3278 CC="$CC $ac_cv_prog_cc_c89"
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3280 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3281 esac
3282 if test "x$ac_cv_prog_cc_c89" != xno; then :
3286 ac_ext=c
3287 ac_cpp='$CPP $CPPFLAGS'
3288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3293 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3294 if ${ac_cv_path_SED+:} false; then :
3295 $as_echo_n "(cached) " >&6
3296 else
3297 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3298 for ac_i in 1 2 3 4 5 6 7; do
3299 ac_script="$ac_script$as_nl$ac_script"
3300 done
3301 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3302 { ac_script=; unset ac_script;}
3303 if test -z "$SED"; then
3304 ac_path_SED_found=false
3305 # Loop through the user's path and test for each of PROGNAME-LIST
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH
3309 IFS=$as_save_IFS
3310 test -z "$as_dir" && as_dir=.
3311 for ac_prog in sed gsed; do
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3314 as_fn_executable_p "$ac_path_SED" || continue
3315 # Check for GNU ac_path_SED and select it if it is found.
3316 # Check for GNU $ac_path_SED
3317 case `"$ac_path_SED" --version 2>&1` in
3318 *GNU*)
3319 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3321 ac_count=0
3322 $as_echo_n 0123456789 >"conftest.in"
3323 while :
3325 cat "conftest.in" "conftest.in" >"conftest.tmp"
3326 mv "conftest.tmp" "conftest.in"
3327 cp "conftest.in" "conftest.nl"
3328 $as_echo '' >> "conftest.nl"
3329 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3330 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3331 as_fn_arith $ac_count + 1 && ac_count=$as_val
3332 if test $ac_count -gt ${ac_path_SED_max-0}; then
3333 # Best one so far, save it but keep looking for a better one
3334 ac_cv_path_SED="$ac_path_SED"
3335 ac_path_SED_max=$ac_count
3337 # 10*(2^10) chars as input seems more than enough
3338 test $ac_count -gt 10 && break
3339 done
3340 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3341 esac
3343 $ac_path_SED_found && break 3
3344 done
3345 done
3346 done
3347 IFS=$as_save_IFS
3348 if test -z "$ac_cv_path_SED"; then
3349 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3351 else
3352 ac_cv_path_SED=$SED
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3357 $as_echo "$ac_cv_path_SED" >&6; }
3358 SED="$ac_cv_path_SED"
3359 rm -f conftest.sed
3361 test -z "$SED" && SED=sed
3362 Xsed="$SED -e 1s/^X//"
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3375 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3376 if ${ac_cv_path_GREP+:} false; then :
3377 $as_echo_n "(cached) " >&6
3378 else
3379 if test -z "$GREP"; then
3380 ac_path_GREP_found=false
3381 # Loop through the user's path and test for each of PROGNAME-LIST
3382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3385 IFS=$as_save_IFS
3386 test -z "$as_dir" && as_dir=.
3387 for ac_prog in grep ggrep; do
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3390 as_fn_executable_p "$ac_path_GREP" || continue
3391 # Check for GNU ac_path_GREP and select it if it is found.
3392 # Check for GNU $ac_path_GREP
3393 case `"$ac_path_GREP" --version 2>&1` in
3394 *GNU*)
3395 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3397 ac_count=0
3398 $as_echo_n 0123456789 >"conftest.in"
3399 while :
3401 cat "conftest.in" "conftest.in" >"conftest.tmp"
3402 mv "conftest.tmp" "conftest.in"
3403 cp "conftest.in" "conftest.nl"
3404 $as_echo 'GREP' >> "conftest.nl"
3405 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3406 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3407 as_fn_arith $ac_count + 1 && ac_count=$as_val
3408 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3409 # Best one so far, save it but keep looking for a better one
3410 ac_cv_path_GREP="$ac_path_GREP"
3411 ac_path_GREP_max=$ac_count
3413 # 10*(2^10) chars as input seems more than enough
3414 test $ac_count -gt 10 && break
3415 done
3416 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3417 esac
3419 $ac_path_GREP_found && break 3
3420 done
3421 done
3422 done
3423 IFS=$as_save_IFS
3424 if test -z "$ac_cv_path_GREP"; then
3425 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3427 else
3428 ac_cv_path_GREP=$GREP
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3433 $as_echo "$ac_cv_path_GREP" >&6; }
3434 GREP="$ac_cv_path_GREP"
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3438 $as_echo_n "checking for egrep... " >&6; }
3439 if ${ac_cv_path_EGREP+:} false; then :
3440 $as_echo_n "(cached) " >&6
3441 else
3442 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3443 then ac_cv_path_EGREP="$GREP -E"
3444 else
3445 if test -z "$EGREP"; then
3446 ac_path_EGREP_found=false
3447 # Loop through the user's path and test for each of PROGNAME-LIST
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3451 IFS=$as_save_IFS
3452 test -z "$as_dir" && as_dir=.
3453 for ac_prog in egrep; do
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3456 as_fn_executable_p "$ac_path_EGREP" || continue
3457 # Check for GNU ac_path_EGREP and select it if it is found.
3458 # Check for GNU $ac_path_EGREP
3459 case `"$ac_path_EGREP" --version 2>&1` in
3460 *GNU*)
3461 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3463 ac_count=0
3464 $as_echo_n 0123456789 >"conftest.in"
3465 while :
3467 cat "conftest.in" "conftest.in" >"conftest.tmp"
3468 mv "conftest.tmp" "conftest.in"
3469 cp "conftest.in" "conftest.nl"
3470 $as_echo 'EGREP' >> "conftest.nl"
3471 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3472 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3473 as_fn_arith $ac_count + 1 && ac_count=$as_val
3474 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3475 # Best one so far, save it but keep looking for a better one
3476 ac_cv_path_EGREP="$ac_path_EGREP"
3477 ac_path_EGREP_max=$ac_count
3479 # 10*(2^10) chars as input seems more than enough
3480 test $ac_count -gt 10 && break
3481 done
3482 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3483 esac
3485 $ac_path_EGREP_found && break 3
3486 done
3487 done
3488 done
3489 IFS=$as_save_IFS
3490 if test -z "$ac_cv_path_EGREP"; then
3491 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3493 else
3494 ac_cv_path_EGREP=$EGREP
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3500 $as_echo "$ac_cv_path_EGREP" >&6; }
3501 EGREP="$ac_cv_path_EGREP"
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3505 $as_echo_n "checking for fgrep... " >&6; }
3506 if ${ac_cv_path_FGREP+:} false; then :
3507 $as_echo_n "(cached) " >&6
3508 else
3509 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3510 then ac_cv_path_FGREP="$GREP -F"
3511 else
3512 if test -z "$FGREP"; then
3513 ac_path_FGREP_found=false
3514 # Loop through the user's path and test for each of PROGNAME-LIST
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3518 IFS=$as_save_IFS
3519 test -z "$as_dir" && as_dir=.
3520 for ac_prog in fgrep; do
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3523 as_fn_executable_p "$ac_path_FGREP" || continue
3524 # Check for GNU ac_path_FGREP and select it if it is found.
3525 # Check for GNU $ac_path_FGREP
3526 case `"$ac_path_FGREP" --version 2>&1` in
3527 *GNU*)
3528 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3530 ac_count=0
3531 $as_echo_n 0123456789 >"conftest.in"
3532 while :
3534 cat "conftest.in" "conftest.in" >"conftest.tmp"
3535 mv "conftest.tmp" "conftest.in"
3536 cp "conftest.in" "conftest.nl"
3537 $as_echo 'FGREP' >> "conftest.nl"
3538 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3539 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3540 as_fn_arith $ac_count + 1 && ac_count=$as_val
3541 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3542 # Best one so far, save it but keep looking for a better one
3543 ac_cv_path_FGREP="$ac_path_FGREP"
3544 ac_path_FGREP_max=$ac_count
3546 # 10*(2^10) chars as input seems more than enough
3547 test $ac_count -gt 10 && break
3548 done
3549 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3550 esac
3552 $ac_path_FGREP_found && break 3
3553 done
3554 done
3555 done
3556 IFS=$as_save_IFS
3557 if test -z "$ac_cv_path_FGREP"; then
3558 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3560 else
3561 ac_cv_path_FGREP=$FGREP
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3567 $as_echo "$ac_cv_path_FGREP" >&6; }
3568 FGREP="$ac_cv_path_FGREP"
3571 test -z "$GREP" && GREP=grep
3591 # Check whether --with-gnu-ld was given.
3592 if test "${with_gnu_ld+set}" = set; then :
3593 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
3594 else
3595 with_gnu_ld=no
3598 ac_prog=ld
3599 if test yes = "$GCC"; then
3600 # Check if gcc -print-prog-name=ld gives a path.
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3602 $as_echo_n "checking for ld used by $CC... " >&6; }
3603 case $host in
3604 *-*-mingw*)
3605 # gcc leaves a trailing carriage return, which upsets mingw
3606 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3608 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3609 esac
3610 case $ac_prog in
3611 # Accept absolute paths.
3612 [\\/]* | ?:[\\/]*)
3613 re_direlt='/[^/][^/]*/\.\./'
3614 # Canonicalize the pathname of ld
3615 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3616 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3617 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3618 done
3619 test -z "$LD" && LD=$ac_prog
3622 # If it fails, then pretend we aren't using GCC.
3623 ac_prog=ld
3626 # If it is relative, then search for the first ld in PATH.
3627 with_gnu_ld=unknown
3629 esac
3630 elif test yes = "$with_gnu_ld"; then
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3632 $as_echo_n "checking for GNU ld... " >&6; }
3633 else
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3635 $as_echo_n "checking for non-GNU ld... " >&6; }
3637 if ${lt_cv_path_LD+:} false; then :
3638 $as_echo_n "(cached) " >&6
3639 else
3640 if test -z "$LD"; then
3641 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3642 for ac_dir in $PATH; do
3643 IFS=$lt_save_ifs
3644 test -z "$ac_dir" && ac_dir=.
3645 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3646 lt_cv_path_LD=$ac_dir/$ac_prog
3647 # Check to see if the program is GNU ld. I'd rather use --version,
3648 # but apparently some variants of GNU ld only accept -v.
3649 # Break only if it was the GNU/non-GNU ld that we prefer.
3650 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3651 *GNU* | *'with BFD'*)
3652 test no != "$with_gnu_ld" && break
3655 test yes != "$with_gnu_ld" && break
3657 esac
3659 done
3660 IFS=$lt_save_ifs
3661 else
3662 lt_cv_path_LD=$LD # Let the user override the test with a path.
3666 LD=$lt_cv_path_LD
3667 if test -n "$LD"; then
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3669 $as_echo "$LD" >&6; }
3670 else
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672 $as_echo "no" >&6; }
3674 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3676 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3677 if ${lt_cv_prog_gnu_ld+:} false; then :
3678 $as_echo_n "(cached) " >&6
3679 else
3680 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3681 case `$LD -v 2>&1 </dev/null` in
3682 *GNU* | *'with BFD'*)
3683 lt_cv_prog_gnu_ld=yes
3686 lt_cv_prog_gnu_ld=no
3688 esac
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3691 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3692 with_gnu_ld=$lt_cv_prog_gnu_ld
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3703 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3704 if ${lt_cv_path_NM+:} false; then :
3705 $as_echo_n "(cached) " >&6
3706 else
3707 if test -n "$NM"; then
3708 # Let the user override the test.
3709 lt_cv_path_NM=$NM
3710 else
3711 lt_nm_to_check=${ac_tool_prefix}nm
3712 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3713 lt_nm_to_check="$lt_nm_to_check nm"
3715 for lt_tmp_nm in $lt_nm_to_check; do
3716 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3717 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3718 IFS=$lt_save_ifs
3719 test -z "$ac_dir" && ac_dir=.
3720 tmp_nm=$ac_dir/$lt_tmp_nm
3721 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
3722 # Check to see if the nm accepts a BSD-compat flag.
3723 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
3724 # nm: unknown option "B" ignored
3725 # Tru64's nm complains that /dev/null is an invalid object file
3726 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
3727 case $build_os in
3728 mingw*) lt_bad_file=conftest.nm/nofile ;;
3729 *) lt_bad_file=/dev/null ;;
3730 esac
3731 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3732 *$lt_bad_file* | *'Invalid file or object type'*)
3733 lt_cv_path_NM="$tmp_nm -B"
3734 break 2
3737 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3738 */dev/null*)
3739 lt_cv_path_NM="$tmp_nm -p"
3740 break 2
3743 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3744 continue # so that we can try to find one that supports BSD flags
3746 esac
3748 esac
3750 done
3751 IFS=$lt_save_ifs
3752 done
3753 : ${lt_cv_path_NM=no}
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3757 $as_echo "$lt_cv_path_NM" >&6; }
3758 if test no != "$lt_cv_path_NM"; then
3759 NM=$lt_cv_path_NM
3760 else
3761 # Didn't find any BSD compatible name lister, look for dumpbin.
3762 if test -n "$DUMPBIN"; then :
3763 # Let the user override the test.
3764 else
3765 if test -n "$ac_tool_prefix"; then
3766 for ac_prog in dumpbin "link -dump"
3768 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3769 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3771 $as_echo_n "checking for $ac_word... " >&6; }
3772 if ${ac_cv_prog_DUMPBIN+:} false; then :
3773 $as_echo_n "(cached) " >&6
3774 else
3775 if test -n "$DUMPBIN"; then
3776 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3777 else
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 for as_dir in $PATH
3781 IFS=$as_save_IFS
3782 test -z "$as_dir" && as_dir=.
3783 for ac_exec_ext in '' $ac_executable_extensions; do
3784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3785 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3787 break 2
3789 done
3790 done
3791 IFS=$as_save_IFS
3795 DUMPBIN=$ac_cv_prog_DUMPBIN
3796 if test -n "$DUMPBIN"; then
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3798 $as_echo "$DUMPBIN" >&6; }
3799 else
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3801 $as_echo "no" >&6; }
3805 test -n "$DUMPBIN" && break
3806 done
3808 if test -z "$DUMPBIN"; then
3809 ac_ct_DUMPBIN=$DUMPBIN
3810 for ac_prog in dumpbin "link -dump"
3812 # Extract the first word of "$ac_prog", so it can be a program name with args.
3813 set dummy $ac_prog; ac_word=$2
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815 $as_echo_n "checking for $ac_word... " >&6; }
3816 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3817 $as_echo_n "(cached) " >&6
3818 else
3819 if test -n "$ac_ct_DUMPBIN"; then
3820 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH
3825 IFS=$as_save_IFS
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3829 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3831 break 2
3833 done
3834 done
3835 IFS=$as_save_IFS
3839 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3840 if test -n "$ac_ct_DUMPBIN"; then
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3842 $as_echo "$ac_ct_DUMPBIN" >&6; }
3843 else
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 $as_echo "no" >&6; }
3849 test -n "$ac_ct_DUMPBIN" && break
3850 done
3852 if test "x$ac_ct_DUMPBIN" = x; then
3853 DUMPBIN=":"
3854 else
3855 case $cross_compiling:$ac_tool_warned in
3856 yes:)
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3859 ac_tool_warned=yes ;;
3860 esac
3861 DUMPBIN=$ac_ct_DUMPBIN
3865 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
3866 *COFF*)
3867 DUMPBIN="$DUMPBIN -symbols -headers"
3870 DUMPBIN=:
3872 esac
3875 if test : != "$DUMPBIN"; then
3876 NM=$DUMPBIN
3879 test -z "$NM" && NM=nm
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3887 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3888 if ${lt_cv_nm_interface+:} false; then :
3889 $as_echo_n "(cached) " >&6
3890 else
3891 lt_cv_nm_interface="BSD nm"
3892 echo "int some_variable = 0;" > conftest.$ac_ext
3893 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
3894 (eval "$ac_compile" 2>conftest.err)
3895 cat conftest.err >&5
3896 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3897 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3898 cat conftest.err >&5
3899 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
3900 cat conftest.out >&5
3901 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3902 lt_cv_nm_interface="MS dumpbin"
3904 rm -f conftest*
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3907 $as_echo "$lt_cv_nm_interface" >&6; }
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3910 $as_echo_n "checking whether ln -s works... " >&6; }
3911 LN_S=$as_ln_s
3912 if test "$LN_S" = "ln -s"; then
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3914 $as_echo "yes" >&6; }
3915 else
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3917 $as_echo "no, using $LN_S" >&6; }
3920 # find the maximum length of command line arguments
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3922 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3923 if ${lt_cv_sys_max_cmd_len+:} false; then :
3924 $as_echo_n "(cached) " >&6
3925 else
3927 teststring=ABCD
3929 case $build_os in
3930 msdosdjgpp*)
3931 # On DJGPP, this test can blow up pretty badly due to problems in libc
3932 # (any single argument exceeding 2000 bytes causes a buffer overrun
3933 # during glob expansion). Even if it were fixed, the result of this
3934 # check would be larger than it should be.
3935 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3938 gnu*)
3939 # Under GNU Hurd, this test is not required because there is
3940 # no limit to the length of command line arguments.
3941 # Libtool will interpret -1 as no limit whatsoever
3942 lt_cv_sys_max_cmd_len=-1;
3945 cygwin* | mingw* | cegcc*)
3946 # On Win9x/ME, this test blows up -- it succeeds, but takes
3947 # about 5 minutes as the teststring grows exponentially.
3948 # Worse, since 9x/ME are not pre-emptively multitasking,
3949 # you end up with a "frozen" computer, even though with patience
3950 # the test eventually succeeds (with a max line length of 256k).
3951 # Instead, let's just punt: use the minimum linelength reported by
3952 # all of the supported platforms: 8192 (on NT/2K/XP).
3953 lt_cv_sys_max_cmd_len=8192;
3956 mint*)
3957 # On MiNT this can take a long time and run out of memory.
3958 lt_cv_sys_max_cmd_len=8192;
3961 amigaos*)
3962 # On AmigaOS with pdksh, this test takes hours, literally.
3963 # So we just punt and use a minimum line length of 8192.
3964 lt_cv_sys_max_cmd_len=8192;
3967 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
3968 # This has been around since 386BSD, at least. Likely further.
3969 if test -x /sbin/sysctl; then
3970 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3971 elif test -x /usr/sbin/sysctl; then
3972 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3973 else
3974 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3976 # And add a safety zone
3977 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3978 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3981 interix*)
3982 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3983 lt_cv_sys_max_cmd_len=196608
3986 os2*)
3987 # The test takes a long time on OS/2.
3988 lt_cv_sys_max_cmd_len=8192
3991 osf*)
3992 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3993 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3994 # nice to cause kernel panics so lets avoid the loop below.
3995 # First set a reasonable default.
3996 lt_cv_sys_max_cmd_len=16384
3998 if test -x /sbin/sysconfig; then
3999 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4000 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4001 esac
4004 sco3.2v5*)
4005 lt_cv_sys_max_cmd_len=102400
4007 sysv5* | sco5v6* | sysv4.2uw2*)
4008 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4009 if test -n "$kargmax"; then
4010 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4011 else
4012 lt_cv_sys_max_cmd_len=32768
4016 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4017 if test -n "$lt_cv_sys_max_cmd_len" && \
4018 test undefined != "$lt_cv_sys_max_cmd_len"; then
4019 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4021 else
4022 # Make teststring a little bigger before we do anything with it.
4023 # a 1K string should be a reasonable start.
4024 for i in 1 2 3 4 5 6 7 8; do
4025 teststring=$teststring$teststring
4026 done
4027 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4028 # If test is not a shell built-in, we'll probably end up computing a
4029 # maximum length that is only half of the actual maximum length, but
4030 # we can't tell.
4031 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4032 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4033 test 17 != "$i" # 1/2 MB should be enough
4035 i=`expr $i + 1`
4036 teststring=$teststring$teststring
4037 done
4038 # Only check the string length outside the loop.
4039 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4040 teststring=
4041 # Add a significant safety factor because C++ compilers can tack on
4042 # massive amounts of additional arguments before passing them to the
4043 # linker. It appears as though 1/2 is a usable value.
4044 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4047 esac
4051 if test -n "$lt_cv_sys_max_cmd_len"; then
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4053 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4054 else
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4056 $as_echo "none" >&6; }
4058 max_cmd_len=$lt_cv_sys_max_cmd_len
4065 : ${CP="cp -f"}
4066 : ${MV="mv -f"}
4067 : ${RM="rm -f"}
4069 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4070 lt_unset=unset
4071 else
4072 lt_unset=false
4079 # test EBCDIC or ASCII
4080 case `echo X|tr X '\101'` in
4081 A) # ASCII based system
4082 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4083 lt_SP2NL='tr \040 \012'
4084 lt_NL2SP='tr \015\012 \040\040'
4086 *) # EBCDIC based system
4087 lt_SP2NL='tr \100 \n'
4088 lt_NL2SP='tr \r\n \100\100'
4090 esac
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4101 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4102 if ${lt_cv_to_host_file_cmd+:} false; then :
4103 $as_echo_n "(cached) " >&6
4104 else
4105 case $host in
4106 *-*-mingw* )
4107 case $build in
4108 *-*-mingw* ) # actually msys
4109 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4111 *-*-cygwin* )
4112 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4114 * ) # otherwise, assume *nix
4115 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4117 esac
4119 *-*-cygwin* )
4120 case $build in
4121 *-*-mingw* ) # actually msys
4122 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4124 *-*-cygwin* )
4125 lt_cv_to_host_file_cmd=func_convert_file_noop
4127 * ) # otherwise, assume *nix
4128 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4130 esac
4132 * ) # unhandled hosts (and "normal" native builds)
4133 lt_cv_to_host_file_cmd=func_convert_file_noop
4135 esac
4139 to_host_file_cmd=$lt_cv_to_host_file_cmd
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4141 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4148 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4149 if ${lt_cv_to_tool_file_cmd+:} false; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 #assume ordinary cross tools, or native build.
4153 lt_cv_to_tool_file_cmd=func_convert_file_noop
4154 case $host in
4155 *-*-mingw* )
4156 case $build in
4157 *-*-mingw* ) # actually msys
4158 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4160 esac
4162 esac
4166 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4168 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4175 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4176 if ${lt_cv_ld_reload_flag+:} false; then :
4177 $as_echo_n "(cached) " >&6
4178 else
4179 lt_cv_ld_reload_flag='-r'
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4182 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4183 reload_flag=$lt_cv_ld_reload_flag
4184 case $reload_flag in
4185 "" | " "*) ;;
4186 *) reload_flag=" $reload_flag" ;;
4187 esac
4188 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4189 case $host_os in
4190 cygwin* | mingw* | pw32* | cegcc*)
4191 if test yes != "$GCC"; then
4192 reload_cmds=false
4195 darwin*)
4196 if test yes = "$GCC"; then
4197 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4198 else
4199 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4202 esac
4212 if test -n "$ac_tool_prefix"; then
4213 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4214 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4216 $as_echo_n "checking for $ac_word... " >&6; }
4217 if ${ac_cv_prog_OBJDUMP+:} false; then :
4218 $as_echo_n "(cached) " >&6
4219 else
4220 if test -n "$OBJDUMP"; then
4221 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4222 else
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 for as_dir in $PATH
4226 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4230 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 break 2
4234 done
4235 done
4236 IFS=$as_save_IFS
4240 OBJDUMP=$ac_cv_prog_OBJDUMP
4241 if test -n "$OBJDUMP"; then
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4243 $as_echo "$OBJDUMP" >&6; }
4244 else
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246 $as_echo "no" >&6; }
4251 if test -z "$ac_cv_prog_OBJDUMP"; then
4252 ac_ct_OBJDUMP=$OBJDUMP
4253 # Extract the first word of "objdump", so it can be a program name with args.
4254 set dummy objdump; ac_word=$2
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4256 $as_echo_n "checking for $ac_word... " >&6; }
4257 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4258 $as_echo_n "(cached) " >&6
4259 else
4260 if test -n "$ac_ct_OBJDUMP"; then
4261 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4262 else
4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 for as_dir in $PATH
4266 IFS=$as_save_IFS
4267 test -z "$as_dir" && as_dir=.
4268 for ac_exec_ext in '' $ac_executable_extensions; do
4269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4270 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4272 break 2
4274 done
4275 done
4276 IFS=$as_save_IFS
4280 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4281 if test -n "$ac_ct_OBJDUMP"; then
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4283 $as_echo "$ac_ct_OBJDUMP" >&6; }
4284 else
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4286 $as_echo "no" >&6; }
4289 if test "x$ac_ct_OBJDUMP" = x; then
4290 OBJDUMP="false"
4291 else
4292 case $cross_compiling:$ac_tool_warned in
4293 yes:)
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4296 ac_tool_warned=yes ;;
4297 esac
4298 OBJDUMP=$ac_ct_OBJDUMP
4300 else
4301 OBJDUMP="$ac_cv_prog_OBJDUMP"
4304 test -z "$OBJDUMP" && OBJDUMP=objdump
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4315 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4316 if ${lt_cv_deplibs_check_method+:} false; then :
4317 $as_echo_n "(cached) " >&6
4318 else
4319 lt_cv_file_magic_cmd='$MAGIC_CMD'
4320 lt_cv_file_magic_test_file=
4321 lt_cv_deplibs_check_method='unknown'
4322 # Need to set the preceding variable on all platforms that support
4323 # interlibrary dependencies.
4324 # 'none' -- dependencies not supported.
4325 # 'unknown' -- same as none, but documents that we really don't know.
4326 # 'pass_all' -- all dependencies passed with no checks.
4327 # 'test_compile' -- check by making test program.
4328 # 'file_magic [[regex]]' -- check by looking for files in library path
4329 # that responds to the $file_magic_cmd with a given extended regex.
4330 # If you have 'file' or equivalent on your system and you're not sure
4331 # whether 'pass_all' will *always* work, you probably want this one.
4333 case $host_os in
4334 aix[4-9]*)
4335 lt_cv_deplibs_check_method=pass_all
4338 beos*)
4339 lt_cv_deplibs_check_method=pass_all
4342 bsdi[45]*)
4343 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4344 lt_cv_file_magic_cmd='/usr/bin/file -L'
4345 lt_cv_file_magic_test_file=/shlib/libc.so
4348 cygwin*)
4349 # func_win32_libid is a shell function defined in ltmain.sh
4350 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4351 lt_cv_file_magic_cmd='func_win32_libid'
4354 mingw* | pw32*)
4355 # Base MSYS/MinGW do not provide the 'file' command needed by
4356 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4357 # unless we find 'file', for example because we are cross-compiling.
4358 if ( file / ) >/dev/null 2>&1; then
4359 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4360 lt_cv_file_magic_cmd='func_win32_libid'
4361 else
4362 # Keep this pattern in sync with the one in func_win32_libid.
4363 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4364 lt_cv_file_magic_cmd='$OBJDUMP -f'
4368 cegcc*)
4369 # use the weaker test based on 'objdump'. See mingw*.
4370 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4371 lt_cv_file_magic_cmd='$OBJDUMP -f'
4374 darwin* | rhapsody*)
4375 lt_cv_deplibs_check_method=pass_all
4378 freebsd* | dragonfly*)
4379 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4380 case $host_cpu in
4381 i*86 )
4382 # Not sure whether the presence of OpenBSD here was a mistake.
4383 # Let's accept both of them until this is cleared up.
4384 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4385 lt_cv_file_magic_cmd=/usr/bin/file
4386 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4388 esac
4389 else
4390 lt_cv_deplibs_check_method=pass_all
4394 haiku*)
4395 lt_cv_deplibs_check_method=pass_all
4398 hpux10.20* | hpux11*)
4399 lt_cv_file_magic_cmd=/usr/bin/file
4400 case $host_cpu in
4401 ia64*)
4402 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4403 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4405 hppa*64*)
4406 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]'
4407 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4410 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4411 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4413 esac
4416 interix[3-9]*)
4417 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4421 irix5* | irix6* | nonstopux*)
4422 case $LD in
4423 *-32|*"-32 ") libmagic=32-bit;;
4424 *-n32|*"-n32 ") libmagic=N32;;
4425 *-64|*"-64 ") libmagic=64-bit;;
4426 *) libmagic=never-match;;
4427 esac
4428 lt_cv_deplibs_check_method=pass_all
4431 # This must be glibc/ELF.
4432 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4433 lt_cv_deplibs_check_method=pass_all
4436 netbsd*)
4437 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4439 else
4440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4444 newos6*)
4445 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4446 lt_cv_file_magic_cmd=/usr/bin/file
4447 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4450 *nto* | *qnx*)
4451 lt_cv_deplibs_check_method=pass_all
4454 openbsd* | bitrig*)
4455 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
4456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4457 else
4458 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4462 osf3* | osf4* | osf5*)
4463 lt_cv_deplibs_check_method=pass_all
4466 rdos*)
4467 lt_cv_deplibs_check_method=pass_all
4470 solaris*)
4471 lt_cv_deplibs_check_method=pass_all
4474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4475 lt_cv_deplibs_check_method=pass_all
4478 sysv4 | sysv4.3*)
4479 case $host_vendor in
4480 motorola)
4481 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]'
4482 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4484 ncr)
4485 lt_cv_deplibs_check_method=pass_all
4487 sequent)
4488 lt_cv_file_magic_cmd='/bin/file'
4489 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4491 sni)
4492 lt_cv_file_magic_cmd='/bin/file'
4493 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4494 lt_cv_file_magic_test_file=/lib/libc.so
4496 siemens)
4497 lt_cv_deplibs_check_method=pass_all
4500 lt_cv_deplibs_check_method=pass_all
4502 esac
4505 tpf*)
4506 lt_cv_deplibs_check_method=pass_all
4508 os2*)
4509 lt_cv_deplibs_check_method=pass_all
4511 esac
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4515 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4517 file_magic_glob=
4518 want_nocaseglob=no
4519 if test "$build" = "$host"; then
4520 case $host_os in
4521 mingw* | pw32*)
4522 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4523 want_nocaseglob=yes
4524 else
4525 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4528 esac
4531 file_magic_cmd=$lt_cv_file_magic_cmd
4532 deplibs_check_method=$lt_cv_deplibs_check_method
4533 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4556 if test -n "$ac_tool_prefix"; then
4557 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4558 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560 $as_echo_n "checking for $ac_word... " >&6; }
4561 if ${ac_cv_prog_DLLTOOL+:} false; then :
4562 $as_echo_n "(cached) " >&6
4563 else
4564 if test -n "$DLLTOOL"; then
4565 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4566 else
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4574 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 break 2
4578 done
4579 done
4580 IFS=$as_save_IFS
4584 DLLTOOL=$ac_cv_prog_DLLTOOL
4585 if test -n "$DLLTOOL"; then
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4587 $as_echo "$DLLTOOL" >&6; }
4588 else
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590 $as_echo "no" >&6; }
4595 if test -z "$ac_cv_prog_DLLTOOL"; then
4596 ac_ct_DLLTOOL=$DLLTOOL
4597 # Extract the first word of "dlltool", so it can be a program name with args.
4598 set dummy dlltool; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 if test -n "$ac_ct_DLLTOOL"; then
4605 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4606 else
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4614 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 break 2
4618 done
4619 done
4620 IFS=$as_save_IFS
4624 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4625 if test -n "$ac_ct_DLLTOOL"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4627 $as_echo "$ac_ct_DLLTOOL" >&6; }
4628 else
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 $as_echo "no" >&6; }
4633 if test "x$ac_ct_DLLTOOL" = x; then
4634 DLLTOOL="false"
4635 else
4636 case $cross_compiling:$ac_tool_warned in
4637 yes:)
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4640 ac_tool_warned=yes ;;
4641 esac
4642 DLLTOOL=$ac_ct_DLLTOOL
4644 else
4645 DLLTOOL="$ac_cv_prog_DLLTOOL"
4648 test -z "$DLLTOOL" && DLLTOOL=dlltool
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4660 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4661 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 lt_cv_sharedlib_from_linklib_cmd='unknown'
4666 case $host_os in
4667 cygwin* | mingw* | pw32* | cegcc*)
4668 # two different shell functions defined in ltmain.sh;
4669 # decide which one to use based on capabilities of $DLLTOOL
4670 case `$DLLTOOL --help 2>&1` in
4671 *--identify-strict*)
4672 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4675 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4677 esac
4680 # fallback: assume linklib IS sharedlib
4681 lt_cv_sharedlib_from_linklib_cmd=$ECHO
4683 esac
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4687 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4688 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4689 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4698 if test -n "$ac_tool_prefix"; then
4699 for ac_prog in ar
4701 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4702 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4704 $as_echo_n "checking for $ac_word... " >&6; }
4705 if ${ac_cv_prog_AR+:} false; then :
4706 $as_echo_n "(cached) " >&6
4707 else
4708 if test -n "$AR"; then
4709 ac_cv_prog_AR="$AR" # Let the user override the test.
4710 else
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH
4714 IFS=$as_save_IFS
4715 test -z "$as_dir" && as_dir=.
4716 for ac_exec_ext in '' $ac_executable_extensions; do
4717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4718 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 break 2
4722 done
4723 done
4724 IFS=$as_save_IFS
4728 AR=$ac_cv_prog_AR
4729 if test -n "$AR"; then
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4731 $as_echo "$AR" >&6; }
4732 else
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4734 $as_echo "no" >&6; }
4738 test -n "$AR" && break
4739 done
4741 if test -z "$AR"; then
4742 ac_ct_AR=$AR
4743 for ac_prog in ar
4745 # Extract the first word of "$ac_prog", so it can be a program name with args.
4746 set dummy $ac_prog; ac_word=$2
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4748 $as_echo_n "checking for $ac_word... " >&6; }
4749 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 if test -n "$ac_ct_AR"; then
4753 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4754 else
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH
4758 IFS=$as_save_IFS
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4762 ac_cv_prog_ac_ct_AR="$ac_prog"
4763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 break 2
4766 done
4767 done
4768 IFS=$as_save_IFS
4772 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4773 if test -n "$ac_ct_AR"; then
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4775 $as_echo "$ac_ct_AR" >&6; }
4776 else
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778 $as_echo "no" >&6; }
4782 test -n "$ac_ct_AR" && break
4783 done
4785 if test "x$ac_ct_AR" = x; then
4786 AR="false"
4787 else
4788 case $cross_compiling:$ac_tool_warned in
4789 yes:)
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4792 ac_tool_warned=yes ;;
4793 esac
4794 AR=$ac_ct_AR
4798 : ${AR=ar}
4799 : ${AR_FLAGS=cru}
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
4812 $as_echo_n "checking for archiver @FILE support... " >&6; }
4813 if ${lt_cv_ar_at_file+:} false; then :
4814 $as_echo_n "(cached) " >&6
4815 else
4816 lt_cv_ar_at_file=no
4817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818 /* end confdefs.h. */
4821 main ()
4825 return 0;
4827 _ACEOF
4828 if ac_fn_c_try_compile "$LINENO"; then :
4829 echo conftest.$ac_objext > conftest.lst
4830 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
4831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4832 (eval $lt_ar_try) 2>&5
4833 ac_status=$?
4834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4835 test $ac_status = 0; }
4836 if test 0 -eq "$ac_status"; then
4837 # Ensure the archiver fails upon bogus file names.
4838 rm -f conftest.$ac_objext libconftest.a
4839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4840 (eval $lt_ar_try) 2>&5
4841 ac_status=$?
4842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4843 test $ac_status = 0; }
4844 if test 0 -ne "$ac_status"; then
4845 lt_cv_ar_at_file=@
4848 rm -f conftest.* libconftest.a
4851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
4855 $as_echo "$lt_cv_ar_at_file" >&6; }
4857 if test no = "$lt_cv_ar_at_file"; then
4858 archiver_list_spec=
4859 else
4860 archiver_list_spec=$lt_cv_ar_at_file
4869 if test -n "$ac_tool_prefix"; then
4870 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4871 set dummy ${ac_tool_prefix}strip; ac_word=$2
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4873 $as_echo_n "checking for $ac_word... " >&6; }
4874 if ${ac_cv_prog_STRIP+:} false; then :
4875 $as_echo_n "(cached) " >&6
4876 else
4877 if test -n "$STRIP"; then
4878 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4879 else
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4887 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 break 2
4891 done
4892 done
4893 IFS=$as_save_IFS
4897 STRIP=$ac_cv_prog_STRIP
4898 if test -n "$STRIP"; then
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4900 $as_echo "$STRIP" >&6; }
4901 else
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903 $as_echo "no" >&6; }
4908 if test -z "$ac_cv_prog_STRIP"; then
4909 ac_ct_STRIP=$STRIP
4910 # Extract the first word of "strip", so it can be a program name with args.
4911 set dummy strip; ac_word=$2
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913 $as_echo_n "checking for $ac_word... " >&6; }
4914 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4915 $as_echo_n "(cached) " >&6
4916 else
4917 if test -n "$ac_ct_STRIP"; then
4918 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4919 else
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4923 IFS=$as_save_IFS
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4927 ac_cv_prog_ac_ct_STRIP="strip"
4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 break 2
4931 done
4932 done
4933 IFS=$as_save_IFS
4937 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4938 if test -n "$ac_ct_STRIP"; then
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4940 $as_echo "$ac_ct_STRIP" >&6; }
4941 else
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4946 if test "x$ac_ct_STRIP" = x; then
4947 STRIP=":"
4948 else
4949 case $cross_compiling:$ac_tool_warned in
4950 yes:)
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4953 ac_tool_warned=yes ;;
4954 esac
4955 STRIP=$ac_ct_STRIP
4957 else
4958 STRIP="$ac_cv_prog_STRIP"
4961 test -z "$STRIP" && STRIP=:
4968 if test -n "$ac_tool_prefix"; then
4969 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4970 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972 $as_echo_n "checking for $ac_word... " >&6; }
4973 if ${ac_cv_prog_RANLIB+:} false; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 if test -n "$RANLIB"; then
4977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4978 else
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4982 IFS=$as_save_IFS
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4986 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 break 2
4990 done
4991 done
4992 IFS=$as_save_IFS
4996 RANLIB=$ac_cv_prog_RANLIB
4997 if test -n "$RANLIB"; then
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4999 $as_echo "$RANLIB" >&6; }
5000 else
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 $as_echo "no" >&6; }
5007 if test -z "$ac_cv_prog_RANLIB"; then
5008 ac_ct_RANLIB=$RANLIB
5009 # Extract the first word of "ranlib", so it can be a program name with args.
5010 set dummy ranlib; ac_word=$2
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012 $as_echo_n "checking for $ac_word... " >&6; }
5013 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5014 $as_echo_n "(cached) " >&6
5015 else
5016 if test -n "$ac_ct_RANLIB"; then
5017 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5018 else
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026 ac_cv_prog_ac_ct_RANLIB="ranlib"
5027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 break 2
5030 done
5031 done
5032 IFS=$as_save_IFS
5036 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5037 if test -n "$ac_ct_RANLIB"; then
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5039 $as_echo "$ac_ct_RANLIB" >&6; }
5040 else
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042 $as_echo "no" >&6; }
5045 if test "x$ac_ct_RANLIB" = x; then
5046 RANLIB=":"
5047 else
5048 case $cross_compiling:$ac_tool_warned in
5049 yes:)
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5052 ac_tool_warned=yes ;;
5053 esac
5054 RANLIB=$ac_ct_RANLIB
5056 else
5057 RANLIB="$ac_cv_prog_RANLIB"
5060 test -z "$RANLIB" && RANLIB=:
5067 # Determine commands to create old-style static archives.
5068 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5069 old_postinstall_cmds='chmod 644 $oldlib'
5070 old_postuninstall_cmds=
5072 if test -n "$RANLIB"; then
5073 case $host_os in
5074 bitrig* | openbsd*)
5075 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5078 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5080 esac
5081 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5084 case $host_os in
5085 darwin*)
5086 lock_old_archive_extraction=yes ;;
5088 lock_old_archive_extraction=no ;;
5089 esac
5111 for ac_prog in gawk mawk nawk awk
5113 # Extract the first word of "$ac_prog", so it can be a program name with args.
5114 set dummy $ac_prog; ac_word=$2
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5116 $as_echo_n "checking for $ac_word... " >&6; }
5117 if ${ac_cv_prog_AWK+:} false; then :
5118 $as_echo_n "(cached) " >&6
5119 else
5120 if test -n "$AWK"; then
5121 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5122 else
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH
5126 IFS=$as_save_IFS
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5130 ac_cv_prog_AWK="$ac_prog"
5131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5132 break 2
5134 done
5135 done
5136 IFS=$as_save_IFS
5140 AWK=$ac_cv_prog_AWK
5141 if test -n "$AWK"; then
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5143 $as_echo "$AWK" >&6; }
5144 else
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146 $as_echo "no" >&6; }
5150 test -n "$AWK" && break
5151 done
5171 # If no C compiler was specified, use CC.
5172 LTCC=${LTCC-"$CC"}
5174 # If no C compiler flags were specified, use CFLAGS.
5175 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5177 # Allow CC to be a program name with arguments.
5178 compiler=$CC
5181 # Check for command to grab the raw symbol name followed by C symbol from nm.
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5183 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5184 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5185 $as_echo_n "(cached) " >&6
5186 else
5188 # These are sane defaults that work on at least a few old systems.
5189 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5191 # Character class describing NM global symbol codes.
5192 symcode='[BCDEGRST]'
5194 # Regexp to match symbols that can be accessed directly from C.
5195 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5197 # Define system-specific variables.
5198 case $host_os in
5199 aix*)
5200 symcode='[BCDT]'
5202 cygwin* | mingw* | pw32* | cegcc*)
5203 symcode='[ABCDGISTW]'
5205 hpux*)
5206 if test ia64 = "$host_cpu"; then
5207 symcode='[ABCDEGRST]'
5210 irix* | nonstopux*)
5211 symcode='[BCDEGRST]'
5213 osf*)
5214 symcode='[BCDEGQRST]'
5216 solaris*)
5217 symcode='[BDRT]'
5219 sco3.2v5*)
5220 symcode='[DT]'
5222 sysv4.2uw2*)
5223 symcode='[DT]'
5225 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5226 symcode='[ABDT]'
5228 sysv4)
5229 symcode='[DFNSTU]'
5231 esac
5233 # If we're using GNU nm, then use its standard symbol codes.
5234 case `$NM -V 2>&1` in
5235 *GNU* | *'with BFD'*)
5236 symcode='[ABCDGIRSTW]' ;;
5237 esac
5239 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5240 # Gets list of data symbols to import.
5241 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5242 # Adjust the below global symbol transforms to fixup imported variables.
5243 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5244 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5245 lt_c_name_lib_hook="\
5246 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5247 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5248 else
5249 # Disable hooks by default.
5250 lt_cv_sys_global_symbol_to_import=
5251 lt_cdecl_hook=
5252 lt_c_name_hook=
5253 lt_c_name_lib_hook=
5256 # Transform an extracted symbol line into a proper C declaration.
5257 # Some systems (esp. on ia64) link data and code symbols differently,
5258 # so use this general approach.
5259 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5260 $lt_cdecl_hook\
5261 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5262 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5264 # Transform an extracted symbol line into symbol name and symbol address
5265 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5266 $lt_c_name_hook\
5267 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5268 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5270 # Transform an extracted symbol line into symbol name with lib prefix and
5271 # symbol address.
5272 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5273 $lt_c_name_lib_hook\
5274 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5275 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5276 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5278 # Handle CRLF in mingw tool chain
5279 opt_cr=
5280 case $build_os in
5281 mingw*)
5282 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5284 esac
5286 # Try without a prefix underscore, then with it.
5287 for ac_symprfx in "" "_"; do
5289 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5290 symxfrm="\\1 $ac_symprfx\\2 \\2"
5292 # Write the raw and C identifiers.
5293 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5294 # Fake it for dumpbin and say T for any non-static function,
5295 # D for any global variable and I for any imported variable.
5296 # Also find C++ and __fastcall symbols from MSVC++,
5297 # which start with @ or ?.
5298 lt_cv_sys_global_symbol_pipe="$AWK '"\
5299 " {last_section=section; section=\$ 3};"\
5300 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5301 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5302 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5303 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5304 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5305 " \$ 0!~/External *\|/{next};"\
5306 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5307 " {if(hide[section]) next};"\
5308 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5309 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5310 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5311 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5312 " ' prfx=^$ac_symprfx"
5313 else
5314 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5316 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5318 # Check to see that the pipe works correctly.
5319 pipe_works=no
5321 rm -f conftest*
5322 cat > conftest.$ac_ext <<_LT_EOF
5323 #ifdef __cplusplus
5324 extern "C" {
5325 #endif
5326 char nm_test_var;
5327 void nm_test_func(void);
5328 void nm_test_func(void){}
5329 #ifdef __cplusplus
5331 #endif
5332 int main(){nm_test_var='a';nm_test_func();return(0);}
5333 _LT_EOF
5335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5336 (eval $ac_compile) 2>&5
5337 ac_status=$?
5338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5339 test $ac_status = 0; }; then
5340 # Now try to grab the symbols.
5341 nlist=conftest.nm
5342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5343 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5344 ac_status=$?
5345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5346 test $ac_status = 0; } && test -s "$nlist"; then
5347 # Try sorting and uniquifying the output.
5348 if sort "$nlist" | uniq > "$nlist"T; then
5349 mv -f "$nlist"T "$nlist"
5350 else
5351 rm -f "$nlist"T
5354 # Make sure that we snagged all the symbols we need.
5355 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5356 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5357 cat <<_LT_EOF > conftest.$ac_ext
5358 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5359 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5360 /* DATA imports from DLLs on WIN32 can't be const, because runtime
5361 relocations are performed -- see ld's documentation on pseudo-relocs. */
5362 # define LT_DLSYM_CONST
5363 #elif defined __osf__
5364 /* This system does not cope well with relocations in const data. */
5365 # define LT_DLSYM_CONST
5366 #else
5367 # define LT_DLSYM_CONST const
5368 #endif
5370 #ifdef __cplusplus
5371 extern "C" {
5372 #endif
5374 _LT_EOF
5375 # Now generate the symbol file.
5376 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5378 cat <<_LT_EOF >> conftest.$ac_ext
5380 /* The mapping between symbol names and symbols. */
5381 LT_DLSYM_CONST struct {
5382 const char *name;
5383 void *address;
5385 lt__PROGRAM__LTX_preloaded_symbols[] =
5387 { "@PROGRAM@", (void *) 0 },
5388 _LT_EOF
5389 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5390 cat <<\_LT_EOF >> conftest.$ac_ext
5391 {0, (void *) 0}
5394 /* This works around a problem in FreeBSD linker */
5395 #ifdef FREEBSD_WORKAROUND
5396 static const void *lt_preloaded_setup() {
5397 return lt__PROGRAM__LTX_preloaded_symbols;
5399 #endif
5401 #ifdef __cplusplus
5403 #endif
5404 _LT_EOF
5405 # Now try linking the two files.
5406 mv conftest.$ac_objext conftstm.$ac_objext
5407 lt_globsym_save_LIBS=$LIBS
5408 lt_globsym_save_CFLAGS=$CFLAGS
5409 LIBS=conftstm.$ac_objext
5410 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5412 (eval $ac_link) 2>&5
5413 ac_status=$?
5414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5415 test $ac_status = 0; } && test -s conftest$ac_exeext; then
5416 pipe_works=yes
5418 LIBS=$lt_globsym_save_LIBS
5419 CFLAGS=$lt_globsym_save_CFLAGS
5420 else
5421 echo "cannot find nm_test_func in $nlist" >&5
5423 else
5424 echo "cannot find nm_test_var in $nlist" >&5
5426 else
5427 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5429 else
5430 echo "$progname: failed program was:" >&5
5431 cat conftest.$ac_ext >&5
5433 rm -rf conftest* conftst*
5435 # Do not use the global_symbol_pipe unless it works.
5436 if test yes = "$pipe_works"; then
5437 break
5438 else
5439 lt_cv_sys_global_symbol_pipe=
5441 done
5445 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5446 lt_cv_sys_global_symbol_to_cdecl=
5448 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5450 $as_echo "failed" >&6; }
5451 else
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5453 $as_echo "ok" >&6; }
5456 # Response file support.
5457 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5458 nm_file_list_spec='@'
5459 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5460 nm_file_list_spec='@'
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5500 $as_echo_n "checking for sysroot... " >&6; }
5502 # Check whether --with-sysroot was given.
5503 if test "${with_sysroot+set}" = set; then :
5504 withval=$with_sysroot;
5505 else
5506 with_sysroot=no
5510 lt_sysroot=
5511 case $with_sysroot in #(
5512 yes)
5513 if test yes = "$GCC"; then
5514 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5516 ;; #(
5518 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5519 ;; #(
5520 no|'')
5521 ;; #(
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
5524 $as_echo "$with_sysroot" >&6; }
5525 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5527 esac
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5530 $as_echo "${lt_sysroot:-no}" >&6; }
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
5537 $as_echo_n "checking for a working dd... " >&6; }
5538 if ${ac_cv_path_lt_DD+:} false; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 printf 0123456789abcdef0123456789abcdef >conftest.i
5542 cat conftest.i conftest.i >conftest2.i
5543 : ${lt_DD:=$DD}
5544 if test -z "$lt_DD"; then
5545 ac_path_lt_DD_found=false
5546 # Loop through the user's path and test for each of PROGNAME-LIST
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 for as_dir in $PATH
5550 IFS=$as_save_IFS
5551 test -z "$as_dir" && as_dir=.
5552 for ac_prog in dd; do
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
5555 as_fn_executable_p "$ac_path_lt_DD" || continue
5556 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5557 cmp -s conftest.i conftest.out \
5558 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
5560 $ac_path_lt_DD_found && break 3
5561 done
5562 done
5563 done
5564 IFS=$as_save_IFS
5565 if test -z "$ac_cv_path_lt_DD"; then
5568 else
5569 ac_cv_path_lt_DD=$lt_DD
5572 rm -f conftest.i conftest2.i conftest.out
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
5575 $as_echo "$ac_cv_path_lt_DD" >&6; }
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
5579 $as_echo_n "checking how to truncate binary pipes... " >&6; }
5580 if ${lt_cv_truncate_bin+:} false; then :
5581 $as_echo_n "(cached) " >&6
5582 else
5583 printf 0123456789abcdef0123456789abcdef >conftest.i
5584 cat conftest.i conftest.i >conftest2.i
5585 lt_cv_truncate_bin=
5586 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5587 cmp -s conftest.i conftest.out \
5588 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
5590 rm -f conftest.i conftest2.i conftest.out
5591 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
5594 $as_echo "$lt_cv_truncate_bin" >&6; }
5602 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
5603 func_cc_basename ()
5605 for cc_temp in $*""; do
5606 case $cc_temp in
5607 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5608 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5609 \-*) ;;
5610 *) break;;
5611 esac
5612 done
5613 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
5616 # Check whether --enable-libtool-lock was given.
5617 if test "${enable_libtool_lock+set}" = set; then :
5618 enableval=$enable_libtool_lock;
5621 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
5623 # Some flags need to be propagated to the compiler or linker for good
5624 # libtool support.
5625 case $host in
5626 ia64-*-hpux*)
5627 # Find out what ABI is being produced by ac_compile, and set mode
5628 # options accordingly.
5629 echo 'int i;' > conftest.$ac_ext
5630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5631 (eval $ac_compile) 2>&5
5632 ac_status=$?
5633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5634 test $ac_status = 0; }; then
5635 case `/usr/bin/file conftest.$ac_objext` in
5636 *ELF-32*)
5637 HPUX_IA64_MODE=32
5639 *ELF-64*)
5640 HPUX_IA64_MODE=64
5642 esac
5644 rm -rf conftest*
5646 *-*-irix6*)
5647 # Find out what ABI is being produced by ac_compile, and set linker
5648 # options accordingly.
5649 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5651 (eval $ac_compile) 2>&5
5652 ac_status=$?
5653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5654 test $ac_status = 0; }; then
5655 if test yes = "$lt_cv_prog_gnu_ld"; then
5656 case `/usr/bin/file conftest.$ac_objext` in
5657 *32-bit*)
5658 LD="${LD-ld} -melf32bsmip"
5660 *N32*)
5661 LD="${LD-ld} -melf32bmipn32"
5663 *64-bit*)
5664 LD="${LD-ld} -melf64bmip"
5666 esac
5667 else
5668 case `/usr/bin/file conftest.$ac_objext` in
5669 *32-bit*)
5670 LD="${LD-ld} -32"
5672 *N32*)
5673 LD="${LD-ld} -n32"
5675 *64-bit*)
5676 LD="${LD-ld} -64"
5678 esac
5681 rm -rf conftest*
5684 mips64*-*linux*)
5685 # Find out what ABI is being produced by ac_compile, and set linker
5686 # options accordingly.
5687 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5689 (eval $ac_compile) 2>&5
5690 ac_status=$?
5691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5692 test $ac_status = 0; }; then
5693 emul=elf
5694 case `/usr/bin/file conftest.$ac_objext` in
5695 *32-bit*)
5696 emul="${emul}32"
5698 *64-bit*)
5699 emul="${emul}64"
5701 esac
5702 case `/usr/bin/file conftest.$ac_objext` in
5703 *MSB*)
5704 emul="${emul}btsmip"
5706 *LSB*)
5707 emul="${emul}ltsmip"
5709 esac
5710 case `/usr/bin/file conftest.$ac_objext` in
5711 *N32*)
5712 emul="${emul}n32"
5714 esac
5715 LD="${LD-ld} -m $emul"
5717 rm -rf conftest*
5720 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5721 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5722 # Find out what ABI is being produced by ac_compile, and set linker
5723 # options accordingly. Note that the listed cases only cover the
5724 # situations where additional linker options are needed (such as when
5725 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
5726 # vice versa); the common cases where no linker options are needed do
5727 # not appear in the list.
5728 echo 'int i;' > conftest.$ac_ext
5729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5730 (eval $ac_compile) 2>&5
5731 ac_status=$?
5732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5733 test $ac_status = 0; }; then
5734 case `/usr/bin/file conftest.o` in
5735 *32-bit*)
5736 case $host in
5737 x86_64-*kfreebsd*-gnu)
5738 LD="${LD-ld} -m elf_i386_fbsd"
5740 x86_64-*linux*)
5741 case `/usr/bin/file conftest.o` in
5742 *x86-64*)
5743 LD="${LD-ld} -m elf32_x86_64"
5746 LD="${LD-ld} -m elf_i386"
5748 esac
5750 powerpc64le-*linux*)
5751 LD="${LD-ld} -m elf32lppclinux"
5753 powerpc64-*linux*)
5754 LD="${LD-ld} -m elf32ppclinux"
5756 s390x-*linux*)
5757 LD="${LD-ld} -m elf_s390"
5759 sparc64-*linux*)
5760 LD="${LD-ld} -m elf32_sparc"
5762 esac
5764 *64-bit*)
5765 case $host in
5766 x86_64-*kfreebsd*-gnu)
5767 LD="${LD-ld} -m elf_x86_64_fbsd"
5769 x86_64-*linux*)
5770 LD="${LD-ld} -m elf_x86_64"
5772 powerpcle-*linux*)
5773 LD="${LD-ld} -m elf64lppc"
5775 powerpc-*linux*)
5776 LD="${LD-ld} -m elf64ppc"
5778 s390*-*linux*|s390*-*tpf*)
5779 LD="${LD-ld} -m elf64_s390"
5781 sparc*-*linux*)
5782 LD="${LD-ld} -m elf64_sparc"
5784 esac
5786 esac
5788 rm -rf conftest*
5791 *-*-sco3.2v5*)
5792 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5793 SAVE_CFLAGS=$CFLAGS
5794 CFLAGS="$CFLAGS -belf"
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5796 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5797 if ${lt_cv_cc_needs_belf+:} false; then :
5798 $as_echo_n "(cached) " >&6
5799 else
5800 ac_ext=c
5801 ac_cpp='$CPP $CPPFLAGS'
5802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5807 /* end confdefs.h. */
5810 main ()
5814 return 0;
5816 _ACEOF
5817 if ac_fn_c_try_link "$LINENO"; then :
5818 lt_cv_cc_needs_belf=yes
5819 else
5820 lt_cv_cc_needs_belf=no
5822 rm -f core conftest.err conftest.$ac_objext \
5823 conftest$ac_exeext conftest.$ac_ext
5824 ac_ext=c
5825 ac_cpp='$CPP $CPPFLAGS'
5826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5832 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5833 if test yes != "$lt_cv_cc_needs_belf"; then
5834 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5835 CFLAGS=$SAVE_CFLAGS
5838 *-*solaris*)
5839 # Find out what ABI is being produced by ac_compile, and set linker
5840 # options accordingly.
5841 echo 'int i;' > conftest.$ac_ext
5842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5843 (eval $ac_compile) 2>&5
5844 ac_status=$?
5845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5846 test $ac_status = 0; }; then
5847 case `/usr/bin/file conftest.o` in
5848 *64-bit*)
5849 case $lt_cv_prog_gnu_ld in
5850 yes*)
5851 case $host in
5852 i?86-*-solaris*|x86_64-*-solaris*)
5853 LD="${LD-ld} -m elf_x86_64"
5855 sparc*-*-solaris*)
5856 LD="${LD-ld} -m elf64_sparc"
5858 esac
5859 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
5860 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5861 LD=${LD-ld}_sol2
5865 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5866 LD="${LD-ld} -64"
5869 esac
5871 esac
5873 rm -rf conftest*
5875 esac
5877 need_locks=$enable_libtool_lock
5879 if test -n "$ac_tool_prefix"; then
5880 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5881 set dummy ${ac_tool_prefix}mt; ac_word=$2
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883 $as_echo_n "checking for $ac_word... " >&6; }
5884 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
5885 $as_echo_n "(cached) " >&6
5886 else
5887 if test -n "$MANIFEST_TOOL"; then
5888 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5889 else
5890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891 for as_dir in $PATH
5893 IFS=$as_save_IFS
5894 test -z "$as_dir" && as_dir=.
5895 for ac_exec_ext in '' $ac_executable_extensions; do
5896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5897 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 break 2
5901 done
5902 done
5903 IFS=$as_save_IFS
5907 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5908 if test -n "$MANIFEST_TOOL"; then
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
5910 $as_echo "$MANIFEST_TOOL" >&6; }
5911 else
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913 $as_echo "no" >&6; }
5918 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5919 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5920 # Extract the first word of "mt", so it can be a program name with args.
5921 set dummy mt; ac_word=$2
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5923 $as_echo_n "checking for $ac_word... " >&6; }
5924 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 if test -n "$ac_ct_MANIFEST_TOOL"; then
5928 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5929 else
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH
5933 IFS=$as_save_IFS
5934 test -z "$as_dir" && as_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5937 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 break 2
5941 done
5942 done
5943 IFS=$as_save_IFS
5947 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5948 if test -n "$ac_ct_MANIFEST_TOOL"; then
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
5950 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
5951 else
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953 $as_echo "no" >&6; }
5956 if test "x$ac_ct_MANIFEST_TOOL" = x; then
5957 MANIFEST_TOOL=":"
5958 else
5959 case $cross_compiling:$ac_tool_warned in
5960 yes:)
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5963 ac_tool_warned=yes ;;
5964 esac
5965 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5967 else
5968 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5971 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
5973 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
5974 if ${lt_cv_path_mainfest_tool+:} false; then :
5975 $as_echo_n "(cached) " >&6
5976 else
5977 lt_cv_path_mainfest_tool=no
5978 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5979 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5980 cat conftest.err >&5
5981 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5982 lt_cv_path_mainfest_tool=yes
5984 rm -f conftest*
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
5987 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
5988 if test yes != "$lt_cv_path_mainfest_tool"; then
5989 MANIFEST_TOOL=:
5997 case $host_os in
5998 rhapsody* | darwin*)
5999 if test -n "$ac_tool_prefix"; then
6000 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6001 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003 $as_echo_n "checking for $ac_word... " >&6; }
6004 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 if test -n "$DSYMUTIL"; then
6008 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6009 else
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6017 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 break 2
6021 done
6022 done
6023 IFS=$as_save_IFS
6027 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6028 if test -n "$DSYMUTIL"; then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6030 $as_echo "$DSYMUTIL" >&6; }
6031 else
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033 $as_echo "no" >&6; }
6038 if test -z "$ac_cv_prog_DSYMUTIL"; then
6039 ac_ct_DSYMUTIL=$DSYMUTIL
6040 # Extract the first word of "dsymutil", so it can be a program name with args.
6041 set dummy dsymutil; ac_word=$2
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6043 $as_echo_n "checking for $ac_word... " >&6; }
6044 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6045 $as_echo_n "(cached) " >&6
6046 else
6047 if test -n "$ac_ct_DSYMUTIL"; then
6048 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6049 else
6050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051 for as_dir in $PATH
6053 IFS=$as_save_IFS
6054 test -z "$as_dir" && as_dir=.
6055 for ac_exec_ext in '' $ac_executable_extensions; do
6056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6057 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6059 break 2
6061 done
6062 done
6063 IFS=$as_save_IFS
6067 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6068 if test -n "$ac_ct_DSYMUTIL"; then
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6070 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6071 else
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6073 $as_echo "no" >&6; }
6076 if test "x$ac_ct_DSYMUTIL" = x; then
6077 DSYMUTIL=":"
6078 else
6079 case $cross_compiling:$ac_tool_warned in
6080 yes:)
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6083 ac_tool_warned=yes ;;
6084 esac
6085 DSYMUTIL=$ac_ct_DSYMUTIL
6087 else
6088 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6091 if test -n "$ac_tool_prefix"; then
6092 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6093 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6095 $as_echo_n "checking for $ac_word... " >&6; }
6096 if ${ac_cv_prog_NMEDIT+:} false; then :
6097 $as_echo_n "(cached) " >&6
6098 else
6099 if test -n "$NMEDIT"; then
6100 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6101 else
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 for as_dir in $PATH
6105 IFS=$as_save_IFS
6106 test -z "$as_dir" && as_dir=.
6107 for ac_exec_ext in '' $ac_executable_extensions; do
6108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6109 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6111 break 2
6113 done
6114 done
6115 IFS=$as_save_IFS
6119 NMEDIT=$ac_cv_prog_NMEDIT
6120 if test -n "$NMEDIT"; then
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6122 $as_echo "$NMEDIT" >&6; }
6123 else
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6125 $as_echo "no" >&6; }
6130 if test -z "$ac_cv_prog_NMEDIT"; then
6131 ac_ct_NMEDIT=$NMEDIT
6132 # Extract the first word of "nmedit", so it can be a program name with args.
6133 set dummy nmedit; ac_word=$2
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6135 $as_echo_n "checking for $ac_word... " >&6; }
6136 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6137 $as_echo_n "(cached) " >&6
6138 else
6139 if test -n "$ac_ct_NMEDIT"; then
6140 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6141 else
6142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 for as_dir in $PATH
6145 IFS=$as_save_IFS
6146 test -z "$as_dir" && as_dir=.
6147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6149 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 break 2
6153 done
6154 done
6155 IFS=$as_save_IFS
6159 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6160 if test -n "$ac_ct_NMEDIT"; then
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6162 $as_echo "$ac_ct_NMEDIT" >&6; }
6163 else
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6165 $as_echo "no" >&6; }
6168 if test "x$ac_ct_NMEDIT" = x; then
6169 NMEDIT=":"
6170 else
6171 case $cross_compiling:$ac_tool_warned in
6172 yes:)
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6175 ac_tool_warned=yes ;;
6176 esac
6177 NMEDIT=$ac_ct_NMEDIT
6179 else
6180 NMEDIT="$ac_cv_prog_NMEDIT"
6183 if test -n "$ac_tool_prefix"; then
6184 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6185 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if ${ac_cv_prog_LIPO+:} false; then :
6189 $as_echo_n "(cached) " >&6
6190 else
6191 if test -n "$LIPO"; then
6192 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6193 else
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH
6197 IFS=$as_save_IFS
6198 test -z "$as_dir" && as_dir=.
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6201 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 break 2
6205 done
6206 done
6207 IFS=$as_save_IFS
6211 LIPO=$ac_cv_prog_LIPO
6212 if test -n "$LIPO"; then
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6214 $as_echo "$LIPO" >&6; }
6215 else
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217 $as_echo "no" >&6; }
6222 if test -z "$ac_cv_prog_LIPO"; then
6223 ac_ct_LIPO=$LIPO
6224 # Extract the first word of "lipo", so it can be a program name with args.
6225 set dummy lipo; ac_word=$2
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227 $as_echo_n "checking for $ac_word... " >&6; }
6228 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6229 $as_echo_n "(cached) " >&6
6230 else
6231 if test -n "$ac_ct_LIPO"; then
6232 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6233 else
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 for as_dir in $PATH
6237 IFS=$as_save_IFS
6238 test -z "$as_dir" && as_dir=.
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6241 ac_cv_prog_ac_ct_LIPO="lipo"
6242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6243 break 2
6245 done
6246 done
6247 IFS=$as_save_IFS
6251 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6252 if test -n "$ac_ct_LIPO"; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6254 $as_echo "$ac_ct_LIPO" >&6; }
6255 else
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 $as_echo "no" >&6; }
6260 if test "x$ac_ct_LIPO" = x; then
6261 LIPO=":"
6262 else
6263 case $cross_compiling:$ac_tool_warned in
6264 yes:)
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6267 ac_tool_warned=yes ;;
6268 esac
6269 LIPO=$ac_ct_LIPO
6271 else
6272 LIPO="$ac_cv_prog_LIPO"
6275 if test -n "$ac_tool_prefix"; then
6276 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6277 set dummy ${ac_tool_prefix}otool; ac_word=$2
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6279 $as_echo_n "checking for $ac_word... " >&6; }
6280 if ${ac_cv_prog_OTOOL+:} false; then :
6281 $as_echo_n "(cached) " >&6
6282 else
6283 if test -n "$OTOOL"; then
6284 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6285 else
6286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287 for as_dir in $PATH
6289 IFS=$as_save_IFS
6290 test -z "$as_dir" && as_dir=.
6291 for ac_exec_ext in '' $ac_executable_extensions; do
6292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6293 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6295 break 2
6297 done
6298 done
6299 IFS=$as_save_IFS
6303 OTOOL=$ac_cv_prog_OTOOL
6304 if test -n "$OTOOL"; then
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6306 $as_echo "$OTOOL" >&6; }
6307 else
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6309 $as_echo "no" >&6; }
6314 if test -z "$ac_cv_prog_OTOOL"; then
6315 ac_ct_OTOOL=$OTOOL
6316 # Extract the first word of "otool", so it can be a program name with args.
6317 set dummy otool; ac_word=$2
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6319 $as_echo_n "checking for $ac_word... " >&6; }
6320 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6321 $as_echo_n "(cached) " >&6
6322 else
6323 if test -n "$ac_ct_OTOOL"; then
6324 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6325 else
6326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 for as_dir in $PATH
6329 IFS=$as_save_IFS
6330 test -z "$as_dir" && as_dir=.
6331 for ac_exec_ext in '' $ac_executable_extensions; do
6332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6333 ac_cv_prog_ac_ct_OTOOL="otool"
6334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 break 2
6337 done
6338 done
6339 IFS=$as_save_IFS
6343 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6344 if test -n "$ac_ct_OTOOL"; then
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6346 $as_echo "$ac_ct_OTOOL" >&6; }
6347 else
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6349 $as_echo "no" >&6; }
6352 if test "x$ac_ct_OTOOL" = x; then
6353 OTOOL=":"
6354 else
6355 case $cross_compiling:$ac_tool_warned in
6356 yes:)
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6359 ac_tool_warned=yes ;;
6360 esac
6361 OTOOL=$ac_ct_OTOOL
6363 else
6364 OTOOL="$ac_cv_prog_OTOOL"
6367 if test -n "$ac_tool_prefix"; then
6368 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6369 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371 $as_echo_n "checking for $ac_word... " >&6; }
6372 if ${ac_cv_prog_OTOOL64+:} false; then :
6373 $as_echo_n "(cached) " >&6
6374 else
6375 if test -n "$OTOOL64"; then
6376 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6377 else
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 for as_dir in $PATH
6381 IFS=$as_save_IFS
6382 test -z "$as_dir" && as_dir=.
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6385 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 break 2
6389 done
6390 done
6391 IFS=$as_save_IFS
6395 OTOOL64=$ac_cv_prog_OTOOL64
6396 if test -n "$OTOOL64"; then
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6398 $as_echo "$OTOOL64" >&6; }
6399 else
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401 $as_echo "no" >&6; }
6406 if test -z "$ac_cv_prog_OTOOL64"; then
6407 ac_ct_OTOOL64=$OTOOL64
6408 # Extract the first word of "otool64", so it can be a program name with args.
6409 set dummy otool64; ac_word=$2
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6411 $as_echo_n "checking for $ac_word... " >&6; }
6412 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6413 $as_echo_n "(cached) " >&6
6414 else
6415 if test -n "$ac_ct_OTOOL64"; then
6416 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6417 else
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 for as_dir in $PATH
6421 IFS=$as_save_IFS
6422 test -z "$as_dir" && as_dir=.
6423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6425 ac_cv_prog_ac_ct_OTOOL64="otool64"
6426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6427 break 2
6429 done
6430 done
6431 IFS=$as_save_IFS
6435 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6436 if test -n "$ac_ct_OTOOL64"; then
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6438 $as_echo "$ac_ct_OTOOL64" >&6; }
6439 else
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441 $as_echo "no" >&6; }
6444 if test "x$ac_ct_OTOOL64" = x; then
6445 OTOOL64=":"
6446 else
6447 case $cross_compiling:$ac_tool_warned in
6448 yes:)
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6451 ac_tool_warned=yes ;;
6452 esac
6453 OTOOL64=$ac_ct_OTOOL64
6455 else
6456 OTOOL64="$ac_cv_prog_OTOOL64"
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6486 $as_echo_n "checking for -single_module linker flag... " >&6; }
6487 if ${lt_cv_apple_cc_single_mod+:} false; then :
6488 $as_echo_n "(cached) " >&6
6489 else
6490 lt_cv_apple_cc_single_mod=no
6491 if test -z "$LT_MULTI_MODULE"; then
6492 # By default we will add the -single_module flag. You can override
6493 # by either setting the environment variable LT_MULTI_MODULE
6494 # non-empty at configure time, or by adding -multi_module to the
6495 # link flags.
6496 rm -rf libconftest.dylib*
6497 echo "int foo(void){return 1;}" > conftest.c
6498 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6499 -dynamiclib -Wl,-single_module conftest.c" >&5
6500 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6501 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6502 _lt_result=$?
6503 # If there is a non-empty error log, and "single_module"
6504 # appears in it, assume the flag caused a linker warning
6505 if test -s conftest.err && $GREP single_module conftest.err; then
6506 cat conftest.err >&5
6507 # Otherwise, if the output was created with a 0 exit code from
6508 # the compiler, it worked.
6509 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
6510 lt_cv_apple_cc_single_mod=yes
6511 else
6512 cat conftest.err >&5
6514 rm -rf libconftest.dylib*
6515 rm -f conftest.*
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6519 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6522 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6523 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6524 $as_echo_n "(cached) " >&6
6525 else
6526 lt_cv_ld_exported_symbols_list=no
6527 save_LDFLAGS=$LDFLAGS
6528 echo "_main" > conftest.sym
6529 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531 /* end confdefs.h. */
6534 main ()
6538 return 0;
6540 _ACEOF
6541 if ac_fn_c_try_link "$LINENO"; then :
6542 lt_cv_ld_exported_symbols_list=yes
6543 else
6544 lt_cv_ld_exported_symbols_list=no
6546 rm -f core conftest.err conftest.$ac_objext \
6547 conftest$ac_exeext conftest.$ac_ext
6548 LDFLAGS=$save_LDFLAGS
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6552 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6555 $as_echo_n "checking for -force_load linker flag... " >&6; }
6556 if ${lt_cv_ld_force_load+:} false; then :
6557 $as_echo_n "(cached) " >&6
6558 else
6559 lt_cv_ld_force_load=no
6560 cat > conftest.c << _LT_EOF
6561 int forced_loaded() { return 2;}
6562 _LT_EOF
6563 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6564 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6565 echo "$AR cru libconftest.a conftest.o" >&5
6566 $AR cru libconftest.a conftest.o 2>&5
6567 echo "$RANLIB libconftest.a" >&5
6568 $RANLIB libconftest.a 2>&5
6569 cat > conftest.c << _LT_EOF
6570 int main() { return 0;}
6571 _LT_EOF
6572 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6573 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6574 _lt_result=$?
6575 if test -s conftest.err && $GREP force_load conftest.err; then
6576 cat conftest.err >&5
6577 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
6578 lt_cv_ld_force_load=yes
6579 else
6580 cat conftest.err >&5
6582 rm -f conftest.err libconftest.a conftest conftest.c
6583 rm -rf conftest.dSYM
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6587 $as_echo "$lt_cv_ld_force_load" >&6; }
6588 case $host_os in
6589 rhapsody* | darwin1.[012])
6590 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
6591 darwin1.*)
6592 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6593 darwin*) # darwin 5.x on
6594 # if running on 10.5 or later, the deployment target defaults
6595 # to the OS version, if on x86, and 10.4, the deployment
6596 # target defaults to 10.4. Don't you love it?
6597 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6598 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6599 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6600 10.[012][,.]*)
6601 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6602 10.*)
6603 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6604 esac
6606 esac
6607 if test yes = "$lt_cv_apple_cc_single_mod"; then
6608 _lt_dar_single_mod='$single_module'
6610 if test yes = "$lt_cv_ld_exported_symbols_list"; then
6611 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
6612 else
6613 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
6615 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
6616 _lt_dsymutil='~$DSYMUTIL $lib || :'
6617 else
6618 _lt_dsymutil=
6621 esac
6623 # func_munge_path_list VARIABLE PATH
6624 # -----------------------------------
6625 # VARIABLE is name of variable containing _space_ separated list of
6626 # directories to be munged by the contents of PATH, which is string
6627 # having a format:
6628 # "DIR[:DIR]:"
6629 # string "DIR[ DIR]" will be prepended to VARIABLE
6630 # ":DIR[:DIR]"
6631 # string "DIR[ DIR]" will be appended to VARIABLE
6632 # "DIRP[:DIRP]::[DIRA:]DIRA"
6633 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
6634 # "DIRA[ DIRA]" will be appended to VARIABLE
6635 # "DIR[:DIR]"
6636 # VARIABLE will be replaced by "DIR[ DIR]"
6637 func_munge_path_list ()
6639 case x$2 in
6643 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
6645 x:*)
6646 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
6648 *::*)
6649 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
6650 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
6653 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
6655 esac
6658 ac_ext=c
6659 ac_cpp='$CPP $CPPFLAGS'
6660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6664 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6665 # On Suns, sometimes $CPP names a directory.
6666 if test -n "$CPP" && test -d "$CPP"; then
6667 CPP=
6669 if test -z "$CPP"; then
6670 if ${ac_cv_prog_CPP+:} false; then :
6671 $as_echo_n "(cached) " >&6
6672 else
6673 # Double quotes because CPP needs to be expanded
6674 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6676 ac_preproc_ok=false
6677 for ac_c_preproc_warn_flag in '' yes
6679 # Use a header file that comes with gcc, so configuring glibc
6680 # with a fresh cross-compiler works.
6681 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6682 # <limits.h> exists even on freestanding compilers.
6683 # On the NeXT, cc -E runs the code through the compiler's parser,
6684 # not just through cpp. "Syntax error" is here to catch this case.
6685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6686 /* end confdefs.h. */
6687 #ifdef __STDC__
6688 # include <limits.h>
6689 #else
6690 # include <assert.h>
6691 #endif
6692 Syntax error
6693 _ACEOF
6694 if ac_fn_c_try_cpp "$LINENO"; then :
6696 else
6697 # Broken: fails on valid input.
6698 continue
6700 rm -f conftest.err conftest.i conftest.$ac_ext
6702 # OK, works on sane cases. Now check whether nonexistent headers
6703 # can be detected and how.
6704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h. */
6706 #include <ac_nonexistent.h>
6707 _ACEOF
6708 if ac_fn_c_try_cpp "$LINENO"; then :
6709 # Broken: success on invalid input.
6710 continue
6711 else
6712 # Passes both tests.
6713 ac_preproc_ok=:
6714 break
6716 rm -f conftest.err conftest.i conftest.$ac_ext
6718 done
6719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6720 rm -f conftest.i conftest.err conftest.$ac_ext
6721 if $ac_preproc_ok; then :
6722 break
6725 done
6726 ac_cv_prog_CPP=$CPP
6729 CPP=$ac_cv_prog_CPP
6730 else
6731 ac_cv_prog_CPP=$CPP
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6734 $as_echo "$CPP" >&6; }
6735 ac_preproc_ok=false
6736 for ac_c_preproc_warn_flag in '' yes
6738 # Use a header file that comes with gcc, so configuring glibc
6739 # with a fresh cross-compiler works.
6740 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6741 # <limits.h> exists even on freestanding compilers.
6742 # On the NeXT, cc -E runs the code through the compiler's parser,
6743 # not just through cpp. "Syntax error" is here to catch this case.
6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6746 #ifdef __STDC__
6747 # include <limits.h>
6748 #else
6749 # include <assert.h>
6750 #endif
6751 Syntax error
6752 _ACEOF
6753 if ac_fn_c_try_cpp "$LINENO"; then :
6755 else
6756 # Broken: fails on valid input.
6757 continue
6759 rm -f conftest.err conftest.i conftest.$ac_ext
6761 # OK, works on sane cases. Now check whether nonexistent headers
6762 # can be detected and how.
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6765 #include <ac_nonexistent.h>
6766 _ACEOF
6767 if ac_fn_c_try_cpp "$LINENO"; then :
6768 # Broken: success on invalid input.
6769 continue
6770 else
6771 # Passes both tests.
6772 ac_preproc_ok=:
6773 break
6775 rm -f conftest.err conftest.i conftest.$ac_ext
6777 done
6778 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6779 rm -f conftest.i conftest.err conftest.$ac_ext
6780 if $ac_preproc_ok; then :
6782 else
6783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6785 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6786 See \`config.log' for more details" "$LINENO" 5; }
6789 ac_ext=c
6790 ac_cpp='$CPP $CPPFLAGS'
6791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6797 $as_echo_n "checking for ANSI C header files... " >&6; }
6798 if ${ac_cv_header_stdc+:} false; then :
6799 $as_echo_n "(cached) " >&6
6800 else
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6803 #include <stdlib.h>
6804 #include <stdarg.h>
6805 #include <string.h>
6806 #include <float.h>
6809 main ()
6813 return 0;
6815 _ACEOF
6816 if ac_fn_c_try_compile "$LINENO"; then :
6817 ac_cv_header_stdc=yes
6818 else
6819 ac_cv_header_stdc=no
6821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6823 if test $ac_cv_header_stdc = yes; then
6824 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h. */
6827 #include <string.h>
6829 _ACEOF
6830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6831 $EGREP "memchr" >/dev/null 2>&1; then :
6833 else
6834 ac_cv_header_stdc=no
6836 rm -f conftest*
6840 if test $ac_cv_header_stdc = yes; then
6841 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h. */
6844 #include <stdlib.h>
6846 _ACEOF
6847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6848 $EGREP "free" >/dev/null 2>&1; then :
6850 else
6851 ac_cv_header_stdc=no
6853 rm -f conftest*
6857 if test $ac_cv_header_stdc = yes; then
6858 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6859 if test "$cross_compiling" = yes; then :
6861 else
6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863 /* end confdefs.h. */
6864 #include <ctype.h>
6865 #include <stdlib.h>
6866 #if ((' ' & 0x0FF) == 0x020)
6867 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6868 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6869 #else
6870 # define ISLOWER(c) \
6871 (('a' <= (c) && (c) <= 'i') \
6872 || ('j' <= (c) && (c) <= 'r') \
6873 || ('s' <= (c) && (c) <= 'z'))
6874 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6875 #endif
6877 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6879 main ()
6881 int i;
6882 for (i = 0; i < 256; i++)
6883 if (XOR (islower (i), ISLOWER (i))
6884 || toupper (i) != TOUPPER (i))
6885 return 2;
6886 return 0;
6888 _ACEOF
6889 if ac_fn_c_try_run "$LINENO"; then :
6891 else
6892 ac_cv_header_stdc=no
6894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6895 conftest.$ac_objext conftest.beam conftest.$ac_ext
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6901 $as_echo "$ac_cv_header_stdc" >&6; }
6902 if test $ac_cv_header_stdc = yes; then
6904 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6908 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6909 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6910 inttypes.h stdint.h unistd.h
6911 do :
6912 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6913 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6915 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6916 cat >>confdefs.h <<_ACEOF
6917 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6918 _ACEOF
6922 done
6925 for ac_header in dlfcn.h
6926 do :
6927 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6929 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6930 cat >>confdefs.h <<_ACEOF
6931 #define HAVE_DLFCN_H 1
6932 _ACEOF
6936 done
6942 # Set options
6946 enable_dlopen=no
6949 enable_win32_dll=no
6952 # Check whether --enable-shared was given.
6953 if test "${enable_shared+set}" = set; then :
6954 enableval=$enable_shared; p=${PACKAGE-default}
6955 case $enableval in
6956 yes) enable_shared=yes ;;
6957 no) enable_shared=no ;;
6959 enable_shared=no
6960 # Look at the argument we got. We use all the common list separators.
6961 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
6962 for pkg in $enableval; do
6963 IFS=$lt_save_ifs
6964 if test "X$pkg" = "X$p"; then
6965 enable_shared=yes
6967 done
6968 IFS=$lt_save_ifs
6970 esac
6971 else
6972 enable_shared=yes
6983 # Check whether --enable-static was given.
6984 if test "${enable_static+set}" = set; then :
6985 enableval=$enable_static; p=${PACKAGE-default}
6986 case $enableval in
6987 yes) enable_static=yes ;;
6988 no) enable_static=no ;;
6990 enable_static=no
6991 # Look at the argument we got. We use all the common list separators.
6992 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
6993 for pkg in $enableval; do
6994 IFS=$lt_save_ifs
6995 if test "X$pkg" = "X$p"; then
6996 enable_static=yes
6998 done
6999 IFS=$lt_save_ifs
7001 esac
7002 else
7003 enable_static=yes
7015 # Check whether --with-pic was given.
7016 if test "${with_pic+set}" = set; then :
7017 withval=$with_pic; lt_p=${PACKAGE-default}
7018 case $withval in
7019 yes|no) pic_mode=$withval ;;
7021 pic_mode=default
7022 # Look at the argument we got. We use all the common list separators.
7023 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7024 for lt_pkg in $withval; do
7025 IFS=$lt_save_ifs
7026 if test "X$lt_pkg" = "X$lt_p"; then
7027 pic_mode=yes
7029 done
7030 IFS=$lt_save_ifs
7032 esac
7033 else
7034 pic_mode=default
7044 # Check whether --enable-fast-install was given.
7045 if test "${enable_fast_install+set}" = set; then :
7046 enableval=$enable_fast_install; p=${PACKAGE-default}
7047 case $enableval in
7048 yes) enable_fast_install=yes ;;
7049 no) enable_fast_install=no ;;
7051 enable_fast_install=no
7052 # Look at the argument we got. We use all the common list separators.
7053 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7054 for pkg in $enableval; do
7055 IFS=$lt_save_ifs
7056 if test "X$pkg" = "X$p"; then
7057 enable_fast_install=yes
7059 done
7060 IFS=$lt_save_ifs
7062 esac
7063 else
7064 enable_fast_install=yes
7074 shared_archive_member_spec=
7075 case $host,$enable_shared in
7076 power*-*-aix[5-9]*,yes)
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7078 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7080 # Check whether --with-aix-soname was given.
7081 if test "${with_aix_soname+set}" = set; then :
7082 withval=$with_aix_soname; case $withval in
7083 aix|svr4|both)
7086 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7088 esac
7089 lt_cv_with_aix_soname=$with_aix_soname
7090 else
7091 if ${lt_cv_with_aix_soname+:} false; then :
7092 $as_echo_n "(cached) " >&6
7093 else
7094 lt_cv_with_aix_soname=aix
7097 with_aix_soname=$lt_cv_with_aix_soname
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7101 $as_echo "$with_aix_soname" >&6; }
7102 if test aix != "$with_aix_soname"; then
7103 # For the AIX way of multilib, we name the shared archive member
7104 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7105 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7106 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7107 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7108 if test 64 = "${OBJECT_MODE-32}"; then
7109 shared_archive_member_spec=shr_64
7110 else
7111 shared_archive_member_spec=shr
7116 with_aix_soname=aix
7118 esac
7129 # This can be used to rebuild libtool when needed
7130 LIBTOOL_DEPS=$ltmain
7132 # Always use our own libtool.
7133 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7164 test -z "$LN_S" && LN_S="ln -s"
7179 if test -n "${ZSH_VERSION+set}"; then
7180 setopt NO_GLOB_SUBST
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7184 $as_echo_n "checking for objdir... " >&6; }
7185 if ${lt_cv_objdir+:} false; then :
7186 $as_echo_n "(cached) " >&6
7187 else
7188 rm -f .libs 2>/dev/null
7189 mkdir .libs 2>/dev/null
7190 if test -d .libs; then
7191 lt_cv_objdir=.libs
7192 else
7193 # MS-DOS does not allow filenames that begin with a dot.
7194 lt_cv_objdir=_libs
7196 rmdir .libs 2>/dev/null
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7199 $as_echo "$lt_cv_objdir" >&6; }
7200 objdir=$lt_cv_objdir
7206 cat >>confdefs.h <<_ACEOF
7207 #define LT_OBJDIR "$lt_cv_objdir/"
7208 _ACEOF
7213 case $host_os in
7214 aix3*)
7215 # AIX sometimes has problems with the GCC collect2 program. For some
7216 # reason, if we set the COLLECT_NAMES environment variable, the problems
7217 # vanish in a puff of smoke.
7218 if test set != "${COLLECT_NAMES+set}"; then
7219 COLLECT_NAMES=
7220 export COLLECT_NAMES
7223 esac
7225 # Global variables:
7226 ofile=libtool
7227 can_build_shared=yes
7229 # All known linkers require a '.a' archive for static linking (except MSVC,
7230 # which needs '.lib').
7231 libext=a
7233 with_gnu_ld=$lt_cv_prog_gnu_ld
7235 old_CC=$CC
7236 old_CFLAGS=$CFLAGS
7238 # Set sane defaults for various variables
7239 test -z "$CC" && CC=cc
7240 test -z "$LTCC" && LTCC=$CC
7241 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7242 test -z "$LD" && LD=ld
7243 test -z "$ac_objext" && ac_objext=o
7245 func_cc_basename $compiler
7246 cc_basename=$func_cc_basename_result
7249 # Only perform the check for file, if the check method requires it
7250 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7251 case $deplibs_check_method in
7252 file_magic*)
7253 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7255 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7256 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7257 $as_echo_n "(cached) " >&6
7258 else
7259 case $MAGIC_CMD in
7260 [\\/*] | ?:[\\/]*)
7261 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7264 lt_save_MAGIC_CMD=$MAGIC_CMD
7265 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7266 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7267 for ac_dir in $ac_dummy; do
7268 IFS=$lt_save_ifs
7269 test -z "$ac_dir" && ac_dir=.
7270 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7271 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7272 if test -n "$file_magic_test_file"; then
7273 case $deplibs_check_method in
7274 "file_magic "*)
7275 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7276 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7277 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7278 $EGREP "$file_magic_regex" > /dev/null; then
7280 else
7281 cat <<_LT_EOF 1>&2
7283 *** Warning: the command libtool uses to detect shared libraries,
7284 *** $file_magic_cmd, produces output that libtool cannot recognize.
7285 *** The result is that libtool may fail to recognize shared libraries
7286 *** as such. This will affect the creation of libtool libraries that
7287 *** depend on shared libraries, but programs linked with such libtool
7288 *** libraries will work regardless of this problem. Nevertheless, you
7289 *** may want to report the problem to your system manager and/or to
7290 *** bug-libtool@gnu.org
7292 _LT_EOF
7293 fi ;;
7294 esac
7296 break
7298 done
7299 IFS=$lt_save_ifs
7300 MAGIC_CMD=$lt_save_MAGIC_CMD
7302 esac
7305 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7306 if test -n "$MAGIC_CMD"; then
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7308 $as_echo "$MAGIC_CMD" >&6; }
7309 else
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 $as_echo "no" >&6; }
7318 if test -z "$lt_cv_path_MAGIC_CMD"; then
7319 if test -n "$ac_tool_prefix"; then
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7321 $as_echo_n "checking for file... " >&6; }
7322 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7323 $as_echo_n "(cached) " >&6
7324 else
7325 case $MAGIC_CMD in
7326 [\\/*] | ?:[\\/]*)
7327 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7330 lt_save_MAGIC_CMD=$MAGIC_CMD
7331 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7332 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7333 for ac_dir in $ac_dummy; do
7334 IFS=$lt_save_ifs
7335 test -z "$ac_dir" && ac_dir=.
7336 if test -f "$ac_dir/file"; then
7337 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7338 if test -n "$file_magic_test_file"; then
7339 case $deplibs_check_method in
7340 "file_magic "*)
7341 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7342 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7343 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7344 $EGREP "$file_magic_regex" > /dev/null; then
7346 else
7347 cat <<_LT_EOF 1>&2
7349 *** Warning: the command libtool uses to detect shared libraries,
7350 *** $file_magic_cmd, produces output that libtool cannot recognize.
7351 *** The result is that libtool may fail to recognize shared libraries
7352 *** as such. This will affect the creation of libtool libraries that
7353 *** depend on shared libraries, but programs linked with such libtool
7354 *** libraries will work regardless of this problem. Nevertheless, you
7355 *** may want to report the problem to your system manager and/or to
7356 *** bug-libtool@gnu.org
7358 _LT_EOF
7359 fi ;;
7360 esac
7362 break
7364 done
7365 IFS=$lt_save_ifs
7366 MAGIC_CMD=$lt_save_MAGIC_CMD
7368 esac
7371 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7372 if test -n "$MAGIC_CMD"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7374 $as_echo "$MAGIC_CMD" >&6; }
7375 else
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7381 else
7382 MAGIC_CMD=:
7388 esac
7390 # Use C for the default configuration in the libtool script
7392 lt_save_CC=$CC
7393 ac_ext=c
7394 ac_cpp='$CPP $CPPFLAGS'
7395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7400 # Source file extension for C test sources.
7401 ac_ext=c
7403 # Object file extension for compiled C test sources.
7404 objext=o
7405 objext=$objext
7407 # Code to be used in simple compile tests
7408 lt_simple_compile_test_code="int some_variable = 0;"
7410 # Code to be used in simple link tests
7411 lt_simple_link_test_code='int main(){return(0);}'
7419 # If no C compiler was specified, use CC.
7420 LTCC=${LTCC-"$CC"}
7422 # If no C compiler flags were specified, use CFLAGS.
7423 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7425 # Allow CC to be a program name with arguments.
7426 compiler=$CC
7428 # Save the default compiler, since it gets overwritten when the other
7429 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7430 compiler_DEFAULT=$CC
7432 # save warnings/boilerplate of simple test code
7433 ac_outfile=conftest.$ac_objext
7434 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7435 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7436 _lt_compiler_boilerplate=`cat conftest.err`
7437 $RM conftest*
7439 ac_outfile=conftest.$ac_objext
7440 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7441 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7442 _lt_linker_boilerplate=`cat conftest.err`
7443 $RM -r conftest*
7446 if test -n "$compiler"; then
7448 lt_prog_compiler_no_builtin_flag=
7450 if test yes = "$GCC"; then
7451 case $cc_basename in
7452 nvcc*)
7453 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7455 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7456 esac
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7459 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7460 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7461 $as_echo_n "(cached) " >&6
7462 else
7463 lt_cv_prog_compiler_rtti_exceptions=no
7464 ac_outfile=conftest.$ac_objext
7465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7466 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
7467 # Insert the option either (1) after the last *FLAGS variable, or
7468 # (2) before a word containing "conftest.", or (3) at the end.
7469 # Note that $ac_compile itself does not contain backslashes and begins
7470 # with a dollar sign (not a hyphen), so the echo should work correctly.
7471 # The option is referenced via a variable to avoid confusing sed.
7472 lt_compile=`echo "$ac_compile" | $SED \
7473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7475 -e 's:$: $lt_compiler_flag:'`
7476 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7477 (eval "$lt_compile" 2>conftest.err)
7478 ac_status=$?
7479 cat conftest.err >&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 if (exit $ac_status) && test -s "$ac_outfile"; then
7482 # The compiler can only warn and ignore the option if not recognized
7483 # So say no if there are warnings other than the usual output.
7484 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7485 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7486 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7487 lt_cv_prog_compiler_rtti_exceptions=yes
7490 $RM conftest*
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7494 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7496 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7497 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7498 else
7509 lt_prog_compiler_wl=
7510 lt_prog_compiler_pic=
7511 lt_prog_compiler_static=
7514 if test yes = "$GCC"; then
7515 lt_prog_compiler_wl='-Wl,'
7516 lt_prog_compiler_static='-static'
7518 case $host_os in
7519 aix*)
7520 # All AIX code is PIC.
7521 if test ia64 = "$host_cpu"; then
7522 # AIX 5 now supports IA64 processor
7523 lt_prog_compiler_static='-Bstatic'
7525 lt_prog_compiler_pic='-fPIC'
7528 amigaos*)
7529 case $host_cpu in
7530 powerpc)
7531 # see comment about AmigaOS4 .so support
7532 lt_prog_compiler_pic='-fPIC'
7534 m68k)
7535 # FIXME: we need at least 68020 code to build shared libraries, but
7536 # adding the '-m68020' flag to GCC prevents building anything better,
7537 # like '-m68040'.
7538 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7540 esac
7543 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7544 # PIC is the default for these OSes.
7547 mingw* | cygwin* | pw32* | os2* | cegcc*)
7548 # This hack is so that the source file can tell whether it is being
7549 # built for inclusion in a dll (and should export symbols for example).
7550 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7551 # (--disable-auto-import) libraries
7552 lt_prog_compiler_pic='-DDLL_EXPORT'
7553 case $host_os in
7554 os2*)
7555 lt_prog_compiler_static='$wl-static'
7557 esac
7560 darwin* | rhapsody*)
7561 # PIC is the default on this platform
7562 # Common symbols not allowed in MH_DYLIB files
7563 lt_prog_compiler_pic='-fno-common'
7566 haiku*)
7567 # PIC is the default for Haiku.
7568 # The "-static" flag exists, but is broken.
7569 lt_prog_compiler_static=
7572 hpux*)
7573 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7574 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7575 # sets the default TLS model and affects inlining.
7576 case $host_cpu in
7577 hppa*64*)
7578 # +Z the default
7581 lt_prog_compiler_pic='-fPIC'
7583 esac
7586 interix[3-9]*)
7587 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7588 # Instead, we relocate shared libraries at runtime.
7591 msdosdjgpp*)
7592 # Just because we use GCC doesn't mean we suddenly get shared libraries
7593 # on systems that don't support them.
7594 lt_prog_compiler_can_build_shared=no
7595 enable_shared=no
7598 *nto* | *qnx*)
7599 # QNX uses GNU C++, but need to define -shared option too, otherwise
7600 # it will coredump.
7601 lt_prog_compiler_pic='-fPIC -shared'
7604 sysv4*MP*)
7605 if test -d /usr/nec; then
7606 lt_prog_compiler_pic=-Kconform_pic
7611 lt_prog_compiler_pic='-fPIC'
7613 esac
7615 case $cc_basename in
7616 nvcc*) # Cuda Compiler Driver 2.2
7617 lt_prog_compiler_wl='-Xlinker '
7618 if test -n "$lt_prog_compiler_pic"; then
7619 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7622 esac
7623 else
7624 # PORTME Check for flag to pass linker flags through the system compiler.
7625 case $host_os in
7626 aix*)
7627 lt_prog_compiler_wl='-Wl,'
7628 if test ia64 = "$host_cpu"; then
7629 # AIX 5 now supports IA64 processor
7630 lt_prog_compiler_static='-Bstatic'
7631 else
7632 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7636 darwin* | rhapsody*)
7637 # PIC is the default on this platform
7638 # Common symbols not allowed in MH_DYLIB files
7639 lt_prog_compiler_pic='-fno-common'
7640 case $cc_basename in
7641 nagfor*)
7642 # NAG Fortran compiler
7643 lt_prog_compiler_wl='-Wl,-Wl,,'
7644 lt_prog_compiler_pic='-PIC'
7645 lt_prog_compiler_static='-Bstatic'
7647 esac
7650 mingw* | cygwin* | pw32* | os2* | cegcc*)
7651 # This hack is so that the source file can tell whether it is being
7652 # built for inclusion in a dll (and should export symbols for example).
7653 lt_prog_compiler_pic='-DDLL_EXPORT'
7654 case $host_os in
7655 os2*)
7656 lt_prog_compiler_static='$wl-static'
7658 esac
7661 hpux9* | hpux10* | hpux11*)
7662 lt_prog_compiler_wl='-Wl,'
7663 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7664 # not for PA HP-UX.
7665 case $host_cpu in
7666 hppa*64*|ia64*)
7667 # +Z the default
7670 lt_prog_compiler_pic='+Z'
7672 esac
7673 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7674 lt_prog_compiler_static='$wl-a ${wl}archive'
7677 irix5* | irix6* | nonstopux*)
7678 lt_prog_compiler_wl='-Wl,'
7679 # PIC (with -KPIC) is the default.
7680 lt_prog_compiler_static='-non_shared'
7683 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7684 case $cc_basename in
7685 # old Intel for x86_64, which still supported -KPIC.
7686 ecc*)
7687 lt_prog_compiler_wl='-Wl,'
7688 lt_prog_compiler_pic='-KPIC'
7689 lt_prog_compiler_static='-static'
7691 # icc used to be incompatible with GCC.
7692 # ICC 10 doesn't accept -KPIC any more.
7693 icc* | ifort*)
7694 lt_prog_compiler_wl='-Wl,'
7695 lt_prog_compiler_pic='-fPIC'
7696 lt_prog_compiler_static='-static'
7698 # Lahey Fortran 8.1.
7699 lf95*)
7700 lt_prog_compiler_wl='-Wl,'
7701 lt_prog_compiler_pic='--shared'
7702 lt_prog_compiler_static='--static'
7704 nagfor*)
7705 # NAG Fortran compiler
7706 lt_prog_compiler_wl='-Wl,-Wl,,'
7707 lt_prog_compiler_pic='-PIC'
7708 lt_prog_compiler_static='-Bstatic'
7710 tcc*)
7711 # Fabrice Bellard et al's Tiny C Compiler
7712 lt_prog_compiler_wl='-Wl,'
7713 lt_prog_compiler_pic='-fPIC'
7714 lt_prog_compiler_static='-static'
7716 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7717 # Portland Group compilers (*not* the Pentium gcc compiler,
7718 # which looks to be a dead project)
7719 lt_prog_compiler_wl='-Wl,'
7720 lt_prog_compiler_pic='-fpic'
7721 lt_prog_compiler_static='-Bstatic'
7723 ccc*)
7724 lt_prog_compiler_wl='-Wl,'
7725 # All Alpha code is PIC.
7726 lt_prog_compiler_static='-non_shared'
7728 xl* | bgxl* | bgf* | mpixl*)
7729 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7730 lt_prog_compiler_wl='-Wl,'
7731 lt_prog_compiler_pic='-qpic'
7732 lt_prog_compiler_static='-qstaticlink'
7735 case `$CC -V 2>&1 | sed 5q` in
7736 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7737 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7738 lt_prog_compiler_pic='-KPIC'
7739 lt_prog_compiler_static='-Bstatic'
7740 lt_prog_compiler_wl=''
7742 *Sun\ F* | *Sun*Fortran*)
7743 lt_prog_compiler_pic='-KPIC'
7744 lt_prog_compiler_static='-Bstatic'
7745 lt_prog_compiler_wl='-Qoption ld '
7747 *Sun\ C*)
7748 # Sun C 5.9
7749 lt_prog_compiler_pic='-KPIC'
7750 lt_prog_compiler_static='-Bstatic'
7751 lt_prog_compiler_wl='-Wl,'
7753 *Intel*\ [CF]*Compiler*)
7754 lt_prog_compiler_wl='-Wl,'
7755 lt_prog_compiler_pic='-fPIC'
7756 lt_prog_compiler_static='-static'
7758 *Portland\ Group*)
7759 lt_prog_compiler_wl='-Wl,'
7760 lt_prog_compiler_pic='-fpic'
7761 lt_prog_compiler_static='-Bstatic'
7763 esac
7765 esac
7768 newsos6)
7769 lt_prog_compiler_pic='-KPIC'
7770 lt_prog_compiler_static='-Bstatic'
7773 *nto* | *qnx*)
7774 # QNX uses GNU C++, but need to define -shared option too, otherwise
7775 # it will coredump.
7776 lt_prog_compiler_pic='-fPIC -shared'
7779 osf3* | osf4* | osf5*)
7780 lt_prog_compiler_wl='-Wl,'
7781 # All OSF/1 code is PIC.
7782 lt_prog_compiler_static='-non_shared'
7785 rdos*)
7786 lt_prog_compiler_static='-non_shared'
7789 solaris*)
7790 lt_prog_compiler_pic='-KPIC'
7791 lt_prog_compiler_static='-Bstatic'
7792 case $cc_basename in
7793 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7794 lt_prog_compiler_wl='-Qoption ld ';;
7796 lt_prog_compiler_wl='-Wl,';;
7797 esac
7800 sunos4*)
7801 lt_prog_compiler_wl='-Qoption ld '
7802 lt_prog_compiler_pic='-PIC'
7803 lt_prog_compiler_static='-Bstatic'
7806 sysv4 | sysv4.2uw2* | sysv4.3*)
7807 lt_prog_compiler_wl='-Wl,'
7808 lt_prog_compiler_pic='-KPIC'
7809 lt_prog_compiler_static='-Bstatic'
7812 sysv4*MP*)
7813 if test -d /usr/nec; then
7814 lt_prog_compiler_pic='-Kconform_pic'
7815 lt_prog_compiler_static='-Bstatic'
7819 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7820 lt_prog_compiler_wl='-Wl,'
7821 lt_prog_compiler_pic='-KPIC'
7822 lt_prog_compiler_static='-Bstatic'
7825 unicos*)
7826 lt_prog_compiler_wl='-Wl,'
7827 lt_prog_compiler_can_build_shared=no
7830 uts4*)
7831 lt_prog_compiler_pic='-pic'
7832 lt_prog_compiler_static='-Bstatic'
7836 lt_prog_compiler_can_build_shared=no
7838 esac
7841 case $host_os in
7842 # For platforms that do not support PIC, -DPIC is meaningless:
7843 *djgpp*)
7844 lt_prog_compiler_pic=
7847 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7849 esac
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7852 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7853 if ${lt_cv_prog_compiler_pic+:} false; then :
7854 $as_echo_n "(cached) " >&6
7855 else
7856 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7859 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7860 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7863 # Check to make sure the PIC flag actually works.
7865 if test -n "$lt_prog_compiler_pic"; then
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7867 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7868 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7869 $as_echo_n "(cached) " >&6
7870 else
7871 lt_cv_prog_compiler_pic_works=no
7872 ac_outfile=conftest.$ac_objext
7873 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7874 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
7875 # Insert the option either (1) after the last *FLAGS variable, or
7876 # (2) before a word containing "conftest.", or (3) at the end.
7877 # Note that $ac_compile itself does not contain backslashes and begins
7878 # with a dollar sign (not a hyphen), so the echo should work correctly.
7879 # The option is referenced via a variable to avoid confusing sed.
7880 lt_compile=`echo "$ac_compile" | $SED \
7881 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7882 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7883 -e 's:$: $lt_compiler_flag:'`
7884 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7885 (eval "$lt_compile" 2>conftest.err)
7886 ac_status=$?
7887 cat conftest.err >&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 if (exit $ac_status) && test -s "$ac_outfile"; then
7890 # The compiler can only warn and ignore the option if not recognized
7891 # So say no if there are warnings other than the usual output.
7892 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7893 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7894 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7895 lt_cv_prog_compiler_pic_works=yes
7898 $RM conftest*
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7902 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7904 if test yes = "$lt_cv_prog_compiler_pic_works"; then
7905 case $lt_prog_compiler_pic in
7906 "" | " "*) ;;
7907 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7908 esac
7909 else
7910 lt_prog_compiler_pic=
7911 lt_prog_compiler_can_build_shared=no
7927 # Check to make sure the static flag actually works.
7929 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7931 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7932 if ${lt_cv_prog_compiler_static_works+:} false; then :
7933 $as_echo_n "(cached) " >&6
7934 else
7935 lt_cv_prog_compiler_static_works=no
7936 save_LDFLAGS=$LDFLAGS
7937 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7938 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7939 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7940 # The linker can only warn and ignore the option if not recognized
7941 # So say no if there are warnings
7942 if test -s conftest.err; then
7943 # Append any errors to the config.log.
7944 cat conftest.err 1>&5
7945 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7946 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7947 if diff conftest.exp conftest.er2 >/dev/null; then
7948 lt_cv_prog_compiler_static_works=yes
7950 else
7951 lt_cv_prog_compiler_static_works=yes
7954 $RM -r conftest*
7955 LDFLAGS=$save_LDFLAGS
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7959 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7961 if test yes = "$lt_cv_prog_compiler_static_works"; then
7963 else
7964 lt_prog_compiler_static=
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7974 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7975 if ${lt_cv_prog_compiler_c_o+:} false; then :
7976 $as_echo_n "(cached) " >&6
7977 else
7978 lt_cv_prog_compiler_c_o=no
7979 $RM -r conftest 2>/dev/null
7980 mkdir conftest
7981 cd conftest
7982 mkdir out
7983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7985 lt_compiler_flag="-o out/conftest2.$ac_objext"
7986 # Insert the option either (1) after the last *FLAGS variable, or
7987 # (2) before a word containing "conftest.", or (3) at the end.
7988 # Note that $ac_compile itself does not contain backslashes and begins
7989 # with a dollar sign (not a hyphen), so the echo should work correctly.
7990 lt_compile=`echo "$ac_compile" | $SED \
7991 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7993 -e 's:$: $lt_compiler_flag:'`
7994 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7995 (eval "$lt_compile" 2>out/conftest.err)
7996 ac_status=$?
7997 cat out/conftest.err >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8000 then
8001 # The compiler can only warn and ignore the option if not recognized
8002 # So say no if there are warnings
8003 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8004 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8005 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8006 lt_cv_prog_compiler_c_o=yes
8009 chmod u+w . 2>&5
8010 $RM conftest*
8011 # SGI C++ compiler will create directory out/ii_files/ for
8012 # template instantiation
8013 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8014 $RM out/* && rmdir out
8015 cd ..
8016 $RM -r conftest
8017 $RM conftest*
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8021 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8029 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8030 if ${lt_cv_prog_compiler_c_o+:} false; then :
8031 $as_echo_n "(cached) " >&6
8032 else
8033 lt_cv_prog_compiler_c_o=no
8034 $RM -r conftest 2>/dev/null
8035 mkdir conftest
8036 cd conftest
8037 mkdir out
8038 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8040 lt_compiler_flag="-o out/conftest2.$ac_objext"
8041 # Insert the option either (1) after the last *FLAGS variable, or
8042 # (2) before a word containing "conftest.", or (3) at the end.
8043 # Note that $ac_compile itself does not contain backslashes and begins
8044 # with a dollar sign (not a hyphen), so the echo should work correctly.
8045 lt_compile=`echo "$ac_compile" | $SED \
8046 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8047 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8048 -e 's:$: $lt_compiler_flag:'`
8049 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8050 (eval "$lt_compile" 2>out/conftest.err)
8051 ac_status=$?
8052 cat out/conftest.err >&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8055 then
8056 # The compiler can only warn and ignore the option if not recognized
8057 # So say no if there are warnings
8058 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8059 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8060 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8061 lt_cv_prog_compiler_c_o=yes
8064 chmod u+w . 2>&5
8065 $RM conftest*
8066 # SGI C++ compiler will create directory out/ii_files/ for
8067 # template instantiation
8068 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8069 $RM out/* && rmdir out
8070 cd ..
8071 $RM -r conftest
8072 $RM conftest*
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8076 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8081 hard_links=nottested
8082 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8083 # do not overwrite the value of need_locks provided by the user
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8085 $as_echo_n "checking if we can lock with hard links... " >&6; }
8086 hard_links=yes
8087 $RM conftest*
8088 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8089 touch conftest.a
8090 ln conftest.a conftest.b 2>&5 || hard_links=no
8091 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8093 $as_echo "$hard_links" >&6; }
8094 if test no = "$hard_links"; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8096 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8097 need_locks=warn
8099 else
8100 need_locks=no
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8109 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8111 runpath_var=
8112 allow_undefined_flag=
8113 always_export_symbols=no
8114 archive_cmds=
8115 archive_expsym_cmds=
8116 compiler_needs_object=no
8117 enable_shared_with_static_runtimes=no
8118 export_dynamic_flag_spec=
8119 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8120 hardcode_automatic=no
8121 hardcode_direct=no
8122 hardcode_direct_absolute=no
8123 hardcode_libdir_flag_spec=
8124 hardcode_libdir_separator=
8125 hardcode_minus_L=no
8126 hardcode_shlibpath_var=unsupported
8127 inherit_rpath=no
8128 link_all_deplibs=unknown
8129 module_cmds=
8130 module_expsym_cmds=
8131 old_archive_from_new_cmds=
8132 old_archive_from_expsyms_cmds=
8133 thread_safe_flag_spec=
8134 whole_archive_flag_spec=
8135 # include_expsyms should be a list of space-separated symbols to be *always*
8136 # included in the symbol list
8137 include_expsyms=
8138 # exclude_expsyms can be an extended regexp of symbols to exclude
8139 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8140 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8141 # as well as any symbol that contains 'd'.
8142 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8143 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8144 # platforms (ab)use it in PIC code, but their linkers get confused if
8145 # the symbol is explicitly referenced. Since portable code cannot
8146 # rely on this symbol name, it's probably fine to never include it in
8147 # preloaded symbol tables.
8148 # Exclude shared library initialization/finalization symbols.
8149 extract_expsyms_cmds=
8151 case $host_os in
8152 cygwin* | mingw* | pw32* | cegcc*)
8153 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8154 # When not using gcc, we currently assume that we are using
8155 # Microsoft Visual C++.
8156 if test yes != "$GCC"; then
8157 with_gnu_ld=no
8160 interix*)
8161 # we just hope/assume this is gcc and not c89 (= MSVC++)
8162 with_gnu_ld=yes
8164 openbsd* | bitrig*)
8165 with_gnu_ld=no
8167 esac
8169 ld_shlibs=yes
8171 # On some targets, GNU ld is compatible enough with the native linker
8172 # that we're better off using the native interface for both.
8173 lt_use_gnu_ld_interface=no
8174 if test yes = "$with_gnu_ld"; then
8175 case $host_os in
8176 aix*)
8177 # The AIX port of GNU ld has always aspired to compatibility
8178 # with the native linker. However, as the warning in the GNU ld
8179 # block says, versions before 2.19.5* couldn't really create working
8180 # shared libraries, regardless of the interface used.
8181 case `$LD -v 2>&1` in
8182 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8183 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8184 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8186 lt_use_gnu_ld_interface=yes
8188 esac
8191 lt_use_gnu_ld_interface=yes
8193 esac
8196 if test yes = "$lt_use_gnu_ld_interface"; then
8197 # If archive_cmds runs LD, not CC, wlarc should be empty
8198 wlarc='$wl'
8200 # Set some defaults for GNU ld with shared library support. These
8201 # are reset later if shared libraries are not supported. Putting them
8202 # here allows them to be overridden if necessary.
8203 runpath_var=LD_RUN_PATH
8204 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8205 export_dynamic_flag_spec='$wl--export-dynamic'
8206 # ancient GNU ld didn't support --whole-archive et. al.
8207 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8208 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8209 else
8210 whole_archive_flag_spec=
8212 supports_anon_versioning=no
8213 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8214 *GNU\ gold*) supports_anon_versioning=yes ;;
8215 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8216 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8217 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8218 *\ 2.11.*) ;; # other 2.11 versions
8219 *) supports_anon_versioning=yes ;;
8220 esac
8222 # See if GNU ld supports shared libraries.
8223 case $host_os in
8224 aix[3-9]*)
8225 # On AIX/PPC, the GNU linker is very broken
8226 if test ia64 != "$host_cpu"; then
8227 ld_shlibs=no
8228 cat <<_LT_EOF 1>&2
8230 *** Warning: the GNU linker, at least up to release 2.19, is reported
8231 *** to be unable to reliably create shared libraries on AIX.
8232 *** Therefore, libtool is disabling shared libraries support. If you
8233 *** really care for shared libraries, you may want to install binutils
8234 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8235 *** You will then need to restart the configuration process.
8237 _LT_EOF
8241 amigaos*)
8242 case $host_cpu in
8243 powerpc)
8244 # see comment about AmigaOS4 .so support
8245 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8246 archive_expsym_cmds=''
8248 m68k)
8249 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)'
8250 hardcode_libdir_flag_spec='-L$libdir'
8251 hardcode_minus_L=yes
8253 esac
8256 beos*)
8257 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8258 allow_undefined_flag=unsupported
8259 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8260 # support --undefined. This deserves some investigation. FIXME
8261 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8262 else
8263 ld_shlibs=no
8267 cygwin* | mingw* | pw32* | cegcc*)
8268 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8269 # as there is no search path for DLLs.
8270 hardcode_libdir_flag_spec='-L$libdir'
8271 export_dynamic_flag_spec='$wl--export-all-symbols'
8272 allow_undefined_flag=unsupported
8273 always_export_symbols=no
8274 enable_shared_with_static_runtimes=yes
8275 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'
8276 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8278 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8280 # If the export-symbols file already is a .def file, use it as
8281 # is; otherwise, prepend EXPORTS...
8282 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8283 cp $export_symbols $output_objdir/$soname.def;
8284 else
8285 echo EXPORTS > $output_objdir/$soname.def;
8286 cat $export_symbols >> $output_objdir/$soname.def;
8288 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8289 else
8290 ld_shlibs=no
8294 haiku*)
8295 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8296 link_all_deplibs=yes
8299 os2*)
8300 hardcode_libdir_flag_spec='-L$libdir'
8301 hardcode_minus_L=yes
8302 allow_undefined_flag=unsupported
8303 shrext_cmds=.dll
8304 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8305 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8306 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8307 $ECHO EXPORTS >> $output_objdir/$libname.def~
8308 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8309 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8310 emximp -o $lib $output_objdir/$libname.def'
8311 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8312 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8313 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8314 $ECHO EXPORTS >> $output_objdir/$libname.def~
8315 prefix_cmds="$SED"~
8316 if test EXPORTS = "`$SED 1q $export_symbols`"; then
8317 prefix_cmds="$prefix_cmds -e 1d";
8319 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8320 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8321 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8322 emximp -o $lib $output_objdir/$libname.def'
8323 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8324 enable_shared_with_static_runtimes=yes
8327 interix[3-9]*)
8328 hardcode_direct=no
8329 hardcode_shlibpath_var=no
8330 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8331 export_dynamic_flag_spec='$wl-E'
8332 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8333 # Instead, shared libraries are loaded at an image base (0x10000000 by
8334 # default) and relocated if they conflict, which is a slow very memory
8335 # consuming and fragmenting process. To avoid this, we pick a random,
8336 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8337 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8338 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8339 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'
8342 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8343 tmp_diet=no
8344 if test linux-dietlibc = "$host_os"; then
8345 case $cc_basename in
8346 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8347 esac
8349 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8350 && test no = "$tmp_diet"
8351 then
8352 tmp_addflag=' $pic_flag'
8353 tmp_sharedflag='-shared'
8354 case $cc_basename,$host_cpu in
8355 pgcc*) # Portland Group C compiler
8356 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'
8357 tmp_addflag=' $pic_flag'
8359 pgf77* | pgf90* | pgf95* | pgfortran*)
8360 # Portland Group f77 and f90 compilers
8361 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'
8362 tmp_addflag=' $pic_flag -Mnomain' ;;
8363 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8364 tmp_addflag=' -i_dynamic' ;;
8365 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8366 tmp_addflag=' -i_dynamic -nofor_main' ;;
8367 ifc* | ifort*) # Intel Fortran compiler
8368 tmp_addflag=' -nofor_main' ;;
8369 lf95*) # Lahey Fortran 8.1
8370 whole_archive_flag_spec=
8371 tmp_sharedflag='--shared' ;;
8372 nagfor*) # NAGFOR 5.3
8373 tmp_sharedflag='-Wl,-shared' ;;
8374 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8375 tmp_sharedflag='-qmkshrobj'
8376 tmp_addflag= ;;
8377 nvcc*) # Cuda Compiler Driver 2.2
8378 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'
8379 compiler_needs_object=yes
8381 esac
8382 case `$CC -V 2>&1 | sed 5q` in
8383 *Sun\ C*) # Sun C 5.9
8384 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'
8385 compiler_needs_object=yes
8386 tmp_sharedflag='-G' ;;
8387 *Sun\ F*) # Sun Fortran 8.3
8388 tmp_sharedflag='-G' ;;
8389 esac
8390 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8392 if test yes = "$supports_anon_versioning"; then
8393 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8394 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8395 echo "local: *; };" >> $output_objdir/$libname.ver~
8396 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8399 case $cc_basename in
8400 tcc*)
8401 export_dynamic_flag_spec='-rdynamic'
8403 xlf* | bgf* | bgxlf* | mpixlf*)
8404 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8405 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8406 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8407 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8408 if test yes = "$supports_anon_versioning"; then
8409 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8410 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8411 echo "local: *; };" >> $output_objdir/$libname.ver~
8412 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8415 esac
8416 else
8417 ld_shlibs=no
8421 netbsd*)
8422 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8423 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8424 wlarc=
8425 else
8426 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8427 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8431 solaris*)
8432 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8433 ld_shlibs=no
8434 cat <<_LT_EOF 1>&2
8436 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8437 *** create shared libraries on Solaris systems. Therefore, libtool
8438 *** is disabling shared libraries support. We urge you to upgrade GNU
8439 *** binutils to release 2.9.1 or newer. Another option is to modify
8440 *** your PATH or compiler configuration so that the native linker is
8441 *** used, and then restart.
8443 _LT_EOF
8444 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8445 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8446 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8447 else
8448 ld_shlibs=no
8452 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8453 case `$LD -v 2>&1` in
8454 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8455 ld_shlibs=no
8456 cat <<_LT_EOF 1>&2
8458 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8459 *** reliably create shared libraries on SCO systems. Therefore, libtool
8460 *** is disabling shared libraries support. We urge you to upgrade GNU
8461 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8462 *** your PATH or compiler configuration so that the native linker is
8463 *** used, and then restart.
8465 _LT_EOF
8468 # For security reasons, it is highly recommended that you always
8469 # use absolute paths for naming shared libraries, and exclude the
8470 # DT_RUNPATH tag from executables and libraries. But doing so
8471 # requires that you compile everything twice, which is a pain.
8472 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8473 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8474 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8475 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8476 else
8477 ld_shlibs=no
8480 esac
8483 sunos4*)
8484 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8485 wlarc=
8486 hardcode_direct=yes
8487 hardcode_shlibpath_var=no
8491 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8492 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8493 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8494 else
8495 ld_shlibs=no
8498 esac
8500 if test no = "$ld_shlibs"; then
8501 runpath_var=
8502 hardcode_libdir_flag_spec=
8503 export_dynamic_flag_spec=
8504 whole_archive_flag_spec=
8506 else
8507 # PORTME fill in a description of your system's linker (not GNU ld)
8508 case $host_os in
8509 aix3*)
8510 allow_undefined_flag=unsupported
8511 always_export_symbols=yes
8512 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'
8513 # Note: this linker hardcodes the directories in LIBPATH if there
8514 # are no directories specified by -L.
8515 hardcode_minus_L=yes
8516 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8517 # Neither direct hardcoding nor static linking is supported with a
8518 # broken collect2.
8519 hardcode_direct=unsupported
8523 aix[4-9]*)
8524 if test ia64 = "$host_cpu"; then
8525 # On IA64, the linker does run time linking by default, so we don't
8526 # have to do anything special.
8527 aix_use_runtimelinking=no
8528 exp_sym_flag='-Bexport'
8529 no_entry_flag=
8530 else
8531 # If we're using GNU nm, then we don't want the "-C" option.
8532 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
8533 # Without the "-l" option, or with the "-B" option, AIX nm treats
8534 # weak defined symbols like other global defined symbols, whereas
8535 # GNU nm marks them as "W".
8536 # While the 'weak' keyword is ignored in the Export File, we need
8537 # it in the Import File for the 'aix-soname' feature, so we have
8538 # to replace the "-B" option with "-P" for AIX nm.
8539 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8540 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'
8541 else
8542 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'
8544 aix_use_runtimelinking=no
8546 # Test if we are trying to use run time linking or normal
8547 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8548 # have runtime linking enabled, and use it for executables.
8549 # For shared libraries, we enable/disable runtime linking
8550 # depending on the kind of the shared library created -
8551 # when "with_aix_soname,aix_use_runtimelinking" is:
8552 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
8553 # "aix,yes" lib.so shared, rtl:yes, for executables
8554 # lib.a static archive
8555 # "both,no" lib.so.V(shr.o) shared, rtl:yes
8556 # lib.a(lib.so.V) shared, rtl:no, for executables
8557 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
8558 # lib.a(lib.so.V) shared, rtl:no
8559 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
8560 # lib.a static archive
8561 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8562 for ld_flag in $LDFLAGS; do
8563 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
8564 aix_use_runtimelinking=yes
8565 break
8567 done
8568 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
8569 # With aix-soname=svr4, we create the lib.so.V shared archives only,
8570 # so we don't have lib.a shared libs to link our executables.
8571 # We have to force runtime linking in this case.
8572 aix_use_runtimelinking=yes
8573 LDFLAGS="$LDFLAGS -Wl,-brtl"
8576 esac
8578 exp_sym_flag='-bexport'
8579 no_entry_flag='-bnoentry'
8582 # When large executables or shared objects are built, AIX ld can
8583 # have problems creating the table of contents. If linking a library
8584 # or program results in "error TOC overflow" add -mminimal-toc to
8585 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8586 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8588 archive_cmds=''
8589 hardcode_direct=yes
8590 hardcode_direct_absolute=yes
8591 hardcode_libdir_separator=':'
8592 link_all_deplibs=yes
8593 file_list_spec='$wl-f,'
8594 case $with_aix_soname,$aix_use_runtimelinking in
8595 aix,*) ;; # traditional, no import file
8596 svr4,* | *,yes) # use import file
8597 # The Import File defines what to hardcode.
8598 hardcode_direct=no
8599 hardcode_direct_absolute=no
8601 esac
8603 if test yes = "$GCC"; then
8604 case $host_os in aix4.[012]|aix4.[012].*)
8605 # We only want to do this on AIX 4.2 and lower, the check
8606 # below for broken collect2 doesn't work under 4.3+
8607 collect2name=`$CC -print-prog-name=collect2`
8608 if test -f "$collect2name" &&
8609 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8610 then
8611 # We have reworked collect2
8613 else
8614 # We have old collect2
8615 hardcode_direct=unsupported
8616 # It fails to find uninstalled libraries when the uninstalled
8617 # path is not listed in the libpath. Setting hardcode_minus_L
8618 # to unsupported forces relinking
8619 hardcode_minus_L=yes
8620 hardcode_libdir_flag_spec='-L$libdir'
8621 hardcode_libdir_separator=
8624 esac
8625 shared_flag='-shared'
8626 if test yes = "$aix_use_runtimelinking"; then
8627 shared_flag="$shared_flag "'$wl-G'
8629 # Need to ensure runtime linking is disabled for the traditional
8630 # shared library, or the linker may eventually find shared libraries
8631 # /with/ Import File - we do not want to mix them.
8632 shared_flag_aix='-shared'
8633 shared_flag_svr4='-shared $wl-G'
8634 else
8635 # not using gcc
8636 if test ia64 = "$host_cpu"; then
8637 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8638 # chokes on -Wl,-G. The following line is correct:
8639 shared_flag='-G'
8640 else
8641 if test yes = "$aix_use_runtimelinking"; then
8642 shared_flag='$wl-G'
8643 else
8644 shared_flag='$wl-bM:SRE'
8646 shared_flag_aix='$wl-bM:SRE'
8647 shared_flag_svr4='$wl-G'
8651 export_dynamic_flag_spec='$wl-bexpall'
8652 # It seems that -bexpall does not export symbols beginning with
8653 # underscore (_), so it is better to generate a list of symbols to export.
8654 always_export_symbols=yes
8655 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
8656 # Warning - without using the other runtime loading flags (-brtl),
8657 # -berok will link without error, but may produce a broken library.
8658 allow_undefined_flag='-berok'
8659 # Determine the default libpath from the value encoded in an
8660 # empty executable.
8661 if test set = "${lt_cv_aix_libpath+set}"; then
8662 aix_libpath=$lt_cv_aix_libpath
8663 else
8664 if ${lt_cv_aix_libpath_+:} false; then :
8665 $as_echo_n "(cached) " >&6
8666 else
8667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8668 /* end confdefs.h. */
8671 main ()
8675 return 0;
8677 _ACEOF
8678 if ac_fn_c_try_link "$LINENO"; then :
8680 lt_aix_libpath_sed='
8681 /Import File Strings/,/^$/ {
8682 /^0/ {
8683 s/^0 *\([^ ]*\) *$/\1/
8687 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8688 # Check for a 64-bit object if we didn't find anything.
8689 if test -z "$lt_cv_aix_libpath_"; then
8690 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8693 rm -f core conftest.err conftest.$ac_objext \
8694 conftest$ac_exeext conftest.$ac_ext
8695 if test -z "$lt_cv_aix_libpath_"; then
8696 lt_cv_aix_libpath_=/usr/lib:/lib
8701 aix_libpath=$lt_cv_aix_libpath_
8704 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
8705 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
8706 else
8707 if test ia64 = "$host_cpu"; then
8708 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
8709 allow_undefined_flag="-z nodefs"
8710 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"
8711 else
8712 # Determine the default libpath from the value encoded in an
8713 # empty executable.
8714 if test set = "${lt_cv_aix_libpath+set}"; then
8715 aix_libpath=$lt_cv_aix_libpath
8716 else
8717 if ${lt_cv_aix_libpath_+:} false; then :
8718 $as_echo_n "(cached) " >&6
8719 else
8720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721 /* end confdefs.h. */
8724 main ()
8728 return 0;
8730 _ACEOF
8731 if ac_fn_c_try_link "$LINENO"; then :
8733 lt_aix_libpath_sed='
8734 /Import File Strings/,/^$/ {
8735 /^0/ {
8736 s/^0 *\([^ ]*\) *$/\1/
8740 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8741 # Check for a 64-bit object if we didn't find anything.
8742 if test -z "$lt_cv_aix_libpath_"; then
8743 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8746 rm -f core conftest.err conftest.$ac_objext \
8747 conftest$ac_exeext conftest.$ac_ext
8748 if test -z "$lt_cv_aix_libpath_"; then
8749 lt_cv_aix_libpath_=/usr/lib:/lib
8754 aix_libpath=$lt_cv_aix_libpath_
8757 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
8758 # Warning - without using the other run time loading flags,
8759 # -berok will link without error, but may produce a broken library.
8760 no_undefined_flag=' $wl-bernotok'
8761 allow_undefined_flag=' $wl-berok'
8762 if test yes = "$with_gnu_ld"; then
8763 # We only use this code for GNU lds that support --whole-archive.
8764 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
8765 else
8766 # Exported symbols can be pulled into shared objects from archives
8767 whole_archive_flag_spec='$convenience'
8769 archive_cmds_need_lc=yes
8770 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
8771 # -brtl affects multiple linker settings, -berok does not and is overridden later
8772 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
8773 if test svr4 != "$with_aix_soname"; then
8774 # This is similar to how AIX traditionally builds its shared libraries.
8775 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'
8777 if test aix != "$with_aix_soname"; then
8778 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'
8779 else
8780 # used by -dlpreopen to get the symbols
8781 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
8783 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
8788 amigaos*)
8789 case $host_cpu in
8790 powerpc)
8791 # see comment about AmigaOS4 .so support
8792 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8793 archive_expsym_cmds=''
8795 m68k)
8796 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)'
8797 hardcode_libdir_flag_spec='-L$libdir'
8798 hardcode_minus_L=yes
8800 esac
8803 bsdi[45]*)
8804 export_dynamic_flag_spec=-rdynamic
8807 cygwin* | mingw* | pw32* | cegcc*)
8808 # When not using gcc, we currently assume that we are using
8809 # Microsoft Visual C++.
8810 # hardcode_libdir_flag_spec is actually meaningless, as there is
8811 # no search path for DLLs.
8812 case $cc_basename in
8813 cl*)
8814 # Native MSVC
8815 hardcode_libdir_flag_spec=' '
8816 allow_undefined_flag=unsupported
8817 always_export_symbols=yes
8818 file_list_spec='@'
8819 # Tell ltmain to make .lib files, not .a files.
8820 libext=lib
8821 # Tell ltmain to make .dll files, not .so files.
8822 shrext_cmds=.dll
8823 # FIXME: Setting linknames here is a bad hack.
8824 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
8825 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8826 cp "$export_symbols" "$output_objdir/$soname.def";
8827 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
8828 else
8829 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
8831 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8832 linknames='
8833 # The linker will not automatically build a static lib if we build a DLL.
8834 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8835 enable_shared_with_static_runtimes=yes
8836 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8837 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8838 # Don't use ranlib
8839 old_postinstall_cmds='chmod 644 $oldlib'
8840 postlink_cmds='lt_outputfile="@OUTPUT@"~
8841 lt_tool_outputfile="@TOOL_OUTPUT@"~
8842 case $lt_outputfile in
8843 *.exe|*.EXE) ;;
8845 lt_outputfile=$lt_outputfile.exe
8846 lt_tool_outputfile=$lt_tool_outputfile.exe
8848 esac~
8849 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
8850 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8851 $RM "$lt_outputfile.manifest";
8855 # Assume MSVC wrapper
8856 hardcode_libdir_flag_spec=' '
8857 allow_undefined_flag=unsupported
8858 # Tell ltmain to make .lib files, not .a files.
8859 libext=lib
8860 # Tell ltmain to make .dll files, not .so files.
8861 shrext_cmds=.dll
8862 # FIXME: Setting linknames here is a bad hack.
8863 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8864 # The linker will automatically build a .lib file if we build a DLL.
8865 old_archive_from_new_cmds='true'
8866 # FIXME: Should let the user specify the lib program.
8867 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8868 enable_shared_with_static_runtimes=yes
8870 esac
8873 darwin* | rhapsody*)
8876 archive_cmds_need_lc=no
8877 hardcode_direct=no
8878 hardcode_automatic=yes
8879 hardcode_shlibpath_var=unsupported
8880 if test yes = "$lt_cv_ld_force_load"; then
8881 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\"`'
8883 else
8884 whole_archive_flag_spec=''
8886 link_all_deplibs=yes
8887 allow_undefined_flag=$_lt_dar_allow_undefined
8888 case $cc_basename in
8889 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
8890 *) _lt_dar_can_shared=$GCC ;;
8891 esac
8892 if test yes = "$_lt_dar_can_shared"; then
8893 output_verbose_link_cmd=func_echo_all
8894 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
8895 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
8896 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"
8897 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"
8899 else
8900 ld_shlibs=no
8905 dgux*)
8906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8907 hardcode_libdir_flag_spec='-L$libdir'
8908 hardcode_shlibpath_var=no
8911 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8912 # support. Future versions do this automatically, but an explicit c++rt0.o
8913 # does not break anything, and helps significantly (at the cost of a little
8914 # extra space).
8915 freebsd2.2*)
8916 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8917 hardcode_libdir_flag_spec='-R$libdir'
8918 hardcode_direct=yes
8919 hardcode_shlibpath_var=no
8922 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8923 freebsd2.*)
8924 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8925 hardcode_direct=yes
8926 hardcode_minus_L=yes
8927 hardcode_shlibpath_var=no
8930 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8931 freebsd* | dragonfly*)
8932 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8933 hardcode_libdir_flag_spec='-R$libdir'
8934 hardcode_direct=yes
8935 hardcode_shlibpath_var=no
8938 hpux9*)
8939 if test yes = "$GCC"; then
8940 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'
8941 else
8942 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'
8944 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
8945 hardcode_libdir_separator=:
8946 hardcode_direct=yes
8948 # hardcode_minus_L: Not really in the search PATH,
8949 # but as the default location of the library.
8950 hardcode_minus_L=yes
8951 export_dynamic_flag_spec='$wl-E'
8954 hpux10*)
8955 if test yes,no = "$GCC,$with_gnu_ld"; then
8956 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8957 else
8958 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8960 if test no = "$with_gnu_ld"; then
8961 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
8962 hardcode_libdir_separator=:
8963 hardcode_direct=yes
8964 hardcode_direct_absolute=yes
8965 export_dynamic_flag_spec='$wl-E'
8966 # hardcode_minus_L: Not really in the search PATH,
8967 # but as the default location of the library.
8968 hardcode_minus_L=yes
8972 hpux11*)
8973 if test yes,no = "$GCC,$with_gnu_ld"; then
8974 case $host_cpu in
8975 hppa*64*)
8976 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
8978 ia64*)
8979 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8982 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8984 esac
8985 else
8986 case $host_cpu in
8987 hppa*64*)
8988 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
8990 ia64*)
8991 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8995 # Older versions of the 11.00 compiler do not understand -b yet
8996 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8998 $as_echo_n "checking if $CC understands -b... " >&6; }
8999 if ${lt_cv_prog_compiler__b+:} false; then :
9000 $as_echo_n "(cached) " >&6
9001 else
9002 lt_cv_prog_compiler__b=no
9003 save_LDFLAGS=$LDFLAGS
9004 LDFLAGS="$LDFLAGS -b"
9005 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9006 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9007 # The linker can only warn and ignore the option if not recognized
9008 # So say no if there are warnings
9009 if test -s conftest.err; then
9010 # Append any errors to the config.log.
9011 cat conftest.err 1>&5
9012 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9013 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9014 if diff conftest.exp conftest.er2 >/dev/null; then
9015 lt_cv_prog_compiler__b=yes
9017 else
9018 lt_cv_prog_compiler__b=yes
9021 $RM -r conftest*
9022 LDFLAGS=$save_LDFLAGS
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9026 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9028 if test yes = "$lt_cv_prog_compiler__b"; then
9029 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9030 else
9031 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9035 esac
9037 if test no = "$with_gnu_ld"; then
9038 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9039 hardcode_libdir_separator=:
9041 case $host_cpu in
9042 hppa*64*|ia64*)
9043 hardcode_direct=no
9044 hardcode_shlibpath_var=no
9047 hardcode_direct=yes
9048 hardcode_direct_absolute=yes
9049 export_dynamic_flag_spec='$wl-E'
9051 # hardcode_minus_L: Not really in the search PATH,
9052 # but as the default location of the library.
9053 hardcode_minus_L=yes
9055 esac
9059 irix5* | irix6* | nonstopux*)
9060 if test yes = "$GCC"; then
9061 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'
9062 # Try to use the -exported_symbol ld option, if it does not
9063 # work, assume that -exports_file does not work either and
9064 # implicitly export all symbols.
9065 # This should be the same for all languages, so no per-tag cache variable.
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9067 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9068 if ${lt_cv_irix_exported_symbol+:} false; then :
9069 $as_echo_n "(cached) " >&6
9070 else
9071 save_LDFLAGS=$LDFLAGS
9072 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h. */
9075 int foo (void) { return 0; }
9076 _ACEOF
9077 if ac_fn_c_try_link "$LINENO"; then :
9078 lt_cv_irix_exported_symbol=yes
9079 else
9080 lt_cv_irix_exported_symbol=no
9082 rm -f core conftest.err conftest.$ac_objext \
9083 conftest$ac_exeext conftest.$ac_ext
9084 LDFLAGS=$save_LDFLAGS
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9087 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9088 if test yes = "$lt_cv_irix_exported_symbol"; then
9089 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'
9091 else
9092 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'
9093 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'
9095 archive_cmds_need_lc='no'
9096 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9097 hardcode_libdir_separator=:
9098 inherit_rpath=yes
9099 link_all_deplibs=yes
9102 linux*)
9103 case $cc_basename in
9104 tcc*)
9105 # Fabrice Bellard et al's Tiny C Compiler
9106 ld_shlibs=yes
9107 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9109 esac
9112 netbsd*)
9113 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9114 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9115 else
9116 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9118 hardcode_libdir_flag_spec='-R$libdir'
9119 hardcode_direct=yes
9120 hardcode_shlibpath_var=no
9123 newsos6)
9124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9125 hardcode_direct=yes
9126 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9127 hardcode_libdir_separator=:
9128 hardcode_shlibpath_var=no
9131 *nto* | *qnx*)
9134 openbsd* | bitrig*)
9135 if test -f /usr/libexec/ld.so; then
9136 hardcode_direct=yes
9137 hardcode_shlibpath_var=no
9138 hardcode_direct_absolute=yes
9139 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9140 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9141 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9142 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9143 export_dynamic_flag_spec='$wl-E'
9144 else
9145 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9146 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9148 else
9149 ld_shlibs=no
9153 os2*)
9154 hardcode_libdir_flag_spec='-L$libdir'
9155 hardcode_minus_L=yes
9156 allow_undefined_flag=unsupported
9157 shrext_cmds=.dll
9158 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9159 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9160 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9161 $ECHO EXPORTS >> $output_objdir/$libname.def~
9162 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9163 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9164 emximp -o $lib $output_objdir/$libname.def'
9165 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9166 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9167 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9168 $ECHO EXPORTS >> $output_objdir/$libname.def~
9169 prefix_cmds="$SED"~
9170 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9171 prefix_cmds="$prefix_cmds -e 1d";
9173 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9174 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9175 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9176 emximp -o $lib $output_objdir/$libname.def'
9177 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9178 enable_shared_with_static_runtimes=yes
9181 osf3*)
9182 if test yes = "$GCC"; then
9183 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9184 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'
9185 else
9186 allow_undefined_flag=' -expect_unresolved \*'
9187 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'
9189 archive_cmds_need_lc='no'
9190 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9191 hardcode_libdir_separator=:
9194 osf4* | osf5*) # as osf3* with the addition of -msym flag
9195 if test yes = "$GCC"; then
9196 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9197 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'
9198 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9199 else
9200 allow_undefined_flag=' -expect_unresolved \*'
9201 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'
9202 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~
9203 $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'
9205 # Both c and cxx compiler support -rpath directly
9206 hardcode_libdir_flag_spec='-rpath $libdir'
9208 archive_cmds_need_lc='no'
9209 hardcode_libdir_separator=:
9212 solaris*)
9213 no_undefined_flag=' -z defs'
9214 if test yes = "$GCC"; then
9215 wlarc='$wl'
9216 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9217 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9218 $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'
9219 else
9220 case `$CC -V 2>&1` in
9221 *"Compilers 5.0"*)
9222 wlarc=''
9223 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9224 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9225 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9228 wlarc='$wl'
9229 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9230 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9231 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9233 esac
9235 hardcode_libdir_flag_spec='-R$libdir'
9236 hardcode_shlibpath_var=no
9237 case $host_os in
9238 solaris2.[0-5] | solaris2.[0-5].*) ;;
9240 # The compiler driver will combine and reorder linker options,
9241 # but understands '-z linker_flag'. GCC discards it without '$wl',
9242 # but is careful enough not to reorder.
9243 # Supported since Solaris 2.6 (maybe 2.5.1?)
9244 if test yes = "$GCC"; then
9245 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9246 else
9247 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9250 esac
9251 link_all_deplibs=yes
9254 sunos4*)
9255 if test sequent = "$host_vendor"; then
9256 # Use $CC to link under sequent, because it throws in some extra .o
9257 # files that make .init and .fini sections work.
9258 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9259 else
9260 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9262 hardcode_libdir_flag_spec='-L$libdir'
9263 hardcode_direct=yes
9264 hardcode_minus_L=yes
9265 hardcode_shlibpath_var=no
9268 sysv4)
9269 case $host_vendor in
9270 sni)
9271 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9272 hardcode_direct=yes # is this really true???
9274 siemens)
9275 ## LD is ld it makes a PLAMLIB
9276 ## CC just makes a GrossModule.
9277 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9278 reload_cmds='$CC -r -o $output$reload_objs'
9279 hardcode_direct=no
9281 motorola)
9282 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9283 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9285 esac
9286 runpath_var='LD_RUN_PATH'
9287 hardcode_shlibpath_var=no
9290 sysv4.3*)
9291 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9292 hardcode_shlibpath_var=no
9293 export_dynamic_flag_spec='-Bexport'
9296 sysv4*MP*)
9297 if test -d /usr/nec; then
9298 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9299 hardcode_shlibpath_var=no
9300 runpath_var=LD_RUN_PATH
9301 hardcode_runpath_var=yes
9302 ld_shlibs=yes
9306 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9307 no_undefined_flag='$wl-z,text'
9308 archive_cmds_need_lc=no
9309 hardcode_shlibpath_var=no
9310 runpath_var='LD_RUN_PATH'
9312 if test yes = "$GCC"; then
9313 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9314 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9315 else
9316 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9317 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9321 sysv5* | sco3.2v5* | sco5v6*)
9322 # Note: We CANNOT use -z defs as we might desire, because we do not
9323 # link with -lc, and that would cause any symbols used from libc to
9324 # always be unresolved, which means just about no library would
9325 # ever link correctly. If we're not using GNU ld we use -z text
9326 # though, which does catch some bad symbols but isn't as heavy-handed
9327 # as -z defs.
9328 no_undefined_flag='$wl-z,text'
9329 allow_undefined_flag='$wl-z,nodefs'
9330 archive_cmds_need_lc=no
9331 hardcode_shlibpath_var=no
9332 hardcode_libdir_flag_spec='$wl-R,$libdir'
9333 hardcode_libdir_separator=':'
9334 link_all_deplibs=yes
9335 export_dynamic_flag_spec='$wl-Bexport'
9336 runpath_var='LD_RUN_PATH'
9338 if test yes = "$GCC"; then
9339 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9340 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9341 else
9342 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9343 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9347 uts4*)
9348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9349 hardcode_libdir_flag_spec='-L$libdir'
9350 hardcode_shlibpath_var=no
9354 ld_shlibs=no
9356 esac
9358 if test sni = "$host_vendor"; then
9359 case $host in
9360 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9361 export_dynamic_flag_spec='$wl-Blargedynsym'
9363 esac
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9368 $as_echo "$ld_shlibs" >&6; }
9369 test no = "$ld_shlibs" && can_build_shared=no
9371 with_gnu_ld=$with_gnu_ld
9388 # Do we need to explicitly link libc?
9390 case "x$archive_cmds_need_lc" in
9391 x|xyes)
9392 # Assume -lc should be added
9393 archive_cmds_need_lc=yes
9395 if test yes,yes = "$GCC,$enable_shared"; then
9396 case $archive_cmds in
9397 *'~'*)
9398 # FIXME: we may have to deal with multi-command sequences.
9400 '$CC '*)
9401 # Test whether the compiler implicitly links with -lc since on some
9402 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9403 # to ld, don't add -lc before -lgcc.
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9405 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9406 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9407 $as_echo_n "(cached) " >&6
9408 else
9409 $RM conftest*
9410 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9412 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9413 (eval $ac_compile) 2>&5
9414 ac_status=$?
9415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9416 test $ac_status = 0; } 2>conftest.err; then
9417 soname=conftest
9418 lib=conftest
9419 libobjs=conftest.$ac_objext
9420 deplibs=
9421 wl=$lt_prog_compiler_wl
9422 pic_flag=$lt_prog_compiler_pic
9423 compiler_flags=-v
9424 linker_flags=-v
9425 verstring=
9426 output_objdir=.
9427 libname=conftest
9428 lt_save_allow_undefined_flag=$allow_undefined_flag
9429 allow_undefined_flag=
9430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9431 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9432 ac_status=$?
9433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9434 test $ac_status = 0; }
9435 then
9436 lt_cv_archive_cmds_need_lc=no
9437 else
9438 lt_cv_archive_cmds_need_lc=yes
9440 allow_undefined_flag=$lt_save_allow_undefined_flag
9441 else
9442 cat conftest.err 1>&5
9444 $RM conftest*
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9448 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9449 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9451 esac
9454 esac
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9608 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9610 if test yes = "$GCC"; then
9611 case $host_os in
9612 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
9613 *) lt_awk_arg='/^libraries:/' ;;
9614 esac
9615 case $host_os in
9616 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
9617 *) lt_sed_strip_eq='s|=/|/|g' ;;
9618 esac
9619 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9620 case $lt_search_path_spec in
9621 *\;*)
9622 # if the path contains ";" then we assume it to be the separator
9623 # otherwise default to the standard path separator (i.e. ":") - it is
9624 # assumed that no part of a normal pathname contains ";" but that should
9625 # okay in the real world where ";" in dirpaths is itself problematic.
9626 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9629 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9631 esac
9632 # Ok, now we have the path, separated by spaces, we can step through it
9633 # and add multilib dir if necessary...
9634 lt_tmp_lt_search_path_spec=
9635 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9636 # ...but if some path component already ends with the multilib dir we assume
9637 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
9638 case "$lt_multi_os_dir; $lt_search_path_spec " in
9639 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
9640 lt_multi_os_dir=
9642 esac
9643 for lt_sys_path in $lt_search_path_spec; do
9644 if test -d "$lt_sys_path$lt_multi_os_dir"; then
9645 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
9646 elif test -n "$lt_multi_os_dir"; then
9647 test -d "$lt_sys_path" && \
9648 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9650 done
9651 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9652 BEGIN {RS = " "; FS = "/|\n";} {
9653 lt_foo = "";
9654 lt_count = 0;
9655 for (lt_i = NF; lt_i > 0; lt_i--) {
9656 if ($lt_i != "" && $lt_i != ".") {
9657 if ($lt_i == "..") {
9658 lt_count++;
9659 } else {
9660 if (lt_count == 0) {
9661 lt_foo = "/" $lt_i lt_foo;
9662 } else {
9663 lt_count--;
9668 if (lt_foo != "") { lt_freq[lt_foo]++; }
9669 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9671 # AWK program above erroneously prepends '/' to C:/dos/paths
9672 # for these hosts.
9673 case $host_os in
9674 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9675 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
9676 esac
9677 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9678 else
9679 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9681 library_names_spec=
9682 libname_spec='lib$name'
9683 soname_spec=
9684 shrext_cmds=.so
9685 postinstall_cmds=
9686 postuninstall_cmds=
9687 finish_cmds=
9688 finish_eval=
9689 shlibpath_var=
9690 shlibpath_overrides_runpath=unknown
9691 version_type=none
9692 dynamic_linker="$host_os ld.so"
9693 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9694 need_lib_prefix=unknown
9695 hardcode_into_libs=no
9697 # when you set need_version to no, make sure it does not cause -set_version
9698 # flags to be left without arguments
9699 need_version=unknown
9703 case $host_os in
9704 aix3*)
9705 version_type=linux # correct to gnu/linux during the next big refactor
9706 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
9707 shlibpath_var=LIBPATH
9709 # AIX 3 has no versioning support, so we append a major version to the name.
9710 soname_spec='$libname$release$shared_ext$major'
9713 aix[4-9]*)
9714 version_type=linux # correct to gnu/linux during the next big refactor
9715 need_lib_prefix=no
9716 need_version=no
9717 hardcode_into_libs=yes
9718 if test ia64 = "$host_cpu"; then
9719 # AIX 5 supports IA64
9720 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
9721 shlibpath_var=LD_LIBRARY_PATH
9722 else
9723 # With GCC up to 2.95.x, collect2 would create an import file
9724 # for dependence libraries. The import file would start with
9725 # the line '#! .'. This would cause the generated library to
9726 # depend on '.', always an invalid library. This was fixed in
9727 # development snapshots of GCC prior to 3.0.
9728 case $host_os in
9729 aix4 | aix4.[01] | aix4.[01].*)
9730 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9731 echo ' yes '
9732 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
9734 else
9735 can_build_shared=no
9738 esac
9739 # Using Import Files as archive members, it is possible to support
9740 # filename-based versioning of shared library archives on AIX. While
9741 # this would work for both with and without runtime linking, it will
9742 # prevent static linking of such archives. So we do filename-based
9743 # shared library versioning with .so extension only, which is used
9744 # when both runtime linking and shared linking is enabled.
9745 # Unfortunately, runtime linking may impact performance, so we do
9746 # not want this to be the default eventually. Also, we use the
9747 # versioned .so libs for executables only if there is the -brtl
9748 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
9749 # To allow for filename-based versioning support, we need to create
9750 # libNAME.so.V as an archive file, containing:
9751 # *) an Import File, referring to the versioned filename of the
9752 # archive as well as the shared archive member, telling the
9753 # bitwidth (32 or 64) of that shared object, and providing the
9754 # list of exported symbols of that shared object, eventually
9755 # decorated with the 'weak' keyword
9756 # *) the shared object with the F_LOADONLY flag set, to really avoid
9757 # it being seen by the linker.
9758 # At run time we better use the real file rather than another symlink,
9759 # but for link time we create the symlink libNAME.so -> libNAME.so.V
9761 case $with_aix_soname,$aix_use_runtimelinking in
9762 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
9763 # soname into executable. Probably we can add versioning support to
9764 # collect2, so additional links can be useful in future.
9765 aix,yes) # traditional libtool
9766 dynamic_linker='AIX unversionable lib.so'
9767 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9768 # instead of lib<name>.a to let people know that these are not
9769 # typical AIX shared libraries.
9770 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9772 aix,no) # traditional AIX only
9773 dynamic_linker='AIX lib.a(lib.so.V)'
9774 # We preserve .a as extension for shared libraries through AIX4.2
9775 # and later when we are not doing run time linking.
9776 library_names_spec='$libname$release.a $libname.a'
9777 soname_spec='$libname$release$shared_ext$major'
9779 svr4,*) # full svr4 only
9780 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
9781 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
9782 # We do not specify a path in Import Files, so LIBPATH fires.
9783 shlibpath_overrides_runpath=yes
9785 *,yes) # both, prefer svr4
9786 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
9787 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
9788 # unpreferred sharedlib libNAME.a needs extra handling
9789 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"'
9790 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"'
9791 # We do not specify a path in Import Files, so LIBPATH fires.
9792 shlibpath_overrides_runpath=yes
9794 *,no) # both, prefer aix
9795 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
9796 library_names_spec='$libname$release.a $libname.a'
9797 soname_spec='$libname$release$shared_ext$major'
9798 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
9799 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)'
9800 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"'
9802 esac
9803 shlibpath_var=LIBPATH
9807 amigaos*)
9808 case $host_cpu in
9809 powerpc)
9810 # Since July 2007 AmigaOS4 officially supports .so libraries.
9811 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9812 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9814 m68k)
9815 library_names_spec='$libname.ixlibrary $libname.a'
9816 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9817 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'
9819 esac
9822 beos*)
9823 library_names_spec='$libname$shared_ext'
9824 dynamic_linker="$host_os ld.so"
9825 shlibpath_var=LIBRARY_PATH
9828 bsdi[45]*)
9829 version_type=linux # correct to gnu/linux during the next big refactor
9830 need_version=no
9831 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9832 soname_spec='$libname$release$shared_ext$major'
9833 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9834 shlibpath_var=LD_LIBRARY_PATH
9835 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9836 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9837 # the default ld.so.conf also contains /usr/contrib/lib and
9838 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9839 # libtool to hard-code these into programs
9842 cygwin* | mingw* | pw32* | cegcc*)
9843 version_type=windows
9844 shrext_cmds=.dll
9845 need_version=no
9846 need_lib_prefix=no
9848 case $GCC,$cc_basename in
9849 yes,*)
9850 # gcc
9851 library_names_spec='$libname.dll.a'
9852 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9853 postinstall_cmds='base_file=`basename \$file`~
9854 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
9855 dldir=$destdir/`dirname \$dlpath`~
9856 test -d \$dldir || mkdir -p \$dldir~
9857 $install_prog $dir/$dlname \$dldir/$dlname~
9858 chmod a+x \$dldir/$dlname~
9859 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9860 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9862 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9863 dlpath=$dir/\$dldll~
9864 $RM \$dlpath'
9865 shlibpath_overrides_runpath=yes
9867 case $host_os in
9868 cygwin*)
9869 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9870 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9872 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9874 mingw* | cegcc*)
9875 # MinGW DLLs use traditional 'lib' prefix
9876 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9878 pw32*)
9879 # pw32 DLLs use 'pw' prefix rather than 'lib'
9880 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9882 esac
9883 dynamic_linker='Win32 ld.exe'
9886 *,cl*)
9887 # Native MSVC
9888 libname_spec='$name'
9889 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9890 library_names_spec='$libname.dll.lib'
9892 case $build_os in
9893 mingw*)
9894 sys_lib_search_path_spec=
9895 lt_save_ifs=$IFS
9896 IFS=';'
9897 for lt_path in $LIB
9899 IFS=$lt_save_ifs
9900 # Let DOS variable expansion print the short 8.3 style file name.
9901 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9902 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9903 done
9904 IFS=$lt_save_ifs
9905 # Convert to MSYS style.
9906 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9908 cygwin*)
9909 # Convert to unix form, then to dos form, then back to unix form
9910 # but this time dos style (no spaces!) so that the unix form looks
9911 # like /cygdrive/c/PROGRA~1:/cygdr...
9912 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9913 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9914 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9917 sys_lib_search_path_spec=$LIB
9918 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9919 # It is most probably a Windows format PATH.
9920 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9921 else
9922 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9924 # FIXME: find the short name or the path components, as spaces are
9925 # common. (e.g. "Program Files" -> "PROGRA~1")
9927 esac
9929 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9930 postinstall_cmds='base_file=`basename \$file`~
9931 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
9932 dldir=$destdir/`dirname \$dlpath`~
9933 test -d \$dldir || mkdir -p \$dldir~
9934 $install_prog $dir/$dlname \$dldir/$dlname'
9935 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9936 dlpath=$dir/\$dldll~
9937 $RM \$dlpath'
9938 shlibpath_overrides_runpath=yes
9939 dynamic_linker='Win32 link.exe'
9943 # Assume MSVC wrapper
9944 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
9945 dynamic_linker='Win32 ld.exe'
9947 esac
9948 # FIXME: first we should search . and the directory the executable is in
9949 shlibpath_var=PATH
9952 darwin* | rhapsody*)
9953 dynamic_linker="$host_os dyld"
9954 version_type=darwin
9955 need_lib_prefix=no
9956 need_version=no
9957 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
9958 soname_spec='$libname$release$major$shared_ext'
9959 shlibpath_overrides_runpath=yes
9960 shlibpath_var=DYLD_LIBRARY_PATH
9961 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9963 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9964 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9967 dgux*)
9968 version_type=linux # correct to gnu/linux during the next big refactor
9969 need_lib_prefix=no
9970 need_version=no
9971 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9972 soname_spec='$libname$release$shared_ext$major'
9973 shlibpath_var=LD_LIBRARY_PATH
9976 freebsd* | dragonfly*)
9977 # DragonFly does not have aout. When/if they implement a new
9978 # versioning mechanism, adjust this.
9979 if test -x /usr/bin/objformat; then
9980 objformat=`/usr/bin/objformat`
9981 else
9982 case $host_os in
9983 freebsd[23].*) objformat=aout ;;
9984 *) objformat=elf ;;
9985 esac
9987 version_type=freebsd-$objformat
9988 case $version_type in
9989 freebsd-elf*)
9990 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9991 soname_spec='$libname$release$shared_ext$major'
9992 need_version=no
9993 need_lib_prefix=no
9995 freebsd-*)
9996 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
9997 need_version=yes
9999 esac
10000 shlibpath_var=LD_LIBRARY_PATH
10001 case $host_os in
10002 freebsd2.*)
10003 shlibpath_overrides_runpath=yes
10005 freebsd3.[01]* | freebsdelf3.[01]*)
10006 shlibpath_overrides_runpath=yes
10007 hardcode_into_libs=yes
10009 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10010 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10011 shlibpath_overrides_runpath=no
10012 hardcode_into_libs=yes
10014 *) # from 4.6 on, and DragonFly
10015 shlibpath_overrides_runpath=yes
10016 hardcode_into_libs=yes
10018 esac
10021 haiku*)
10022 version_type=linux # correct to gnu/linux during the next big refactor
10023 need_lib_prefix=no
10024 need_version=no
10025 dynamic_linker="$host_os runtime_loader"
10026 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10027 soname_spec='$libname$release$shared_ext$major'
10028 shlibpath_var=LIBRARY_PATH
10029 shlibpath_overrides_runpath=no
10030 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10031 hardcode_into_libs=yes
10034 hpux9* | hpux10* | hpux11*)
10035 # Give a soname corresponding to the major version so that dld.sl refuses to
10036 # link against other versions.
10037 version_type=sunos
10038 need_lib_prefix=no
10039 need_version=no
10040 case $host_cpu in
10041 ia64*)
10042 shrext_cmds='.so'
10043 hardcode_into_libs=yes
10044 dynamic_linker="$host_os dld.so"
10045 shlibpath_var=LD_LIBRARY_PATH
10046 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10047 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10048 soname_spec='$libname$release$shared_ext$major'
10049 if test 32 = "$HPUX_IA64_MODE"; then
10050 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10051 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10052 else
10053 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10054 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10057 hppa*64*)
10058 shrext_cmds='.sl'
10059 hardcode_into_libs=yes
10060 dynamic_linker="$host_os dld.sl"
10061 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10062 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10063 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10064 soname_spec='$libname$release$shared_ext$major'
10065 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10066 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10069 shrext_cmds='.sl'
10070 dynamic_linker="$host_os dld.sl"
10071 shlibpath_var=SHLIB_PATH
10072 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10073 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10074 soname_spec='$libname$release$shared_ext$major'
10076 esac
10077 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10078 postinstall_cmds='chmod 555 $lib'
10079 # or fails outright, so override atomically:
10080 install_override_mode=555
10083 interix[3-9]*)
10084 version_type=linux # correct to gnu/linux during the next big refactor
10085 need_lib_prefix=no
10086 need_version=no
10087 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10088 soname_spec='$libname$release$shared_ext$major'
10089 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10090 shlibpath_var=LD_LIBRARY_PATH
10091 shlibpath_overrides_runpath=no
10092 hardcode_into_libs=yes
10095 irix5* | irix6* | nonstopux*)
10096 case $host_os in
10097 nonstopux*) version_type=nonstopux ;;
10099 if test yes = "$lt_cv_prog_gnu_ld"; then
10100 version_type=linux # correct to gnu/linux during the next big refactor
10101 else
10102 version_type=irix
10103 fi ;;
10104 esac
10105 need_lib_prefix=no
10106 need_version=no
10107 soname_spec='$libname$release$shared_ext$major'
10108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10109 case $host_os in
10110 irix5* | nonstopux*)
10111 libsuff= shlibsuff=
10114 case $LD in # libtool.m4 will add one of these switches to LD
10115 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10116 libsuff= shlibsuff= libmagic=32-bit;;
10117 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10118 libsuff=32 shlibsuff=N32 libmagic=N32;;
10119 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10120 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10121 *) libsuff= shlibsuff= libmagic=never-match;;
10122 esac
10124 esac
10125 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10126 shlibpath_overrides_runpath=no
10127 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10128 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10129 hardcode_into_libs=yes
10132 # No shared lib support for Linux oldld, aout, or coff.
10133 linux*oldld* | linux*aout* | linux*coff*)
10134 dynamic_linker=no
10137 linux*android*)
10138 version_type=none # Android doesn't support versioned libraries.
10139 need_lib_prefix=no
10140 need_version=no
10141 library_names_spec='$libname$release$shared_ext'
10142 soname_spec='$libname$release$shared_ext'
10143 finish_cmds=
10144 shlibpath_var=LD_LIBRARY_PATH
10145 shlibpath_overrides_runpath=yes
10147 # This implies no fast_install, which is unacceptable.
10148 # Some rework will be needed to allow for fast_install
10149 # before this can be enabled.
10150 hardcode_into_libs=yes
10152 dynamic_linker='Android linker'
10153 # Don't embed -rpath directories since the linker doesn't support them.
10154 hardcode_libdir_flag_spec='-L$libdir'
10157 # This must be glibc/ELF.
10158 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10159 version_type=linux # correct to gnu/linux during the next big refactor
10160 need_lib_prefix=no
10161 need_version=no
10162 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10163 soname_spec='$libname$release$shared_ext$major'
10164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10165 shlibpath_var=LD_LIBRARY_PATH
10166 shlibpath_overrides_runpath=no
10168 # Some binutils ld are patched to set DT_RUNPATH
10169 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10170 $as_echo_n "(cached) " >&6
10171 else
10172 lt_cv_shlibpath_overrides_runpath=no
10173 save_LDFLAGS=$LDFLAGS
10174 save_libdir=$libdir
10175 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10176 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10178 /* end confdefs.h. */
10181 main ()
10185 return 0;
10187 _ACEOF
10188 if ac_fn_c_try_link "$LINENO"; then :
10189 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10190 lt_cv_shlibpath_overrides_runpath=yes
10193 rm -f core conftest.err conftest.$ac_objext \
10194 conftest$ac_exeext conftest.$ac_ext
10195 LDFLAGS=$save_LDFLAGS
10196 libdir=$save_libdir
10200 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10202 # This implies no fast_install, which is unacceptable.
10203 # Some rework will be needed to allow for fast_install
10204 # before this can be enabled.
10205 hardcode_into_libs=yes
10207 # Ideally, we could use ldconfig to report *all* directores which are
10208 # searched for libraries, however this is still not possible. Aside from not
10209 # being certain /sbin/ldconfig is available, command
10210 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10211 # even though it is searched at run-time. Try to do the best guess by
10212 # appending ld.so.conf contents (and includes) to the search path.
10213 if test -f /etc/ld.so.conf; then
10214 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' ' '`
10215 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10218 # We used to test for /lib/ld.so.1 and disable shared libraries on
10219 # powerpc, because MkLinux only supported shared libraries with the
10220 # GNU dynamic linker. Since this was broken with cross compilers,
10221 # most powerpc-linux boxes support dynamic linking these days and
10222 # people can always --disable-shared, the test was removed, and we
10223 # assume the GNU/Linux dynamic linker is in use.
10224 dynamic_linker='GNU/Linux ld.so'
10227 netbsd*)
10228 version_type=sunos
10229 need_lib_prefix=no
10230 need_version=no
10231 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10232 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10234 dynamic_linker='NetBSD (a.out) ld.so'
10235 else
10236 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10237 soname_spec='$libname$release$shared_ext$major'
10238 dynamic_linker='NetBSD ld.elf_so'
10240 shlibpath_var=LD_LIBRARY_PATH
10241 shlibpath_overrides_runpath=yes
10242 hardcode_into_libs=yes
10245 newsos6)
10246 version_type=linux # correct to gnu/linux during the next big refactor
10247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10248 shlibpath_var=LD_LIBRARY_PATH
10249 shlibpath_overrides_runpath=yes
10252 *nto* | *qnx*)
10253 version_type=qnx
10254 need_lib_prefix=no
10255 need_version=no
10256 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10257 soname_spec='$libname$release$shared_ext$major'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 shlibpath_overrides_runpath=no
10260 hardcode_into_libs=yes
10261 dynamic_linker='ldqnx.so'
10264 openbsd* | bitrig*)
10265 version_type=sunos
10266 sys_lib_dlsearch_path_spec=/usr/lib
10267 need_lib_prefix=no
10268 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10269 need_version=no
10270 else
10271 need_version=yes
10273 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10275 shlibpath_var=LD_LIBRARY_PATH
10276 shlibpath_overrides_runpath=yes
10279 os2*)
10280 libname_spec='$name'
10281 version_type=windows
10282 shrext_cmds=.dll
10283 need_version=no
10284 need_lib_prefix=no
10285 # OS/2 can only load a DLL with a base name of 8 characters or less.
10286 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10287 v=$($ECHO $release$versuffix | tr -d .-);
10288 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10289 $ECHO $n$v`$shared_ext'
10290 library_names_spec='${libname}_dll.$libext'
10291 dynamic_linker='OS/2 ld.exe'
10292 shlibpath_var=BEGINLIBPATH
10293 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10294 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10295 postinstall_cmds='base_file=`basename \$file`~
10296 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10297 dldir=$destdir/`dirname \$dlpath`~
10298 test -d \$dldir || mkdir -p \$dldir~
10299 $install_prog $dir/$dlname \$dldir/$dlname~
10300 chmod a+x \$dldir/$dlname~
10301 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10302 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10304 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10305 dlpath=$dir/\$dldll~
10306 $RM \$dlpath'
10309 osf3* | osf4* | osf5*)
10310 version_type=osf
10311 need_lib_prefix=no
10312 need_version=no
10313 soname_spec='$libname$release$shared_ext$major'
10314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10315 shlibpath_var=LD_LIBRARY_PATH
10316 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10317 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10320 rdos*)
10321 dynamic_linker=no
10324 solaris*)
10325 version_type=linux # correct to gnu/linux during the next big refactor
10326 need_lib_prefix=no
10327 need_version=no
10328 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10329 soname_spec='$libname$release$shared_ext$major'
10330 shlibpath_var=LD_LIBRARY_PATH
10331 shlibpath_overrides_runpath=yes
10332 hardcode_into_libs=yes
10333 # ldd complains unless libraries are executable
10334 postinstall_cmds='chmod +x $lib'
10337 sunos4*)
10338 version_type=sunos
10339 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10340 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10341 shlibpath_var=LD_LIBRARY_PATH
10342 shlibpath_overrides_runpath=yes
10343 if test yes = "$with_gnu_ld"; then
10344 need_lib_prefix=no
10346 need_version=yes
10349 sysv4 | sysv4.3*)
10350 version_type=linux # correct to gnu/linux during the next big refactor
10351 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10352 soname_spec='$libname$release$shared_ext$major'
10353 shlibpath_var=LD_LIBRARY_PATH
10354 case $host_vendor in
10355 sni)
10356 shlibpath_overrides_runpath=no
10357 need_lib_prefix=no
10358 runpath_var=LD_RUN_PATH
10360 siemens)
10361 need_lib_prefix=no
10363 motorola)
10364 need_lib_prefix=no
10365 need_version=no
10366 shlibpath_overrides_runpath=no
10367 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10369 esac
10372 sysv4*MP*)
10373 if test -d /usr/nec; then
10374 version_type=linux # correct to gnu/linux during the next big refactor
10375 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10376 soname_spec='$libname$shared_ext.$major'
10377 shlibpath_var=LD_LIBRARY_PATH
10381 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10382 version_type=sco
10383 need_lib_prefix=no
10384 need_version=no
10385 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10386 soname_spec='$libname$release$shared_ext$major'
10387 shlibpath_var=LD_LIBRARY_PATH
10388 shlibpath_overrides_runpath=yes
10389 hardcode_into_libs=yes
10390 if test yes = "$with_gnu_ld"; then
10391 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10392 else
10393 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10394 case $host_os in
10395 sco3.2v5*)
10396 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10398 esac
10400 sys_lib_dlsearch_path_spec='/usr/lib'
10403 tpf*)
10404 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10405 version_type=linux # correct to gnu/linux during the next big refactor
10406 need_lib_prefix=no
10407 need_version=no
10408 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10409 shlibpath_var=LD_LIBRARY_PATH
10410 shlibpath_overrides_runpath=no
10411 hardcode_into_libs=yes
10414 uts4*)
10415 version_type=linux # correct to gnu/linux during the next big refactor
10416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10417 soname_spec='$libname$release$shared_ext$major'
10418 shlibpath_var=LD_LIBRARY_PATH
10422 dynamic_linker=no
10424 esac
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10426 $as_echo "$dynamic_linker" >&6; }
10427 test no = "$dynamic_linker" && can_build_shared=no
10429 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10430 if test yes = "$GCC"; then
10431 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10434 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10435 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
10438 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10439 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
10442 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
10443 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
10445 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
10446 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
10448 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
10449 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10548 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10549 hardcode_action=
10550 if test -n "$hardcode_libdir_flag_spec" ||
10551 test -n "$runpath_var" ||
10552 test yes = "$hardcode_automatic"; then
10554 # We can hardcode non-existent directories.
10555 if test no != "$hardcode_direct" &&
10556 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10557 # have to relink, otherwise we might link with an installed library
10558 # when we should be linking with a yet-to-be-installed one
10559 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
10560 test no != "$hardcode_minus_L"; then
10561 # Linking always hardcodes the temporary library directory.
10562 hardcode_action=relink
10563 else
10564 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10565 hardcode_action=immediate
10567 else
10568 # We cannot hardcode anything, or else we can only hardcode existing
10569 # directories.
10570 hardcode_action=unsupported
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10573 $as_echo "$hardcode_action" >&6; }
10575 if test relink = "$hardcode_action" ||
10576 test yes = "$inherit_rpath"; then
10577 # Fast installation is not supported
10578 enable_fast_install=no
10579 elif test yes = "$shlibpath_overrides_runpath" ||
10580 test no = "$enable_shared"; then
10581 # Fast installation is not necessary
10582 enable_fast_install=needless
10590 if test yes != "$enable_dlopen"; then
10591 enable_dlopen=unknown
10592 enable_dlopen_self=unknown
10593 enable_dlopen_self_static=unknown
10594 else
10595 lt_cv_dlopen=no
10596 lt_cv_dlopen_libs=
10598 case $host_os in
10599 beos*)
10600 lt_cv_dlopen=load_add_on
10601 lt_cv_dlopen_libs=
10602 lt_cv_dlopen_self=yes
10605 mingw* | pw32* | cegcc*)
10606 lt_cv_dlopen=LoadLibrary
10607 lt_cv_dlopen_libs=
10610 cygwin*)
10611 lt_cv_dlopen=dlopen
10612 lt_cv_dlopen_libs=
10615 darwin*)
10616 # if libdl is installed we need to link against it
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10618 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10619 if ${ac_cv_lib_dl_dlopen+:} false; then :
10620 $as_echo_n "(cached) " >&6
10621 else
10622 ac_check_lib_save_LIBS=$LIBS
10623 LIBS="-ldl $LIBS"
10624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625 /* end confdefs.h. */
10627 /* Override any GCC internal prototype to avoid an error.
10628 Use char because int might match the return type of a GCC
10629 builtin and then its argument prototype would still apply. */
10630 #ifdef __cplusplus
10631 extern "C"
10632 #endif
10633 char dlopen ();
10635 main ()
10637 return dlopen ();
10639 return 0;
10641 _ACEOF
10642 if ac_fn_c_try_link "$LINENO"; then :
10643 ac_cv_lib_dl_dlopen=yes
10644 else
10645 ac_cv_lib_dl_dlopen=no
10647 rm -f core conftest.err conftest.$ac_objext \
10648 conftest$ac_exeext conftest.$ac_ext
10649 LIBS=$ac_check_lib_save_LIBS
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10652 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10653 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10654 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
10655 else
10657 lt_cv_dlopen=dyld
10658 lt_cv_dlopen_libs=
10659 lt_cv_dlopen_self=yes
10665 tpf*)
10666 # Don't try to run any link tests for TPF. We know it's impossible
10667 # because TPF is a cross-compiler, and we know how we open DSOs.
10668 lt_cv_dlopen=dlopen
10669 lt_cv_dlopen_libs=
10670 lt_cv_dlopen_self=no
10674 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10675 if test "x$ac_cv_func_shl_load" = xyes; then :
10676 lt_cv_dlopen=shl_load
10677 else
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10679 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10680 if ${ac_cv_lib_dld_shl_load+:} false; then :
10681 $as_echo_n "(cached) " >&6
10682 else
10683 ac_check_lib_save_LIBS=$LIBS
10684 LIBS="-ldld $LIBS"
10685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10686 /* end confdefs.h. */
10688 /* Override any GCC internal prototype to avoid an error.
10689 Use char because int might match the return type of a GCC
10690 builtin and then its argument prototype would still apply. */
10691 #ifdef __cplusplus
10692 extern "C"
10693 #endif
10694 char shl_load ();
10696 main ()
10698 return shl_load ();
10700 return 0;
10702 _ACEOF
10703 if ac_fn_c_try_link "$LINENO"; then :
10704 ac_cv_lib_dld_shl_load=yes
10705 else
10706 ac_cv_lib_dld_shl_load=no
10708 rm -f core conftest.err conftest.$ac_objext \
10709 conftest$ac_exeext conftest.$ac_ext
10710 LIBS=$ac_check_lib_save_LIBS
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10713 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10714 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10715 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
10716 else
10717 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10718 if test "x$ac_cv_func_dlopen" = xyes; then :
10719 lt_cv_dlopen=dlopen
10720 else
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10722 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10723 if ${ac_cv_lib_dl_dlopen+:} false; then :
10724 $as_echo_n "(cached) " >&6
10725 else
10726 ac_check_lib_save_LIBS=$LIBS
10727 LIBS="-ldl $LIBS"
10728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729 /* end confdefs.h. */
10731 /* Override any GCC internal prototype to avoid an error.
10732 Use char because int might match the return type of a GCC
10733 builtin and then its argument prototype would still apply. */
10734 #ifdef __cplusplus
10735 extern "C"
10736 #endif
10737 char dlopen ();
10739 main ()
10741 return dlopen ();
10743 return 0;
10745 _ACEOF
10746 if ac_fn_c_try_link "$LINENO"; then :
10747 ac_cv_lib_dl_dlopen=yes
10748 else
10749 ac_cv_lib_dl_dlopen=no
10751 rm -f core conftest.err conftest.$ac_objext \
10752 conftest$ac_exeext conftest.$ac_ext
10753 LIBS=$ac_check_lib_save_LIBS
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10756 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10757 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10758 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
10759 else
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10761 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10762 if ${ac_cv_lib_svld_dlopen+:} false; then :
10763 $as_echo_n "(cached) " >&6
10764 else
10765 ac_check_lib_save_LIBS=$LIBS
10766 LIBS="-lsvld $LIBS"
10767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10768 /* end confdefs.h. */
10770 /* Override any GCC internal prototype to avoid an error.
10771 Use char because int might match the return type of a GCC
10772 builtin and then its argument prototype would still apply. */
10773 #ifdef __cplusplus
10774 extern "C"
10775 #endif
10776 char dlopen ();
10778 main ()
10780 return dlopen ();
10782 return 0;
10784 _ACEOF
10785 if ac_fn_c_try_link "$LINENO"; then :
10786 ac_cv_lib_svld_dlopen=yes
10787 else
10788 ac_cv_lib_svld_dlopen=no
10790 rm -f core conftest.err conftest.$ac_objext \
10791 conftest$ac_exeext conftest.$ac_ext
10792 LIBS=$ac_check_lib_save_LIBS
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10795 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10796 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10797 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
10798 else
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10800 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10801 if ${ac_cv_lib_dld_dld_link+:} false; then :
10802 $as_echo_n "(cached) " >&6
10803 else
10804 ac_check_lib_save_LIBS=$LIBS
10805 LIBS="-ldld $LIBS"
10806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10807 /* end confdefs.h. */
10809 /* Override any GCC internal prototype to avoid an error.
10810 Use char because int might match the return type of a GCC
10811 builtin and then its argument prototype would still apply. */
10812 #ifdef __cplusplus
10813 extern "C"
10814 #endif
10815 char dld_link ();
10817 main ()
10819 return dld_link ();
10821 return 0;
10823 _ACEOF
10824 if ac_fn_c_try_link "$LINENO"; then :
10825 ac_cv_lib_dld_dld_link=yes
10826 else
10827 ac_cv_lib_dld_dld_link=no
10829 rm -f core conftest.err conftest.$ac_objext \
10830 conftest$ac_exeext conftest.$ac_ext
10831 LIBS=$ac_check_lib_save_LIBS
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10834 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10835 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10836 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
10855 esac
10857 if test no = "$lt_cv_dlopen"; then
10858 enable_dlopen=no
10859 else
10860 enable_dlopen=yes
10863 case $lt_cv_dlopen in
10864 dlopen)
10865 save_CPPFLAGS=$CPPFLAGS
10866 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10868 save_LDFLAGS=$LDFLAGS
10869 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10871 save_LIBS=$LIBS
10872 LIBS="$lt_cv_dlopen_libs $LIBS"
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10875 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10876 if ${lt_cv_dlopen_self+:} false; then :
10877 $as_echo_n "(cached) " >&6
10878 else
10879 if test yes = "$cross_compiling"; then :
10880 lt_cv_dlopen_self=cross
10881 else
10882 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10883 lt_status=$lt_dlunknown
10884 cat > conftest.$ac_ext <<_LT_EOF
10885 #line $LINENO "configure"
10886 #include "confdefs.h"
10888 #if HAVE_DLFCN_H
10889 #include <dlfcn.h>
10890 #endif
10892 #include <stdio.h>
10894 #ifdef RTLD_GLOBAL
10895 # define LT_DLGLOBAL RTLD_GLOBAL
10896 #else
10897 # ifdef DL_GLOBAL
10898 # define LT_DLGLOBAL DL_GLOBAL
10899 # else
10900 # define LT_DLGLOBAL 0
10901 # endif
10902 #endif
10904 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10905 find out it does not work in some platform. */
10906 #ifndef LT_DLLAZY_OR_NOW
10907 # ifdef RTLD_LAZY
10908 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10909 # else
10910 # ifdef DL_LAZY
10911 # define LT_DLLAZY_OR_NOW DL_LAZY
10912 # else
10913 # ifdef RTLD_NOW
10914 # define LT_DLLAZY_OR_NOW RTLD_NOW
10915 # else
10916 # ifdef DL_NOW
10917 # define LT_DLLAZY_OR_NOW DL_NOW
10918 # else
10919 # define LT_DLLAZY_OR_NOW 0
10920 # endif
10921 # endif
10922 # endif
10923 # endif
10924 #endif
10926 /* When -fvisibility=hidden is used, assume the code has been annotated
10927 correspondingly for the symbols needed. */
10928 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10929 int fnord () __attribute__((visibility("default")));
10930 #endif
10932 int fnord () { return 42; }
10933 int main ()
10935 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10936 int status = $lt_dlunknown;
10938 if (self)
10940 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10941 else
10943 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10944 else puts (dlerror ());
10946 /* dlclose (self); */
10948 else
10949 puts (dlerror ());
10951 return status;
10953 _LT_EOF
10954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10955 (eval $ac_link) 2>&5
10956 ac_status=$?
10957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10958 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
10959 (./conftest; exit; ) >&5 2>/dev/null
10960 lt_status=$?
10961 case x$lt_status in
10962 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10963 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10964 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10965 esac
10966 else :
10967 # compilation failed
10968 lt_cv_dlopen_self=no
10971 rm -fr conftest*
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10976 $as_echo "$lt_cv_dlopen_self" >&6; }
10978 if test yes = "$lt_cv_dlopen_self"; then
10979 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10981 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10982 if ${lt_cv_dlopen_self_static+:} false; then :
10983 $as_echo_n "(cached) " >&6
10984 else
10985 if test yes = "$cross_compiling"; then :
10986 lt_cv_dlopen_self_static=cross
10987 else
10988 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10989 lt_status=$lt_dlunknown
10990 cat > conftest.$ac_ext <<_LT_EOF
10991 #line $LINENO "configure"
10992 #include "confdefs.h"
10994 #if HAVE_DLFCN_H
10995 #include <dlfcn.h>
10996 #endif
10998 #include <stdio.h>
11000 #ifdef RTLD_GLOBAL
11001 # define LT_DLGLOBAL RTLD_GLOBAL
11002 #else
11003 # ifdef DL_GLOBAL
11004 # define LT_DLGLOBAL DL_GLOBAL
11005 # else
11006 # define LT_DLGLOBAL 0
11007 # endif
11008 #endif
11010 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11011 find out it does not work in some platform. */
11012 #ifndef LT_DLLAZY_OR_NOW
11013 # ifdef RTLD_LAZY
11014 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11015 # else
11016 # ifdef DL_LAZY
11017 # define LT_DLLAZY_OR_NOW DL_LAZY
11018 # else
11019 # ifdef RTLD_NOW
11020 # define LT_DLLAZY_OR_NOW RTLD_NOW
11021 # else
11022 # ifdef DL_NOW
11023 # define LT_DLLAZY_OR_NOW DL_NOW
11024 # else
11025 # define LT_DLLAZY_OR_NOW 0
11026 # endif
11027 # endif
11028 # endif
11029 # endif
11030 #endif
11032 /* When -fvisibility=hidden is used, assume the code has been annotated
11033 correspondingly for the symbols needed. */
11034 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11035 int fnord () __attribute__((visibility("default")));
11036 #endif
11038 int fnord () { return 42; }
11039 int main ()
11041 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11042 int status = $lt_dlunknown;
11044 if (self)
11046 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11047 else
11049 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11050 else puts (dlerror ());
11052 /* dlclose (self); */
11054 else
11055 puts (dlerror ());
11057 return status;
11059 _LT_EOF
11060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11061 (eval $ac_link) 2>&5
11062 ac_status=$?
11063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11064 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11065 (./conftest; exit; ) >&5 2>/dev/null
11066 lt_status=$?
11067 case x$lt_status in
11068 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11069 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11070 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11071 esac
11072 else :
11073 # compilation failed
11074 lt_cv_dlopen_self_static=no
11077 rm -fr conftest*
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11082 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11085 CPPFLAGS=$save_CPPFLAGS
11086 LDFLAGS=$save_LDFLAGS
11087 LIBS=$save_LIBS
11089 esac
11091 case $lt_cv_dlopen_self in
11092 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11093 *) enable_dlopen_self=unknown ;;
11094 esac
11096 case $lt_cv_dlopen_self_static in
11097 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11098 *) enable_dlopen_self_static=unknown ;;
11099 esac
11118 striplib=
11119 old_striplib=
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11121 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11122 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11123 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11124 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11126 $as_echo "yes" >&6; }
11127 else
11128 # FIXME - insert some real tests, host_os isn't really good enough
11129 case $host_os in
11130 darwin*)
11131 if test -n "$STRIP"; then
11132 striplib="$STRIP -x"
11133 old_striplib="$STRIP -S"
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11135 $as_echo "yes" >&6; }
11136 else
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11138 $as_echo "no" >&6; }
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11143 $as_echo "no" >&6; }
11145 esac
11159 # Report what library types will actually be built
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11161 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11163 $as_echo "$can_build_shared" >&6; }
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11166 $as_echo_n "checking whether to build shared libraries... " >&6; }
11167 test no = "$can_build_shared" && enable_shared=no
11169 # On AIX, shared libraries and static libraries use the same namespace, and
11170 # are all built from PIC.
11171 case $host_os in
11172 aix3*)
11173 test yes = "$enable_shared" && enable_static=no
11174 if test -n "$RANLIB"; then
11175 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11176 postinstall_cmds='$RANLIB $lib'
11180 aix[4-9]*)
11181 if test ia64 != "$host_cpu"; then
11182 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11183 yes,aix,yes) ;; # shared object as lib.so file only
11184 yes,svr4,*) ;; # shared object as lib.so archive member only
11185 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11186 esac
11189 esac
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11191 $as_echo "$enable_shared" >&6; }
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11194 $as_echo_n "checking whether to build static libraries... " >&6; }
11195 # Make sure either enable_shared or enable_static is yes.
11196 test yes = "$enable_shared" || enable_static=yes
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11198 $as_echo "$enable_static" >&6; }
11204 ac_ext=c
11205 ac_cpp='$CPP $CPPFLAGS'
11206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11210 CC=$lt_save_CC
11226 ac_config_commands="$ac_config_commands libtool"
11231 # Only expand once:
11234 # Find a good install program. We prefer a C program (faster),
11235 # so one script is as good as another. But avoid the broken or
11236 # incompatible versions:
11237 # SysV /etc/install, /usr/sbin/install
11238 # SunOS /usr/etc/install
11239 # IRIX /sbin/install
11240 # AIX /bin/install
11241 # AmigaOS /C/install, which installs bootblocks on floppy discs
11242 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11243 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11244 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11245 # OS/2's system install, which has a completely different semantic
11246 # ./install, which can be erroneously created by make from ./install.sh.
11247 # Reject install programs that cannot install multiple files.
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11249 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11250 if test -z "$INSTALL"; then
11251 if ${ac_cv_path_install+:} false; then :
11252 $as_echo_n "(cached) " >&6
11253 else
11254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11255 for as_dir in $PATH
11257 IFS=$as_save_IFS
11258 test -z "$as_dir" && as_dir=.
11259 # Account for people who put trailing slashes in PATH elements.
11260 case $as_dir/ in #((
11261 ./ | .// | /[cC]/* | \
11262 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11263 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11264 /usr/ucb/* ) ;;
11266 # OSF1 and SCO ODT 3.0 have their own names for install.
11267 # Don't use installbsd from OSF since it installs stuff as root
11268 # by default.
11269 for ac_prog in ginstall scoinst install; do
11270 for ac_exec_ext in '' $ac_executable_extensions; do
11271 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11272 if test $ac_prog = install &&
11273 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11274 # AIX install. It has an incompatible calling convention.
11276 elif test $ac_prog = install &&
11277 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11278 # program-specific install script used by HP pwplus--don't use.
11280 else
11281 rm -rf conftest.one conftest.two conftest.dir
11282 echo one > conftest.one
11283 echo two > conftest.two
11284 mkdir conftest.dir
11285 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11286 test -s conftest.one && test -s conftest.two &&
11287 test -s conftest.dir/conftest.one &&
11288 test -s conftest.dir/conftest.two
11289 then
11290 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11291 break 3
11295 done
11296 done
11298 esac
11300 done
11301 IFS=$as_save_IFS
11303 rm -rf conftest.one conftest.two conftest.dir
11306 if test "${ac_cv_path_install+set}" = set; then
11307 INSTALL=$ac_cv_path_install
11308 else
11309 # As a last resort, use the slow shell script. Don't cache a
11310 # value for INSTALL within a source directory, because that will
11311 # break other packages using the cache if that directory is
11312 # removed, or if the value is a relative name.
11313 INSTALL=$ac_install_sh
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11317 $as_echo "$INSTALL" >&6; }
11319 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11320 # It thinks the first close brace ends the variable substitution.
11321 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11323 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11325 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11328 #########
11329 # Enable large file support (if special flags are necessary)
11331 # Check whether --enable-largefile was given.
11332 if test "${enable_largefile+set}" = set; then :
11333 enableval=$enable_largefile;
11336 if test "$enable_largefile" != no; then
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11339 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11340 if ${ac_cv_sys_largefile_CC+:} false; then :
11341 $as_echo_n "(cached) " >&6
11342 else
11343 ac_cv_sys_largefile_CC=no
11344 if test "$GCC" != yes; then
11345 ac_save_CC=$CC
11346 while :; do
11347 # IRIX 6.2 and later do not support large files by default,
11348 # so use the C compiler's -n32 option if that helps.
11349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11350 /* end confdefs.h. */
11351 #include <sys/types.h>
11352 /* Check that off_t can represent 2**63 - 1 correctly.
11353 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11354 since some C++ compilers masquerading as C compilers
11355 incorrectly reject 9223372036854775807. */
11356 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11357 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11358 && LARGE_OFF_T % 2147483647 == 1)
11359 ? 1 : -1];
11361 main ()
11365 return 0;
11367 _ACEOF
11368 if ac_fn_c_try_compile "$LINENO"; then :
11369 break
11371 rm -f core conftest.err conftest.$ac_objext
11372 CC="$CC -n32"
11373 if ac_fn_c_try_compile "$LINENO"; then :
11374 ac_cv_sys_largefile_CC=' -n32'; break
11376 rm -f core conftest.err conftest.$ac_objext
11377 break
11378 done
11379 CC=$ac_save_CC
11380 rm -f conftest.$ac_ext
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11384 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11385 if test "$ac_cv_sys_largefile_CC" != no; then
11386 CC=$CC$ac_cv_sys_largefile_CC
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11390 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11391 if ${ac_cv_sys_file_offset_bits+:} false; then :
11392 $as_echo_n "(cached) " >&6
11393 else
11394 while :; do
11395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11396 /* end confdefs.h. */
11397 #include <sys/types.h>
11398 /* Check that off_t can represent 2**63 - 1 correctly.
11399 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11400 since some C++ compilers masquerading as C compilers
11401 incorrectly reject 9223372036854775807. */
11402 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11403 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11404 && LARGE_OFF_T % 2147483647 == 1)
11405 ? 1 : -1];
11407 main ()
11411 return 0;
11413 _ACEOF
11414 if ac_fn_c_try_compile "$LINENO"; then :
11415 ac_cv_sys_file_offset_bits=no; break
11417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11419 /* end confdefs.h. */
11420 #define _FILE_OFFSET_BITS 64
11421 #include <sys/types.h>
11422 /* Check that off_t can represent 2**63 - 1 correctly.
11423 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11424 since some C++ compilers masquerading as C compilers
11425 incorrectly reject 9223372036854775807. */
11426 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11427 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11428 && LARGE_OFF_T % 2147483647 == 1)
11429 ? 1 : -1];
11431 main ()
11435 return 0;
11437 _ACEOF
11438 if ac_fn_c_try_compile "$LINENO"; then :
11439 ac_cv_sys_file_offset_bits=64; break
11441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11442 ac_cv_sys_file_offset_bits=unknown
11443 break
11444 done
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11447 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11448 case $ac_cv_sys_file_offset_bits in #(
11449 no | unknown) ;;
11451 cat >>confdefs.h <<_ACEOF
11452 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11453 _ACEOF
11455 esac
11456 rm -rf conftest*
11457 if test $ac_cv_sys_file_offset_bits = unknown; then
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11459 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11460 if ${ac_cv_sys_large_files+:} false; then :
11461 $as_echo_n "(cached) " >&6
11462 else
11463 while :; do
11464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465 /* end confdefs.h. */
11466 #include <sys/types.h>
11467 /* Check that off_t can represent 2**63 - 1 correctly.
11468 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11469 since some C++ compilers masquerading as C compilers
11470 incorrectly reject 9223372036854775807. */
11471 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11472 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11473 && LARGE_OFF_T % 2147483647 == 1)
11474 ? 1 : -1];
11476 main ()
11480 return 0;
11482 _ACEOF
11483 if ac_fn_c_try_compile "$LINENO"; then :
11484 ac_cv_sys_large_files=no; break
11486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11488 /* end confdefs.h. */
11489 #define _LARGE_FILES 1
11490 #include <sys/types.h>
11491 /* Check that off_t can represent 2**63 - 1 correctly.
11492 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11493 since some C++ compilers masquerading as C compilers
11494 incorrectly reject 9223372036854775807. */
11495 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11496 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11497 && LARGE_OFF_T % 2147483647 == 1)
11498 ? 1 : -1];
11500 main ()
11504 return 0;
11506 _ACEOF
11507 if ac_fn_c_try_compile "$LINENO"; then :
11508 ac_cv_sys_large_files=1; break
11510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11511 ac_cv_sys_large_files=unknown
11512 break
11513 done
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11516 $as_echo "$ac_cv_sys_large_files" >&6; }
11517 case $ac_cv_sys_large_files in #(
11518 no | unknown) ;;
11520 cat >>confdefs.h <<_ACEOF
11521 #define _LARGE_FILES $ac_cv_sys_large_files
11522 _ACEOF
11524 esac
11525 rm -rf conftest*
11532 #########
11533 # Check for needed/wanted data types
11534 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
11535 if test "x$ac_cv_type_int8_t" = xyes; then :
11537 cat >>confdefs.h <<_ACEOF
11538 #define HAVE_INT8_T 1
11539 _ACEOF
11543 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
11544 if test "x$ac_cv_type_int16_t" = xyes; then :
11546 cat >>confdefs.h <<_ACEOF
11547 #define HAVE_INT16_T 1
11548 _ACEOF
11552 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
11553 if test "x$ac_cv_type_int32_t" = xyes; then :
11555 cat >>confdefs.h <<_ACEOF
11556 #define HAVE_INT32_T 1
11557 _ACEOF
11561 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
11562 if test "x$ac_cv_type_int64_t" = xyes; then :
11564 cat >>confdefs.h <<_ACEOF
11565 #define HAVE_INT64_T 1
11566 _ACEOF
11570 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
11571 if test "x$ac_cv_type_intptr_t" = xyes; then :
11573 cat >>confdefs.h <<_ACEOF
11574 #define HAVE_INTPTR_T 1
11575 _ACEOF
11579 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
11580 if test "x$ac_cv_type_uint8_t" = xyes; then :
11582 cat >>confdefs.h <<_ACEOF
11583 #define HAVE_UINT8_T 1
11584 _ACEOF
11588 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
11589 if test "x$ac_cv_type_uint16_t" = xyes; then :
11591 cat >>confdefs.h <<_ACEOF
11592 #define HAVE_UINT16_T 1
11593 _ACEOF
11597 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
11598 if test "x$ac_cv_type_uint32_t" = xyes; then :
11600 cat >>confdefs.h <<_ACEOF
11601 #define HAVE_UINT32_T 1
11602 _ACEOF
11606 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
11607 if test "x$ac_cv_type_uint64_t" = xyes; then :
11609 cat >>confdefs.h <<_ACEOF
11610 #define HAVE_UINT64_T 1
11611 _ACEOF
11615 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
11616 if test "x$ac_cv_type_uintptr_t" = xyes; then :
11618 cat >>confdefs.h <<_ACEOF
11619 #define HAVE_UINTPTR_T 1
11620 _ACEOF
11626 #########
11627 # Check for needed/wanted headers
11628 for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
11629 do :
11630 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11631 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11632 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11633 cat >>confdefs.h <<_ACEOF
11634 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11635 _ACEOF
11639 done
11642 #########
11643 # Figure out whether or not we have these functions
11645 for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime
11646 do :
11647 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11648 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11649 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11650 cat >>confdefs.h <<_ACEOF
11651 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11652 _ACEOF
11655 done
11658 #########
11659 # By default, we use the amalgamation (this may be changed below...)
11661 USE_AMALGAMATION=1
11663 #########
11664 # See whether we can run specific tclsh versions known to work well;
11665 # if not, then we fall back to plain tclsh.
11666 # TODO: try other versions before falling back?
11668 for ac_prog in tclsh8.6 tclsh8.5 tclsh
11670 # Extract the first word of "$ac_prog", so it can be a program name with args.
11671 set dummy $ac_prog; ac_word=$2
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11673 $as_echo_n "checking for $ac_word... " >&6; }
11674 if ${ac_cv_prog_TCLSH_CMD+:} false; then :
11675 $as_echo_n "(cached) " >&6
11676 else
11677 if test -n "$TCLSH_CMD"; then
11678 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
11679 else
11680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11681 for as_dir in $PATH
11683 IFS=$as_save_IFS
11684 test -z "$as_dir" && as_dir=.
11685 for ac_exec_ext in '' $ac_executable_extensions; do
11686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11687 ac_cv_prog_TCLSH_CMD="$ac_prog"
11688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11689 break 2
11691 done
11692 done
11693 IFS=$as_save_IFS
11697 TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
11698 if test -n "$TCLSH_CMD"; then
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
11700 $as_echo "$TCLSH_CMD" >&6; }
11701 else
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11703 $as_echo "no" >&6; }
11707 test -n "$TCLSH_CMD" && break
11708 done
11709 test -n "$TCLSH_CMD" || TCLSH_CMD="none"
11711 if test "$TCLSH_CMD" = "none"; then
11712 # If we can't find a local tclsh, then building the amalgamation will fail.
11713 # We act as though --disable-amalgamation has been used.
11714 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
11715 USE_AMALGAMATION=0
11716 TCLSH_CMD="tclsh"
11721 if test "x${TCLLIBDIR+set}" != "xset" ; then
11722 TCLLIBDIR='$(libdir)'
11723 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
11724 TCLLIBDIR=$i
11725 break
11726 done
11727 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
11730 #########
11731 # Set up an appropriate program prefix
11733 if test "$program_prefix" = "NONE"; then
11734 program_prefix=""
11738 VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
11740 $as_echo "$as_me: Version set to $VERSION" >&6;}
11742 RELEASE=`cat $srcdir/VERSION`
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
11744 $as_echo "$as_me: Release set to $RELEASE" >&6;}
11746 VERSION_NUMBER=`cat $srcdir/VERSION \
11747 | sed 's/[^0-9]/ /g' \
11748 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: Version number set to $VERSION_NUMBER" >&5
11750 $as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
11753 #########
11754 # Locate a compiler for the build machine. This compiler should
11755 # generate command-line programs that run on the build machine.
11757 if test x"$cross_compiling" = xno; then
11758 BUILD_CC=$CC
11759 BUILD_CFLAGS=$CFLAGS
11760 else
11761 if test "${BUILD_CC+set}" != set; then
11762 for ac_prog in gcc cc cl
11764 # Extract the first word of "$ac_prog", so it can be a program name with args.
11765 set dummy $ac_prog; ac_word=$2
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11767 $as_echo_n "checking for $ac_word... " >&6; }
11768 if ${ac_cv_prog_BUILD_CC+:} false; then :
11769 $as_echo_n "(cached) " >&6
11770 else
11771 if test -n "$BUILD_CC"; then
11772 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11773 else
11774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11775 for as_dir in $PATH
11777 IFS=$as_save_IFS
11778 test -z "$as_dir" && as_dir=.
11779 for ac_exec_ext in '' $ac_executable_extensions; do
11780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11781 ac_cv_prog_BUILD_CC="$ac_prog"
11782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11783 break 2
11785 done
11786 done
11787 IFS=$as_save_IFS
11791 BUILD_CC=$ac_cv_prog_BUILD_CC
11792 if test -n "$BUILD_CC"; then
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
11794 $as_echo "$BUILD_CC" >&6; }
11795 else
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11797 $as_echo "no" >&6; }
11801 test -n "$BUILD_CC" && break
11802 done
11805 if test "${BUILD_CFLAGS+set}" != set; then
11806 BUILD_CFLAGS="-g"
11811 ##########
11812 # Do we want to support multithreaded use of sqlite
11814 # Check whether --enable-threadsafe was given.
11815 if test "${enable_threadsafe+set}" = set; then :
11816 enableval=$enable_threadsafe;
11817 else
11818 enable_threadsafe=yes
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
11822 $as_echo_n "checking whether to support threadsafe operation... " >&6; }
11823 if test "$enable_threadsafe" = "no"; then
11824 SQLITE_THREADSAFE=0
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11826 $as_echo "no" >&6; }
11827 else
11828 SQLITE_THREADSAFE=1
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11830 $as_echo "yes" >&6; }
11834 if test "$SQLITE_THREADSAFE" = "1"; then
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
11836 $as_echo_n "checking for library containing pthread_create... " >&6; }
11837 if ${ac_cv_search_pthread_create+:} false; then :
11838 $as_echo_n "(cached) " >&6
11839 else
11840 ac_func_search_save_LIBS=$LIBS
11841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11842 /* end confdefs.h. */
11844 /* Override any GCC internal prototype to avoid an error.
11845 Use char because int might match the return type of a GCC
11846 builtin and then its argument prototype would still apply. */
11847 #ifdef __cplusplus
11848 extern "C"
11849 #endif
11850 char pthread_create ();
11852 main ()
11854 return pthread_create ();
11856 return 0;
11858 _ACEOF
11859 for ac_lib in '' pthread; do
11860 if test -z "$ac_lib"; then
11861 ac_res="none required"
11862 else
11863 ac_res=-l$ac_lib
11864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11866 if ac_fn_c_try_link "$LINENO"; then :
11867 ac_cv_search_pthread_create=$ac_res
11869 rm -f core conftest.err conftest.$ac_objext \
11870 conftest$ac_exeext
11871 if ${ac_cv_search_pthread_create+:} false; then :
11872 break
11874 done
11875 if ${ac_cv_search_pthread_create+:} false; then :
11877 else
11878 ac_cv_search_pthread_create=no
11880 rm conftest.$ac_ext
11881 LIBS=$ac_func_search_save_LIBS
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
11884 $as_echo "$ac_cv_search_pthread_create" >&6; }
11885 ac_res=$ac_cv_search_pthread_create
11886 if test "$ac_res" != no; then :
11887 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
11892 $as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
11893 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
11894 $as_echo_n "(cached) " >&6
11895 else
11896 ac_func_search_save_LIBS=$LIBS
11897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11898 /* end confdefs.h. */
11900 /* Override any GCC internal prototype to avoid an error.
11901 Use char because int might match the return type of a GCC
11902 builtin and then its argument prototype would still apply. */
11903 #ifdef __cplusplus
11904 extern "C"
11905 #endif
11906 char pthread_mutexattr_init ();
11908 main ()
11910 return pthread_mutexattr_init ();
11912 return 0;
11914 _ACEOF
11915 for ac_lib in '' pthread; do
11916 if test -z "$ac_lib"; then
11917 ac_res="none required"
11918 else
11919 ac_res=-l$ac_lib
11920 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11922 if ac_fn_c_try_link "$LINENO"; then :
11923 ac_cv_search_pthread_mutexattr_init=$ac_res
11925 rm -f core conftest.err conftest.$ac_objext \
11926 conftest$ac_exeext
11927 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
11928 break
11930 done
11931 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
11933 else
11934 ac_cv_search_pthread_mutexattr_init=no
11936 rm conftest.$ac_ext
11937 LIBS=$ac_func_search_save_LIBS
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
11940 $as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
11941 ac_res=$ac_cv_search_pthread_mutexattr_init
11942 if test "$ac_res" != no; then :
11943 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11949 ##########
11950 # Which crypto library do we use
11953 # Check whether --with-crypto-lib was given.
11954 if test "${with_crypto_lib+set}" = set; then :
11955 withval=$with_crypto_lib; crypto_lib=$withval
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto library to use" >&5
11959 $as_echo_n "checking for crypto library to use... " >&6; }
11960 if test "$crypto_lib" = "none"; then
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11962 $as_echo "none" >&6; }
11963 else
11964 if test "$crypto_lib" = "commoncrypto"; then
11965 CFLAGS+=" -DSQLCIPHER_CRYPTO_CC"
11966 BUILD_CFLAGS+=" -DSQLCIPHER_CRYPTO_CC"
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: commoncrypto" >&5
11968 $as_echo "commoncrypto" >&6; }
11969 else
11970 if test "$crypto_lib" = "libtomcrypt"; then
11971 CFLAGS+=" -DSQLCIPHER_CRYPTO_LIBTOMCRYPT"
11972 BUILD_CFLAGS+=" -DSQLCIPHER_CRYPTO_LIBTOMCRYPT"
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libtomcrypt" >&5
11974 $as_echo "libtomcrypt" >&6; }
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for register_cipher in -ltomcrypt" >&5
11976 $as_echo_n "checking for register_cipher in -ltomcrypt... " >&6; }
11977 if ${ac_cv_lib_tomcrypt_register_cipher+:} false; then :
11978 $as_echo_n "(cached) " >&6
11979 else
11980 ac_check_lib_save_LIBS=$LIBS
11981 LIBS="-ltomcrypt $LIBS"
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h. */
11985 /* Override any GCC internal prototype to avoid an error.
11986 Use char because int might match the return type of a GCC
11987 builtin and then its argument prototype would still apply. */
11988 #ifdef __cplusplus
11989 extern "C"
11990 #endif
11991 char register_cipher ();
11993 main ()
11995 return register_cipher ();
11997 return 0;
11999 _ACEOF
12000 if ac_fn_c_try_link "$LINENO"; then :
12001 ac_cv_lib_tomcrypt_register_cipher=yes
12002 else
12003 ac_cv_lib_tomcrypt_register_cipher=no
12005 rm -f core conftest.err conftest.$ac_objext \
12006 conftest$ac_exeext conftest.$ac_ext
12007 LIBS=$ac_check_lib_save_LIBS
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tomcrypt_register_cipher" >&5
12010 $as_echo "$ac_cv_lib_tomcrypt_register_cipher" >&6; }
12011 if test "x$ac_cv_lib_tomcrypt_register_cipher" = xyes; then :
12012 cat >>confdefs.h <<_ACEOF
12013 #define HAVE_LIBTOMCRYPT 1
12014 _ACEOF
12016 LIBS="-ltomcrypt $LIBS"
12018 else
12019 as_fn_error $? "Library crypto not found. Install libtomcrypt!\"" "$LINENO" 5
12022 else
12023 CFLAGS+=" -DSQLCIPHER_CRYPTO_OPENSSL"
12024 BUILD_CFLAGS+=" -DSQLCIPHER_CRYPTO_OPENSSL"
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: openssl" >&5
12026 $as_echo "openssl" >&6; }
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
12028 $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
12029 if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
12030 $as_echo_n "(cached) " >&6
12031 else
12032 ac_check_lib_save_LIBS=$LIBS
12033 LIBS="-lcrypto $LIBS"
12034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12035 /* end confdefs.h. */
12037 /* Override any GCC internal prototype to avoid an error.
12038 Use char because int might match the return type of a GCC
12039 builtin and then its argument prototype would still apply. */
12040 #ifdef __cplusplus
12041 extern "C"
12042 #endif
12043 char HMAC_Init_ex ();
12045 main ()
12047 return HMAC_Init_ex ();
12049 return 0;
12051 _ACEOF
12052 if ac_fn_c_try_link "$LINENO"; then :
12053 ac_cv_lib_crypto_HMAC_Init_ex=yes
12054 else
12055 ac_cv_lib_crypto_HMAC_Init_ex=no
12057 rm -f core conftest.err conftest.$ac_objext \
12058 conftest$ac_exeext conftest.$ac_ext
12059 LIBS=$ac_check_lib_save_LIBS
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
12062 $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
12063 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
12064 cat >>confdefs.h <<_ACEOF
12065 #define HAVE_LIBCRYPTO 1
12066 _ACEOF
12068 LIBS="-lcrypto $LIBS"
12070 else
12071 as_fn_error $? "Library crypto not found. Install openssl!\"" "$LINENO" 5
12078 ##########
12079 # Do we want to allow a connection created in one thread to be used
12080 # in another thread. This does not work on many Linux systems (ex: RedHat 9)
12081 # due to bugs in the threading implementations. This is thus off by default.
12083 # Check whether --enable-cross-thread-connections was given.
12084 if test "${enable_cross_thread_connections+set}" = set; then :
12085 enableval=$enable_cross_thread_connections;
12086 else
12087 enable_xthreadconnect=no
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allow connections to be shared across threads" >&5
12091 $as_echo_n "checking whether to allow connections to be shared across threads... " >&6; }
12092 if test "$enable_xthreadconnect" = "no"; then
12093 XTHREADCONNECT=''
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12095 $as_echo "no" >&6; }
12096 else
12097 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12099 $as_echo "yes" >&6; }
12103 ##########
12104 # Do we want to support release
12106 # Check whether --enable-releasemode was given.
12107 if test "${enable_releasemode+set}" = set; then :
12108 enableval=$enable_releasemode;
12109 else
12110 enable_releasemode=no
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
12114 $as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
12115 if test "$enable_releasemode" = "no"; then
12116 ALLOWRELEASE=""
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118 $as_echo "no" >&6; }
12119 else
12120 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12122 $as_echo "yes" >&6; }
12126 ##########
12127 # Do we want temporary databases in memory
12129 # Check whether --enable-tempstore was given.
12130 if test "${enable_tempstore+set}" = set; then :
12131 enableval=$enable_tempstore;
12132 else
12133 enable_tempstore=no
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
12137 $as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
12138 case "$enable_tempstore" in
12139 never )
12140 TEMP_STORE=0
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
12142 $as_echo "never" >&6; }
12144 no )
12145 TEMP_STORE=1
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12147 $as_echo "no" >&6; }
12149 yes )
12150 TEMP_STORE=2
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12152 $as_echo "yes" >&6; }
12154 always )
12155 TEMP_STORE=3
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
12157 $as_echo "always" >&6; }
12160 TEMP_STORE=1
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12162 $as_echo "no" >&6; }
12164 esac
12168 ###########
12169 # Lots of things are different if we are compiling for Windows using
12170 # the CYGWIN environment. So check for that special case and handle
12171 # things accordingly.
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
12174 $as_echo_n "checking if executables have the .exe suffix... " >&6; }
12175 if test "$config_BUILD_EXEEXT" = ".exe"; then
12176 CYGWIN=yes
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12178 $as_echo "yes" >&6; }
12179 else
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12181 $as_echo "unknown" >&6; }
12183 if test "$CYGWIN" != "yes"; then
12185 case $host_os in
12186 *cygwin* ) CYGWIN=yes;;
12187 * ) CYGWIN=no;;
12188 esac
12191 if test "$CYGWIN" = "yes"; then
12192 BUILD_EXEEXT=.exe
12193 else
12194 BUILD_EXEEXT=$EXEEXT
12196 if test x"$cross_compiling" = xno; then
12197 TARGET_EXEEXT=$BUILD_EXEEXT
12198 else
12199 TARGET_EXEEXT=$config_TARGET_EXEEXT
12201 if test "$TARGET_EXEEXT" = ".exe"; then
12202 SQLITE_OS_UNIX=0
12203 SQLITE_OS_WIN=1
12204 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
12205 else
12206 SQLITE_OS_UNIX=1
12207 SQLITE_OS_WIN=0
12208 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
12216 ##########
12217 # Figure out all the parameters needed to compile against Tcl.
12219 # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
12220 # macros in the in the tcl.m4 file of the standard TCL distribution.
12221 # Those macros could not be used directly since we have to make some
12222 # minor changes to accomodate systems that do not have TCL installed.
12224 # Check whether --enable-tcl was given.
12225 if test "${enable_tcl+set}" = set; then :
12226 enableval=$enable_tcl; use_tcl=$enableval
12227 else
12228 use_tcl=yes
12231 if test "${use_tcl}" = "yes" ; then
12233 # Check whether --with-tcl was given.
12234 if test "${with_tcl+set}" = set; then :
12235 withval=$with_tcl; with_tclconfig=${withval}
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
12239 $as_echo_n "checking for Tcl configuration... " >&6; }
12240 if ${ac_cv_c_tclconfig+:} false; then :
12241 $as_echo_n "(cached) " >&6
12242 else
12244 # First check to see if --with-tcl was specified.
12245 if test x"${with_tclconfig}" != x ; then
12246 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12247 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
12248 else
12249 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
12253 # Start autosearch by asking tclsh
12254 if test x"${ac_cv_c_tclconfig}" = x ; then
12255 if test x"$cross_compiling" = xno; then
12256 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
12258 if test -f "$i/tclConfig.sh" ; then
12259 ac_cv_c_tclconfig="$i"
12260 break
12262 done
12266 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
12267 # So try again after applying corrections.
12268 if test x"${ac_cv_c_tclconfig}" = x ; then
12269 if test x"$cross_compiling" = xno; then
12270 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
12272 if test -f "$i/tclConfig.sh" ; then
12273 ac_cv_c_tclconfig="$i"
12274 break
12276 done
12280 # then check for a private Tcl installation
12281 if test x"${ac_cv_c_tclconfig}" = x ; then
12282 for i in \
12283 ../tcl \
12284 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12285 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12286 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12287 ../../tcl \
12288 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12289 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12290 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12291 ../../../tcl \
12292 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12293 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12294 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
12296 if test -f "$i/unix/tclConfig.sh" ; then
12297 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12298 break
12300 done
12303 # check in a few common install locations
12304 if test x"${ac_cv_c_tclconfig}" = x ; then
12305 for i in \
12306 `ls -d ${libdir} 2>/dev/null` \
12307 `ls -d /usr/local/lib 2>/dev/null` \
12308 `ls -d /usr/contrib/lib 2>/dev/null` \
12309 `ls -d /usr/lib 2>/dev/null`
12311 if test -f "$i/tclConfig.sh" ; then
12312 ac_cv_c_tclconfig=`(cd $i; pwd)`
12313 break
12315 done
12318 # check in a few other private locations
12319 if test x"${ac_cv_c_tclconfig}" = x ; then
12320 for i in \
12321 ${srcdir}/../tcl \
12322 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12323 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12324 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
12326 if test -f "$i/unix/tclConfig.sh" ; then
12327 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12328 break
12330 done
12336 if test x"${ac_cv_c_tclconfig}" = x ; then
12337 use_tcl=no
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
12339 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
12341 $as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
12343 $as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
12344 else
12345 TCL_BIN_DIR=${ac_cv_c_tclconfig}
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
12347 $as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
12350 $as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
12351 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
12353 $as_echo "loading" >&6; }
12354 . $TCL_BIN_DIR/tclConfig.sh
12355 else
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
12357 $as_echo "file not found" >&6; }
12361 # If the TCL_BIN_DIR is the build directory (not the install directory),
12362 # then set the common variable name to the value of the build variables.
12363 # For example, the variable TCL_LIB_SPEC will be set to the value
12364 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12365 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12366 # installed and uninstalled version of Tcl.
12369 if test -f $TCL_BIN_DIR/Makefile ; then
12370 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
12371 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
12372 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
12376 # eval is required to do the TCL_DBGX substitution
12379 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12380 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12381 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12383 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12384 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12385 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12402 if test "${use_tcl}" = "no" ; then
12403 HAVE_TCL=""
12404 else
12405 HAVE_TCL=1
12409 ##########
12410 # Figure out what C libraries are required to compile programs
12411 # that use "readline()" library.
12413 TARGET_READLINE_LIBS=""
12414 TARGET_READLINE_INC=""
12415 TARGET_HAVE_READLINE=0
12416 TARGET_HAVE_EDITLINE=0
12417 # Check whether --enable-editline was given.
12418 if test "${enable_editline+set}" = set; then :
12419 enableval=$enable_editline; with_editline=$enableval
12420 else
12421 with_editline=auto
12424 # Check whether --enable-readline was given.
12425 if test "${enable_readline+set}" = set; then :
12426 enableval=$enable_readline; with_readline=$enableval
12427 else
12428 with_readline=auto
12432 if test x"$with_editline" != xno; then
12433 sLIBS=$LIBS
12434 LIBS=""
12435 TARGET_HAVE_EDITLINE=1
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
12437 $as_echo_n "checking for library containing readline... " >&6; }
12438 if ${ac_cv_search_readline+:} false; then :
12439 $as_echo_n "(cached) " >&6
12440 else
12441 ac_func_search_save_LIBS=$LIBS
12442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12443 /* end confdefs.h. */
12445 /* Override any GCC internal prototype to avoid an error.
12446 Use char because int might match the return type of a GCC
12447 builtin and then its argument prototype would still apply. */
12448 #ifdef __cplusplus
12449 extern "C"
12450 #endif
12451 char readline ();
12453 main ()
12455 return readline ();
12457 return 0;
12459 _ACEOF
12460 for ac_lib in '' edit; do
12461 if test -z "$ac_lib"; then
12462 ac_res="none required"
12463 else
12464 ac_res=-l$ac_lib
12465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12467 if ac_fn_c_try_link "$LINENO"; then :
12468 ac_cv_search_readline=$ac_res
12470 rm -f core conftest.err conftest.$ac_objext \
12471 conftest$ac_exeext
12472 if ${ac_cv_search_readline+:} false; then :
12473 break
12475 done
12476 if ${ac_cv_search_readline+:} false; then :
12478 else
12479 ac_cv_search_readline=no
12481 rm conftest.$ac_ext
12482 LIBS=$ac_func_search_save_LIBS
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
12485 $as_echo "$ac_cv_search_readline" >&6; }
12486 ac_res=$ac_cv_search_readline
12487 if test "$ac_res" != no; then :
12488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12489 with_readline=no
12490 else
12491 TARGET_HAVE_EDITLINE=0
12494 TARGET_READLINE_LIBS=$LIBS
12495 LIBS=$sLIBS
12497 if test x"$with_readline" != xno; then
12498 found="yes"
12501 # Check whether --with-readline-lib was given.
12502 if test "${with_readline_lib+set}" = set; then :
12503 withval=$with_readline_lib; with_readline_lib=$withval
12504 else
12505 with_readline_lib="auto"
12508 if test "x$with_readline_lib" = xauto; then
12509 save_LIBS="$LIBS"
12510 LIBS=""
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
12512 $as_echo_n "checking for library containing tgetent... " >&6; }
12513 if ${ac_cv_search_tgetent+:} false; then :
12514 $as_echo_n "(cached) " >&6
12515 else
12516 ac_func_search_save_LIBS=$LIBS
12517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518 /* end confdefs.h. */
12520 /* Override any GCC internal prototype to avoid an error.
12521 Use char because int might match the return type of a GCC
12522 builtin and then its argument prototype would still apply. */
12523 #ifdef __cplusplus
12524 extern "C"
12525 #endif
12526 char tgetent ();
12528 main ()
12530 return tgetent ();
12532 return 0;
12534 _ACEOF
12535 for ac_lib in '' readline ncurses curses termcap; do
12536 if test -z "$ac_lib"; then
12537 ac_res="none required"
12538 else
12539 ac_res=-l$ac_lib
12540 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12542 if ac_fn_c_try_link "$LINENO"; then :
12543 ac_cv_search_tgetent=$ac_res
12545 rm -f core conftest.err conftest.$ac_objext \
12546 conftest$ac_exeext
12547 if ${ac_cv_search_tgetent+:} false; then :
12548 break
12550 done
12551 if ${ac_cv_search_tgetent+:} false; then :
12553 else
12554 ac_cv_search_tgetent=no
12556 rm conftest.$ac_ext
12557 LIBS=$ac_func_search_save_LIBS
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
12560 $as_echo "$ac_cv_search_tgetent" >&6; }
12561 ac_res=$ac_cv_search_tgetent
12562 if test "$ac_res" != no; then :
12563 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12564 term_LIBS="$LIBS"
12565 else
12566 term_LIBS=""
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
12570 $as_echo_n "checking for readline in -lreadline... " >&6; }
12571 if ${ac_cv_lib_readline_readline+:} false; then :
12572 $as_echo_n "(cached) " >&6
12573 else
12574 ac_check_lib_save_LIBS=$LIBS
12575 LIBS="-lreadline $LIBS"
12576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12577 /* end confdefs.h. */
12579 /* Override any GCC internal prototype to avoid an error.
12580 Use char because int might match the return type of a GCC
12581 builtin and then its argument prototype would still apply. */
12582 #ifdef __cplusplus
12583 extern "C"
12584 #endif
12585 char readline ();
12587 main ()
12589 return readline ();
12591 return 0;
12593 _ACEOF
12594 if ac_fn_c_try_link "$LINENO"; then :
12595 ac_cv_lib_readline_readline=yes
12596 else
12597 ac_cv_lib_readline_readline=no
12599 rm -f core conftest.err conftest.$ac_objext \
12600 conftest$ac_exeext conftest.$ac_ext
12601 LIBS=$ac_check_lib_save_LIBS
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
12604 $as_echo "$ac_cv_lib_readline_readline" >&6; }
12605 if test "x$ac_cv_lib_readline_readline" = xyes; then :
12606 TARGET_READLINE_LIBS="-lreadline"
12607 else
12608 found="no"
12611 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
12612 LIBS="$save_LIBS"
12613 else
12614 TARGET_READLINE_LIBS="$with_readline_lib"
12618 # Check whether --with-readline-inc was given.
12619 if test "${with_readline_inc+set}" = set; then :
12620 withval=$with_readline_inc; with_readline_inc=$withval
12621 else
12622 with_readline_inc="auto"
12625 if test "x$with_readline_inc" = xauto; then
12626 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
12627 if test "x$ac_cv_header_readline_h" = xyes; then :
12628 found="yes"
12629 else
12631 found="no"
12632 if test "$cross_compiling" != yes; then
12633 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
12634 for subdir in include include/readline; do
12635 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
12637 $as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
12638 if eval \${$as_ac_File+:} false; then :
12639 $as_echo_n "(cached) " >&6
12640 else
12641 test "$cross_compiling" = yes &&
12642 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
12643 if test -r "$dir/$subdir/readline.h"; then
12644 eval "$as_ac_File=yes"
12645 else
12646 eval "$as_ac_File=no"
12649 eval ac_res=\$$as_ac_File
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12651 $as_echo "$ac_res" >&6; }
12652 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
12653 found=yes
12656 if test "$found" = "yes"; then
12657 TARGET_READLINE_INC="-I$dir/$subdir"
12658 break
12660 done
12661 test "$found" = "yes" && break
12662 done
12668 else
12669 TARGET_READLINE_INC="$with_readline_inc"
12672 if test x"$found" = xno; then
12673 TARGET_READLINE_LIBS=""
12674 TARGET_READLINE_INC=""
12675 TARGET_HAVE_READLINE=0
12676 else
12677 TARGET_HAVE_READLINE=1
12686 ##########
12687 # Figure out what C libraries are required to compile programs
12688 # that use "fdatasync()" function.
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
12691 $as_echo_n "checking for library containing fdatasync... " >&6; }
12692 if ${ac_cv_search_fdatasync+:} false; then :
12693 $as_echo_n "(cached) " >&6
12694 else
12695 ac_func_search_save_LIBS=$LIBS
12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697 /* end confdefs.h. */
12699 /* Override any GCC internal prototype to avoid an error.
12700 Use char because int might match the return type of a GCC
12701 builtin and then its argument prototype would still apply. */
12702 #ifdef __cplusplus
12703 extern "C"
12704 #endif
12705 char fdatasync ();
12707 main ()
12709 return fdatasync ();
12711 return 0;
12713 _ACEOF
12714 for ac_lib in '' rt; do
12715 if test -z "$ac_lib"; then
12716 ac_res="none required"
12717 else
12718 ac_res=-l$ac_lib
12719 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12721 if ac_fn_c_try_link "$LINENO"; then :
12722 ac_cv_search_fdatasync=$ac_res
12724 rm -f core conftest.err conftest.$ac_objext \
12725 conftest$ac_exeext
12726 if ${ac_cv_search_fdatasync+:} false; then :
12727 break
12729 done
12730 if ${ac_cv_search_fdatasync+:} false; then :
12732 else
12733 ac_cv_search_fdatasync=no
12735 rm conftest.$ac_ext
12736 LIBS=$ac_func_search_save_LIBS
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
12739 $as_echo "$ac_cv_search_fdatasync" >&6; }
12740 ac_res=$ac_cv_search_fdatasync
12741 if test "$ac_res" != no; then :
12742 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12747 #########
12748 # check for debug enabled
12749 # Check whether --enable-debug was given.
12750 if test "${enable_debug+set}" = set; then :
12751 enableval=$enable_debug; use_debug=$enableval
12752 else
12753 use_debug=no
12756 if test "${use_debug}" = "yes" ; then
12757 TARGET_DEBUG="-DSQLITE_DEBUG=1"
12758 else
12759 TARGET_DEBUG="-DNDEBUG"
12763 #########
12764 # See whether we should use the amalgamation to build
12765 # Check whether --enable-amalgamation was given.
12766 if test "${enable_amalgamation+set}" = set; then :
12767 enableval=$enable_amalgamation; use_amalgamation=$enableval
12768 else
12769 use_amalgamation=yes
12772 if test "${use_amalgamation}" != "yes" ; then
12773 USE_AMALGAMATION=0
12777 #########
12778 # See whether we should allow loadable extensions
12779 # Check whether --enable-load-extension was given.
12780 if test "${enable_load_extension+set}" = set; then :
12781 enableval=$enable_load_extension; use_loadextension=$enableval
12782 else
12783 use_loadextension=yes
12786 if test "${use_loadextension}" = "yes" ; then
12787 OPT_FEATURE_FLAGS=""
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12789 $as_echo_n "checking for library containing dlopen... " >&6; }
12790 if ${ac_cv_search_dlopen+:} false; then :
12791 $as_echo_n "(cached) " >&6
12792 else
12793 ac_func_search_save_LIBS=$LIBS
12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795 /* end confdefs.h. */
12797 /* Override any GCC internal prototype to avoid an error.
12798 Use char because int might match the return type of a GCC
12799 builtin and then its argument prototype would still apply. */
12800 #ifdef __cplusplus
12801 extern "C"
12802 #endif
12803 char dlopen ();
12805 main ()
12807 return dlopen ();
12809 return 0;
12811 _ACEOF
12812 for ac_lib in '' dl; do
12813 if test -z "$ac_lib"; then
12814 ac_res="none required"
12815 else
12816 ac_res=-l$ac_lib
12817 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12819 if ac_fn_c_try_link "$LINENO"; then :
12820 ac_cv_search_dlopen=$ac_res
12822 rm -f core conftest.err conftest.$ac_objext \
12823 conftest$ac_exeext
12824 if ${ac_cv_search_dlopen+:} false; then :
12825 break
12827 done
12828 if ${ac_cv_search_dlopen+:} false; then :
12830 else
12831 ac_cv_search_dlopen=no
12833 rm conftest.$ac_ext
12834 LIBS=$ac_func_search_save_LIBS
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12837 $as_echo "$ac_cv_search_dlopen" >&6; }
12838 ac_res=$ac_cv_search_dlopen
12839 if test "$ac_res" != no; then :
12840 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12844 else
12845 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
12848 #########
12849 # See whether we should enable Full Text Search extensions
12850 # Check whether --enable-fts3 was given.
12851 if test "${enable_fts3+set}" = set; then :
12852 enableval=$enable_fts3; enable_fts3=yes
12853 else
12854 enable_fts3=no
12857 if test "${enable_fts3}" = "yes" ; then
12858 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS3"
12860 # Check whether --enable-fts4 was given.
12861 if test "${enable_fts4+set}" = set; then :
12862 enableval=$enable_fts4; enable_fts4=yes
12863 else
12864 enable_fts4=no
12867 if test "${enable_fts4}" = "yes" ; then
12868 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS4"
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
12870 $as_echo_n "checking for library containing log... " >&6; }
12871 if ${ac_cv_search_log+:} false; then :
12872 $as_echo_n "(cached) " >&6
12873 else
12874 ac_func_search_save_LIBS=$LIBS
12875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12876 /* end confdefs.h. */
12878 /* Override any GCC internal prototype to avoid an error.
12879 Use char because int might match the return type of a GCC
12880 builtin and then its argument prototype would still apply. */
12881 #ifdef __cplusplus
12882 extern "C"
12883 #endif
12884 char log ();
12886 main ()
12888 return log ();
12890 return 0;
12892 _ACEOF
12893 for ac_lib in '' m; do
12894 if test -z "$ac_lib"; then
12895 ac_res="none required"
12896 else
12897 ac_res=-l$ac_lib
12898 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12900 if ac_fn_c_try_link "$LINENO"; then :
12901 ac_cv_search_log=$ac_res
12903 rm -f core conftest.err conftest.$ac_objext \
12904 conftest$ac_exeext
12905 if ${ac_cv_search_log+:} false; then :
12906 break
12908 done
12909 if ${ac_cv_search_log+:} false; then :
12911 else
12912 ac_cv_search_log=no
12914 rm conftest.$ac_ext
12915 LIBS=$ac_func_search_save_LIBS
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
12918 $as_echo "$ac_cv_search_log" >&6; }
12919 ac_res=$ac_cv_search_log
12920 if test "$ac_res" != no; then :
12921 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12926 # Check whether --enable-fts5 was given.
12927 if test "${enable_fts5+set}" = set; then :
12928 enableval=$enable_fts5; enable_fts5=yes
12929 else
12930 enable_fts5=no
12933 if test "${enable_fts5}" = "yes" ; then
12934 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS5"
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
12936 $as_echo_n "checking for library containing log... " >&6; }
12937 if ${ac_cv_search_log+:} false; then :
12938 $as_echo_n "(cached) " >&6
12939 else
12940 ac_func_search_save_LIBS=$LIBS
12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h. */
12944 /* Override any GCC internal prototype to avoid an error.
12945 Use char because int might match the return type of a GCC
12946 builtin and then its argument prototype would still apply. */
12947 #ifdef __cplusplus
12948 extern "C"
12949 #endif
12950 char log ();
12952 main ()
12954 return log ();
12956 return 0;
12958 _ACEOF
12959 for ac_lib in '' m; do
12960 if test -z "$ac_lib"; then
12961 ac_res="none required"
12962 else
12963 ac_res=-l$ac_lib
12964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12966 if ac_fn_c_try_link "$LINENO"; then :
12967 ac_cv_search_log=$ac_res
12969 rm -f core conftest.err conftest.$ac_objext \
12970 conftest$ac_exeext
12971 if ${ac_cv_search_log+:} false; then :
12972 break
12974 done
12975 if ${ac_cv_search_log+:} false; then :
12977 else
12978 ac_cv_search_log=no
12980 rm conftest.$ac_ext
12981 LIBS=$ac_func_search_save_LIBS
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
12984 $as_echo "$ac_cv_search_log" >&6; }
12985 ac_res=$ac_cv_search_log
12986 if test "$ac_res" != no; then :
12987 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12993 #########
12994 # See whether we should enable JSON1
12995 # Check whether --enable-json1 was given.
12996 if test "${enable_json1+set}" = set; then :
12997 enableval=$enable_json1; enable_json1=yes
12998 else
12999 enable_json1=no
13002 if test "${enable_json1}" = "yes" ; then
13003 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_JSON1"
13006 #########
13007 # See whether we should enable RTREE
13008 # Check whether --enable-rtree was given.
13009 if test "${enable_rtree+set}" = set; then :
13010 enableval=$enable_rtree; enable_rtree=yes
13011 else
13012 enable_rtree=no
13015 if test "${enable_rtree}" = "yes" ; then
13016 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_RTREE"
13019 #########
13020 # attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
13021 for option in $CFLAGS $CPPFLAGS
13023 case $option in
13024 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
13025 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
13026 esac
13027 done
13031 # attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
13032 ac_temp_CFLAGS=""
13033 for option in $CFLAGS
13035 case $option in
13036 -DSQLITE_OMIT*) ;;
13037 -DSQLITE_ENABLE*) ;;
13038 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
13039 esac
13040 done
13041 CFLAGS=$ac_temp_CFLAGS
13044 # attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
13045 ac_temp_CPPFLAGS=""
13046 for option in $CPPFLAGS
13048 case $option in
13049 -DSQLITE_OMIT*) ;;
13050 -DSQLITE_ENABLE*) ;;
13051 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
13052 esac
13053 done
13054 CPPFLAGS=$ac_temp_CPPFLAGS
13057 # attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
13058 ac_temp_BUILD_CFLAGS=""
13059 for option in $BUILD_CFLAGS
13061 case $option in
13062 -DSQLITE_OMIT*) ;;
13063 -DSQLITE_ENABLE*) ;;
13064 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
13065 esac
13066 done
13067 BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
13070 #########
13071 # See whether we should use GCOV
13072 # Check whether --enable-gcov was given.
13073 if test "${enable_gcov+set}" = set; then :
13074 enableval=$enable_gcov; use_gcov=$enableval
13075 else
13076 use_gcov=no
13079 if test "${use_gcov}" = "yes" ; then
13080 USE_GCOV=1
13081 else
13082 USE_GCOV=0
13087 #########
13088 # Output the config header
13089 ac_config_headers="$ac_config_headers config.h"
13092 #########
13093 # Generate the output files.
13096 ac_config_files="$ac_config_files Makefile sqlcipher.pc"
13098 cat >confcache <<\_ACEOF
13099 # This file is a shell script that caches the results of configure
13100 # tests run on this system so they can be shared between configure
13101 # scripts and configure runs, see configure's option --config-cache.
13102 # It is not useful on other systems. If it contains results you don't
13103 # want to keep, you may remove or edit it.
13105 # config.status only pays attention to the cache file if you give it
13106 # the --recheck option to rerun configure.
13108 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13109 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13110 # following values.
13112 _ACEOF
13114 # The following way of writing the cache mishandles newlines in values,
13115 # but we know of no workaround that is simple, portable, and efficient.
13116 # So, we kill variables containing newlines.
13117 # Ultrix sh set writes to stderr and can't be redirected directly,
13118 # and sets the high bit in the cache file unless we assign to the vars.
13120 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13121 eval ac_val=\$$ac_var
13122 case $ac_val in #(
13123 *${as_nl}*)
13124 case $ac_var in #(
13125 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13126 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13127 esac
13128 case $ac_var in #(
13129 _ | IFS | as_nl) ;; #(
13130 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13131 *) { eval $ac_var=; unset $ac_var;} ;;
13132 esac ;;
13133 esac
13134 done
13136 (set) 2>&1 |
13137 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13138 *${as_nl}ac_space=\ *)
13139 # `set' does not quote correctly, so add quotes: double-quote
13140 # substitution turns \\\\ into \\, and sed turns \\ into \.
13141 sed -n \
13142 "s/'/'\\\\''/g;
13143 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13144 ;; #(
13146 # `set' quotes correctly as required by POSIX, so do not add quotes.
13147 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13149 esac |
13150 sort
13152 sed '
13153 /^ac_cv_env_/b end
13154 t clear
13155 :clear
13156 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13157 t end
13158 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13159 :end' >>confcache
13160 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13161 if test -w "$cache_file"; then
13162 if test "x$cache_file" != "x/dev/null"; then
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13164 $as_echo "$as_me: updating cache $cache_file" >&6;}
13165 if test ! -f "$cache_file" || test -h "$cache_file"; then
13166 cat confcache >"$cache_file"
13167 else
13168 case $cache_file in #(
13169 */* | ?:*)
13170 mv -f confcache "$cache_file"$$ &&
13171 mv -f "$cache_file"$$ "$cache_file" ;; #(
13173 mv -f confcache "$cache_file" ;;
13174 esac
13177 else
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13179 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13182 rm -f confcache
13184 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13185 # Let make expand exec_prefix.
13186 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13188 DEFS=-DHAVE_CONFIG_H
13190 ac_libobjs=
13191 ac_ltlibobjs=
13193 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13194 # 1. Remove the extension, and $U if already installed.
13195 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13196 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13197 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13198 # will be set to the directory where LIBOBJS objects are built.
13199 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13200 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13201 done
13202 LIBOBJS=$ac_libobjs
13204 LTLIBOBJS=$ac_ltlibobjs
13208 : "${CONFIG_STATUS=./config.status}"
13209 ac_write_fail=0
13210 ac_clean_files_save=$ac_clean_files
13211 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13213 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13214 as_write_fail=0
13215 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13216 #! $SHELL
13217 # Generated by $as_me.
13218 # Run this file to recreate the current configuration.
13219 # Compiler output produced by configure, useful for debugging
13220 # configure, is in config.log if it exists.
13222 debug=false
13223 ac_cs_recheck=false
13224 ac_cs_silent=false
13226 SHELL=\${CONFIG_SHELL-$SHELL}
13227 export SHELL
13228 _ASEOF
13229 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13230 ## -------------------- ##
13231 ## M4sh Initialization. ##
13232 ## -------------------- ##
13234 # Be more Bourne compatible
13235 DUALCASE=1; export DUALCASE # for MKS sh
13236 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13237 emulate sh
13238 NULLCMD=:
13239 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13240 # is contrary to our usage. Disable this feature.
13241 alias -g '${1+"$@"}'='"$@"'
13242 setopt NO_GLOB_SUBST
13243 else
13244 case `(set -o) 2>/dev/null` in #(
13245 *posix*) :
13246 set -o posix ;; #(
13247 *) :
13249 esac
13253 as_nl='
13255 export as_nl
13256 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13257 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13258 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13259 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13260 # Prefer a ksh shell builtin over an external printf program on Solaris,
13261 # but without wasting forks for bash or zsh.
13262 if test -z "$BASH_VERSION$ZSH_VERSION" \
13263 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13264 as_echo='print -r --'
13265 as_echo_n='print -rn --'
13266 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13267 as_echo='printf %s\n'
13268 as_echo_n='printf %s'
13269 else
13270 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13271 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13272 as_echo_n='/usr/ucb/echo -n'
13273 else
13274 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13275 as_echo_n_body='eval
13276 arg=$1;
13277 case $arg in #(
13278 *"$as_nl"*)
13279 expr "X$arg" : "X\\(.*\\)$as_nl";
13280 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13281 esac;
13282 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13284 export as_echo_n_body
13285 as_echo_n='sh -c $as_echo_n_body as_echo'
13287 export as_echo_body
13288 as_echo='sh -c $as_echo_body as_echo'
13291 # The user is always right.
13292 if test "${PATH_SEPARATOR+set}" != set; then
13293 PATH_SEPARATOR=:
13294 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13295 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13296 PATH_SEPARATOR=';'
13301 # IFS
13302 # We need space, tab and new line, in precisely that order. Quoting is
13303 # there to prevent editors from complaining about space-tab.
13304 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13305 # splitting by setting IFS to empty value.)
13306 IFS=" "" $as_nl"
13308 # Find who we are. Look in the path if we contain no directory separator.
13309 as_myself=
13310 case $0 in #((
13311 *[\\/]* ) as_myself=$0 ;;
13312 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313 for as_dir in $PATH
13315 IFS=$as_save_IFS
13316 test -z "$as_dir" && as_dir=.
13317 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13318 done
13319 IFS=$as_save_IFS
13322 esac
13323 # We did not find ourselves, most probably we were run as `sh COMMAND'
13324 # in which case we are not to be found in the path.
13325 if test "x$as_myself" = x; then
13326 as_myself=$0
13328 if test ! -f "$as_myself"; then
13329 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13330 exit 1
13333 # Unset variables that we do not need and which cause bugs (e.g. in
13334 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13335 # suppresses any "Segmentation fault" message there. '((' could
13336 # trigger a bug in pdksh 5.2.14.
13337 for as_var in BASH_ENV ENV MAIL MAILPATH
13338 do eval test x\${$as_var+set} = xset \
13339 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13340 done
13341 PS1='$ '
13342 PS2='> '
13343 PS4='+ '
13345 # NLS nuisances.
13346 LC_ALL=C
13347 export LC_ALL
13348 LANGUAGE=C
13349 export LANGUAGE
13351 # CDPATH.
13352 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13355 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13356 # ----------------------------------------
13357 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13358 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13359 # script with STATUS, using 1 if that was 0.
13360 as_fn_error ()
13362 as_status=$1; test $as_status -eq 0 && as_status=1
13363 if test "$4"; then
13364 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13365 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13367 $as_echo "$as_me: error: $2" >&2
13368 as_fn_exit $as_status
13369 } # as_fn_error
13372 # as_fn_set_status STATUS
13373 # -----------------------
13374 # Set $? to STATUS, without forking.
13375 as_fn_set_status ()
13377 return $1
13378 } # as_fn_set_status
13380 # as_fn_exit STATUS
13381 # -----------------
13382 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13383 as_fn_exit ()
13385 set +e
13386 as_fn_set_status $1
13387 exit $1
13388 } # as_fn_exit
13390 # as_fn_unset VAR
13391 # ---------------
13392 # Portably unset VAR.
13393 as_fn_unset ()
13395 { eval $1=; unset $1;}
13397 as_unset=as_fn_unset
13398 # as_fn_append VAR VALUE
13399 # ----------------------
13400 # Append the text in VALUE to the end of the definition contained in VAR. Take
13401 # advantage of any shell optimizations that allow amortized linear growth over
13402 # repeated appends, instead of the typical quadratic growth present in naive
13403 # implementations.
13404 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13405 eval 'as_fn_append ()
13407 eval $1+=\$2
13409 else
13410 as_fn_append ()
13412 eval $1=\$$1\$2
13414 fi # as_fn_append
13416 # as_fn_arith ARG...
13417 # ------------------
13418 # Perform arithmetic evaluation on the ARGs, and store the result in the
13419 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13420 # must be portable across $(()) and expr.
13421 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13422 eval 'as_fn_arith ()
13424 as_val=$(( $* ))
13426 else
13427 as_fn_arith ()
13429 as_val=`expr "$@" || test $? -eq 1`
13431 fi # as_fn_arith
13434 if expr a : '\(a\)' >/dev/null 2>&1 &&
13435 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13436 as_expr=expr
13437 else
13438 as_expr=false
13441 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13442 as_basename=basename
13443 else
13444 as_basename=false
13447 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13448 as_dirname=dirname
13449 else
13450 as_dirname=false
13453 as_me=`$as_basename -- "$0" ||
13454 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13455 X"$0" : 'X\(//\)$' \| \
13456 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13457 $as_echo X/"$0" |
13458 sed '/^.*\/\([^/][^/]*\)\/*$/{
13459 s//\1/
13462 /^X\/\(\/\/\)$/{
13463 s//\1/
13466 /^X\/\(\/\).*/{
13467 s//\1/
13470 s/.*/./; q'`
13472 # Avoid depending upon Character Ranges.
13473 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13474 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13475 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13476 as_cr_digits='0123456789'
13477 as_cr_alnum=$as_cr_Letters$as_cr_digits
13479 ECHO_C= ECHO_N= ECHO_T=
13480 case `echo -n x` in #(((((
13481 -n*)
13482 case `echo 'xy\c'` in
13483 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13484 xy) ECHO_C='\c';;
13485 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13486 ECHO_T=' ';;
13487 esac;;
13489 ECHO_N='-n';;
13490 esac
13492 rm -f conf$$ conf$$.exe conf$$.file
13493 if test -d conf$$.dir; then
13494 rm -f conf$$.dir/conf$$.file
13495 else
13496 rm -f conf$$.dir
13497 mkdir conf$$.dir 2>/dev/null
13499 if (echo >conf$$.file) 2>/dev/null; then
13500 if ln -s conf$$.file conf$$ 2>/dev/null; then
13501 as_ln_s='ln -s'
13502 # ... but there are two gotchas:
13503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13505 # In both cases, we have to default to `cp -pR'.
13506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13507 as_ln_s='cp -pR'
13508 elif ln conf$$.file conf$$ 2>/dev/null; then
13509 as_ln_s=ln
13510 else
13511 as_ln_s='cp -pR'
13513 else
13514 as_ln_s='cp -pR'
13516 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13517 rmdir conf$$.dir 2>/dev/null
13520 # as_fn_mkdir_p
13521 # -------------
13522 # Create "$as_dir" as a directory, including parents if necessary.
13523 as_fn_mkdir_p ()
13526 case $as_dir in #(
13527 -*) as_dir=./$as_dir;;
13528 esac
13529 test -d "$as_dir" || eval $as_mkdir_p || {
13530 as_dirs=
13531 while :; do
13532 case $as_dir in #(
13533 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13534 *) as_qdir=$as_dir;;
13535 esac
13536 as_dirs="'$as_qdir' $as_dirs"
13537 as_dir=`$as_dirname -- "$as_dir" ||
13538 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13539 X"$as_dir" : 'X\(//\)[^/]' \| \
13540 X"$as_dir" : 'X\(//\)$' \| \
13541 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13542 $as_echo X"$as_dir" |
13543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13544 s//\1/
13547 /^X\(\/\/\)[^/].*/{
13548 s//\1/
13551 /^X\(\/\/\)$/{
13552 s//\1/
13555 /^X\(\/\).*/{
13556 s//\1/
13559 s/.*/./; q'`
13560 test -d "$as_dir" && break
13561 done
13562 test -z "$as_dirs" || eval "mkdir $as_dirs"
13563 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13566 } # as_fn_mkdir_p
13567 if mkdir -p . 2>/dev/null; then
13568 as_mkdir_p='mkdir -p "$as_dir"'
13569 else
13570 test -d ./-p && rmdir ./-p
13571 as_mkdir_p=false
13575 # as_fn_executable_p FILE
13576 # -----------------------
13577 # Test if FILE is an executable regular file.
13578 as_fn_executable_p ()
13580 test -f "$1" && test -x "$1"
13581 } # as_fn_executable_p
13582 as_test_x='test -x'
13583 as_executable_p=as_fn_executable_p
13585 # Sed expression to map a string onto a valid CPP name.
13586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13588 # Sed expression to map a string onto a valid variable name.
13589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13592 exec 6>&1
13593 ## ----------------------------------- ##
13594 ## Main body of $CONFIG_STATUS script. ##
13595 ## ----------------------------------- ##
13596 _ASEOF
13597 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13600 # Save the log message, to keep $0 and so on meaningful, and to
13601 # report actual input values of CONFIG_FILES etc. instead of their
13602 # values after options handling.
13603 ac_log="
13604 This file was extended by sqlcipher $as_me 3.11.0, which was
13605 generated by GNU Autoconf 2.69. Invocation command line was
13607 CONFIG_FILES = $CONFIG_FILES
13608 CONFIG_HEADERS = $CONFIG_HEADERS
13609 CONFIG_LINKS = $CONFIG_LINKS
13610 CONFIG_COMMANDS = $CONFIG_COMMANDS
13611 $ $0 $@
13613 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13616 _ACEOF
13618 case $ac_config_files in *"
13619 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13620 esac
13622 case $ac_config_headers in *"
13623 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13624 esac
13627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13628 # Files that config.status was made for.
13629 config_files="$ac_config_files"
13630 config_headers="$ac_config_headers"
13631 config_commands="$ac_config_commands"
13633 _ACEOF
13635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13636 ac_cs_usage="\
13637 \`$as_me' instantiates files and other configuration actions
13638 from templates according to the current configuration. Unless the files
13639 and actions are specified as TAGs, all are instantiated by default.
13641 Usage: $0 [OPTION]... [TAG]...
13643 -h, --help print this help, then exit
13644 -V, --version print version number and configuration settings, then exit
13645 --config print configuration, then exit
13646 -q, --quiet, --silent
13647 do not print progress messages
13648 -d, --debug don't remove temporary files
13649 --recheck update $as_me by reconfiguring in the same conditions
13650 --file=FILE[:TEMPLATE]
13651 instantiate the configuration file FILE
13652 --header=FILE[:TEMPLATE]
13653 instantiate the configuration header FILE
13655 Configuration files:
13656 $config_files
13658 Configuration headers:
13659 $config_headers
13661 Configuration commands:
13662 $config_commands
13664 Report bugs to the package provider."
13666 _ACEOF
13667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13668 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13669 ac_cs_version="\\
13670 sqlcipher config.status 3.11.0
13671 configured by $0, generated by GNU Autoconf 2.69,
13672 with options \\"\$ac_cs_config\\"
13674 Copyright (C) 2012 Free Software Foundation, Inc.
13675 This config.status script is free software; the Free Software Foundation
13676 gives unlimited permission to copy, distribute and modify it."
13678 ac_pwd='$ac_pwd'
13679 srcdir='$srcdir'
13680 INSTALL='$INSTALL'
13681 AWK='$AWK'
13682 test -n "\$AWK" || AWK=awk
13683 _ACEOF
13685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13686 # The default lists apply if the user does not specify any file.
13687 ac_need_defaults=:
13688 while test $# != 0
13690 case $1 in
13691 --*=?*)
13692 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13693 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13694 ac_shift=:
13696 --*=)
13697 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13698 ac_optarg=
13699 ac_shift=:
13702 ac_option=$1
13703 ac_optarg=$2
13704 ac_shift=shift
13706 esac
13708 case $ac_option in
13709 # Handling of the options.
13710 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13711 ac_cs_recheck=: ;;
13712 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13713 $as_echo "$ac_cs_version"; exit ;;
13714 --config | --confi | --conf | --con | --co | --c )
13715 $as_echo "$ac_cs_config"; exit ;;
13716 --debug | --debu | --deb | --de | --d | -d )
13717 debug=: ;;
13718 --file | --fil | --fi | --f )
13719 $ac_shift
13720 case $ac_optarg in
13721 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13722 '') as_fn_error $? "missing file argument" ;;
13723 esac
13724 as_fn_append CONFIG_FILES " '$ac_optarg'"
13725 ac_need_defaults=false;;
13726 --header | --heade | --head | --hea )
13727 $ac_shift
13728 case $ac_optarg in
13729 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13730 esac
13731 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13732 ac_need_defaults=false;;
13733 --he | --h)
13734 # Conflict between --help and --header
13735 as_fn_error $? "ambiguous option: \`$1'
13736 Try \`$0 --help' for more information.";;
13737 --help | --hel | -h )
13738 $as_echo "$ac_cs_usage"; exit ;;
13739 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13740 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13741 ac_cs_silent=: ;;
13743 # This is an error.
13744 -*) as_fn_error $? "unrecognized option: \`$1'
13745 Try \`$0 --help' for more information." ;;
13747 *) as_fn_append ac_config_targets " $1"
13748 ac_need_defaults=false ;;
13750 esac
13751 shift
13752 done
13754 ac_configure_extra_args=
13756 if $ac_cs_silent; then
13757 exec 6>/dev/null
13758 ac_configure_extra_args="$ac_configure_extra_args --silent"
13761 _ACEOF
13762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13763 if \$ac_cs_recheck; then
13764 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13765 shift
13766 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13767 CONFIG_SHELL='$SHELL'
13768 export CONFIG_SHELL
13769 exec "\$@"
13772 _ACEOF
13773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13774 exec 5>>config.log
13776 echo
13777 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13778 ## Running $as_me. ##
13779 _ASBOX
13780 $as_echo "$ac_log"
13781 } >&5
13783 _ACEOF
13784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13786 # INIT-COMMANDS
13790 # The HP-UX ksh and POSIX shell print the target directory to stdout
13791 # if CDPATH is set.
13792 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13794 sed_quote_subst='$sed_quote_subst'
13795 double_quote_subst='$double_quote_subst'
13796 delay_variable_subst='$delay_variable_subst'
13797 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13798 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13799 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13800 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13801 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13802 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13803 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13804 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13805 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13806 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13807 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13808 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13809 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13810 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13811 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13812 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13813 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13814 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13815 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13816 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13817 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13818 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13819 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13820 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13821 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13822 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13823 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13824 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13825 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13826 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13827 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13828 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13829 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13830 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13831 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13832 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13833 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13834 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13835 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13836 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13837 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13838 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13839 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13840 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13841 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13842 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13843 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13844 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13845 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13846 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13847 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13848 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13849 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13850 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13851 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13852 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13853 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13854 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13855 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"`'
13856 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13857 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13858 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13859 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13860 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13861 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13862 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13863 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13864 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13865 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13866 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13867 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13868 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13869 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13870 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13871 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13872 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13873 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13874 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13875 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13876 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13877 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13878 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13879 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13880 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13881 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13882 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13883 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13884 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13885 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13886 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13887 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13888 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13889 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13890 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13891 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13892 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13893 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13894 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13895 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13896 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13897 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13898 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13899 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13900 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13901 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13902 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13903 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13904 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13905 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13906 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13907 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13908 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13909 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13910 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13911 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13912 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13913 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13914 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13915 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13916 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13917 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13918 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13919 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13920 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13921 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13922 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13923 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13924 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13925 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13926 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13927 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13928 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13929 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13930 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13931 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13933 LTCC='$LTCC'
13934 LTCFLAGS='$LTCFLAGS'
13935 compiler='$compiler_DEFAULT'
13937 # A function that is used when there is no print builtin or printf.
13938 func_fallback_echo ()
13940 eval 'cat <<_LTECHO_EOF
13942 _LTECHO_EOF'
13945 # Quote evaled strings.
13946 for var in SHELL \
13947 ECHO \
13948 PATH_SEPARATOR \
13949 SED \
13950 GREP \
13951 EGREP \
13952 FGREP \
13953 LD \
13954 NM \
13955 LN_S \
13956 lt_SP2NL \
13957 lt_NL2SP \
13958 reload_flag \
13959 OBJDUMP \
13960 deplibs_check_method \
13961 file_magic_cmd \
13962 file_magic_glob \
13963 want_nocaseglob \
13964 DLLTOOL \
13965 sharedlib_from_linklib_cmd \
13966 AR \
13967 AR_FLAGS \
13968 archiver_list_spec \
13969 STRIP \
13970 RANLIB \
13971 CC \
13972 CFLAGS \
13973 compiler \
13974 lt_cv_sys_global_symbol_pipe \
13975 lt_cv_sys_global_symbol_to_cdecl \
13976 lt_cv_sys_global_symbol_to_import \
13977 lt_cv_sys_global_symbol_to_c_name_address \
13978 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13979 lt_cv_nm_interface \
13980 nm_file_list_spec \
13981 lt_cv_truncate_bin \
13982 lt_prog_compiler_no_builtin_flag \
13983 lt_prog_compiler_pic \
13984 lt_prog_compiler_wl \
13985 lt_prog_compiler_static \
13986 lt_cv_prog_compiler_c_o \
13987 need_locks \
13988 MANIFEST_TOOL \
13989 DSYMUTIL \
13990 NMEDIT \
13991 LIPO \
13992 OTOOL \
13993 OTOOL64 \
13994 shrext_cmds \
13995 export_dynamic_flag_spec \
13996 whole_archive_flag_spec \
13997 compiler_needs_object \
13998 with_gnu_ld \
13999 allow_undefined_flag \
14000 no_undefined_flag \
14001 hardcode_libdir_flag_spec \
14002 hardcode_libdir_separator \
14003 exclude_expsyms \
14004 include_expsyms \
14005 file_list_spec \
14006 variables_saved_for_relink \
14007 libname_spec \
14008 library_names_spec \
14009 soname_spec \
14010 install_override_mode \
14011 finish_eval \
14012 old_striplib \
14013 striplib; do
14014 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14015 *[\\\\\\\`\\"\\\$]*)
14016 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14019 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14021 esac
14022 done
14024 # Double-quote double-evaled strings.
14025 for var in reload_cmds \
14026 old_postinstall_cmds \
14027 old_postuninstall_cmds \
14028 old_archive_cmds \
14029 extract_expsyms_cmds \
14030 old_archive_from_new_cmds \
14031 old_archive_from_expsyms_cmds \
14032 archive_cmds \
14033 archive_expsym_cmds \
14034 module_cmds \
14035 module_expsym_cmds \
14036 export_symbols_cmds \
14037 prelink_cmds \
14038 postlink_cmds \
14039 postinstall_cmds \
14040 postuninstall_cmds \
14041 finish_cmds \
14042 sys_lib_search_path_spec \
14043 configure_time_dlsearch_path \
14044 configure_time_lt_sys_library_path; do
14045 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14046 *[\\\\\\\`\\"\\\$]*)
14047 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14050 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14052 esac
14053 done
14055 ac_aux_dir='$ac_aux_dir'
14057 # See if we are running on zsh, and set the options that allow our
14058 # commands through without removal of \ escapes INIT.
14059 if test -n "\${ZSH_VERSION+set}"; then
14060 setopt NO_GLOB_SUBST
14064 PACKAGE='$PACKAGE'
14065 VERSION='$VERSION'
14066 RM='$RM'
14067 ofile='$ofile'
14072 _ACEOF
14074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14076 # Handling of arguments.
14077 for ac_config_target in $ac_config_targets
14079 case $ac_config_target in
14080 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14081 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14082 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14083 "sqlcipher.pc") CONFIG_FILES="$CONFIG_FILES sqlcipher.pc" ;;
14085 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14086 esac
14087 done
14090 # If the user did not use the arguments to specify the items to instantiate,
14091 # then the envvar interface is used. Set only those that are not.
14092 # We use the long form for the default assignment because of an extremely
14093 # bizarre bug on SunOS 4.1.3.
14094 if $ac_need_defaults; then
14095 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14096 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14097 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14100 # Have a temporary directory for convenience. Make it in the build tree
14101 # simply because there is no reason against having it here, and in addition,
14102 # creating and moving files from /tmp can sometimes cause problems.
14103 # Hook for its removal unless debugging.
14104 # Note that there is a small window in which the directory will not be cleaned:
14105 # after its creation but before its name has been assigned to `$tmp'.
14106 $debug ||
14108 tmp= ac_tmp=
14109 trap 'exit_status=$?
14110 : "${ac_tmp:=$tmp}"
14111 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14113 trap 'as_fn_exit 1' 1 2 13 15
14115 # Create a (secure) tmp directory for tmp files.
14118 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14119 test -d "$tmp"
14120 } ||
14122 tmp=./conf$$-$RANDOM
14123 (umask 077 && mkdir "$tmp")
14124 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14125 ac_tmp=$tmp
14127 # Set up the scripts for CONFIG_FILES section.
14128 # No need to generate them if there are no CONFIG_FILES.
14129 # This happens for instance with `./config.status config.h'.
14130 if test -n "$CONFIG_FILES"; then
14133 ac_cr=`echo X | tr X '\015'`
14134 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14135 # But we know of no other shell where ac_cr would be empty at this
14136 # point, so we can use a bashism as a fallback.
14137 if test "x$ac_cr" = x; then
14138 eval ac_cr=\$\'\\r\'
14140 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14141 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14142 ac_cs_awk_cr='\\r'
14143 else
14144 ac_cs_awk_cr=$ac_cr
14147 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14148 _ACEOF
14152 echo "cat >conf$$subs.awk <<_ACEOF" &&
14153 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14154 echo "_ACEOF"
14155 } >conf$$subs.sh ||
14156 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14157 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14158 ac_delim='%!_!# '
14159 for ac_last_try in false false false false false :; do
14160 . ./conf$$subs.sh ||
14161 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14163 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14164 if test $ac_delim_n = $ac_delim_num; then
14165 break
14166 elif $ac_last_try; then
14167 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14168 else
14169 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14171 done
14172 rm -f conf$$subs.sh
14174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14175 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14176 _ACEOF
14177 sed -n '
14179 s/^/S["/; s/!.*/"]=/
14182 s/^[^!]*!//
14183 :repl
14184 t repl
14185 s/'"$ac_delim"'$//
14186 t delim
14189 s/\(.\{148\}\)..*/\1/
14190 t more1
14191 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14194 b repl
14195 :more1
14196 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14199 s/.\{148\}//
14200 t nl
14201 :delim
14203 s/\(.\{148\}\)..*/\1/
14204 t more2
14205 s/["\\]/\\&/g; s/^/"/; s/$/"/
14208 :more2
14209 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14212 s/.\{148\}//
14213 t delim
14214 ' <conf$$subs.awk | sed '
14215 /^[^""]/{
14217 s/\n//
14219 ' >>$CONFIG_STATUS || ac_write_fail=1
14220 rm -f conf$$subs.awk
14221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14222 _ACAWK
14223 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14224 for (key in S) S_is_set[key] = 1
14225 FS = "\a"
14229 line = $ 0
14230 nfields = split(line, field, "@")
14231 substed = 0
14232 len = length(field[1])
14233 for (i = 2; i < nfields; i++) {
14234 key = field[i]
14235 keylen = length(key)
14236 if (S_is_set[key]) {
14237 value = S[key]
14238 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14239 len += length(value) + length(field[++i])
14240 substed = 1
14241 } else
14242 len += 1 + keylen
14245 print line
14248 _ACAWK
14249 _ACEOF
14250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14251 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14252 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14253 else
14255 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14256 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14257 _ACEOF
14259 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14260 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14261 # trailing colons and then remove the whole line if VPATH becomes empty
14262 # (actually we leave an empty line to preserve line numbers).
14263 if test "x$srcdir" = x.; then
14264 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14266 s///
14267 s/^/:/
14268 s/[ ]*$/:/
14269 s/:\$(srcdir):/:/g
14270 s/:\${srcdir}:/:/g
14271 s/:@srcdir@:/:/g
14272 s/^:*//
14273 s/:*$//
14275 s/\(=[ ]*\).*/\1/
14277 s/\n//
14278 s/^[^=]*=[ ]*$//
14282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14283 fi # test -n "$CONFIG_FILES"
14285 # Set up the scripts for CONFIG_HEADERS section.
14286 # No need to generate them if there are no CONFIG_HEADERS.
14287 # This happens for instance with `./config.status Makefile'.
14288 if test -n "$CONFIG_HEADERS"; then
14289 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14290 BEGIN {
14291 _ACEOF
14293 # Transform confdefs.h into an awk script `defines.awk', embedded as
14294 # here-document in config.status, that substitutes the proper values into
14295 # config.h.in to produce config.h.
14297 # Create a delimiter string that does not exist in confdefs.h, to ease
14298 # handling of long lines.
14299 ac_delim='%!_!# '
14300 for ac_last_try in false false :; do
14301 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14302 if test -z "$ac_tt"; then
14303 break
14304 elif $ac_last_try; then
14305 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14306 else
14307 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14309 done
14311 # For the awk script, D is an array of macro values keyed by name,
14312 # likewise P contains macro parameters if any. Preserve backslash
14313 # newline sequences.
14315 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14316 sed -n '
14317 s/.\{148\}/&'"$ac_delim"'/g
14318 t rset
14319 :rset
14320 s/^[ ]*#[ ]*define[ ][ ]*/ /
14321 t def
14323 :def
14324 s/\\$//
14325 t bsnl
14326 s/["\\]/\\&/g
14327 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14328 D["\1"]=" \3"/p
14329 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14331 :bsnl
14332 s/["\\]/\\&/g
14333 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14334 D["\1"]=" \3\\\\\\n"\\/p
14335 t cont
14336 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14337 t cont
14339 :cont
14341 s/.\{148\}/&'"$ac_delim"'/g
14342 t clear
14343 :clear
14344 s/\\$//
14345 t bsnlc
14346 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14348 :bsnlc
14349 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14350 b cont
14351 ' <confdefs.h | sed '
14352 s/'"$ac_delim"'/"\\\
14353 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14356 for (key in D) D_is_set[key] = 1
14357 FS = "\a"
14359 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14360 line = \$ 0
14361 split(line, arg, " ")
14362 if (arg[1] == "#") {
14363 defundef = arg[2]
14364 mac1 = arg[3]
14365 } else {
14366 defundef = substr(arg[1], 2)
14367 mac1 = arg[2]
14369 split(mac1, mac2, "(") #)
14370 macro = mac2[1]
14371 prefix = substr(line, 1, index(line, defundef) - 1)
14372 if (D_is_set[macro]) {
14373 # Preserve the white space surrounding the "#".
14374 print prefix "define", macro P[macro] D[macro]
14375 next
14376 } else {
14377 # Replace #undef with comments. This is necessary, for example,
14378 # in the case of _POSIX_SOURCE, which is predefined and required
14379 # on some systems where configure will not decide to define it.
14380 if (defundef == "undef") {
14381 print "/*", prefix defundef, macro, "*/"
14382 next
14386 { print }
14387 _ACAWK
14388 _ACEOF
14389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14390 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14391 fi # test -n "$CONFIG_HEADERS"
14394 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14395 shift
14396 for ac_tag
14398 case $ac_tag in
14399 :[FHLC]) ac_mode=$ac_tag; continue;;
14400 esac
14401 case $ac_mode$ac_tag in
14402 :[FHL]*:*);;
14403 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14404 :[FH]-) ac_tag=-:-;;
14405 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14406 esac
14407 ac_save_IFS=$IFS
14408 IFS=:
14409 set x $ac_tag
14410 IFS=$ac_save_IFS
14411 shift
14412 ac_file=$1
14413 shift
14415 case $ac_mode in
14416 :L) ac_source=$1;;
14417 :[FH])
14418 ac_file_inputs=
14419 for ac_f
14421 case $ac_f in
14422 -) ac_f="$ac_tmp/stdin";;
14423 *) # Look for the file first in the build tree, then in the source tree
14424 # (if the path is not absolute). The absolute path cannot be DOS-style,
14425 # because $ac_f cannot contain `:'.
14426 test -f "$ac_f" ||
14427 case $ac_f in
14428 [\\/$]*) false;;
14429 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14430 esac ||
14431 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14432 esac
14433 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14434 as_fn_append ac_file_inputs " '$ac_f'"
14435 done
14437 # Let's still pretend it is `configure' which instantiates (i.e., don't
14438 # use $as_me), people would be surprised to read:
14439 # /* config.h. Generated by config.status. */
14440 configure_input='Generated from '`
14441 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14442 `' by configure.'
14443 if test x"$ac_file" != x-; then
14444 configure_input="$ac_file. $configure_input"
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14446 $as_echo "$as_me: creating $ac_file" >&6;}
14448 # Neutralize special characters interpreted by sed in replacement strings.
14449 case $configure_input in #(
14450 *\&* | *\|* | *\\* )
14451 ac_sed_conf_input=`$as_echo "$configure_input" |
14452 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14453 *) ac_sed_conf_input=$configure_input;;
14454 esac
14456 case $ac_tag in
14457 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14458 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14459 esac
14461 esac
14463 ac_dir=`$as_dirname -- "$ac_file" ||
14464 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14465 X"$ac_file" : 'X\(//\)[^/]' \| \
14466 X"$ac_file" : 'X\(//\)$' \| \
14467 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14468 $as_echo X"$ac_file" |
14469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14470 s//\1/
14473 /^X\(\/\/\)[^/].*/{
14474 s//\1/
14477 /^X\(\/\/\)$/{
14478 s//\1/
14481 /^X\(\/\).*/{
14482 s//\1/
14485 s/.*/./; q'`
14486 as_dir="$ac_dir"; as_fn_mkdir_p
14487 ac_builddir=.
14489 case "$ac_dir" in
14490 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14492 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14493 # A ".." for each directory in $ac_dir_suffix.
14494 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14495 case $ac_top_builddir_sub in
14496 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14497 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14498 esac ;;
14499 esac
14500 ac_abs_top_builddir=$ac_pwd
14501 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14502 # for backward compatibility:
14503 ac_top_builddir=$ac_top_build_prefix
14505 case $srcdir in
14506 .) # We are building in place.
14507 ac_srcdir=.
14508 ac_top_srcdir=$ac_top_builddir_sub
14509 ac_abs_top_srcdir=$ac_pwd ;;
14510 [\\/]* | ?:[\\/]* ) # Absolute name.
14511 ac_srcdir=$srcdir$ac_dir_suffix;
14512 ac_top_srcdir=$srcdir
14513 ac_abs_top_srcdir=$srcdir ;;
14514 *) # Relative name.
14515 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14516 ac_top_srcdir=$ac_top_build_prefix$srcdir
14517 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14518 esac
14519 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14522 case $ac_mode in
14525 # CONFIG_FILE
14528 case $INSTALL in
14529 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14530 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14531 esac
14532 _ACEOF
14534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14535 # If the template does not know about datarootdir, expand it.
14536 # FIXME: This hack should be removed a few years after 2.60.
14537 ac_datarootdir_hack=; ac_datarootdir_seen=
14538 ac_sed_dataroot='
14539 /datarootdir/ {
14543 /@datadir@/p
14544 /@docdir@/p
14545 /@infodir@/p
14546 /@localedir@/p
14547 /@mandir@/p'
14548 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14549 *datarootdir*) ac_datarootdir_seen=yes;;
14550 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14552 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14553 _ACEOF
14554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14555 ac_datarootdir_hack='
14556 s&@datadir@&$datadir&g
14557 s&@docdir@&$docdir&g
14558 s&@infodir@&$infodir&g
14559 s&@localedir@&$localedir&g
14560 s&@mandir@&$mandir&g
14561 s&\\\${datarootdir}&$datarootdir&g' ;;
14562 esac
14563 _ACEOF
14565 # Neutralize VPATH when `$srcdir' = `.'.
14566 # Shell code in configure.ac might set extrasub.
14567 # FIXME: do we really want to maintain this feature?
14568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14569 ac_sed_extra="$ac_vpsub
14570 $extrasub
14571 _ACEOF
14572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14574 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14575 s|@configure_input@|$ac_sed_conf_input|;t t
14576 s&@top_builddir@&$ac_top_builddir_sub&;t t
14577 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14578 s&@srcdir@&$ac_srcdir&;t t
14579 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14580 s&@top_srcdir@&$ac_top_srcdir&;t t
14581 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14582 s&@builddir@&$ac_builddir&;t t
14583 s&@abs_builddir@&$ac_abs_builddir&;t t
14584 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14585 s&@INSTALL@&$ac_INSTALL&;t t
14586 $ac_datarootdir_hack
14588 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14589 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14591 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14592 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14593 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14594 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14596 which seems to be undefined. Please make sure it is defined" >&5
14597 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14598 which seems to be undefined. Please make sure it is defined" >&2;}
14600 rm -f "$ac_tmp/stdin"
14601 case $ac_file in
14602 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14603 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14604 esac \
14605 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14609 # CONFIG_HEADER
14611 if test x"$ac_file" != x-; then
14613 $as_echo "/* $configure_input */" \
14614 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14615 } >"$ac_tmp/config.h" \
14616 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14617 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14619 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14620 else
14621 rm -f "$ac_file"
14622 mv "$ac_tmp/config.h" "$ac_file" \
14623 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14625 else
14626 $as_echo "/* $configure_input */" \
14627 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14628 || as_fn_error $? "could not create -" "$LINENO" 5
14632 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14633 $as_echo "$as_me: executing $ac_file commands" >&6;}
14635 esac
14638 case $ac_file$ac_mode in
14639 "libtool":C)
14641 # See if we are running on zsh, and set the options that allow our
14642 # commands through without removal of \ escapes.
14643 if test -n "${ZSH_VERSION+set}"; then
14644 setopt NO_GLOB_SUBST
14647 cfgfile=${ofile}T
14648 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14649 $RM "$cfgfile"
14651 cat <<_LT_EOF >> "$cfgfile"
14652 #! $SHELL
14653 # Generated automatically by $as_me ($PACKAGE) $VERSION
14654 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14655 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14657 # Provide generalized library-building support services.
14658 # Written by Gordon Matzigkeit, 1996
14660 # Copyright (C) 2014 Free Software Foundation, Inc.
14661 # This is free software; see the source for copying conditions. There is NO
14662 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14664 # GNU Libtool is free software; you can redistribute it and/or modify
14665 # it under the terms of the GNU General Public License as published by
14666 # the Free Software Foundation; either version 2 of of the License, or
14667 # (at your option) any later version.
14669 # As a special exception to the GNU General Public License, if you
14670 # distribute this file as part of a program or library that is built
14671 # using GNU Libtool, you may include this file under the same
14672 # distribution terms that you use for the rest of that program.
14674 # GNU Libtool is distributed in the hope that it will be useful, but
14675 # WITHOUT ANY WARRANTY; without even the implied warranty of
14676 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14677 # GNU General Public License for more details.
14679 # You should have received a copy of the GNU General Public License
14680 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14683 # The names of the tagged configurations supported by this script.
14684 available_tags=''
14686 # Configured defaults for sys_lib_dlsearch_path munging.
14687 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14689 # ### BEGIN LIBTOOL CONFIG
14691 # Which release of libtool.m4 was used?
14692 macro_version=$macro_version
14693 macro_revision=$macro_revision
14695 # Whether or not to build shared libraries.
14696 build_libtool_libs=$enable_shared
14698 # Whether or not to build static libraries.
14699 build_old_libs=$enable_static
14701 # What type of objects to build.
14702 pic_mode=$pic_mode
14704 # Whether or not to optimize for fast installation.
14705 fast_install=$enable_fast_install
14707 # Shared archive member basename,for filename based shared library versioning on AIX.
14708 shared_archive_member_spec=$shared_archive_member_spec
14710 # Shell to use when invoking shell scripts.
14711 SHELL=$lt_SHELL
14713 # An echo program that protects backslashes.
14714 ECHO=$lt_ECHO
14716 # The PATH separator for the build system.
14717 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14719 # The host system.
14720 host_alias=$host_alias
14721 host=$host
14722 host_os=$host_os
14724 # The build system.
14725 build_alias=$build_alias
14726 build=$build
14727 build_os=$build_os
14729 # A sed program that does not truncate output.
14730 SED=$lt_SED
14732 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14733 Xsed="\$SED -e 1s/^X//"
14735 # A grep program that handles long lines.
14736 GREP=$lt_GREP
14738 # An ERE matcher.
14739 EGREP=$lt_EGREP
14741 # A literal string matcher.
14742 FGREP=$lt_FGREP
14744 # A BSD- or MS-compatible name lister.
14745 NM=$lt_NM
14747 # Whether we need soft or hard links.
14748 LN_S=$lt_LN_S
14750 # What is the maximum length of a command?
14751 max_cmd_len=$max_cmd_len
14753 # Object file suffix (normally "o").
14754 objext=$ac_objext
14756 # Executable file suffix (normally "").
14757 exeext=$exeext
14759 # whether the shell understands "unset".
14760 lt_unset=$lt_unset
14762 # turn spaces into newlines.
14763 SP2NL=$lt_lt_SP2NL
14765 # turn newlines into spaces.
14766 NL2SP=$lt_lt_NL2SP
14768 # convert \$build file names to \$host format.
14769 to_host_file_cmd=$lt_cv_to_host_file_cmd
14771 # convert \$build files to toolchain format.
14772 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14774 # An object symbol dumper.
14775 OBJDUMP=$lt_OBJDUMP
14777 # Method to check whether dependent libraries are shared objects.
14778 deplibs_check_method=$lt_deplibs_check_method
14780 # Command to use when deplibs_check_method = "file_magic".
14781 file_magic_cmd=$lt_file_magic_cmd
14783 # How to find potential files when deplibs_check_method = "file_magic".
14784 file_magic_glob=$lt_file_magic_glob
14786 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14787 want_nocaseglob=$lt_want_nocaseglob
14789 # DLL creation program.
14790 DLLTOOL=$lt_DLLTOOL
14792 # Command to associate shared and link libraries.
14793 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14795 # The archiver.
14796 AR=$lt_AR
14798 # Flags to create an archive.
14799 AR_FLAGS=$lt_AR_FLAGS
14801 # How to feed a file listing to the archiver.
14802 archiver_list_spec=$lt_archiver_list_spec
14804 # A symbol stripping program.
14805 STRIP=$lt_STRIP
14807 # Commands used to install an old-style archive.
14808 RANLIB=$lt_RANLIB
14809 old_postinstall_cmds=$lt_old_postinstall_cmds
14810 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14812 # Whether to use a lock for old archive extraction.
14813 lock_old_archive_extraction=$lock_old_archive_extraction
14815 # A C compiler.
14816 LTCC=$lt_CC
14818 # LTCC compiler flags.
14819 LTCFLAGS=$lt_CFLAGS
14821 # Take the output of nm and produce a listing of raw symbols and C names.
14822 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14824 # Transform the output of nm in a proper C declaration.
14825 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14827 # Transform the output of nm into a list of symbols to manually relocate.
14828 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14830 # Transform the output of nm in a C name address pair.
14831 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14833 # Transform the output of nm in a C name address pair when lib prefix is needed.
14834 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14836 # The name lister interface.
14837 nm_interface=$lt_lt_cv_nm_interface
14839 # Specify filename containing input files for \$NM.
14840 nm_file_list_spec=$lt_nm_file_list_spec
14842 # The root where to search for dependent libraries,and where our libraries should be installed.
14843 lt_sysroot=$lt_sysroot
14845 # Command to truncate a binary pipe.
14846 lt_truncate_bin=$lt_lt_cv_truncate_bin
14848 # The name of the directory that contains temporary libtool files.
14849 objdir=$objdir
14851 # Used to examine libraries when file_magic_cmd begins with "file".
14852 MAGIC_CMD=$MAGIC_CMD
14854 # Must we lock files when doing compilation?
14855 need_locks=$lt_need_locks
14857 # Manifest tool.
14858 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14860 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14861 DSYMUTIL=$lt_DSYMUTIL
14863 # Tool to change global to local symbols on Mac OS X.
14864 NMEDIT=$lt_NMEDIT
14866 # Tool to manipulate fat objects and archives on Mac OS X.
14867 LIPO=$lt_LIPO
14869 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14870 OTOOL=$lt_OTOOL
14872 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14873 OTOOL64=$lt_OTOOL64
14875 # Old archive suffix (normally "a").
14876 libext=$libext
14878 # Shared library suffix (normally ".so").
14879 shrext_cmds=$lt_shrext_cmds
14881 # The commands to extract the exported symbol list from a shared archive.
14882 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14884 # Variables whose values should be saved in libtool wrapper scripts and
14885 # restored at link time.
14886 variables_saved_for_relink=$lt_variables_saved_for_relink
14888 # Do we need the "lib" prefix for modules?
14889 need_lib_prefix=$need_lib_prefix
14891 # Do we need a version for libraries?
14892 need_version=$need_version
14894 # Library versioning type.
14895 version_type=$version_type
14897 # Shared library runtime path variable.
14898 runpath_var=$runpath_var
14900 # Shared library path variable.
14901 shlibpath_var=$shlibpath_var
14903 # Is shlibpath searched before the hard-coded library search path?
14904 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14906 # Format of library name prefix.
14907 libname_spec=$lt_libname_spec
14909 # List of archive names. First name is the real one, the rest are links.
14910 # The last name is the one that the linker finds with -lNAME
14911 library_names_spec=$lt_library_names_spec
14913 # The coded name of the library, if different from the real name.
14914 soname_spec=$lt_soname_spec
14916 # Permission mode override for installation of shared libraries.
14917 install_override_mode=$lt_install_override_mode
14919 # Command to use after installation of a shared archive.
14920 postinstall_cmds=$lt_postinstall_cmds
14922 # Command to use after uninstallation of a shared archive.
14923 postuninstall_cmds=$lt_postuninstall_cmds
14925 # Commands used to finish a libtool library installation in a directory.
14926 finish_cmds=$lt_finish_cmds
14928 # As "finish_cmds", except a single script fragment to be evaled but
14929 # not shown.
14930 finish_eval=$lt_finish_eval
14932 # Whether we should hardcode library paths into libraries.
14933 hardcode_into_libs=$hardcode_into_libs
14935 # Compile-time system search path for libraries.
14936 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14938 # Detected run-time system search path for libraries.
14939 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14941 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14942 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14944 # Whether dlopen is supported.
14945 dlopen_support=$enable_dlopen
14947 # Whether dlopen of programs is supported.
14948 dlopen_self=$enable_dlopen_self
14950 # Whether dlopen of statically linked programs is supported.
14951 dlopen_self_static=$enable_dlopen_self_static
14953 # Commands to strip libraries.
14954 old_striplib=$lt_old_striplib
14955 striplib=$lt_striplib
14958 # The linker used to build libraries.
14959 LD=$lt_LD
14961 # How to create reloadable object files.
14962 reload_flag=$lt_reload_flag
14963 reload_cmds=$lt_reload_cmds
14965 # Commands used to build an old-style archive.
14966 old_archive_cmds=$lt_old_archive_cmds
14968 # A language specific compiler.
14969 CC=$lt_compiler
14971 # Is the compiler the GNU compiler?
14972 with_gcc=$GCC
14974 # Compiler flag to turn off builtin functions.
14975 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14977 # Additional compiler flags for building library objects.
14978 pic_flag=$lt_lt_prog_compiler_pic
14980 # How to pass a linker flag through the compiler.
14981 wl=$lt_lt_prog_compiler_wl
14983 # Compiler flag to prevent dynamic linking.
14984 link_static_flag=$lt_lt_prog_compiler_static
14986 # Does compiler simultaneously support -c and -o options?
14987 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14989 # Whether or not to add -lc for building shared libraries.
14990 build_libtool_need_lc=$archive_cmds_need_lc
14992 # Whether or not to disallow shared libs when runtime libs are static.
14993 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14995 # Compiler flag to allow reflexive dlopens.
14996 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14998 # Compiler flag to generate shared objects directly from archives.
14999 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15001 # Whether the compiler copes with passing no objects directly.
15002 compiler_needs_object=$lt_compiler_needs_object
15004 # Create an old-style archive from a shared archive.
15005 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15007 # Create a temporary old-style archive to link instead of a shared archive.
15008 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15010 # Commands used to build a shared archive.
15011 archive_cmds=$lt_archive_cmds
15012 archive_expsym_cmds=$lt_archive_expsym_cmds
15014 # Commands used to build a loadable module if different from building
15015 # a shared archive.
15016 module_cmds=$lt_module_cmds
15017 module_expsym_cmds=$lt_module_expsym_cmds
15019 # Whether we are building with GNU ld or not.
15020 with_gnu_ld=$lt_with_gnu_ld
15022 # Flag that allows shared libraries with undefined symbols to be built.
15023 allow_undefined_flag=$lt_allow_undefined_flag
15025 # Flag that enforces no undefined symbols.
15026 no_undefined_flag=$lt_no_undefined_flag
15028 # Flag to hardcode \$libdir into a binary during linking.
15029 # This must work even if \$libdir does not exist
15030 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15032 # Whether we need a single "-rpath" flag with a separated argument.
15033 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15035 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15036 # DIR into the resulting binary.
15037 hardcode_direct=$hardcode_direct
15039 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15040 # DIR into the resulting binary and the resulting library dependency is
15041 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15042 # library is relocated.
15043 hardcode_direct_absolute=$hardcode_direct_absolute
15045 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15046 # into the resulting binary.
15047 hardcode_minus_L=$hardcode_minus_L
15049 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15050 # into the resulting binary.
15051 hardcode_shlibpath_var=$hardcode_shlibpath_var
15053 # Set to "yes" if building a shared library automatically hardcodes DIR
15054 # into the library and all subsequent libraries and executables linked
15055 # against it.
15056 hardcode_automatic=$hardcode_automatic
15058 # Set to yes if linker adds runtime paths of dependent libraries
15059 # to runtime path list.
15060 inherit_rpath=$inherit_rpath
15062 # Whether libtool must link a program against all its dependency libraries.
15063 link_all_deplibs=$link_all_deplibs
15065 # Set to "yes" if exported symbols are required.
15066 always_export_symbols=$always_export_symbols
15068 # The commands to list exported symbols.
15069 export_symbols_cmds=$lt_export_symbols_cmds
15071 # Symbols that should not be listed in the preloaded symbols.
15072 exclude_expsyms=$lt_exclude_expsyms
15074 # Symbols that must always be exported.
15075 include_expsyms=$lt_include_expsyms
15077 # Commands necessary for linking programs (against libraries) with templates.
15078 prelink_cmds=$lt_prelink_cmds
15080 # Commands necessary for finishing linking programs.
15081 postlink_cmds=$lt_postlink_cmds
15083 # Specify filename containing input files.
15084 file_list_spec=$lt_file_list_spec
15086 # How to hardcode a shared library path into an executable.
15087 hardcode_action=$hardcode_action
15089 # ### END LIBTOOL CONFIG
15091 _LT_EOF
15093 cat <<'_LT_EOF' >> "$cfgfile"
15095 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15097 # func_munge_path_list VARIABLE PATH
15098 # -----------------------------------
15099 # VARIABLE is name of variable containing _space_ separated list of
15100 # directories to be munged by the contents of PATH, which is string
15101 # having a format:
15102 # "DIR[:DIR]:"
15103 # string "DIR[ DIR]" will be prepended to VARIABLE
15104 # ":DIR[:DIR]"
15105 # string "DIR[ DIR]" will be appended to VARIABLE
15106 # "DIRP[:DIRP]::[DIRA:]DIRA"
15107 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15108 # "DIRA[ DIRA]" will be appended to VARIABLE
15109 # "DIR[:DIR]"
15110 # VARIABLE will be replaced by "DIR[ DIR]"
15111 func_munge_path_list ()
15113 case x$2 in
15117 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15119 x:*)
15120 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15122 *::*)
15123 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15124 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15127 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15129 esac
15133 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15134 func_cc_basename ()
15136 for cc_temp in $*""; do
15137 case $cc_temp in
15138 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15139 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15140 \-*) ;;
15141 *) break;;
15142 esac
15143 done
15144 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15148 # ### END FUNCTIONS SHARED WITH CONFIGURE
15150 _LT_EOF
15152 case $host_os in
15153 aix3*)
15154 cat <<\_LT_EOF >> "$cfgfile"
15155 # AIX sometimes has problems with the GCC collect2 program. For some
15156 # reason, if we set the COLLECT_NAMES environment variable, the problems
15157 # vanish in a puff of smoke.
15158 if test set != "${COLLECT_NAMES+set}"; then
15159 COLLECT_NAMES=
15160 export COLLECT_NAMES
15162 _LT_EOF
15164 esac
15167 ltmain=$ac_aux_dir/ltmain.sh
15170 # We use sed instead of cat because bash on DJGPP gets confused if
15171 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15172 # text mode, it properly converts lines to CR/LF. This bash problem
15173 # is reportedly fixed, but why not run on old versions too?
15174 sed '$q' "$ltmain" >> "$cfgfile" \
15175 || (rm -f "$cfgfile"; exit 1)
15177 mv -f "$cfgfile" "$ofile" ||
15178 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15179 chmod +x "$ofile"
15183 esac
15184 done # for ac_tag
15187 as_fn_exit 0
15188 _ACEOF
15189 ac_clean_files=$ac_clean_files_save
15191 test $ac_write_fail = 0 ||
15192 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15195 # configure is writing to config.log, and then calls config.status.
15196 # config.status does its own redirection, appending to config.log.
15197 # Unfortunately, on DOS this fails, as config.log is still kept open
15198 # by configure, so config.status won't be able to write to it; its
15199 # output is simply discarded. So we exec the FD to /dev/null,
15200 # effectively closing config.log, so it can be properly (re)opened and
15201 # appended to by config.status. When coming back to configure, we
15202 # need to make the FD available again.
15203 if test "$no_create" != yes; then
15204 ac_cs_success=:
15205 ac_config_status_args=
15206 test "$silent" = yes &&
15207 ac_config_status_args="$ac_config_status_args --quiet"
15208 exec 5>/dev/null
15209 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15210 exec 5>>config.log
15211 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15212 # would make configure fail if this is the last instruction.
15213 $ac_cs_success || as_fn_exit 1
15215 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15217 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}