Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / third_party / sqlite / sqlite-src-3080704 / configure
blob2c3706845a6497de42f1b1704ad68744db0b0dc6
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for sqlite 3.8.7.4.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (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=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
578 case X$lt_ECHO in
579 X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
583 esac
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
595 else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
603 cat <<_LT_EOF
605 _LT_EOF
606 exit 0
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620 then
621 break
623 done
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
635 # So, first we look for a working echo in the user's PATH.
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
647 done
648 IFS="$lt_save_ifs"
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665 else
666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
696 prev="$cmd"
697 done
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
723 exec 7<&0 </dev/null 6>&1
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731 # Initializations.
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
743 # Identity of this package.
744 PACKAGE_NAME='sqlite'
745 PACKAGE_TARNAME='sqlite'
746 PACKAGE_VERSION='3.8.7.4'
747 PACKAGE_STRING='sqlite 3.8.7.4'
748 PACKAGE_BUGREPORT=''
750 # Factoring default headers for most tests.
751 ac_includes_default="\
752 #include <stdio.h>
753 #ifdef HAVE_SYS_TYPES_H
754 # include <sys/types.h>
755 #endif
756 #ifdef HAVE_SYS_STAT_H
757 # include <sys/stat.h>
758 #endif
759 #ifdef STDC_HEADERS
760 # include <stdlib.h>
761 # include <stddef.h>
762 #else
763 # ifdef HAVE_STDLIB_H
764 # include <stdlib.h>
765 # endif
766 #endif
767 #ifdef HAVE_STRING_H
768 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
769 # include <memory.h>
770 # endif
771 # include <string.h>
772 #endif
773 #ifdef HAVE_STRINGS_H
774 # include <strings.h>
775 #endif
776 #ifdef HAVE_INTTYPES_H
777 # include <inttypes.h>
778 #endif
779 #ifdef HAVE_STDINT_H
780 # include <stdint.h>
781 #endif
782 #ifdef HAVE_UNISTD_H
783 # include <unistd.h>
784 #endif"
786 ac_subst_vars='SHELL
787 PATH_SEPARATOR
788 PACKAGE_NAME
789 PACKAGE_TARNAME
790 PACKAGE_VERSION
791 PACKAGE_STRING
792 PACKAGE_BUGREPORT
793 exec_prefix
794 prefix
795 program_transform_name
796 bindir
797 sbindir
798 libexecdir
799 datarootdir
800 datadir
801 sysconfdir
802 sharedstatedir
803 localstatedir
804 includedir
805 oldincludedir
806 docdir
807 infodir
808 htmldir
809 dvidir
810 pdfdir
811 psdir
812 libdir
813 localedir
814 mandir
815 DEFS
816 ECHO_C
817 ECHO_N
818 ECHO_T
819 LIBS
820 build_alias
821 host_alias
822 target_alias
823 LIBTOOL
824 build
825 build_cpu
826 build_vendor
827 build_os
828 host
829 host_cpu
830 host_vendor
831 host_os
833 CFLAGS
834 LDFLAGS
835 CPPFLAGS
836 ac_ct_CC
837 EXEEXT
838 OBJEXT
840 GREP
841 EGREP
842 FGREP
844 DUMPBIN
845 ac_ct_DUMPBIN
847 LN_S
848 OBJDUMP
850 STRIP
851 RANLIB
852 lt_ECHO
853 DSYMUTIL
854 NMEDIT
855 LIPO
856 OTOOL
857 OTOOL64
859 INSTALL_PROGRAM
860 INSTALL_SCRIPT
861 INSTALL_DATA
863 TCLSH_CMD
864 TCLLIBDIR
865 program_prefix
866 VERSION
867 RELEASE
868 VERSION_NUMBER
869 BUILD_CC
870 SQLITE_THREADSAFE
871 XTHREADCONNECT
872 ALLOWRELEASE
873 TEMP_STORE
874 BUILD_EXEEXT
875 SQLITE_OS_UNIX
876 SQLITE_OS_WIN
877 TARGET_EXEEXT
878 TCL_VERSION
879 TCL_BIN_DIR
880 TCL_SRC_DIR
881 TCL_INCLUDE_SPEC
882 TCL_LIB_FILE
883 TCL_LIB_FLAG
884 TCL_LIB_SPEC
885 TCL_STUB_LIB_FILE
886 TCL_STUB_LIB_FLAG
887 TCL_STUB_LIB_SPEC
888 HAVE_TCL
889 TARGET_READLINE_LIBS
890 TARGET_READLINE_INC
891 TARGET_HAVE_READLINE
892 TARGET_DEBUG
893 USE_AMALGAMATION
894 OPT_FEATURE_FLAGS
895 USE_GCOV
896 BUILD_CFLAGS
897 LIBOBJS
898 LTLIBOBJS'
899 ac_subst_files=''
900 ac_user_opts='
901 enable_option_checking
902 enable_shared
903 enable_static
904 with_pic
905 enable_fast_install
906 with_gnu_ld
907 enable_libtool_lock
908 enable_largefile
909 with_hints
910 enable_threadsafe
911 enable_cross_thread_connections
912 enable_releasemode
913 enable_tempstore
914 enable_tcl
915 with_tcl
916 enable_readline
917 with_readline_lib
918 with_readline_inc
919 enable_debug
920 enable_amalgamation
921 enable_load_extension
922 enable_gcov
924 ac_precious_vars='build_alias
925 host_alias
926 target_alias
928 CFLAGS
929 LDFLAGS
930 LIBS
931 CPPFLAGS
933 TCLLIBDIR'
936 # Initialize some variables set by options.
937 ac_init_help=
938 ac_init_version=false
939 ac_unrecognized_opts=
940 ac_unrecognized_sep=
941 # The variables have the same names as the options, with
942 # dashes changed to underlines.
943 cache_file=/dev/null
944 exec_prefix=NONE
945 no_create=
946 no_recursion=
947 prefix=NONE
948 program_prefix=NONE
949 program_suffix=NONE
950 program_transform_name=s,x,x,
951 silent=
952 site=
953 srcdir=
954 verbose=
955 x_includes=NONE
956 x_libraries=NONE
958 # Installation directory options.
959 # These are left unexpanded so users can "make install exec_prefix=/foo"
960 # and all the variables that are supposed to be based on exec_prefix
961 # by default will actually change.
962 # Use braces instead of parens because sh, perl, etc. also accept them.
963 # (The list follows the same order as the GNU Coding Standards.)
964 bindir='${exec_prefix}/bin'
965 sbindir='${exec_prefix}/sbin'
966 libexecdir='${exec_prefix}/libexec'
967 datarootdir='${prefix}/share'
968 datadir='${datarootdir}'
969 sysconfdir='${prefix}/etc'
970 sharedstatedir='${prefix}/com'
971 localstatedir='${prefix}/var'
972 includedir='${prefix}/include'
973 oldincludedir='/usr/include'
974 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
975 infodir='${datarootdir}/info'
976 htmldir='${docdir}'
977 dvidir='${docdir}'
978 pdfdir='${docdir}'
979 psdir='${docdir}'
980 libdir='${exec_prefix}/lib'
981 localedir='${datarootdir}/locale'
982 mandir='${datarootdir}/man'
984 ac_prev=
985 ac_dashdash=
986 for ac_option
988 # If the previous option needs an argument, assign it.
989 if test -n "$ac_prev"; then
990 eval $ac_prev=\$ac_option
991 ac_prev=
992 continue
995 case $ac_option in
996 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
997 *) ac_optarg=yes ;;
998 esac
1000 # Accept the important Cygnus configure options, so we can diagnose typos.
1002 case $ac_dashdash$ac_option in
1004 ac_dashdash=yes ;;
1006 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1007 ac_prev=bindir ;;
1008 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1009 bindir=$ac_optarg ;;
1011 -build | --build | --buil | --bui | --bu)
1012 ac_prev=build_alias ;;
1013 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1014 build_alias=$ac_optarg ;;
1016 -cache-file | --cache-file | --cache-fil | --cache-fi \
1017 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1018 ac_prev=cache_file ;;
1019 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1020 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1021 cache_file=$ac_optarg ;;
1023 --config-cache | -C)
1024 cache_file=config.cache ;;
1026 -datadir | --datadir | --datadi | --datad)
1027 ac_prev=datadir ;;
1028 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1029 datadir=$ac_optarg ;;
1031 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1032 | --dataroo | --dataro | --datar)
1033 ac_prev=datarootdir ;;
1034 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1035 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1036 datarootdir=$ac_optarg ;;
1038 -disable-* | --disable-*)
1039 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1043 { (exit 1); exit 1; }; }
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1048 "enable_$ac_useropt"
1049 "*) ;;
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1052 esac
1053 eval enable_$ac_useropt=no ;;
1055 -docdir | --docdir | --docdi | --doc | --do)
1056 ac_prev=docdir ;;
1057 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058 docdir=$ac_optarg ;;
1060 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061 ac_prev=dvidir ;;
1062 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063 dvidir=$ac_optarg ;;
1065 -enable-* | --enable-*)
1066 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1070 { (exit 1); exit 1; }; }
1071 ac_useropt_orig=$ac_useropt
1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073 case $ac_user_opts in
1075 "enable_$ac_useropt"
1076 "*) ;;
1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1078 ac_unrecognized_sep=', ';;
1079 esac
1080 eval enable_$ac_useropt=\$ac_optarg ;;
1082 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1083 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1084 | --exec | --exe | --ex)
1085 ac_prev=exec_prefix ;;
1086 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1087 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1088 | --exec=* | --exe=* | --ex=*)
1089 exec_prefix=$ac_optarg ;;
1091 -gas | --gas | --ga | --g)
1092 # Obsolete; use --with-gas.
1093 with_gas=yes ;;
1095 -help | --help | --hel | --he | -h)
1096 ac_init_help=long ;;
1097 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1098 ac_init_help=recursive ;;
1099 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1100 ac_init_help=short ;;
1102 -host | --host | --hos | --ho)
1103 ac_prev=host_alias ;;
1104 -host=* | --host=* | --hos=* | --ho=*)
1105 host_alias=$ac_optarg ;;
1107 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1108 ac_prev=htmldir ;;
1109 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1110 | --ht=*)
1111 htmldir=$ac_optarg ;;
1113 -includedir | --includedir | --includedi | --included | --include \
1114 | --includ | --inclu | --incl | --inc)
1115 ac_prev=includedir ;;
1116 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1117 | --includ=* | --inclu=* | --incl=* | --inc=*)
1118 includedir=$ac_optarg ;;
1120 -infodir | --infodir | --infodi | --infod | --info | --inf)
1121 ac_prev=infodir ;;
1122 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1123 infodir=$ac_optarg ;;
1125 -libdir | --libdir | --libdi | --libd)
1126 ac_prev=libdir ;;
1127 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1128 libdir=$ac_optarg ;;
1130 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1131 | --libexe | --libex | --libe)
1132 ac_prev=libexecdir ;;
1133 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1134 | --libexe=* | --libex=* | --libe=*)
1135 libexecdir=$ac_optarg ;;
1137 -localedir | --localedir | --localedi | --localed | --locale)
1138 ac_prev=localedir ;;
1139 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1140 localedir=$ac_optarg ;;
1142 -localstatedir | --localstatedir | --localstatedi | --localstated \
1143 | --localstate | --localstat | --localsta | --localst | --locals)
1144 ac_prev=localstatedir ;;
1145 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1146 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1147 localstatedir=$ac_optarg ;;
1149 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1150 ac_prev=mandir ;;
1151 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1152 mandir=$ac_optarg ;;
1154 -nfp | --nfp | --nf)
1155 # Obsolete; use --without-fp.
1156 with_fp=no ;;
1158 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1159 | --no-cr | --no-c | -n)
1160 no_create=yes ;;
1162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1164 no_recursion=yes ;;
1166 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1167 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1168 | --oldin | --oldi | --old | --ol | --o)
1169 ac_prev=oldincludedir ;;
1170 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1171 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1172 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1173 oldincludedir=$ac_optarg ;;
1175 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1176 ac_prev=prefix ;;
1177 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1178 prefix=$ac_optarg ;;
1180 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1181 | --program-pre | --program-pr | --program-p)
1182 ac_prev=program_prefix ;;
1183 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1184 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1185 program_prefix=$ac_optarg ;;
1187 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1188 | --program-suf | --program-su | --program-s)
1189 ac_prev=program_suffix ;;
1190 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1191 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1192 program_suffix=$ac_optarg ;;
1194 -program-transform-name | --program-transform-name \
1195 | --program-transform-nam | --program-transform-na \
1196 | --program-transform-n | --program-transform- \
1197 | --program-transform | --program-transfor \
1198 | --program-transfo | --program-transf \
1199 | --program-trans | --program-tran \
1200 | --progr-tra | --program-tr | --program-t)
1201 ac_prev=program_transform_name ;;
1202 -program-transform-name=* | --program-transform-name=* \
1203 | --program-transform-nam=* | --program-transform-na=* \
1204 | --program-transform-n=* | --program-transform-=* \
1205 | --program-transform=* | --program-transfor=* \
1206 | --program-transfo=* | --program-transf=* \
1207 | --program-trans=* | --program-tran=* \
1208 | --progr-tra=* | --program-tr=* | --program-t=*)
1209 program_transform_name=$ac_optarg ;;
1211 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1212 ac_prev=pdfdir ;;
1213 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1214 pdfdir=$ac_optarg ;;
1216 -psdir | --psdir | --psdi | --psd | --ps)
1217 ac_prev=psdir ;;
1218 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1219 psdir=$ac_optarg ;;
1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222 | -silent | --silent | --silen | --sile | --sil)
1223 silent=yes ;;
1225 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1226 ac_prev=sbindir ;;
1227 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1228 | --sbi=* | --sb=*)
1229 sbindir=$ac_optarg ;;
1231 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1232 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1233 | --sharedst | --shareds | --shared | --share | --shar \
1234 | --sha | --sh)
1235 ac_prev=sharedstatedir ;;
1236 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1237 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1238 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1239 | --sha=* | --sh=*)
1240 sharedstatedir=$ac_optarg ;;
1242 -site | --site | --sit)
1243 ac_prev=site ;;
1244 -site=* | --site=* | --sit=*)
1245 site=$ac_optarg ;;
1247 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1248 ac_prev=srcdir ;;
1249 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1250 srcdir=$ac_optarg ;;
1252 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1253 | --syscon | --sysco | --sysc | --sys | --sy)
1254 ac_prev=sysconfdir ;;
1255 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1256 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1257 sysconfdir=$ac_optarg ;;
1259 -target | --target | --targe | --targ | --tar | --ta | --t)
1260 ac_prev=target_alias ;;
1261 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1262 target_alias=$ac_optarg ;;
1264 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1265 verbose=yes ;;
1267 -version | --version | --versio | --versi | --vers | -V)
1268 ac_init_version=: ;;
1270 -with-* | --with-*)
1271 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1275 { (exit 1); exit 1; }; }
1276 ac_useropt_orig=$ac_useropt
1277 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278 case $ac_user_opts in
1280 "with_$ac_useropt"
1281 "*) ;;
1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1283 ac_unrecognized_sep=', ';;
1284 esac
1285 eval with_$ac_useropt=\$ac_optarg ;;
1287 -without-* | --without-*)
1288 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1292 { (exit 1); exit 1; }; }
1293 ac_useropt_orig=$ac_useropt
1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1297 "with_$ac_useropt"
1298 "*) ;;
1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1300 ac_unrecognized_sep=', ';;
1301 esac
1302 eval with_$ac_useropt=no ;;
1304 --x)
1305 # Obsolete; use --with-x.
1306 with_x=yes ;;
1308 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1309 | --x-incl | --x-inc | --x-in | --x-i)
1310 ac_prev=x_includes ;;
1311 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1312 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1313 x_includes=$ac_optarg ;;
1315 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1316 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1317 ac_prev=x_libraries ;;
1318 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1319 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1320 x_libraries=$ac_optarg ;;
1322 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1323 Try \`$0 --help' for more information." >&2
1324 { (exit 1); exit 1; }; }
1327 *=*)
1328 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1329 # Reject names that are not valid shell variable names.
1330 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1331 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1332 { (exit 1); exit 1; }; }
1333 eval $ac_envvar=\$ac_optarg
1334 export $ac_envvar ;;
1337 # FIXME: should be removed in autoconf 3.0.
1338 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1339 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1340 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1341 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344 esac
1345 done
1347 if test -n "$ac_prev"; then
1348 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1349 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1350 { (exit 1); exit 1; }; }
1353 if test -n "$ac_unrecognized_opts"; then
1354 case $enable_option_checking in
1355 no) ;;
1356 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1357 { (exit 1); exit 1; }; } ;;
1358 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359 esac
1362 # Check all directory arguments for consistency.
1363 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
1368 eval ac_val=\$$ac_var
1369 # Remove trailing slashes.
1370 case $ac_val in
1371 */ )
1372 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373 eval $ac_var=\$ac_val;;
1374 esac
1375 # Be sure to have absolute directory names.
1376 case $ac_val in
1377 [\\/$]* | ?:[\\/]* ) continue;;
1378 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1379 esac
1380 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1381 { (exit 1); exit 1; }; }
1382 done
1384 # There might be people who depend on the old broken behavior: `$host'
1385 # used to hold the argument of --host etc.
1386 # FIXME: To remove some day.
1387 build=$build_alias
1388 host=$host_alias
1389 target=$target_alias
1391 # FIXME: To remove some day.
1392 if test "x$host_alias" != x; then
1393 if test "x$build_alias" = x; then
1394 cross_compiling=maybe
1395 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1396 If a cross compiler is detected then cross compile mode will be used." >&2
1397 elif test "x$build_alias" != "x$host_alias"; then
1398 cross_compiling=yes
1402 ac_tool_prefix=
1403 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1405 test "$silent" = yes && exec 6>/dev/null
1408 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1409 ac_ls_di=`ls -di .` &&
1410 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1411 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1412 { (exit 1); exit 1; }; }
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1415 { (exit 1); exit 1; }; }
1418 # Find the source files, if location was not specified.
1419 if test -z "$srcdir"; then
1420 ac_srcdir_defaulted=yes
1421 # Try the directory containing this script, then the parent directory.
1422 ac_confdir=`$as_dirname -- "$as_myself" ||
1423 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1424 X"$as_myself" : 'X\(//\)[^/]' \| \
1425 X"$as_myself" : 'X\(//\)$' \| \
1426 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1427 $as_echo X"$as_myself" |
1428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1429 s//\1/
1432 /^X\(\/\/\)[^/].*/{
1433 s//\1/
1436 /^X\(\/\/\)$/{
1437 s//\1/
1440 /^X\(\/\).*/{
1441 s//\1/
1444 s/.*/./; q'`
1445 srcdir=$ac_confdir
1446 if test ! -r "$srcdir/$ac_unique_file"; then
1447 srcdir=..
1449 else
1450 ac_srcdir_defaulted=no
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1454 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1455 { (exit 1); exit 1; }; }
1457 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1458 ac_abs_confdir=`(
1459 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1460 { (exit 1); exit 1; }; }
1461 pwd)`
1462 # When building in place, set srcdir=.
1463 if test "$ac_abs_confdir" = "$ac_pwd"; then
1464 srcdir=.
1466 # Remove unnecessary trailing slashes from srcdir.
1467 # Double slashes in file names in object file debugging info
1468 # mess up M-x gdb in Emacs.
1469 case $srcdir in
1470 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471 esac
1472 for ac_var in $ac_precious_vars; do
1473 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_env_${ac_var}_value=\$${ac_var}
1475 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477 done
1480 # Report the --help message.
1482 if test "$ac_init_help" = "long"; then
1483 # Omit some internal or obsolete options to make the list less imposing.
1484 # This message is too long to be a string in the A/UX 3.1 sh.
1485 cat <<_ACEOF
1486 \`configure' configures sqlite 3.8.7.4 to adapt to many kinds of systems.
1488 Usage: $0 [OPTION]... [VAR=VALUE]...
1490 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491 VAR=VALUE. See below for descriptions of some of the useful variables.
1493 Defaults for the options are specified in brackets.
1495 Configuration:
1496 -h, --help display this help and exit
1497 --help=short display options specific to this package
1498 --help=recursive display the short help of all the included packages
1499 -V, --version display version information and exit
1500 -q, --quiet, --silent do not print \`checking...' messages
1501 --cache-file=FILE cache test results in FILE [disabled]
1502 -C, --config-cache alias for \`--cache-file=config.cache'
1503 -n, --no-create do not create output files
1504 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1506 Installation directories:
1507 --prefix=PREFIX install architecture-independent files in PREFIX
1508 [$ac_default_prefix]
1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1510 [PREFIX]
1512 By default, \`make install' will install all the files in
1513 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1514 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515 for instance \`--prefix=\$HOME'.
1517 For better control, use the options below.
1519 Fine tuning of the installation directories:
1520 --bindir=DIR user executables [EPREFIX/bin]
1521 --sbindir=DIR system admin executables [EPREFIX/sbin]
1522 --libexecdir=DIR program executables [EPREFIX/libexec]
1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1526 --libdir=DIR object code libraries [EPREFIX/lib]
1527 --includedir=DIR C header files [PREFIX/include]
1528 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1531 --infodir=DIR info documentation [DATAROOTDIR/info]
1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1533 --mandir=DIR man documentation [DATAROOTDIR/man]
1534 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1535 --htmldir=DIR html documentation [DOCDIR]
1536 --dvidir=DIR dvi documentation [DOCDIR]
1537 --pdfdir=DIR pdf documentation [DOCDIR]
1538 --psdir=DIR ps documentation [DOCDIR]
1539 _ACEOF
1541 cat <<\_ACEOF
1543 System types:
1544 --build=BUILD configure for building on BUILD [guessed]
1545 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1546 _ACEOF
1549 if test -n "$ac_init_help"; then
1550 case $ac_init_help in
1551 short | recursive ) echo "Configuration of sqlite 3.8.7.4:";;
1552 esac
1553 cat <<\_ACEOF
1555 Optional Features:
1556 --disable-option-checking ignore unrecognized --enable/--with options
1557 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1558 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1559 --enable-shared[=PKGS] build shared libraries [default=yes]
1560 --enable-static[=PKGS] build static libraries [default=yes]
1561 --enable-fast-install[=PKGS]
1562 optimize for fast installation [default=yes]
1563 --disable-libtool-lock avoid locking (might break parallel builds)
1564 --disable-largefile omit support for large files
1565 --enable-threadsafe Support threadsafe operation
1566 --enable-cross-thread-connections
1567 Allow connection sharing across threads
1568 --enable-releasemode Support libtool link to release mode
1569 --enable-tempstore Use an in-ram database for temporary tables
1570 (never,no,yes,always)
1571 --disable-tcl do not build TCL extension
1572 --disable-readline disable readline support [default=detect]
1573 --enable-debug enable debugging & verbose explain
1574 --disable-amalgamation Disable the amalgamation and instead build all files
1575 separately
1576 --enable-load-extension Enable loading of external extensions
1577 --enable-gcov Enable coverage testing using gcov
1579 Optional Packages:
1580 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1581 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1582 --with-pic try to use only PIC/non-PIC objects [default=use
1583 both]
1584 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1585 --with-hints=FILE Read configuration options from FILE
1586 --with-tcl=DIR directory containing tcl configuration
1587 (tclConfig.sh)
1588 --with-readline-lib specify readline library
1589 --with-readline-inc specify readline include paths
1591 Some influential environment variables:
1592 CC C compiler command
1593 CFLAGS C compiler flags
1594 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1595 nonstandard directory <lib dir>
1596 LIBS libraries to pass to the linker, e.g. -l<library>
1597 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1598 you have headers in a nonstandard directory <include dir>
1599 CPP C preprocessor
1600 TCLLIBDIR Where to install tcl plugin
1602 Use these variables to override the choices made by `configure' or to help
1603 it to find libraries and programs with nonstandard names/locations.
1605 _ACEOF
1606 ac_status=$?
1609 if test "$ac_init_help" = "recursive"; then
1610 # If there are subdirs, report their specific --help.
1611 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1612 test -d "$ac_dir" ||
1613 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1614 continue
1615 ac_builddir=.
1617 case "$ac_dir" in
1618 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1621 # A ".." for each directory in $ac_dir_suffix.
1622 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1623 case $ac_top_builddir_sub in
1624 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1626 esac ;;
1627 esac
1628 ac_abs_top_builddir=$ac_pwd
1629 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1630 # for backward compatibility:
1631 ac_top_builddir=$ac_top_build_prefix
1633 case $srcdir in
1634 .) # We are building in place.
1635 ac_srcdir=.
1636 ac_top_srcdir=$ac_top_builddir_sub
1637 ac_abs_top_srcdir=$ac_pwd ;;
1638 [\\/]* | ?:[\\/]* ) # Absolute name.
1639 ac_srcdir=$srcdir$ac_dir_suffix;
1640 ac_top_srcdir=$srcdir
1641 ac_abs_top_srcdir=$srcdir ;;
1642 *) # Relative name.
1643 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1644 ac_top_srcdir=$ac_top_build_prefix$srcdir
1645 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1646 esac
1647 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1649 cd "$ac_dir" || { ac_status=$?; continue; }
1650 # Check for guested configure.
1651 if test -f "$ac_srcdir/configure.gnu"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1654 elif test -f "$ac_srcdir/configure"; then
1655 echo &&
1656 $SHELL "$ac_srcdir/configure" --help=recursive
1657 else
1658 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1659 fi || ac_status=$?
1660 cd "$ac_pwd" || { ac_status=$?; break; }
1661 done
1664 test -n "$ac_init_help" && exit $ac_status
1665 if $ac_init_version; then
1666 cat <<\_ACEOF
1667 sqlite configure 3.8.7.4
1668 generated by GNU Autoconf 2.62
1670 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1671 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1672 This configure script is free software; the Free Software Foundation
1673 gives unlimited permission to copy, distribute and modify it.
1674 _ACEOF
1675 exit
1677 cat >config.log <<_ACEOF
1678 This file contains any messages produced by compilers while
1679 running configure, to aid debugging if configure makes a mistake.
1681 It was created by sqlite $as_me 3.8.7.4, which was
1682 generated by GNU Autoconf 2.62. Invocation command line was
1684 $ $0 $@
1686 _ACEOF
1687 exec 5>>config.log
1689 cat <<_ASUNAME
1690 ## --------- ##
1691 ## Platform. ##
1692 ## --------- ##
1694 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1695 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1696 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1697 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1698 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1700 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1701 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1703 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1704 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1705 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1706 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1707 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1708 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1709 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1711 _ASUNAME
1713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714 for as_dir in $PATH
1716 IFS=$as_save_IFS
1717 test -z "$as_dir" && as_dir=.
1718 $as_echo "PATH: $as_dir"
1719 done
1720 IFS=$as_save_IFS
1722 } >&5
1724 cat >&5 <<_ACEOF
1727 ## ----------- ##
1728 ## Core tests. ##
1729 ## ----------- ##
1731 _ACEOF
1734 # Keep a trace of the command line.
1735 # Strip out --no-create and --no-recursion so they do not pile up.
1736 # Strip out --silent because we don't want to record it for future runs.
1737 # Also quote any args containing shell meta-characters.
1738 # Make two passes to allow for proper duplicate-argument suppression.
1739 ac_configure_args=
1740 ac_configure_args0=
1741 ac_configure_args1=
1742 ac_must_keep_next=false
1743 for ac_pass in 1 2
1745 for ac_arg
1747 case $ac_arg in
1748 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1749 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1750 | -silent | --silent | --silen | --sile | --sil)
1751 continue ;;
1752 *\'*)
1753 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1754 esac
1755 case $ac_pass in
1756 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1758 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1759 if test $ac_must_keep_next = true; then
1760 ac_must_keep_next=false # Got value, back to normal.
1761 else
1762 case $ac_arg in
1763 *=* | --config-cache | -C | -disable-* | --disable-* \
1764 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1765 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1766 | -with-* | --with-* | -without-* | --without-* | --x)
1767 case "$ac_configure_args0 " in
1768 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1769 esac
1771 -* ) ac_must_keep_next=true ;;
1772 esac
1774 ac_configure_args="$ac_configure_args '$ac_arg'"
1776 esac
1777 done
1778 done
1779 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1780 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1782 # When interrupted or exit'd, cleanup temporary files, and complete
1783 # config.log. We remove comments because anyway the quotes in there
1784 # would cause problems or look ugly.
1785 # WARNING: Use '\'' to represent an apostrophe within the trap.
1786 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1787 trap 'exit_status=$?
1788 # Save into config.log some information that might help in debugging.
1790 echo
1792 cat <<\_ASBOX
1793 ## ---------------- ##
1794 ## Cache variables. ##
1795 ## ---------------- ##
1796 _ASBOX
1797 echo
1798 # The following way of writing the cache mishandles newlines in values,
1800 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1801 eval ac_val=\$$ac_var
1802 case $ac_val in #(
1803 *${as_nl}*)
1804 case $ac_var in #(
1805 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1806 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1807 esac
1808 case $ac_var in #(
1809 _ | IFS | as_nl) ;; #(
1810 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1811 *) $as_unset $ac_var ;;
1812 esac ;;
1813 esac
1814 done
1815 (set) 2>&1 |
1816 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1817 *${as_nl}ac_space=\ *)
1818 sed -n \
1819 "s/'\''/'\''\\\\'\'''\''/g;
1820 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1821 ;; #(
1823 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1825 esac |
1826 sort
1828 echo
1830 cat <<\_ASBOX
1831 ## ----------------- ##
1832 ## Output variables. ##
1833 ## ----------------- ##
1834 _ASBOX
1835 echo
1836 for ac_var in $ac_subst_vars
1838 eval ac_val=\$$ac_var
1839 case $ac_val in
1840 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1841 esac
1842 $as_echo "$ac_var='\''$ac_val'\''"
1843 done | sort
1844 echo
1846 if test -n "$ac_subst_files"; then
1847 cat <<\_ASBOX
1848 ## ------------------- ##
1849 ## File substitutions. ##
1850 ## ------------------- ##
1851 _ASBOX
1852 echo
1853 for ac_var in $ac_subst_files
1855 eval ac_val=\$$ac_var
1856 case $ac_val in
1857 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1858 esac
1859 $as_echo "$ac_var='\''$ac_val'\''"
1860 done | sort
1861 echo
1864 if test -s confdefs.h; then
1865 cat <<\_ASBOX
1866 ## ----------- ##
1867 ## confdefs.h. ##
1868 ## ----------- ##
1869 _ASBOX
1870 echo
1871 cat confdefs.h
1872 echo
1874 test "$ac_signal" != 0 &&
1875 $as_echo "$as_me: caught signal $ac_signal"
1876 $as_echo "$as_me: exit $exit_status"
1877 } >&5
1878 rm -f core *.core core.conftest.* &&
1879 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1880 exit $exit_status
1882 for ac_signal in 1 2 13 15; do
1883 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1884 done
1885 ac_signal=0
1887 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1888 rm -f -r conftest* confdefs.h
1890 # Predefined preprocessor variables.
1892 cat >>confdefs.h <<_ACEOF
1893 #define PACKAGE_NAME "$PACKAGE_NAME"
1894 _ACEOF
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1899 _ACEOF
1902 cat >>confdefs.h <<_ACEOF
1903 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1904 _ACEOF
1907 cat >>confdefs.h <<_ACEOF
1908 #define PACKAGE_STRING "$PACKAGE_STRING"
1909 _ACEOF
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1914 _ACEOF
1917 # Let the site file select an alternate cache file if it wants to.
1918 # Prefer an explicitly selected file to automatically selected ones.
1919 ac_site_file1=NONE
1920 ac_site_file2=NONE
1921 if test -n "$CONFIG_SITE"; then
1922 ac_site_file1=$CONFIG_SITE
1923 elif test "x$prefix" != xNONE; then
1924 ac_site_file1=$prefix/share/config.site
1925 ac_site_file2=$prefix/etc/config.site
1926 else
1927 ac_site_file1=$ac_default_prefix/share/config.site
1928 ac_site_file2=$ac_default_prefix/etc/config.site
1930 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1932 test "x$ac_site_file" = xNONE && continue
1933 if test -r "$ac_site_file"; then
1934 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1935 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1936 sed 's/^/| /' "$ac_site_file" >&5
1937 . "$ac_site_file"
1939 done
1941 if test -r "$cache_file"; then
1942 # Some versions of bash will fail to source /dev/null (special
1943 # files actually), so we avoid doing that.
1944 if test -f "$cache_file"; then
1945 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1946 $as_echo "$as_me: loading cache $cache_file" >&6;}
1947 case $cache_file in
1948 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1949 *) . "./$cache_file";;
1950 esac
1952 else
1953 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1954 $as_echo "$as_me: creating cache $cache_file" >&6;}
1955 >$cache_file
1958 # Check that the precious variables saved in the cache have kept the same
1959 # value.
1960 ac_cache_corrupted=false
1961 for ac_var in $ac_precious_vars; do
1962 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1963 eval ac_new_set=\$ac_env_${ac_var}_set
1964 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1965 eval ac_new_val=\$ac_env_${ac_var}_value
1966 case $ac_old_set,$ac_new_set in
1967 set,)
1968 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1969 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1970 ac_cache_corrupted=: ;;
1971 ,set)
1972 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1973 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1974 ac_cache_corrupted=: ;;
1975 ,);;
1977 if test "x$ac_old_val" != "x$ac_new_val"; then
1978 # differences in whitespace do not lead to failure.
1979 ac_old_val_w=`echo x $ac_old_val`
1980 ac_new_val_w=`echo x $ac_new_val`
1981 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1982 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1983 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1984 ac_cache_corrupted=:
1985 else
1986 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1987 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1988 eval $ac_var=\$ac_old_val
1990 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1991 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1992 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1993 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1994 fi;;
1995 esac
1996 # Pass precious variables to config.status.
1997 if test "$ac_new_set" = set; then
1998 case $ac_new_val in
1999 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2000 *) ac_arg=$ac_var=$ac_new_val ;;
2001 esac
2002 case " $ac_configure_args " in
2003 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2004 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2005 esac
2007 done
2008 if $ac_cache_corrupted; then
2009 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2010 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2011 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2012 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2013 { (exit 1); exit 1; }; }
2040 ac_ext=c
2041 ac_cpp='$CPP $CPPFLAGS'
2042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2048 sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
2049 if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2050 { { $as_echo "$as_me:$LINENO: error: configure script is out of date:
2051 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2052 top level VERSION file = $sqlite_version_sanity_check
2053 please regen with autoconf" >&5
2054 $as_echo "$as_me: error: configure script is out of date:
2055 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2056 top level VERSION file = $sqlite_version_sanity_check
2057 please regen with autoconf" >&2;}
2058 { (exit 1); exit 1; }; }
2061 # The following RCS revision string applies to configure.in
2062 # $Revision: 1.56 $
2064 #########
2065 # Programs needed
2067 case `pwd` in
2068 *\ * | *\ *)
2069 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2070 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2071 esac
2075 macro_version='2.2.6'
2076 macro_revision='1.3012'
2090 ltmain="$ac_aux_dir/ltmain.sh"
2092 ac_aux_dir=
2093 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2094 if test -f "$ac_dir/install-sh"; then
2095 ac_aux_dir=$ac_dir
2096 ac_install_sh="$ac_aux_dir/install-sh -c"
2097 break
2098 elif test -f "$ac_dir/install.sh"; then
2099 ac_aux_dir=$ac_dir
2100 ac_install_sh="$ac_aux_dir/install.sh -c"
2101 break
2102 elif test -f "$ac_dir/shtool"; then
2103 ac_aux_dir=$ac_dir
2104 ac_install_sh="$ac_aux_dir/shtool install -c"
2105 break
2107 done
2108 if test -z "$ac_aux_dir"; then
2109 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2110 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2111 { (exit 1); exit 1; }; }
2114 # These three variables are undocumented and unsupported,
2115 # and are intended to be withdrawn in a future Autoconf release.
2116 # They can cause serious problems if a builder's source tree is in a directory
2117 # whose full name contains unusual characters.
2118 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2119 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2120 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2123 # Make sure we can run config.sub.
2124 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2125 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2126 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2127 { (exit 1); exit 1; }; }
2129 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2130 $as_echo_n "checking build system type... " >&6; }
2131 if test "${ac_cv_build+set}" = set; then
2132 $as_echo_n "(cached) " >&6
2133 else
2134 ac_build_alias=$build_alias
2135 test "x$ac_build_alias" = x &&
2136 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2137 test "x$ac_build_alias" = x &&
2138 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2139 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2140 { (exit 1); exit 1; }; }
2141 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2142 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2143 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2144 { (exit 1); exit 1; }; }
2147 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2148 $as_echo "$ac_cv_build" >&6; }
2149 case $ac_cv_build in
2150 *-*-*) ;;
2151 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2152 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2153 { (exit 1); exit 1; }; };;
2154 esac
2155 build=$ac_cv_build
2156 ac_save_IFS=$IFS; IFS='-'
2157 set x $ac_cv_build
2158 shift
2159 build_cpu=$1
2160 build_vendor=$2
2161 shift; shift
2162 # Remember, the first character of IFS is used to create $*,
2163 # except with old shells:
2164 build_os=$*
2165 IFS=$ac_save_IFS
2166 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2169 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2170 $as_echo_n "checking host system type... " >&6; }
2171 if test "${ac_cv_host+set}" = set; then
2172 $as_echo_n "(cached) " >&6
2173 else
2174 if test "x$host_alias" = x; then
2175 ac_cv_host=$ac_cv_build
2176 else
2177 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2178 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2179 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2180 { (exit 1); exit 1; }; }
2184 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2185 $as_echo "$ac_cv_host" >&6; }
2186 case $ac_cv_host in
2187 *-*-*) ;;
2188 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2189 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2190 { (exit 1); exit 1; }; };;
2191 esac
2192 host=$ac_cv_host
2193 ac_save_IFS=$IFS; IFS='-'
2194 set x $ac_cv_host
2195 shift
2196 host_cpu=$1
2197 host_vendor=$2
2198 shift; shift
2199 # Remember, the first character of IFS is used to create $*,
2200 # except with old shells:
2201 host_os=$*
2202 IFS=$ac_save_IFS
2203 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2206 ac_ext=c
2207 ac_cpp='$CPP $CPPFLAGS'
2208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2211 if test -n "$ac_tool_prefix"; then
2212 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2213 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2214 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2215 $as_echo_n "checking for $ac_word... " >&6; }
2216 if test "${ac_cv_prog_CC+set}" = set; then
2217 $as_echo_n "(cached) " >&6
2218 else
2219 if test -n "$CC"; then
2220 ac_cv_prog_CC="$CC" # Let the user override the test.
2221 else
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223 for as_dir in $PATH
2225 IFS=$as_save_IFS
2226 test -z "$as_dir" && as_dir=.
2227 for ac_exec_ext in '' $ac_executable_extensions; do
2228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2229 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2230 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231 break 2
2233 done
2234 done
2235 IFS=$as_save_IFS
2239 CC=$ac_cv_prog_CC
2240 if test -n "$CC"; then
2241 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2242 $as_echo "$CC" >&6; }
2243 else
2244 { $as_echo "$as_me:$LINENO: result: no" >&5
2245 $as_echo "no" >&6; }
2250 if test -z "$ac_cv_prog_CC"; then
2251 ac_ct_CC=$CC
2252 # Extract the first word of "gcc", so it can be a program name with args.
2253 set dummy gcc; ac_word=$2
2254 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2255 $as_echo_n "checking for $ac_word... " >&6; }
2256 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2257 $as_echo_n "(cached) " >&6
2258 else
2259 if test -n "$ac_ct_CC"; then
2260 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2261 else
2262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 for as_dir in $PATH
2265 IFS=$as_save_IFS
2266 test -z "$as_dir" && as_dir=.
2267 for ac_exec_ext in '' $ac_executable_extensions; do
2268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2269 ac_cv_prog_ac_ct_CC="gcc"
2270 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2271 break 2
2273 done
2274 done
2275 IFS=$as_save_IFS
2279 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2280 if test -n "$ac_ct_CC"; then
2281 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2282 $as_echo "$ac_ct_CC" >&6; }
2283 else
2284 { $as_echo "$as_me:$LINENO: result: no" >&5
2285 $as_echo "no" >&6; }
2288 if test "x$ac_ct_CC" = x; then
2289 CC=""
2290 else
2291 case $cross_compiling:$ac_tool_warned in
2292 yes:)
2293 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2294 whose name does not start with the host triplet. If you think this
2295 configuration is useful to you, please write to autoconf@gnu.org." >&5
2296 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2297 whose name does not start with the host triplet. If you think this
2298 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2299 ac_tool_warned=yes ;;
2300 esac
2301 CC=$ac_ct_CC
2303 else
2304 CC="$ac_cv_prog_CC"
2307 if test -z "$CC"; then
2308 if test -n "$ac_tool_prefix"; then
2309 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2310 set dummy ${ac_tool_prefix}cc; ac_word=$2
2311 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 $as_echo_n "checking for $ac_word... " >&6; }
2313 if test "${ac_cv_prog_CC+set}" = set; then
2314 $as_echo_n "(cached) " >&6
2315 else
2316 if test -n "$CC"; then
2317 ac_cv_prog_CC="$CC" # Let the user override the test.
2318 else
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2322 IFS=$as_save_IFS
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2326 ac_cv_prog_CC="${ac_tool_prefix}cc"
2327 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328 break 2
2330 done
2331 done
2332 IFS=$as_save_IFS
2336 CC=$ac_cv_prog_CC
2337 if test -n "$CC"; then
2338 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2339 $as_echo "$CC" >&6; }
2340 else
2341 { $as_echo "$as_me:$LINENO: result: no" >&5
2342 $as_echo "no" >&6; }
2348 if test -z "$CC"; then
2349 # Extract the first word of "cc", so it can be a program name with args.
2350 set dummy cc; ac_word=$2
2351 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2352 $as_echo_n "checking for $ac_word... " >&6; }
2353 if test "${ac_cv_prog_CC+set}" = set; then
2354 $as_echo_n "(cached) " >&6
2355 else
2356 if test -n "$CC"; then
2357 ac_cv_prog_CC="$CC" # Let the user override the test.
2358 else
2359 ac_prog_rejected=no
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 for as_dir in $PATH
2363 IFS=$as_save_IFS
2364 test -z "$as_dir" && as_dir=.
2365 for ac_exec_ext in '' $ac_executable_extensions; do
2366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2367 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2368 ac_prog_rejected=yes
2369 continue
2371 ac_cv_prog_CC="cc"
2372 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373 break 2
2375 done
2376 done
2377 IFS=$as_save_IFS
2379 if test $ac_prog_rejected = yes; then
2380 # We found a bogon in the path, so make sure we never use it.
2381 set dummy $ac_cv_prog_CC
2382 shift
2383 if test $# != 0; then
2384 # We chose a different compiler from the bogus one.
2385 # However, it has the same basename, so the bogon will be chosen
2386 # first if we set CC to just the basename; use the full file name.
2387 shift
2388 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2393 CC=$ac_cv_prog_CC
2394 if test -n "$CC"; then
2395 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2396 $as_echo "$CC" >&6; }
2397 else
2398 { $as_echo "$as_me:$LINENO: result: no" >&5
2399 $as_echo "no" >&6; }
2404 if test -z "$CC"; then
2405 if test -n "$ac_tool_prefix"; then
2406 for ac_prog in cl.exe
2408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2410 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2411 $as_echo_n "checking for $ac_word... " >&6; }
2412 if test "${ac_cv_prog_CC+set}" = set; then
2413 $as_echo_n "(cached) " >&6
2414 else
2415 if test -n "$CC"; then
2416 ac_cv_prog_CC="$CC" # Let the user override the test.
2417 else
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 for as_dir in $PATH
2421 IFS=$as_save_IFS
2422 test -z "$as_dir" && as_dir=.
2423 for ac_exec_ext in '' $ac_executable_extensions; do
2424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2425 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2426 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2427 break 2
2429 done
2430 done
2431 IFS=$as_save_IFS
2435 CC=$ac_cv_prog_CC
2436 if test -n "$CC"; then
2437 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2438 $as_echo "$CC" >&6; }
2439 else
2440 { $as_echo "$as_me:$LINENO: result: no" >&5
2441 $as_echo "no" >&6; }
2445 test -n "$CC" && break
2446 done
2448 if test -z "$CC"; then
2449 ac_ct_CC=$CC
2450 for ac_prog in cl.exe
2452 # Extract the first word of "$ac_prog", so it can be a program name with args.
2453 set dummy $ac_prog; ac_word=$2
2454 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2455 $as_echo_n "checking for $ac_word... " >&6; }
2456 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2457 $as_echo_n "(cached) " >&6
2458 else
2459 if test -n "$ac_ct_CC"; then
2460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2461 else
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH
2465 IFS=$as_save_IFS
2466 test -z "$as_dir" && as_dir=.
2467 for ac_exec_ext in '' $ac_executable_extensions; do
2468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2469 ac_cv_prog_ac_ct_CC="$ac_prog"
2470 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2471 break 2
2473 done
2474 done
2475 IFS=$as_save_IFS
2479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2480 if test -n "$ac_ct_CC"; then
2481 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2482 $as_echo "$ac_ct_CC" >&6; }
2483 else
2484 { $as_echo "$as_me:$LINENO: result: no" >&5
2485 $as_echo "no" >&6; }
2489 test -n "$ac_ct_CC" && break
2490 done
2492 if test "x$ac_ct_CC" = x; then
2493 CC=""
2494 else
2495 case $cross_compiling:$ac_tool_warned in
2496 yes:)
2497 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2498 whose name does not start with the host triplet. If you think this
2499 configuration is useful to you, please write to autoconf@gnu.org." >&5
2500 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2501 whose name does not start with the host triplet. If you think this
2502 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2503 ac_tool_warned=yes ;;
2504 esac
2505 CC=$ac_ct_CC
2512 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2513 See \`config.log' for more details." >&5
2514 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2515 See \`config.log' for more details." >&2;}
2516 { (exit 1); exit 1; }; }
2518 # Provide some information about the compiler.
2519 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2520 set X $ac_compile
2521 ac_compiler=$2
2522 { (ac_try="$ac_compiler --version >&5"
2523 case "(($ac_try" in
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2526 esac
2527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2528 $as_echo "$ac_try_echo") >&5
2529 (eval "$ac_compiler --version >&5") 2>&5
2530 ac_status=$?
2531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }
2533 { (ac_try="$ac_compiler -v >&5"
2534 case "(($ac_try" in
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2537 esac
2538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2539 $as_echo "$ac_try_echo") >&5
2540 (eval "$ac_compiler -v >&5") 2>&5
2541 ac_status=$?
2542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }
2544 { (ac_try="$ac_compiler -V >&5"
2545 case "(($ac_try" in
2546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2547 *) ac_try_echo=$ac_try;;
2548 esac
2549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2550 $as_echo "$ac_try_echo") >&5
2551 (eval "$ac_compiler -V >&5") 2>&5
2552 ac_status=$?
2553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }
2556 cat >conftest.$ac_ext <<_ACEOF
2557 /* confdefs.h. */
2558 _ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h. */
2564 main ()
2568 return 0;
2570 _ACEOF
2571 ac_clean_files_save=$ac_clean_files
2572 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2573 # Try to create an executable without -o first, disregard a.out.
2574 # It will help us diagnose broken compilers, and finding out an intuition
2575 # of exeext.
2576 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2577 $as_echo_n "checking for C compiler default output file name... " >&6; }
2578 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2580 # The possible output files:
2581 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2583 ac_rmfiles=
2584 for ac_file in $ac_files
2586 case $ac_file in
2587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2588 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2589 esac
2590 done
2591 rm -f $ac_rmfiles
2593 if { (ac_try="$ac_link_default"
2594 case "(($ac_try" in
2595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596 *) ac_try_echo=$ac_try;;
2597 esac
2598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2599 $as_echo "$ac_try_echo") >&5
2600 (eval "$ac_link_default") 2>&5
2601 ac_status=$?
2602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; then
2604 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2605 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2606 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2607 # so that the user can short-circuit this test for compilers unknown to
2608 # Autoconf.
2609 for ac_file in $ac_files ''
2611 test -f "$ac_file" || continue
2612 case $ac_file in
2613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2615 [ab].out )
2616 # We found the default executable, but exeext='' is most
2617 # certainly right.
2618 break;;
2619 *.* )
2620 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2621 then :; else
2622 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2624 # We set ac_cv_exeext here because the later test for it is not
2625 # safe: cross compilers may not add the suffix if given an `-o'
2626 # argument, so we may need to know it at that point already.
2627 # Even if this section looks crufty: it has the advantage of
2628 # actually working.
2629 break;;
2631 break;;
2632 esac
2633 done
2634 test "$ac_cv_exeext" = no && ac_cv_exeext=
2636 else
2637 ac_file=''
2640 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2641 $as_echo "$ac_file" >&6; }
2642 if test -z "$ac_file"; then
2643 $as_echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2646 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2647 See \`config.log' for more details." >&5
2648 $as_echo "$as_me: error: C compiler cannot create executables
2649 See \`config.log' for more details." >&2;}
2650 { (exit 77); exit 77; }; }
2653 ac_exeext=$ac_cv_exeext
2655 # Check that the compiler produces executables we can run. If not, either
2656 # the compiler is broken, or we cross compile.
2657 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2658 $as_echo_n "checking whether the C compiler works... " >&6; }
2659 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2660 # If not cross compiling, check that we can run a simple program.
2661 if test "$cross_compiling" != yes; then
2662 if { ac_try='./$ac_file'
2663 { (case "(($ac_try" in
2664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665 *) ac_try_echo=$ac_try;;
2666 esac
2667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2668 $as_echo "$ac_try_echo") >&5
2669 (eval "$ac_try") 2>&5
2670 ac_status=$?
2671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; }; then
2673 cross_compiling=no
2674 else
2675 if test "$cross_compiling" = maybe; then
2676 cross_compiling=yes
2677 else
2678 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2679 If you meant to cross compile, use \`--host'.
2680 See \`config.log' for more details." >&5
2681 $as_echo "$as_me: error: cannot run C compiled programs.
2682 If you meant to cross compile, use \`--host'.
2683 See \`config.log' for more details." >&2;}
2684 { (exit 1); exit 1; }; }
2688 { $as_echo "$as_me:$LINENO: result: yes" >&5
2689 $as_echo "yes" >&6; }
2691 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2692 ac_clean_files=$ac_clean_files_save
2693 # Check that the compiler produces executables we can run. If not, either
2694 # the compiler is broken, or we cross compile.
2695 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2696 $as_echo_n "checking whether we are cross compiling... " >&6; }
2697 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2698 $as_echo "$cross_compiling" >&6; }
2700 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2701 $as_echo_n "checking for suffix of executables... " >&6; }
2702 if { (ac_try="$ac_link"
2703 case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2706 esac
2707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2708 $as_echo "$ac_try_echo") >&5
2709 (eval "$ac_link") 2>&5
2710 ac_status=$?
2711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; then
2713 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2714 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2715 # work properly (i.e., refer to `conftest.exe'), while it won't with
2716 # `rm'.
2717 for ac_file in conftest.exe conftest conftest.*; do
2718 test -f "$ac_file" || continue
2719 case $ac_file in
2720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2721 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2722 break;;
2723 * ) break;;
2724 esac
2725 done
2726 else
2727 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2728 See \`config.log' for more details." >&5
2729 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2730 See \`config.log' for more details." >&2;}
2731 { (exit 1); exit 1; }; }
2734 rm -f conftest$ac_cv_exeext
2735 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2736 $as_echo "$ac_cv_exeext" >&6; }
2738 rm -f conftest.$ac_ext
2739 EXEEXT=$ac_cv_exeext
2740 ac_exeext=$EXEEXT
2741 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2742 $as_echo_n "checking for suffix of object files... " >&6; }
2743 if test "${ac_cv_objext+set}" = set; then
2744 $as_echo_n "(cached) " >&6
2745 else
2746 cat >conftest.$ac_ext <<_ACEOF
2747 /* confdefs.h. */
2748 _ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h. */
2754 main ()
2758 return 0;
2760 _ACEOF
2761 rm -f conftest.o conftest.obj
2762 if { (ac_try="$ac_compile"
2763 case "(($ac_try" in
2764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765 *) ac_try_echo=$ac_try;;
2766 esac
2767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2768 $as_echo "$ac_try_echo") >&5
2769 (eval "$ac_compile") 2>&5
2770 ac_status=$?
2771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; then
2773 for ac_file in conftest.o conftest.obj conftest.*; do
2774 test -f "$ac_file" || continue;
2775 case $ac_file in
2776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2777 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2778 break;;
2779 esac
2780 done
2781 else
2782 $as_echo "$as_me: failed program was:" >&5
2783 sed 's/^/| /' conftest.$ac_ext >&5
2785 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2786 See \`config.log' for more details." >&5
2787 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2788 See \`config.log' for more details." >&2;}
2789 { (exit 1); exit 1; }; }
2792 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2794 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2795 $as_echo "$ac_cv_objext" >&6; }
2796 OBJEXT=$ac_cv_objext
2797 ac_objext=$OBJEXT
2798 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2799 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2800 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2801 $as_echo_n "(cached) " >&6
2802 else
2803 cat >conftest.$ac_ext <<_ACEOF
2804 /* confdefs.h. */
2805 _ACEOF
2806 cat confdefs.h >>conftest.$ac_ext
2807 cat >>conftest.$ac_ext <<_ACEOF
2808 /* end confdefs.h. */
2811 main ()
2813 #ifndef __GNUC__
2814 choke me
2815 #endif
2818 return 0;
2820 _ACEOF
2821 rm -f conftest.$ac_objext
2822 if { (ac_try="$ac_compile"
2823 case "(($ac_try" in
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2826 esac
2827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2828 $as_echo "$ac_try_echo") >&5
2829 (eval "$ac_compile") 2>conftest.er1
2830 ac_status=$?
2831 grep -v '^ *+' conftest.er1 >conftest.err
2832 rm -f conftest.er1
2833 cat conftest.err >&5
2834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } && {
2836 test -z "$ac_c_werror_flag" ||
2837 test ! -s conftest.err
2838 } && test -s conftest.$ac_objext; then
2839 ac_compiler_gnu=yes
2840 else
2841 $as_echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2844 ac_compiler_gnu=no
2847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2848 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2851 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2852 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2853 if test $ac_compiler_gnu = yes; then
2854 GCC=yes
2855 else
2856 GCC=
2858 ac_test_CFLAGS=${CFLAGS+set}
2859 ac_save_CFLAGS=$CFLAGS
2860 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2861 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2862 if test "${ac_cv_prog_cc_g+set}" = set; then
2863 $as_echo_n "(cached) " >&6
2864 else
2865 ac_save_c_werror_flag=$ac_c_werror_flag
2866 ac_c_werror_flag=yes
2867 ac_cv_prog_cc_g=no
2868 CFLAGS="-g"
2869 cat >conftest.$ac_ext <<_ACEOF
2870 /* confdefs.h. */
2871 _ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h. */
2877 main ()
2881 return 0;
2883 _ACEOF
2884 rm -f conftest.$ac_objext
2885 if { (ac_try="$ac_compile"
2886 case "(($ac_try" in
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2889 esac
2890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2891 $as_echo "$ac_try_echo") >&5
2892 (eval "$ac_compile") 2>conftest.er1
2893 ac_status=$?
2894 grep -v '^ *+' conftest.er1 >conftest.err
2895 rm -f conftest.er1
2896 cat conftest.err >&5
2897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } && {
2899 test -z "$ac_c_werror_flag" ||
2900 test ! -s conftest.err
2901 } && test -s conftest.$ac_objext; then
2902 ac_cv_prog_cc_g=yes
2903 else
2904 $as_echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2907 CFLAGS=""
2908 cat >conftest.$ac_ext <<_ACEOF
2909 /* confdefs.h. */
2910 _ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h. */
2916 main ()
2920 return 0;
2922 _ACEOF
2923 rm -f conftest.$ac_objext
2924 if { (ac_try="$ac_compile"
2925 case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2928 esac
2929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2930 $as_echo "$ac_try_echo") >&5
2931 (eval "$ac_compile") 2>conftest.er1
2932 ac_status=$?
2933 grep -v '^ *+' conftest.er1 >conftest.err
2934 rm -f conftest.er1
2935 cat conftest.err >&5
2936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); } && {
2938 test -z "$ac_c_werror_flag" ||
2939 test ! -s conftest.err
2940 } && test -s conftest.$ac_objext; then
2942 else
2943 $as_echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2946 ac_c_werror_flag=$ac_save_c_werror_flag
2947 CFLAGS="-g"
2948 cat >conftest.$ac_ext <<_ACEOF
2949 /* confdefs.h. */
2950 _ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h. */
2956 main ()
2960 return 0;
2962 _ACEOF
2963 rm -f conftest.$ac_objext
2964 if { (ac_try="$ac_compile"
2965 case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968 esac
2969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2970 $as_echo "$ac_try_echo") >&5
2971 (eval "$ac_compile") 2>conftest.er1
2972 ac_status=$?
2973 grep -v '^ *+' conftest.er1 >conftest.err
2974 rm -f conftest.er1
2975 cat conftest.err >&5
2976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); } && {
2978 test -z "$ac_c_werror_flag" ||
2979 test ! -s conftest.err
2980 } && test -s conftest.$ac_objext; then
2981 ac_cv_prog_cc_g=yes
2982 else
2983 $as_echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2996 ac_c_werror_flag=$ac_save_c_werror_flag
2998 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2999 $as_echo "$ac_cv_prog_cc_g" >&6; }
3000 if test "$ac_test_CFLAGS" = set; then
3001 CFLAGS=$ac_save_CFLAGS
3002 elif test $ac_cv_prog_cc_g = yes; then
3003 if test "$GCC" = yes; then
3004 CFLAGS="-g -O2"
3005 else
3006 CFLAGS="-g"
3008 else
3009 if test "$GCC" = yes; then
3010 CFLAGS="-O2"
3011 else
3012 CFLAGS=
3015 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3016 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3017 if test "${ac_cv_prog_cc_c89+set}" = set; then
3018 $as_echo_n "(cached) " >&6
3019 else
3020 ac_cv_prog_cc_c89=no
3021 ac_save_CC=$CC
3022 cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h. */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3028 #include <stdarg.h>
3029 #include <stdio.h>
3030 #include <sys/types.h>
3031 #include <sys/stat.h>
3032 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3033 struct buf { int x; };
3034 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3035 static char *e (p, i)
3036 char **p;
3037 int i;
3039 return p[i];
3041 static char *f (char * (*g) (char **, int), char **p, ...)
3043 char *s;
3044 va_list v;
3045 va_start (v,p);
3046 s = g (p, va_arg (v,int));
3047 va_end (v);
3048 return s;
3051 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3052 function prototypes and stuff, but not '\xHH' hex character constants.
3053 These don't provoke an error unfortunately, instead are silently treated
3054 as 'x'. The following induces an error, until -std is added to get
3055 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3056 array size at least. It's necessary to write '\x00'==0 to get something
3057 that's true only with -std. */
3058 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3060 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3061 inside strings and character constants. */
3062 #define FOO(x) 'x'
3063 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3065 int test (int i, double x);
3066 struct s1 {int (*f) (int a);};
3067 struct s2 {int (*f) (double a);};
3068 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3069 int argc;
3070 char **argv;
3072 main ()
3074 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3076 return 0;
3078 _ACEOF
3079 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3080 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3082 CC="$ac_save_CC $ac_arg"
3083 rm -f conftest.$ac_objext
3084 if { (ac_try="$ac_compile"
3085 case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088 esac
3089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3090 $as_echo "$ac_try_echo") >&5
3091 (eval "$ac_compile") 2>conftest.er1
3092 ac_status=$?
3093 grep -v '^ *+' conftest.er1 >conftest.err
3094 rm -f conftest.er1
3095 cat conftest.err >&5
3096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } && {
3098 test -z "$ac_c_werror_flag" ||
3099 test ! -s conftest.err
3100 } && test -s conftest.$ac_objext; then
3101 ac_cv_prog_cc_c89=$ac_arg
3102 else
3103 $as_echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3109 rm -f core conftest.err conftest.$ac_objext
3110 test "x$ac_cv_prog_cc_c89" != "xno" && break
3111 done
3112 rm -f conftest.$ac_ext
3113 CC=$ac_save_CC
3116 # AC_CACHE_VAL
3117 case "x$ac_cv_prog_cc_c89" in
3119 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3120 $as_echo "none needed" >&6; } ;;
3121 xno)
3122 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3123 $as_echo "unsupported" >&6; } ;;
3125 CC="$CC $ac_cv_prog_cc_c89"
3126 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3127 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3128 esac
3131 ac_ext=c
3132 ac_cpp='$CPP $CPPFLAGS'
3133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3137 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3138 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3139 if test "${ac_cv_path_SED+set}" = set; then
3140 $as_echo_n "(cached) " >&6
3141 else
3142 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3143 for ac_i in 1 2 3 4 5 6 7; do
3144 ac_script="$ac_script$as_nl$ac_script"
3145 done
3146 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3147 $as_unset ac_script || ac_script=
3148 if test -z "$SED"; then
3149 ac_path_SED_found=false
3150 # Loop through the user's path and test for each of PROGNAME-LIST
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 for as_dir in $PATH
3154 IFS=$as_save_IFS
3155 test -z "$as_dir" && as_dir=.
3156 for ac_prog in sed gsed; do
3157 for ac_exec_ext in '' $ac_executable_extensions; do
3158 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3159 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3160 # Check for GNU ac_path_SED and select it if it is found.
3161 # Check for GNU $ac_path_SED
3162 case `"$ac_path_SED" --version 2>&1` in
3163 *GNU*)
3164 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3166 ac_count=0
3167 $as_echo_n 0123456789 >"conftest.in"
3168 while :
3170 cat "conftest.in" "conftest.in" >"conftest.tmp"
3171 mv "conftest.tmp" "conftest.in"
3172 cp "conftest.in" "conftest.nl"
3173 $as_echo '' >> "conftest.nl"
3174 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3176 ac_count=`expr $ac_count + 1`
3177 if test $ac_count -gt ${ac_path_SED_max-0}; then
3178 # Best one so far, save it but keep looking for a better one
3179 ac_cv_path_SED="$ac_path_SED"
3180 ac_path_SED_max=$ac_count
3182 # 10*(2^10) chars as input seems more than enough
3183 test $ac_count -gt 10 && break
3184 done
3185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3186 esac
3188 $ac_path_SED_found && break 3
3189 done
3190 done
3191 done
3192 IFS=$as_save_IFS
3193 if test -z "$ac_cv_path_SED"; then
3194 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3195 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3196 { (exit 1); exit 1; }; }
3198 else
3199 ac_cv_path_SED=$SED
3203 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3204 $as_echo "$ac_cv_path_SED" >&6; }
3205 SED="$ac_cv_path_SED"
3206 rm -f conftest.sed
3208 test -z "$SED" && SED=sed
3209 Xsed="$SED -e 1s/^X//"
3221 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3222 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3223 if test "${ac_cv_path_GREP+set}" = set; then
3224 $as_echo_n "(cached) " >&6
3225 else
3226 if test -z "$GREP"; then
3227 ac_path_GREP_found=false
3228 # Loop through the user's path and test for each of PROGNAME-LIST
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
3234 for ac_prog in grep ggrep; do
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3237 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3238 # Check for GNU ac_path_GREP and select it if it is found.
3239 # Check for GNU $ac_path_GREP
3240 case `"$ac_path_GREP" --version 2>&1` in
3241 *GNU*)
3242 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3244 ac_count=0
3245 $as_echo_n 0123456789 >"conftest.in"
3246 while :
3248 cat "conftest.in" "conftest.in" >"conftest.tmp"
3249 mv "conftest.tmp" "conftest.in"
3250 cp "conftest.in" "conftest.nl"
3251 $as_echo 'GREP' >> "conftest.nl"
3252 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3253 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3254 ac_count=`expr $ac_count + 1`
3255 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3256 # Best one so far, save it but keep looking for a better one
3257 ac_cv_path_GREP="$ac_path_GREP"
3258 ac_path_GREP_max=$ac_count
3260 # 10*(2^10) chars as input seems more than enough
3261 test $ac_count -gt 10 && break
3262 done
3263 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3264 esac
3266 $ac_path_GREP_found && break 3
3267 done
3268 done
3269 done
3270 IFS=$as_save_IFS
3271 if test -z "$ac_cv_path_GREP"; then
3272 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3273 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3274 { (exit 1); exit 1; }; }
3276 else
3277 ac_cv_path_GREP=$GREP
3281 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3282 $as_echo "$ac_cv_path_GREP" >&6; }
3283 GREP="$ac_cv_path_GREP"
3286 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3287 $as_echo_n "checking for egrep... " >&6; }
3288 if test "${ac_cv_path_EGREP+set}" = set; then
3289 $as_echo_n "(cached) " >&6
3290 else
3291 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3292 then ac_cv_path_EGREP="$GREP -E"
3293 else
3294 if test -z "$EGREP"; then
3295 ac_path_EGREP_found=false
3296 # Loop through the user's path and test for each of PROGNAME-LIST
3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3300 IFS=$as_save_IFS
3301 test -z "$as_dir" && as_dir=.
3302 for ac_prog in egrep; do
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3305 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3306 # Check for GNU ac_path_EGREP and select it if it is found.
3307 # Check for GNU $ac_path_EGREP
3308 case `"$ac_path_EGREP" --version 2>&1` in
3309 *GNU*)
3310 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3312 ac_count=0
3313 $as_echo_n 0123456789 >"conftest.in"
3314 while :
3316 cat "conftest.in" "conftest.in" >"conftest.tmp"
3317 mv "conftest.tmp" "conftest.in"
3318 cp "conftest.in" "conftest.nl"
3319 $as_echo 'EGREP' >> "conftest.nl"
3320 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3322 ac_count=`expr $ac_count + 1`
3323 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3324 # Best one so far, save it but keep looking for a better one
3325 ac_cv_path_EGREP="$ac_path_EGREP"
3326 ac_path_EGREP_max=$ac_count
3328 # 10*(2^10) chars as input seems more than enough
3329 test $ac_count -gt 10 && break
3330 done
3331 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3332 esac
3334 $ac_path_EGREP_found && break 3
3335 done
3336 done
3337 done
3338 IFS=$as_save_IFS
3339 if test -z "$ac_cv_path_EGREP"; then
3340 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3341 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3342 { (exit 1); exit 1; }; }
3344 else
3345 ac_cv_path_EGREP=$EGREP
3350 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3351 $as_echo "$ac_cv_path_EGREP" >&6; }
3352 EGREP="$ac_cv_path_EGREP"
3355 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3356 $as_echo_n "checking for fgrep... " >&6; }
3357 if test "${ac_cv_path_FGREP+set}" = set; then
3358 $as_echo_n "(cached) " >&6
3359 else
3360 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3361 then ac_cv_path_FGREP="$GREP -F"
3362 else
3363 if test -z "$FGREP"; then
3364 ac_path_FGREP_found=false
3365 # Loop through the user's path and test for each of PROGNAME-LIST
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_prog in fgrep; do
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3374 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3375 # Check for GNU ac_path_FGREP and select it if it is found.
3376 # Check for GNU $ac_path_FGREP
3377 case `"$ac_path_FGREP" --version 2>&1` in
3378 *GNU*)
3379 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3381 ac_count=0
3382 $as_echo_n 0123456789 >"conftest.in"
3383 while :
3385 cat "conftest.in" "conftest.in" >"conftest.tmp"
3386 mv "conftest.tmp" "conftest.in"
3387 cp "conftest.in" "conftest.nl"
3388 $as_echo 'FGREP' >> "conftest.nl"
3389 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3390 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3391 ac_count=`expr $ac_count + 1`
3392 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3393 # Best one so far, save it but keep looking for a better one
3394 ac_cv_path_FGREP="$ac_path_FGREP"
3395 ac_path_FGREP_max=$ac_count
3397 # 10*(2^10) chars as input seems more than enough
3398 test $ac_count -gt 10 && break
3399 done
3400 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3401 esac
3403 $ac_path_FGREP_found && break 3
3404 done
3405 done
3406 done
3407 IFS=$as_save_IFS
3408 if test -z "$ac_cv_path_FGREP"; then
3409 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3410 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3411 { (exit 1); exit 1; }; }
3413 else
3414 ac_cv_path_FGREP=$FGREP
3419 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3420 $as_echo "$ac_cv_path_FGREP" >&6; }
3421 FGREP="$ac_cv_path_FGREP"
3424 test -z "$GREP" && GREP=grep
3444 # Check whether --with-gnu-ld was given.
3445 if test "${with_gnu_ld+set}" = set; then
3446 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3447 else
3448 with_gnu_ld=no
3451 ac_prog=ld
3452 if test "$GCC" = yes; then
3453 # Check if gcc -print-prog-name=ld gives a path.
3454 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3455 $as_echo_n "checking for ld used by $CC... " >&6; }
3456 case $host in
3457 *-*-mingw*)
3458 # gcc leaves a trailing carriage return which upsets mingw
3459 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3461 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3462 esac
3463 case $ac_prog in
3464 # Accept absolute paths.
3465 [\\/]* | ?:[\\/]*)
3466 re_direlt='/[^/][^/]*/\.\./'
3467 # Canonicalize the pathname of ld
3468 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3469 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3470 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3471 done
3472 test -z "$LD" && LD="$ac_prog"
3475 # If it fails, then pretend we aren't using GCC.
3476 ac_prog=ld
3479 # If it is relative, then search for the first ld in PATH.
3480 with_gnu_ld=unknown
3482 esac
3483 elif test "$with_gnu_ld" = yes; then
3484 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3485 $as_echo_n "checking for GNU ld... " >&6; }
3486 else
3487 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3488 $as_echo_n "checking for non-GNU ld... " >&6; }
3490 if test "${lt_cv_path_LD+set}" = set; then
3491 $as_echo_n "(cached) " >&6
3492 else
3493 if test -z "$LD"; then
3494 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3495 for ac_dir in $PATH; do
3496 IFS="$lt_save_ifs"
3497 test -z "$ac_dir" && ac_dir=.
3498 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3499 lt_cv_path_LD="$ac_dir/$ac_prog"
3500 # Check to see if the program is GNU ld. I'd rather use --version,
3501 # but apparently some variants of GNU ld only accept -v.
3502 # Break only if it was the GNU/non-GNU ld that we prefer.
3503 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3504 *GNU* | *'with BFD'*)
3505 test "$with_gnu_ld" != no && break
3508 test "$with_gnu_ld" != yes && break
3510 esac
3512 done
3513 IFS="$lt_save_ifs"
3514 else
3515 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3519 LD="$lt_cv_path_LD"
3520 if test -n "$LD"; then
3521 { $as_echo "$as_me:$LINENO: result: $LD" >&5
3522 $as_echo "$LD" >&6; }
3523 else
3524 { $as_echo "$as_me:$LINENO: result: no" >&5
3525 $as_echo "no" >&6; }
3527 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3528 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3529 { (exit 1); exit 1; }; }
3530 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3531 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3532 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3533 $as_echo_n "(cached) " >&6
3534 else
3535 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3536 case `$LD -v 2>&1 </dev/null` in
3537 *GNU* | *'with BFD'*)
3538 lt_cv_prog_gnu_ld=yes
3541 lt_cv_prog_gnu_ld=no
3543 esac
3545 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3546 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3547 with_gnu_ld=$lt_cv_prog_gnu_ld
3557 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3558 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3559 if test "${lt_cv_path_NM+set}" = set; then
3560 $as_echo_n "(cached) " >&6
3561 else
3562 if test -n "$NM"; then
3563 # Let the user override the test.
3564 lt_cv_path_NM="$NM"
3565 else
3566 lt_nm_to_check="${ac_tool_prefix}nm"
3567 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3568 lt_nm_to_check="$lt_nm_to_check nm"
3570 for lt_tmp_nm in $lt_nm_to_check; do
3571 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3572 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3573 IFS="$lt_save_ifs"
3574 test -z "$ac_dir" && ac_dir=.
3575 tmp_nm="$ac_dir/$lt_tmp_nm"
3576 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3577 # Check to see if the nm accepts a BSD-compat flag.
3578 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3579 # nm: unknown option "B" ignored
3580 # Tru64's nm complains that /dev/null is an invalid object file
3581 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3582 */dev/null* | *'Invalid file or object type'*)
3583 lt_cv_path_NM="$tmp_nm -B"
3584 break
3587 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3588 */dev/null*)
3589 lt_cv_path_NM="$tmp_nm -p"
3590 break
3593 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3594 continue # so that we can try to find one that supports BSD flags
3596 esac
3598 esac
3600 done
3601 IFS="$lt_save_ifs"
3602 done
3603 : ${lt_cv_path_NM=no}
3606 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3607 $as_echo "$lt_cv_path_NM" >&6; }
3608 if test "$lt_cv_path_NM" != "no"; then
3609 NM="$lt_cv_path_NM"
3610 else
3611 # Didn't find any BSD compatible name lister, look for dumpbin.
3612 if test -n "$ac_tool_prefix"; then
3613 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3616 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3617 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3618 $as_echo_n "checking for $ac_word... " >&6; }
3619 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3620 $as_echo_n "(cached) " >&6
3621 else
3622 if test -n "$DUMPBIN"; then
3623 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3624 else
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH
3628 IFS=$as_save_IFS
3629 test -z "$as_dir" && as_dir=.
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3632 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3633 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3634 break 2
3636 done
3637 done
3638 IFS=$as_save_IFS
3642 DUMPBIN=$ac_cv_prog_DUMPBIN
3643 if test -n "$DUMPBIN"; then
3644 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3645 $as_echo "$DUMPBIN" >&6; }
3646 else
3647 { $as_echo "$as_me:$LINENO: result: no" >&5
3648 $as_echo "no" >&6; }
3652 test -n "$DUMPBIN" && break
3653 done
3655 if test -z "$DUMPBIN"; then
3656 ac_ct_DUMPBIN=$DUMPBIN
3657 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3659 # Extract the first word of "$ac_prog", so it can be a program name with args.
3660 set dummy $ac_prog; ac_word=$2
3661 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3662 $as_echo_n "checking for $ac_word... " >&6; }
3663 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3664 $as_echo_n "(cached) " >&6
3665 else
3666 if test -n "$ac_ct_DUMPBIN"; then
3667 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3668 else
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 for as_dir in $PATH
3672 IFS=$as_save_IFS
3673 test -z "$as_dir" && as_dir=.
3674 for ac_exec_ext in '' $ac_executable_extensions; do
3675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3676 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3677 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 break 2
3680 done
3681 done
3682 IFS=$as_save_IFS
3686 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3687 if test -n "$ac_ct_DUMPBIN"; then
3688 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3689 $as_echo "$ac_ct_DUMPBIN" >&6; }
3690 else
3691 { $as_echo "$as_me:$LINENO: result: no" >&5
3692 $as_echo "no" >&6; }
3696 test -n "$ac_ct_DUMPBIN" && break
3697 done
3699 if test "x$ac_ct_DUMPBIN" = x; then
3700 DUMPBIN=":"
3701 else
3702 case $cross_compiling:$ac_tool_warned in
3703 yes:)
3704 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3705 whose name does not start with the host triplet. If you think this
3706 configuration is useful to you, please write to autoconf@gnu.org." >&5
3707 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3708 whose name does not start with the host triplet. If you think this
3709 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3710 ac_tool_warned=yes ;;
3711 esac
3712 DUMPBIN=$ac_ct_DUMPBIN
3717 if test "$DUMPBIN" != ":"; then
3718 NM="$DUMPBIN"
3721 test -z "$NM" && NM=nm
3728 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3729 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3730 if test "${lt_cv_nm_interface+set}" = set; then
3731 $as_echo_n "(cached) " >&6
3732 else
3733 lt_cv_nm_interface="BSD nm"
3734 echo "int some_variable = 0;" > conftest.$ac_ext
3735 (eval echo "\"\$as_me:3735: $ac_compile\"" >&5)
3736 (eval "$ac_compile" 2>conftest.err)
3737 cat conftest.err >&5
3738 (eval echo "\"\$as_me:3738: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3739 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3740 cat conftest.err >&5
3741 (eval echo "\"\$as_me:3741: output\"" >&5)
3742 cat conftest.out >&5
3743 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3744 lt_cv_nm_interface="MS dumpbin"
3746 rm -f conftest*
3748 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3749 $as_echo "$lt_cv_nm_interface" >&6; }
3751 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3752 $as_echo_n "checking whether ln -s works... " >&6; }
3753 LN_S=$as_ln_s
3754 if test "$LN_S" = "ln -s"; then
3755 { $as_echo "$as_me:$LINENO: result: yes" >&5
3756 $as_echo "yes" >&6; }
3757 else
3758 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3759 $as_echo "no, using $LN_S" >&6; }
3762 # find the maximum length of command line arguments
3763 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3764 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3765 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3766 $as_echo_n "(cached) " >&6
3767 else
3769 teststring="ABCD"
3771 case $build_os in
3772 msdosdjgpp*)
3773 # On DJGPP, this test can blow up pretty badly due to problems in libc
3774 # (any single argument exceeding 2000 bytes causes a buffer overrun
3775 # during glob expansion). Even if it were fixed, the result of this
3776 # check would be larger than it should be.
3777 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3780 gnu*)
3781 # Under GNU Hurd, this test is not required because there is
3782 # no limit to the length of command line arguments.
3783 # Libtool will interpret -1 as no limit whatsoever
3784 lt_cv_sys_max_cmd_len=-1;
3787 cygwin* | mingw* | cegcc*)
3788 # On Win9x/ME, this test blows up -- it succeeds, but takes
3789 # about 5 minutes as the teststring grows exponentially.
3790 # Worse, since 9x/ME are not pre-emptively multitasking,
3791 # you end up with a "frozen" computer, even though with patience
3792 # the test eventually succeeds (with a max line length of 256k).
3793 # Instead, let's just punt: use the minimum linelength reported by
3794 # all of the supported platforms: 8192 (on NT/2K/XP).
3795 lt_cv_sys_max_cmd_len=8192;
3798 amigaos*)
3799 # On AmigaOS with pdksh, this test takes hours, literally.
3800 # So we just punt and use a minimum line length of 8192.
3801 lt_cv_sys_max_cmd_len=8192;
3804 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3805 # This has been around since 386BSD, at least. Likely further.
3806 if test -x /sbin/sysctl; then
3807 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3808 elif test -x /usr/sbin/sysctl; then
3809 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3810 else
3811 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3813 # And add a safety zone
3814 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3818 interix*)
3819 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3820 lt_cv_sys_max_cmd_len=196608
3823 osf*)
3824 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3825 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3826 # nice to cause kernel panics so lets avoid the loop below.
3827 # First set a reasonable default.
3828 lt_cv_sys_max_cmd_len=16384
3830 if test -x /sbin/sysconfig; then
3831 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3832 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3833 esac
3836 sco3.2v5*)
3837 lt_cv_sys_max_cmd_len=102400
3839 sysv5* | sco5v6* | sysv4.2uw2*)
3840 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3841 if test -n "$kargmax"; then
3842 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3843 else
3844 lt_cv_sys_max_cmd_len=32768
3848 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3849 if test -n "$lt_cv_sys_max_cmd_len"; then
3850 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3852 else
3853 # Make teststring a little bigger before we do anything with it.
3854 # a 1K string should be a reasonable start.
3855 for i in 1 2 3 4 5 6 7 8 ; do
3856 teststring=$teststring$teststring
3857 done
3858 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3859 # If test is not a shell built-in, we'll probably end up computing a
3860 # maximum length that is only half of the actual maximum length, but
3861 # we can't tell.
3862 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3863 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3864 test $i != 17 # 1/2 MB should be enough
3866 i=`expr $i + 1`
3867 teststring=$teststring$teststring
3868 done
3869 # Only check the string length outside the loop.
3870 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3871 teststring=
3872 # Add a significant safety factor because C++ compilers can tack on
3873 # massive amounts of additional arguments before passing them to the
3874 # linker. It appears as though 1/2 is a usable value.
3875 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3878 esac
3882 if test -n $lt_cv_sys_max_cmd_len ; then
3883 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3884 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
3885 else
3886 { $as_echo "$as_me:$LINENO: result: none" >&5
3887 $as_echo "none" >&6; }
3889 max_cmd_len=$lt_cv_sys_max_cmd_len
3896 : ${CP="cp -f"}
3897 : ${MV="mv -f"}
3898 : ${RM="rm -f"}
3900 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3901 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
3902 # Try some XSI features
3903 xsi_shell=no
3904 ( _lt_dummy="a/b/c"
3905 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3906 = c,a/b,, \
3907 && eval 'test $(( 1 + 1 )) -eq 2 \
3908 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3909 && xsi_shell=yes
3910 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
3911 $as_echo "$xsi_shell" >&6; }
3914 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3915 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
3916 lt_shell_append=no
3917 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3918 >/dev/null 2>&1 \
3919 && lt_shell_append=yes
3920 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3921 $as_echo "$lt_shell_append" >&6; }
3924 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3925 lt_unset=unset
3926 else
3927 lt_unset=false
3934 # test EBCDIC or ASCII
3935 case `echo X|tr X '\101'` in
3936 A) # ASCII based system
3937 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3938 lt_SP2NL='tr \040 \012'
3939 lt_NL2SP='tr \015\012 \040\040'
3941 *) # EBCDIC based system
3942 lt_SP2NL='tr \100 \n'
3943 lt_NL2SP='tr \r\n \100\100'
3945 esac
3955 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3956 $as_echo_n "checking for $LD option to reload object files... " >&6; }
3957 if test "${lt_cv_ld_reload_flag+set}" = set; then
3958 $as_echo_n "(cached) " >&6
3959 else
3960 lt_cv_ld_reload_flag='-r'
3962 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3963 $as_echo "$lt_cv_ld_reload_flag" >&6; }
3964 reload_flag=$lt_cv_ld_reload_flag
3965 case $reload_flag in
3966 "" | " "*) ;;
3967 *) reload_flag=" $reload_flag" ;;
3968 esac
3969 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3970 case $host_os in
3971 darwin*)
3972 if test "$GCC" = yes; then
3973 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3974 else
3975 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3978 esac
3988 if test -n "$ac_tool_prefix"; then
3989 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3990 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3991 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3992 $as_echo_n "checking for $ac_word... " >&6; }
3993 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3994 $as_echo_n "(cached) " >&6
3995 else
3996 if test -n "$OBJDUMP"; then
3997 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3998 else
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 for as_dir in $PATH
4002 IFS=$as_save_IFS
4003 test -z "$as_dir" && as_dir=.
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4006 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4007 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4008 break 2
4010 done
4011 done
4012 IFS=$as_save_IFS
4016 OBJDUMP=$ac_cv_prog_OBJDUMP
4017 if test -n "$OBJDUMP"; then
4018 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4019 $as_echo "$OBJDUMP" >&6; }
4020 else
4021 { $as_echo "$as_me:$LINENO: result: no" >&5
4022 $as_echo "no" >&6; }
4027 if test -z "$ac_cv_prog_OBJDUMP"; then
4028 ac_ct_OBJDUMP=$OBJDUMP
4029 # Extract the first word of "objdump", so it can be a program name with args.
4030 set dummy objdump; ac_word=$2
4031 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4032 $as_echo_n "checking for $ac_word... " >&6; }
4033 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4034 $as_echo_n "(cached) " >&6
4035 else
4036 if test -n "$ac_ct_OBJDUMP"; then
4037 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4038 else
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH
4042 IFS=$as_save_IFS
4043 test -z "$as_dir" && as_dir=.
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4046 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4047 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 break 2
4050 done
4051 done
4052 IFS=$as_save_IFS
4056 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4057 if test -n "$ac_ct_OBJDUMP"; then
4058 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4059 $as_echo "$ac_ct_OBJDUMP" >&6; }
4060 else
4061 { $as_echo "$as_me:$LINENO: result: no" >&5
4062 $as_echo "no" >&6; }
4065 if test "x$ac_ct_OBJDUMP" = x; then
4066 OBJDUMP="false"
4067 else
4068 case $cross_compiling:$ac_tool_warned in
4069 yes:)
4070 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4071 whose name does not start with the host triplet. If you think this
4072 configuration is useful to you, please write to autoconf@gnu.org." >&5
4073 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4074 whose name does not start with the host triplet. If you think this
4075 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4076 ac_tool_warned=yes ;;
4077 esac
4078 OBJDUMP=$ac_ct_OBJDUMP
4080 else
4081 OBJDUMP="$ac_cv_prog_OBJDUMP"
4084 test -z "$OBJDUMP" && OBJDUMP=objdump
4094 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4095 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4096 if test "${lt_cv_deplibs_check_method+set}" = set; then
4097 $as_echo_n "(cached) " >&6
4098 else
4099 lt_cv_file_magic_cmd='$MAGIC_CMD'
4100 lt_cv_file_magic_test_file=
4101 lt_cv_deplibs_check_method='unknown'
4102 # Need to set the preceding variable on all platforms that support
4103 # interlibrary dependencies.
4104 # 'none' -- dependencies not supported.
4105 # `unknown' -- same as none, but documents that we really don't know.
4106 # 'pass_all' -- all dependencies passed with no checks.
4107 # 'test_compile' -- check by making test program.
4108 # 'file_magic [[regex]]' -- check by looking for files in library path
4109 # which responds to the $file_magic_cmd with a given extended regex.
4110 # If you have `file' or equivalent on your system and you're not sure
4111 # whether `pass_all' will *always* work, you probably want this one.
4113 case $host_os in
4114 aix[4-9]*)
4115 lt_cv_deplibs_check_method=pass_all
4118 beos*)
4119 lt_cv_deplibs_check_method=pass_all
4122 bsdi[45]*)
4123 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4124 lt_cv_file_magic_cmd='/usr/bin/file -L'
4125 lt_cv_file_magic_test_file=/shlib/libc.so
4128 cygwin*)
4129 # func_win32_libid is a shell function defined in ltmain.sh
4130 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4131 lt_cv_file_magic_cmd='func_win32_libid'
4134 mingw* | pw32*)
4135 # Base MSYS/MinGW do not provide the 'file' command needed by
4136 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4137 # unless we find 'file', for example because we are cross-compiling.
4138 if ( file / ) >/dev/null 2>&1; then
4139 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4140 lt_cv_file_magic_cmd='func_win32_libid'
4141 else
4142 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4143 lt_cv_file_magic_cmd='$OBJDUMP -f'
4147 cegcc)
4148 # use the weaker test based on 'objdump'. See mingw*.
4149 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4150 lt_cv_file_magic_cmd='$OBJDUMP -f'
4153 darwin* | rhapsody*)
4154 lt_cv_deplibs_check_method=pass_all
4157 freebsd* | dragonfly*)
4158 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4159 case $host_cpu in
4160 i*86 )
4161 # Not sure whether the presence of OpenBSD here was a mistake.
4162 # Let's accept both of them until this is cleared up.
4163 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4164 lt_cv_file_magic_cmd=/usr/bin/file
4165 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4167 esac
4168 else
4169 lt_cv_deplibs_check_method=pass_all
4173 gnu*)
4174 lt_cv_deplibs_check_method=pass_all
4177 hpux10.20* | hpux11*)
4178 lt_cv_file_magic_cmd=/usr/bin/file
4179 case $host_cpu in
4180 ia64*)
4181 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4182 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4184 hppa*64*)
4185 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4186 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4189 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4190 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4192 esac
4195 interix[3-9]*)
4196 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4197 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4200 irix5* | irix6* | nonstopux*)
4201 case $LD in
4202 *-32|*"-32 ") libmagic=32-bit;;
4203 *-n32|*"-n32 ") libmagic=N32;;
4204 *-64|*"-64 ") libmagic=64-bit;;
4205 *) libmagic=never-match;;
4206 esac
4207 lt_cv_deplibs_check_method=pass_all
4210 # This must be Linux ELF.
4211 linux* | k*bsd*-gnu)
4212 lt_cv_deplibs_check_method=pass_all
4215 netbsd*)
4216 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4217 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4218 else
4219 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4223 newos6*)
4224 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4225 lt_cv_file_magic_cmd=/usr/bin/file
4226 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4229 *nto* | *qnx*)
4230 lt_cv_deplibs_check_method=pass_all
4233 openbsd*)
4234 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4236 else
4237 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4241 osf3* | osf4* | osf5*)
4242 lt_cv_deplibs_check_method=pass_all
4245 rdos*)
4246 lt_cv_deplibs_check_method=pass_all
4249 solaris*)
4250 lt_cv_deplibs_check_method=pass_all
4253 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4254 lt_cv_deplibs_check_method=pass_all
4257 sysv4 | sysv4.3*)
4258 case $host_vendor in
4259 motorola)
4260 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]'
4261 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4263 ncr)
4264 lt_cv_deplibs_check_method=pass_all
4266 sequent)
4267 lt_cv_file_magic_cmd='/bin/file'
4268 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4270 sni)
4271 lt_cv_file_magic_cmd='/bin/file'
4272 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4273 lt_cv_file_magic_test_file=/lib/libc.so
4275 siemens)
4276 lt_cv_deplibs_check_method=pass_all
4279 lt_cv_deplibs_check_method=pass_all
4281 esac
4284 tpf*)
4285 lt_cv_deplibs_check_method=pass_all
4287 esac
4290 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4291 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4292 file_magic_cmd=$lt_cv_file_magic_cmd
4293 deplibs_check_method=$lt_cv_deplibs_check_method
4294 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4307 if test -n "$ac_tool_prefix"; then
4308 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4309 set dummy ${ac_tool_prefix}ar; ac_word=$2
4310 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4311 $as_echo_n "checking for $ac_word... " >&6; }
4312 if test "${ac_cv_prog_AR+set}" = set; then
4313 $as_echo_n "(cached) " >&6
4314 else
4315 if test -n "$AR"; then
4316 ac_cv_prog_AR="$AR" # Let the user override the test.
4317 else
4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH
4321 IFS=$as_save_IFS
4322 test -z "$as_dir" && as_dir=.
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4325 ac_cv_prog_AR="${ac_tool_prefix}ar"
4326 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 break 2
4329 done
4330 done
4331 IFS=$as_save_IFS
4335 AR=$ac_cv_prog_AR
4336 if test -n "$AR"; then
4337 { $as_echo "$as_me:$LINENO: result: $AR" >&5
4338 $as_echo "$AR" >&6; }
4339 else
4340 { $as_echo "$as_me:$LINENO: result: no" >&5
4341 $as_echo "no" >&6; }
4346 if test -z "$ac_cv_prog_AR"; then
4347 ac_ct_AR=$AR
4348 # Extract the first word of "ar", so it can be a program name with args.
4349 set dummy ar; ac_word=$2
4350 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4351 $as_echo_n "checking for $ac_word... " >&6; }
4352 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4353 $as_echo_n "(cached) " >&6
4354 else
4355 if test -n "$ac_ct_AR"; then
4356 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4357 else
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4361 IFS=$as_save_IFS
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4365 ac_cv_prog_ac_ct_AR="ar"
4366 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4367 break 2
4369 done
4370 done
4371 IFS=$as_save_IFS
4375 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4376 if test -n "$ac_ct_AR"; then
4377 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4378 $as_echo "$ac_ct_AR" >&6; }
4379 else
4380 { $as_echo "$as_me:$LINENO: result: no" >&5
4381 $as_echo "no" >&6; }
4384 if test "x$ac_ct_AR" = x; then
4385 AR="false"
4386 else
4387 case $cross_compiling:$ac_tool_warned in
4388 yes:)
4389 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4390 whose name does not start with the host triplet. If you think this
4391 configuration is useful to you, please write to autoconf@gnu.org." >&5
4392 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4393 whose name does not start with the host triplet. If you think this
4394 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4395 ac_tool_warned=yes ;;
4396 esac
4397 AR=$ac_ct_AR
4399 else
4400 AR="$ac_cv_prog_AR"
4403 test -z "$AR" && AR=ar
4404 test -z "$AR_FLAGS" && AR_FLAGS=cru
4416 if test -n "$ac_tool_prefix"; then
4417 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4418 set dummy ${ac_tool_prefix}strip; ac_word=$2
4419 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4420 $as_echo_n "checking for $ac_word... " >&6; }
4421 if test "${ac_cv_prog_STRIP+set}" = set; then
4422 $as_echo_n "(cached) " >&6
4423 else
4424 if test -n "$STRIP"; then
4425 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4426 else
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 for as_dir in $PATH
4430 IFS=$as_save_IFS
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4434 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4435 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4436 break 2
4438 done
4439 done
4440 IFS=$as_save_IFS
4444 STRIP=$ac_cv_prog_STRIP
4445 if test -n "$STRIP"; then
4446 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4447 $as_echo "$STRIP" >&6; }
4448 else
4449 { $as_echo "$as_me:$LINENO: result: no" >&5
4450 $as_echo "no" >&6; }
4455 if test -z "$ac_cv_prog_STRIP"; then
4456 ac_ct_STRIP=$STRIP
4457 # Extract the first word of "strip", so it can be a program name with args.
4458 set dummy strip; ac_word=$2
4459 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4460 $as_echo_n "checking for $ac_word... " >&6; }
4461 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4462 $as_echo_n "(cached) " >&6
4463 else
4464 if test -n "$ac_ct_STRIP"; then
4465 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4466 else
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH
4470 IFS=$as_save_IFS
4471 test -z "$as_dir" && as_dir=.
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4474 ac_cv_prog_ac_ct_STRIP="strip"
4475 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4476 break 2
4478 done
4479 done
4480 IFS=$as_save_IFS
4484 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4485 if test -n "$ac_ct_STRIP"; then
4486 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4487 $as_echo "$ac_ct_STRIP" >&6; }
4488 else
4489 { $as_echo "$as_me:$LINENO: result: no" >&5
4490 $as_echo "no" >&6; }
4493 if test "x$ac_ct_STRIP" = x; then
4494 STRIP=":"
4495 else
4496 case $cross_compiling:$ac_tool_warned in
4497 yes:)
4498 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4499 whose name does not start with the host triplet. If you think this
4500 configuration is useful to you, please write to autoconf@gnu.org." >&5
4501 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4502 whose name does not start with the host triplet. If you think this
4503 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4504 ac_tool_warned=yes ;;
4505 esac
4506 STRIP=$ac_ct_STRIP
4508 else
4509 STRIP="$ac_cv_prog_STRIP"
4512 test -z "$STRIP" && STRIP=:
4519 if test -n "$ac_tool_prefix"; then
4520 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4521 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4522 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4523 $as_echo_n "checking for $ac_word... " >&6; }
4524 if test "${ac_cv_prog_RANLIB+set}" = set; then
4525 $as_echo_n "(cached) " >&6
4526 else
4527 if test -n "$RANLIB"; then
4528 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4529 else
4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 for as_dir in $PATH
4533 IFS=$as_save_IFS
4534 test -z "$as_dir" && as_dir=.
4535 for ac_exec_ext in '' $ac_executable_extensions; do
4536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4537 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4538 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 break 2
4541 done
4542 done
4543 IFS=$as_save_IFS
4547 RANLIB=$ac_cv_prog_RANLIB
4548 if test -n "$RANLIB"; then
4549 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4550 $as_echo "$RANLIB" >&6; }
4551 else
4552 { $as_echo "$as_me:$LINENO: result: no" >&5
4553 $as_echo "no" >&6; }
4558 if test -z "$ac_cv_prog_RANLIB"; then
4559 ac_ct_RANLIB=$RANLIB
4560 # Extract the first word of "ranlib", so it can be a program name with args.
4561 set dummy ranlib; ac_word=$2
4562 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4563 $as_echo_n "checking for $ac_word... " >&6; }
4564 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4565 $as_echo_n "(cached) " >&6
4566 else
4567 if test -n "$ac_ct_RANLIB"; then
4568 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4569 else
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4577 ac_cv_prog_ac_ct_RANLIB="ranlib"
4578 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 break 2
4581 done
4582 done
4583 IFS=$as_save_IFS
4587 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4588 if test -n "$ac_ct_RANLIB"; then
4589 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4590 $as_echo "$ac_ct_RANLIB" >&6; }
4591 else
4592 { $as_echo "$as_me:$LINENO: result: no" >&5
4593 $as_echo "no" >&6; }
4596 if test "x$ac_ct_RANLIB" = x; then
4597 RANLIB=":"
4598 else
4599 case $cross_compiling:$ac_tool_warned in
4600 yes:)
4601 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4602 whose name does not start with the host triplet. If you think this
4603 configuration is useful to you, please write to autoconf@gnu.org." >&5
4604 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4605 whose name does not start with the host triplet. If you think this
4606 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4607 ac_tool_warned=yes ;;
4608 esac
4609 RANLIB=$ac_ct_RANLIB
4611 else
4612 RANLIB="$ac_cv_prog_RANLIB"
4615 test -z "$RANLIB" && RANLIB=:
4622 # Determine commands to create old-style static archives.
4623 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4624 old_postinstall_cmds='chmod 644 $oldlib'
4625 old_postuninstall_cmds=
4627 if test -n "$RANLIB"; then
4628 case $host_os in
4629 openbsd*)
4630 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4633 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4635 esac
4636 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4672 # If no C compiler was specified, use CC.
4673 LTCC=${LTCC-"$CC"}
4675 # If no C compiler flags were specified, use CFLAGS.
4676 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4678 # Allow CC to be a program name with arguments.
4679 compiler=$CC
4682 # Check for command to grab the raw symbol name followed by C symbol from nm.
4683 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4684 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4685 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4686 $as_echo_n "(cached) " >&6
4687 else
4689 # These are sane defaults that work on at least a few old systems.
4690 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4692 # Character class describing NM global symbol codes.
4693 symcode='[BCDEGRST]'
4695 # Regexp to match symbols that can be accessed directly from C.
4696 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4698 # Define system-specific variables.
4699 case $host_os in
4700 aix*)
4701 symcode='[BCDT]'
4703 cygwin* | mingw* | pw32* | cegcc*)
4704 symcode='[ABCDGISTW]'
4706 hpux*)
4707 if test "$host_cpu" = ia64; then
4708 symcode='[ABCDEGRST]'
4711 irix* | nonstopux*)
4712 symcode='[BCDEGRST]'
4714 osf*)
4715 symcode='[BCDEGQRST]'
4717 solaris*)
4718 symcode='[BDRT]'
4720 sco3.2v5*)
4721 symcode='[DT]'
4723 sysv4.2uw2*)
4724 symcode='[DT]'
4726 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4727 symcode='[ABDT]'
4729 sysv4)
4730 symcode='[DFNSTU]'
4732 esac
4734 # If we're using GNU nm, then use its standard symbol codes.
4735 case `$NM -V 2>&1` in
4736 *GNU* | *'with BFD'*)
4737 symcode='[ABCDGIRSTW]' ;;
4738 esac
4740 # Transform an extracted symbol line into a proper C declaration.
4741 # Some systems (esp. on ia64) link data and code symbols differently,
4742 # so use this general approach.
4743 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4745 # Transform an extracted symbol line into symbol name and symbol address
4746 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4747 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
4749 # Handle CRLF in mingw tool chain
4750 opt_cr=
4751 case $build_os in
4752 mingw*)
4753 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4755 esac
4757 # Try without a prefix underscore, then with it.
4758 for ac_symprfx in "" "_"; do
4760 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4761 symxfrm="\\1 $ac_symprfx\\2 \\2"
4763 # Write the raw and C identifiers.
4764 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4765 # Fake it for dumpbin and say T for any non-static function
4766 # and D for any global variable.
4767 # Also find C++ and __fastcall symbols from MSVC++,
4768 # which start with @ or ?.
4769 lt_cv_sys_global_symbol_pipe="$AWK '"\
4770 " {last_section=section; section=\$ 3};"\
4771 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4772 " \$ 0!~/External *\|/{next};"\
4773 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4774 " {if(hide[section]) next};"\
4775 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4776 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4777 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4778 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4779 " ' prfx=^$ac_symprfx"
4780 else
4781 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4784 # Check to see that the pipe works correctly.
4785 pipe_works=no
4787 rm -f conftest*
4788 cat > conftest.$ac_ext <<_LT_EOF
4789 #ifdef __cplusplus
4790 extern "C" {
4791 #endif
4792 char nm_test_var;
4793 void nm_test_func(void);
4794 void nm_test_func(void){}
4795 #ifdef __cplusplus
4797 #endif
4798 int main(){nm_test_var='a';nm_test_func();return(0);}
4799 _LT_EOF
4801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4802 (eval $ac_compile) 2>&5
4803 ac_status=$?
4804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; then
4806 # Now try to grab the symbols.
4807 nlist=conftest.nm
4808 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4809 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4810 ac_status=$?
4811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } && test -s "$nlist"; then
4813 # Try sorting and uniquifying the output.
4814 if sort "$nlist" | uniq > "$nlist"T; then
4815 mv -f "$nlist"T "$nlist"
4816 else
4817 rm -f "$nlist"T
4820 # Make sure that we snagged all the symbols we need.
4821 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4822 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4823 cat <<_LT_EOF > conftest.$ac_ext
4824 #ifdef __cplusplus
4825 extern "C" {
4826 #endif
4828 _LT_EOF
4829 # Now generate the symbol file.
4830 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4832 cat <<_LT_EOF >> conftest.$ac_ext
4834 /* The mapping between symbol names and symbols. */
4835 const struct {
4836 const char *name;
4837 void *address;
4839 lt__PROGRAM__LTX_preloaded_symbols[] =
4841 { "@PROGRAM@", (void *) 0 },
4842 _LT_EOF
4843 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4844 cat <<\_LT_EOF >> conftest.$ac_ext
4845 {0, (void *) 0}
4848 /* This works around a problem in FreeBSD linker */
4849 #ifdef FREEBSD_WORKAROUND
4850 static const void *lt_preloaded_setup() {
4851 return lt__PROGRAM__LTX_preloaded_symbols;
4853 #endif
4855 #ifdef __cplusplus
4857 #endif
4858 _LT_EOF
4859 # Now try linking the two files.
4860 mv conftest.$ac_objext conftstm.$ac_objext
4861 lt_save_LIBS="$LIBS"
4862 lt_save_CFLAGS="$CFLAGS"
4863 LIBS="conftstm.$ac_objext"
4864 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4866 (eval $ac_link) 2>&5
4867 ac_status=$?
4868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4870 pipe_works=yes
4872 LIBS="$lt_save_LIBS"
4873 CFLAGS="$lt_save_CFLAGS"
4874 else
4875 echo "cannot find nm_test_func in $nlist" >&5
4877 else
4878 echo "cannot find nm_test_var in $nlist" >&5
4880 else
4881 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4883 else
4884 echo "$progname: failed program was:" >&5
4885 cat conftest.$ac_ext >&5
4887 rm -rf conftest* conftst*
4889 # Do not use the global_symbol_pipe unless it works.
4890 if test "$pipe_works" = yes; then
4891 break
4892 else
4893 lt_cv_sys_global_symbol_pipe=
4895 done
4899 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4900 lt_cv_sys_global_symbol_to_cdecl=
4902 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4903 { $as_echo "$as_me:$LINENO: result: failed" >&5
4904 $as_echo "failed" >&6; }
4905 else
4906 { $as_echo "$as_me:$LINENO: result: ok" >&5
4907 $as_echo "ok" >&6; }
4932 # Check whether --enable-libtool-lock was given.
4933 if test "${enable_libtool_lock+set}" = set; then
4934 enableval=$enable_libtool_lock;
4937 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4939 # Some flags need to be propagated to the compiler or linker for good
4940 # libtool support.
4941 case $host in
4942 ia64-*-hpux*)
4943 # Find out which ABI we are using.
4944 echo 'int i;' > conftest.$ac_ext
4945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4946 (eval $ac_compile) 2>&5
4947 ac_status=$?
4948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; then
4950 case `/usr/bin/file conftest.$ac_objext` in
4951 *ELF-32*)
4952 HPUX_IA64_MODE="32"
4954 *ELF-64*)
4955 HPUX_IA64_MODE="64"
4957 esac
4959 rm -rf conftest*
4961 *-*-irix6*)
4962 # Find out which ABI we are using.
4963 echo '#line 4963 "configure"' > conftest.$ac_ext
4964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4965 (eval $ac_compile) 2>&5
4966 ac_status=$?
4967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; then
4969 if test "$lt_cv_prog_gnu_ld" = yes; then
4970 case `/usr/bin/file conftest.$ac_objext` in
4971 *32-bit*)
4972 LD="${LD-ld} -melf32bsmip"
4974 *N32*)
4975 LD="${LD-ld} -melf32bmipn32"
4977 *64-bit*)
4978 LD="${LD-ld} -melf64bmip"
4980 esac
4981 else
4982 case `/usr/bin/file conftest.$ac_objext` in
4983 *32-bit*)
4984 LD="${LD-ld} -32"
4986 *N32*)
4987 LD="${LD-ld} -n32"
4989 *64-bit*)
4990 LD="${LD-ld} -64"
4992 esac
4995 rm -rf conftest*
4998 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4999 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5000 # Find out which ABI we are using.
5001 echo 'int i;' > conftest.$ac_ext
5002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5003 (eval $ac_compile) 2>&5
5004 ac_status=$?
5005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }; then
5007 case `/usr/bin/file conftest.o` in
5008 *32-bit*)
5009 case $host in
5010 x86_64-*kfreebsd*-gnu)
5011 LD="${LD-ld} -m elf_i386_fbsd"
5013 x86_64-*linux*)
5014 LD="${LD-ld} -m elf_i386"
5016 ppc64-*linux*|powerpc64-*linux*)
5017 LD="${LD-ld} -m elf32ppclinux"
5019 s390x-*linux*)
5020 LD="${LD-ld} -m elf_s390"
5022 sparc64-*linux*)
5023 LD="${LD-ld} -m elf32_sparc"
5025 esac
5027 *64-bit*)
5028 case $host in
5029 x86_64-*kfreebsd*-gnu)
5030 LD="${LD-ld} -m elf_x86_64_fbsd"
5032 x86_64-*linux*)
5033 LD="${LD-ld} -m elf_x86_64"
5035 ppc*-*linux*|powerpc*-*linux*)
5036 LD="${LD-ld} -m elf64ppc"
5038 s390*-*linux*|s390*-*tpf*)
5039 LD="${LD-ld} -m elf64_s390"
5041 sparc*-*linux*)
5042 LD="${LD-ld} -m elf64_sparc"
5044 esac
5046 esac
5048 rm -rf conftest*
5051 *-*-sco3.2v5*)
5052 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5053 SAVE_CFLAGS="$CFLAGS"
5054 CFLAGS="$CFLAGS -belf"
5055 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5056 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5057 if test "${lt_cv_cc_needs_belf+set}" = set; then
5058 $as_echo_n "(cached) " >&6
5059 else
5060 ac_ext=c
5061 ac_cpp='$CPP $CPPFLAGS'
5062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5066 cat >conftest.$ac_ext <<_ACEOF
5067 /* confdefs.h. */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5074 main ()
5078 return 0;
5080 _ACEOF
5081 rm -f conftest.$ac_objext conftest$ac_exeext
5082 if { (ac_try="$ac_link"
5083 case "(($ac_try" in
5084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5085 *) ac_try_echo=$ac_try;;
5086 esac
5087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5088 $as_echo "$ac_try_echo") >&5
5089 (eval "$ac_link") 2>conftest.er1
5090 ac_status=$?
5091 grep -v '^ *+' conftest.er1 >conftest.err
5092 rm -f conftest.er1
5093 cat conftest.err >&5
5094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } && {
5096 test -z "$ac_c_werror_flag" ||
5097 test ! -s conftest.err
5098 } && test -s conftest$ac_exeext && {
5099 test "$cross_compiling" = yes ||
5100 $as_test_x conftest$ac_exeext
5101 }; then
5102 lt_cv_cc_needs_belf=yes
5103 else
5104 $as_echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5107 lt_cv_cc_needs_belf=no
5110 rm -rf conftest.dSYM
5111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5112 conftest$ac_exeext conftest.$ac_ext
5113 ac_ext=c
5114 ac_cpp='$CPP $CPPFLAGS'
5115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5120 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5121 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5122 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5123 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5124 CFLAGS="$SAVE_CFLAGS"
5127 sparc*-*solaris*)
5128 # Find out which ABI we are using.
5129 echo 'int i;' > conftest.$ac_ext
5130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5131 (eval $ac_compile) 2>&5
5132 ac_status=$?
5133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; then
5135 case `/usr/bin/file conftest.o` in
5136 *64-bit*)
5137 case $lt_cv_prog_gnu_ld in
5138 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5140 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5141 LD="${LD-ld} -64"
5144 esac
5146 esac
5148 rm -rf conftest*
5150 esac
5152 need_locks="$enable_libtool_lock"
5155 case $host_os in
5156 rhapsody* | darwin*)
5157 if test -n "$ac_tool_prefix"; then
5158 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5159 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5160 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5161 $as_echo_n "checking for $ac_word... " >&6; }
5162 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5163 $as_echo_n "(cached) " >&6
5164 else
5165 if test -n "$DSYMUTIL"; then
5166 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5167 else
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5176 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5179 done
5180 done
5181 IFS=$as_save_IFS
5185 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5186 if test -n "$DSYMUTIL"; then
5187 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5188 $as_echo "$DSYMUTIL" >&6; }
5189 else
5190 { $as_echo "$as_me:$LINENO: result: no" >&5
5191 $as_echo "no" >&6; }
5196 if test -z "$ac_cv_prog_DSYMUTIL"; then
5197 ac_ct_DSYMUTIL=$DSYMUTIL
5198 # Extract the first word of "dsymutil", so it can be a program name with args.
5199 set dummy dsymutil; ac_word=$2
5200 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5203 $as_echo_n "(cached) " >&6
5204 else
5205 if test -n "$ac_ct_DSYMUTIL"; then
5206 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5207 else
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5216 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 break 2
5219 done
5220 done
5221 IFS=$as_save_IFS
5225 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5226 if test -n "$ac_ct_DSYMUTIL"; then
5227 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5228 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5229 else
5230 { $as_echo "$as_me:$LINENO: result: no" >&5
5231 $as_echo "no" >&6; }
5234 if test "x$ac_ct_DSYMUTIL" = x; then
5235 DSYMUTIL=":"
5236 else
5237 case $cross_compiling:$ac_tool_warned in
5238 yes:)
5239 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5240 whose name does not start with the host triplet. If you think this
5241 configuration is useful to you, please write to autoconf@gnu.org." >&5
5242 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5243 whose name does not start with the host triplet. If you think this
5244 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5245 ac_tool_warned=yes ;;
5246 esac
5247 DSYMUTIL=$ac_ct_DSYMUTIL
5249 else
5250 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5253 if test -n "$ac_tool_prefix"; then
5254 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5255 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5256 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5257 $as_echo_n "checking for $ac_word... " >&6; }
5258 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5259 $as_echo_n "(cached) " >&6
5260 else
5261 if test -n "$NMEDIT"; then
5262 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5263 else
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265 for as_dir in $PATH
5267 IFS=$as_save_IFS
5268 test -z "$as_dir" && as_dir=.
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5271 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5272 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 break 2
5275 done
5276 done
5277 IFS=$as_save_IFS
5281 NMEDIT=$ac_cv_prog_NMEDIT
5282 if test -n "$NMEDIT"; then
5283 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5284 $as_echo "$NMEDIT" >&6; }
5285 else
5286 { $as_echo "$as_me:$LINENO: result: no" >&5
5287 $as_echo "no" >&6; }
5292 if test -z "$ac_cv_prog_NMEDIT"; then
5293 ac_ct_NMEDIT=$NMEDIT
5294 # Extract the first word of "nmedit", so it can be a program name with args.
5295 set dummy nmedit; ac_word=$2
5296 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5299 $as_echo_n "(cached) " >&6
5300 else
5301 if test -n "$ac_ct_NMEDIT"; then
5302 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5303 else
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH
5307 IFS=$as_save_IFS
5308 test -z "$as_dir" && as_dir=.
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5311 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5312 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 break 2
5315 done
5316 done
5317 IFS=$as_save_IFS
5321 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5322 if test -n "$ac_ct_NMEDIT"; then
5323 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5324 $as_echo "$ac_ct_NMEDIT" >&6; }
5325 else
5326 { $as_echo "$as_me:$LINENO: result: no" >&5
5327 $as_echo "no" >&6; }
5330 if test "x$ac_ct_NMEDIT" = x; then
5331 NMEDIT=":"
5332 else
5333 case $cross_compiling:$ac_tool_warned in
5334 yes:)
5335 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5336 whose name does not start with the host triplet. If you think this
5337 configuration is useful to you, please write to autoconf@gnu.org." >&5
5338 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5339 whose name does not start with the host triplet. If you think this
5340 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5341 ac_tool_warned=yes ;;
5342 esac
5343 NMEDIT=$ac_ct_NMEDIT
5345 else
5346 NMEDIT="$ac_cv_prog_NMEDIT"
5349 if test -n "$ac_tool_prefix"; then
5350 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5351 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5352 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5353 $as_echo_n "checking for $ac_word... " >&6; }
5354 if test "${ac_cv_prog_LIPO+set}" = set; then
5355 $as_echo_n "(cached) " >&6
5356 else
5357 if test -n "$LIPO"; then
5358 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5359 else
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5363 IFS=$as_save_IFS
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5367 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5368 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5369 break 2
5371 done
5372 done
5373 IFS=$as_save_IFS
5377 LIPO=$ac_cv_prog_LIPO
5378 if test -n "$LIPO"; then
5379 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
5380 $as_echo "$LIPO" >&6; }
5381 else
5382 { $as_echo "$as_me:$LINENO: result: no" >&5
5383 $as_echo "no" >&6; }
5388 if test -z "$ac_cv_prog_LIPO"; then
5389 ac_ct_LIPO=$LIPO
5390 # Extract the first word of "lipo", so it can be a program name with args.
5391 set dummy lipo; ac_word=$2
5392 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5395 $as_echo_n "(cached) " >&6
5396 else
5397 if test -n "$ac_ct_LIPO"; then
5398 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5399 else
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5407 ac_cv_prog_ac_ct_LIPO="lipo"
5408 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5409 break 2
5411 done
5412 done
5413 IFS=$as_save_IFS
5417 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5418 if test -n "$ac_ct_LIPO"; then
5419 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5420 $as_echo "$ac_ct_LIPO" >&6; }
5421 else
5422 { $as_echo "$as_me:$LINENO: result: no" >&5
5423 $as_echo "no" >&6; }
5426 if test "x$ac_ct_LIPO" = x; then
5427 LIPO=":"
5428 else
5429 case $cross_compiling:$ac_tool_warned in
5430 yes:)
5431 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5432 whose name does not start with the host triplet. If you think this
5433 configuration is useful to you, please write to autoconf@gnu.org." >&5
5434 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5435 whose name does not start with the host triplet. If you think this
5436 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5437 ac_tool_warned=yes ;;
5438 esac
5439 LIPO=$ac_ct_LIPO
5441 else
5442 LIPO="$ac_cv_prog_LIPO"
5445 if test -n "$ac_tool_prefix"; then
5446 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5447 set dummy ${ac_tool_prefix}otool; ac_word=$2
5448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if test "${ac_cv_prog_OTOOL+set}" = set; then
5451 $as_echo_n "(cached) " >&6
5452 else
5453 if test -n "$OTOOL"; then
5454 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5455 else
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 for as_dir in $PATH
5459 IFS=$as_save_IFS
5460 test -z "$as_dir" && as_dir=.
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5463 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5464 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5465 break 2
5467 done
5468 done
5469 IFS=$as_save_IFS
5473 OTOOL=$ac_cv_prog_OTOOL
5474 if test -n "$OTOOL"; then
5475 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
5476 $as_echo "$OTOOL" >&6; }
5477 else
5478 { $as_echo "$as_me:$LINENO: result: no" >&5
5479 $as_echo "no" >&6; }
5484 if test -z "$ac_cv_prog_OTOOL"; then
5485 ac_ct_OTOOL=$OTOOL
5486 # Extract the first word of "otool", so it can be a program name with args.
5487 set dummy otool; ac_word=$2
5488 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5489 $as_echo_n "checking for $ac_word... " >&6; }
5490 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5491 $as_echo_n "(cached) " >&6
5492 else
5493 if test -n "$ac_ct_OTOOL"; then
5494 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5495 else
5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 for as_dir in $PATH
5499 IFS=$as_save_IFS
5500 test -z "$as_dir" && as_dir=.
5501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5503 ac_cv_prog_ac_ct_OTOOL="otool"
5504 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 break 2
5507 done
5508 done
5509 IFS=$as_save_IFS
5513 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5514 if test -n "$ac_ct_OTOOL"; then
5515 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5516 $as_echo "$ac_ct_OTOOL" >&6; }
5517 else
5518 { $as_echo "$as_me:$LINENO: result: no" >&5
5519 $as_echo "no" >&6; }
5522 if test "x$ac_ct_OTOOL" = x; then
5523 OTOOL=":"
5524 else
5525 case $cross_compiling:$ac_tool_warned in
5526 yes:)
5527 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5528 whose name does not start with the host triplet. If you think this
5529 configuration is useful to you, please write to autoconf@gnu.org." >&5
5530 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5531 whose name does not start with the host triplet. If you think this
5532 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5533 ac_tool_warned=yes ;;
5534 esac
5535 OTOOL=$ac_ct_OTOOL
5537 else
5538 OTOOL="$ac_cv_prog_OTOOL"
5541 if test -n "$ac_tool_prefix"; then
5542 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5543 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5544 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5545 $as_echo_n "checking for $ac_word... " >&6; }
5546 if test "${ac_cv_prog_OTOOL64+set}" = set; then
5547 $as_echo_n "(cached) " >&6
5548 else
5549 if test -n "$OTOOL64"; then
5550 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5551 else
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 for as_dir in $PATH
5555 IFS=$as_save_IFS
5556 test -z "$as_dir" && as_dir=.
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5559 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5560 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5561 break 2
5563 done
5564 done
5565 IFS=$as_save_IFS
5569 OTOOL64=$ac_cv_prog_OTOOL64
5570 if test -n "$OTOOL64"; then
5571 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
5572 $as_echo "$OTOOL64" >&6; }
5573 else
5574 { $as_echo "$as_me:$LINENO: result: no" >&5
5575 $as_echo "no" >&6; }
5580 if test -z "$ac_cv_prog_OTOOL64"; then
5581 ac_ct_OTOOL64=$OTOOL64
5582 # Extract the first word of "otool64", so it can be a program name with args.
5583 set dummy otool64; ac_word=$2
5584 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5585 $as_echo_n "checking for $ac_word... " >&6; }
5586 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5587 $as_echo_n "(cached) " >&6
5588 else
5589 if test -n "$ac_ct_OTOOL64"; then
5590 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5591 else
5592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593 for as_dir in $PATH
5595 IFS=$as_save_IFS
5596 test -z "$as_dir" && as_dir=.
5597 for ac_exec_ext in '' $ac_executable_extensions; do
5598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5599 ac_cv_prog_ac_ct_OTOOL64="otool64"
5600 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5601 break 2
5603 done
5604 done
5605 IFS=$as_save_IFS
5609 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5610 if test -n "$ac_ct_OTOOL64"; then
5611 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5612 $as_echo "$ac_ct_OTOOL64" >&6; }
5613 else
5614 { $as_echo "$as_me:$LINENO: result: no" >&5
5615 $as_echo "no" >&6; }
5618 if test "x$ac_ct_OTOOL64" = x; then
5619 OTOOL64=":"
5620 else
5621 case $cross_compiling:$ac_tool_warned in
5622 yes:)
5623 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5624 whose name does not start with the host triplet. If you think this
5625 configuration is useful to you, please write to autoconf@gnu.org." >&5
5626 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5627 whose name does not start with the host triplet. If you think this
5628 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5629 ac_tool_warned=yes ;;
5630 esac
5631 OTOOL64=$ac_ct_OTOOL64
5633 else
5634 OTOOL64="$ac_cv_prog_OTOOL64"
5663 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5664 $as_echo_n "checking for -single_module linker flag... " >&6; }
5665 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5666 $as_echo_n "(cached) " >&6
5667 else
5668 lt_cv_apple_cc_single_mod=no
5669 if test -z "${LT_MULTI_MODULE}"; then
5670 # By default we will add the -single_module flag. You can override
5671 # by either setting the environment variable LT_MULTI_MODULE
5672 # non-empty at configure time, or by adding -multi_module to the
5673 # link flags.
5674 rm -rf libconftest.dylib*
5675 echo "int foo(void){return 1;}" > conftest.c
5676 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5677 -dynamiclib -Wl,-single_module conftest.c" >&5
5678 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5679 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5680 _lt_result=$?
5681 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5682 lt_cv_apple_cc_single_mod=yes
5683 else
5684 cat conftest.err >&5
5686 rm -rf libconftest.dylib*
5687 rm -f conftest.*
5690 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5691 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5692 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5693 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5694 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5695 $as_echo_n "(cached) " >&6
5696 else
5697 lt_cv_ld_exported_symbols_list=no
5698 save_LDFLAGS=$LDFLAGS
5699 echo "_main" > conftest.sym
5700 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5701 cat >conftest.$ac_ext <<_ACEOF
5702 /* confdefs.h. */
5703 _ACEOF
5704 cat confdefs.h >>conftest.$ac_ext
5705 cat >>conftest.$ac_ext <<_ACEOF
5706 /* end confdefs.h. */
5709 main ()
5713 return 0;
5715 _ACEOF
5716 rm -f conftest.$ac_objext conftest$ac_exeext
5717 if { (ac_try="$ac_link"
5718 case "(($ac_try" in
5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720 *) ac_try_echo=$ac_try;;
5721 esac
5722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5723 $as_echo "$ac_try_echo") >&5
5724 (eval "$ac_link") 2>conftest.er1
5725 ac_status=$?
5726 grep -v '^ *+' conftest.er1 >conftest.err
5727 rm -f conftest.er1
5728 cat conftest.err >&5
5729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && {
5731 test -z "$ac_c_werror_flag" ||
5732 test ! -s conftest.err
5733 } && test -s conftest$ac_exeext && {
5734 test "$cross_compiling" = yes ||
5735 $as_test_x conftest$ac_exeext
5736 }; then
5737 lt_cv_ld_exported_symbols_list=yes
5738 else
5739 $as_echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5742 lt_cv_ld_exported_symbols_list=no
5745 rm -rf conftest.dSYM
5746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5747 conftest$ac_exeext conftest.$ac_ext
5748 LDFLAGS="$save_LDFLAGS"
5751 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5752 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5753 case $host_os in
5754 rhapsody* | darwin1.[012])
5755 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5756 darwin1.*)
5757 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5758 darwin*) # darwin 5.x on
5759 # if running on 10.5 or later, the deployment target defaults
5760 # to the OS version, if on x86, and 10.4, the deployment
5761 # target defaults to 10.4. Don't you love it?
5762 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5763 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5764 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5765 10.[012]*)
5766 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5767 10.*)
5768 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5769 esac
5771 esac
5772 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5773 _lt_dar_single_mod='$single_module'
5775 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5776 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5777 else
5778 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5780 if test "$DSYMUTIL" != ":"; then
5781 _lt_dsymutil='~$DSYMUTIL $lib || :'
5782 else
5783 _lt_dsymutil=
5786 esac
5788 ac_ext=c
5789 ac_cpp='$CPP $CPPFLAGS'
5790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5793 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5794 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5795 # On Suns, sometimes $CPP names a directory.
5796 if test -n "$CPP" && test -d "$CPP"; then
5797 CPP=
5799 if test -z "$CPP"; then
5800 if test "${ac_cv_prog_CPP+set}" = set; then
5801 $as_echo_n "(cached) " >&6
5802 else
5803 # Double quotes because CPP needs to be expanded
5804 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5806 ac_preproc_ok=false
5807 for ac_c_preproc_warn_flag in '' yes
5809 # Use a header file that comes with gcc, so configuring glibc
5810 # with a fresh cross-compiler works.
5811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5812 # <limits.h> exists even on freestanding compilers.
5813 # On the NeXT, cc -E runs the code through the compiler's parser,
5814 # not just through cpp. "Syntax error" is here to catch this case.
5815 cat >conftest.$ac_ext <<_ACEOF
5816 /* confdefs.h. */
5817 _ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5821 #ifdef __STDC__
5822 # include <limits.h>
5823 #else
5824 # include <assert.h>
5825 #endif
5826 Syntax error
5827 _ACEOF
5828 if { (ac_try="$ac_cpp conftest.$ac_ext"
5829 case "(($ac_try" in
5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5832 esac
5833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5834 $as_echo "$ac_try_echo") >&5
5835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5836 ac_status=$?
5837 grep -v '^ *+' conftest.er1 >conftest.err
5838 rm -f conftest.er1
5839 cat conftest.err >&5
5840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } >/dev/null && {
5842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5843 test ! -s conftest.err
5844 }; then
5846 else
5847 $as_echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5850 # Broken: fails on valid input.
5851 continue
5854 rm -f conftest.err conftest.$ac_ext
5856 # OK, works on sane cases. Now check whether nonexistent headers
5857 # can be detected and how.
5858 cat >conftest.$ac_ext <<_ACEOF
5859 /* confdefs.h. */
5860 _ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5864 #include <ac_nonexistent.h>
5865 _ACEOF
5866 if { (ac_try="$ac_cpp conftest.$ac_ext"
5867 case "(($ac_try" in
5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869 *) ac_try_echo=$ac_try;;
5870 esac
5871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5872 $as_echo "$ac_try_echo") >&5
5873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5874 ac_status=$?
5875 grep -v '^ *+' conftest.er1 >conftest.err
5876 rm -f conftest.er1
5877 cat conftest.err >&5
5878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); } >/dev/null && {
5880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5881 test ! -s conftest.err
5882 }; then
5883 # Broken: success on invalid input.
5884 continue
5885 else
5886 $as_echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.$ac_ext >&5
5889 # Passes both tests.
5890 ac_preproc_ok=:
5891 break
5894 rm -f conftest.err conftest.$ac_ext
5896 done
5897 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5898 rm -f conftest.err conftest.$ac_ext
5899 if $ac_preproc_ok; then
5900 break
5903 done
5904 ac_cv_prog_CPP=$CPP
5907 CPP=$ac_cv_prog_CPP
5908 else
5909 ac_cv_prog_CPP=$CPP
5911 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5912 $as_echo "$CPP" >&6; }
5913 ac_preproc_ok=false
5914 for ac_c_preproc_warn_flag in '' yes
5916 # Use a header file that comes with gcc, so configuring glibc
5917 # with a fresh cross-compiler works.
5918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5919 # <limits.h> exists even on freestanding compilers.
5920 # On the NeXT, cc -E runs the code through the compiler's parser,
5921 # not just through cpp. "Syntax error" is here to catch this case.
5922 cat >conftest.$ac_ext <<_ACEOF
5923 /* confdefs.h. */
5924 _ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h. */
5928 #ifdef __STDC__
5929 # include <limits.h>
5930 #else
5931 # include <assert.h>
5932 #endif
5933 Syntax error
5934 _ACEOF
5935 if { (ac_try="$ac_cpp conftest.$ac_ext"
5936 case "(($ac_try" in
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5939 esac
5940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5941 $as_echo "$ac_try_echo") >&5
5942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5943 ac_status=$?
5944 grep -v '^ *+' conftest.er1 >conftest.err
5945 rm -f conftest.er1
5946 cat conftest.err >&5
5947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } >/dev/null && {
5949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5950 test ! -s conftest.err
5951 }; then
5953 else
5954 $as_echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.$ac_ext >&5
5957 # Broken: fails on valid input.
5958 continue
5961 rm -f conftest.err conftest.$ac_ext
5963 # OK, works on sane cases. Now check whether nonexistent headers
5964 # can be detected and how.
5965 cat >conftest.$ac_ext <<_ACEOF
5966 /* confdefs.h. */
5967 _ACEOF
5968 cat confdefs.h >>conftest.$ac_ext
5969 cat >>conftest.$ac_ext <<_ACEOF
5970 /* end confdefs.h. */
5971 #include <ac_nonexistent.h>
5972 _ACEOF
5973 if { (ac_try="$ac_cpp conftest.$ac_ext"
5974 case "(($ac_try" in
5975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976 *) ac_try_echo=$ac_try;;
5977 esac
5978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5979 $as_echo "$ac_try_echo") >&5
5980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5981 ac_status=$?
5982 grep -v '^ *+' conftest.er1 >conftest.err
5983 rm -f conftest.er1
5984 cat conftest.err >&5
5985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } >/dev/null && {
5987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5988 test ! -s conftest.err
5989 }; then
5990 # Broken: success on invalid input.
5991 continue
5992 else
5993 $as_echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5996 # Passes both tests.
5997 ac_preproc_ok=:
5998 break
6001 rm -f conftest.err conftest.$ac_ext
6003 done
6004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6005 rm -f conftest.err conftest.$ac_ext
6006 if $ac_preproc_ok; then
6008 else
6009 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6010 See \`config.log' for more details." >&5
6011 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6012 See \`config.log' for more details." >&2;}
6013 { (exit 1); exit 1; }; }
6016 ac_ext=c
6017 ac_cpp='$CPP $CPPFLAGS'
6018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6023 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6024 $as_echo_n "checking for ANSI C header files... " >&6; }
6025 if test "${ac_cv_header_stdc+set}" = set; then
6026 $as_echo_n "(cached) " >&6
6027 else
6028 cat >conftest.$ac_ext <<_ACEOF
6029 /* confdefs.h. */
6030 _ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6034 #include <stdlib.h>
6035 #include <stdarg.h>
6036 #include <string.h>
6037 #include <float.h>
6040 main ()
6044 return 0;
6046 _ACEOF
6047 rm -f conftest.$ac_objext
6048 if { (ac_try="$ac_compile"
6049 case "(($ac_try" in
6050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6051 *) ac_try_echo=$ac_try;;
6052 esac
6053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6054 $as_echo "$ac_try_echo") >&5
6055 (eval "$ac_compile") 2>conftest.er1
6056 ac_status=$?
6057 grep -v '^ *+' conftest.er1 >conftest.err
6058 rm -f conftest.er1
6059 cat conftest.err >&5
6060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } && {
6062 test -z "$ac_c_werror_flag" ||
6063 test ! -s conftest.err
6064 } && test -s conftest.$ac_objext; then
6065 ac_cv_header_stdc=yes
6066 else
6067 $as_echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.$ac_ext >&5
6070 ac_cv_header_stdc=no
6073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6075 if test $ac_cv_header_stdc = yes; then
6076 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6077 cat >conftest.$ac_ext <<_ACEOF
6078 /* confdefs.h. */
6079 _ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6083 #include <string.h>
6085 _ACEOF
6086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6087 $EGREP "memchr" >/dev/null 2>&1; then
6089 else
6090 ac_cv_header_stdc=no
6092 rm -f conftest*
6096 if test $ac_cv_header_stdc = yes; then
6097 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6098 cat >conftest.$ac_ext <<_ACEOF
6099 /* confdefs.h. */
6100 _ACEOF
6101 cat confdefs.h >>conftest.$ac_ext
6102 cat >>conftest.$ac_ext <<_ACEOF
6103 /* end confdefs.h. */
6104 #include <stdlib.h>
6106 _ACEOF
6107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6108 $EGREP "free" >/dev/null 2>&1; then
6110 else
6111 ac_cv_header_stdc=no
6113 rm -f conftest*
6117 if test $ac_cv_header_stdc = yes; then
6118 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6119 if test "$cross_compiling" = yes; then
6121 else
6122 cat >conftest.$ac_ext <<_ACEOF
6123 /* confdefs.h. */
6124 _ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6128 #include <ctype.h>
6129 #include <stdlib.h>
6130 #if ((' ' & 0x0FF) == 0x020)
6131 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6132 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6133 #else
6134 # define ISLOWER(c) \
6135 (('a' <= (c) && (c) <= 'i') \
6136 || ('j' <= (c) && (c) <= 'r') \
6137 || ('s' <= (c) && (c) <= 'z'))
6138 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6139 #endif
6141 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6143 main ()
6145 int i;
6146 for (i = 0; i < 256; i++)
6147 if (XOR (islower (i), ISLOWER (i))
6148 || toupper (i) != TOUPPER (i))
6149 return 2;
6150 return 0;
6152 _ACEOF
6153 rm -f conftest$ac_exeext
6154 if { (ac_try="$ac_link"
6155 case "(($ac_try" in
6156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157 *) ac_try_echo=$ac_try;;
6158 esac
6159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6160 $as_echo "$ac_try_echo") >&5
6161 (eval "$ac_link") 2>&5
6162 ac_status=$?
6163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6165 { (case "(($ac_try" in
6166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6167 *) ac_try_echo=$ac_try;;
6168 esac
6169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6170 $as_echo "$ac_try_echo") >&5
6171 (eval "$ac_try") 2>&5
6172 ac_status=$?
6173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; }; then
6176 else
6177 $as_echo "$as_me: program exited with status $ac_status" >&5
6178 $as_echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6181 ( exit $ac_status )
6182 ac_cv_header_stdc=no
6184 rm -rf conftest.dSYM
6185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6191 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6192 $as_echo "$ac_cv_header_stdc" >&6; }
6193 if test $ac_cv_header_stdc = yes; then
6195 cat >>confdefs.h <<\_ACEOF
6196 #define STDC_HEADERS 1
6197 _ACEOF
6201 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6211 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6212 inttypes.h stdint.h unistd.h
6214 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6215 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6216 $as_echo_n "checking for $ac_header... " >&6; }
6217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6218 $as_echo_n "(cached) " >&6
6219 else
6220 cat >conftest.$ac_ext <<_ACEOF
6221 /* confdefs.h. */
6222 _ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h. */
6226 $ac_includes_default
6228 #include <$ac_header>
6229 _ACEOF
6230 rm -f conftest.$ac_objext
6231 if { (ac_try="$ac_compile"
6232 case "(($ac_try" in
6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6235 esac
6236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6237 $as_echo "$ac_try_echo") >&5
6238 (eval "$ac_compile") 2>conftest.er1
6239 ac_status=$?
6240 grep -v '^ *+' conftest.er1 >conftest.err
6241 rm -f conftest.er1
6242 cat conftest.err >&5
6243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } && {
6245 test -z "$ac_c_werror_flag" ||
6246 test ! -s conftest.err
6247 } && test -s conftest.$ac_objext; then
6248 eval "$as_ac_Header=yes"
6249 else
6250 $as_echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6253 eval "$as_ac_Header=no"
6256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258 ac_res=`eval 'as_val=${'$as_ac_Header'}
6259 $as_echo "$as_val"'`
6260 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6261 $as_echo "$ac_res" >&6; }
6262 if test `eval 'as_val=${'$as_ac_Header'}
6263 $as_echo "$as_val"'` = yes; then
6264 cat >>confdefs.h <<_ACEOF
6265 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6266 _ACEOF
6270 done
6274 for ac_header in dlfcn.h
6276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6277 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6278 $as_echo_n "checking for $ac_header... " >&6; }
6279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6280 $as_echo_n "(cached) " >&6
6281 else
6282 cat >conftest.$ac_ext <<_ACEOF
6283 /* confdefs.h. */
6284 _ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h. */
6288 $ac_includes_default
6290 #include <$ac_header>
6291 _ACEOF
6292 rm -f conftest.$ac_objext
6293 if { (ac_try="$ac_compile"
6294 case "(($ac_try" in
6295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6296 *) ac_try_echo=$ac_try;;
6297 esac
6298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6299 $as_echo "$ac_try_echo") >&5
6300 (eval "$ac_compile") 2>conftest.er1
6301 ac_status=$?
6302 grep -v '^ *+' conftest.er1 >conftest.err
6303 rm -f conftest.er1
6304 cat conftest.err >&5
6305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } && {
6307 test -z "$ac_c_werror_flag" ||
6308 test ! -s conftest.err
6309 } && test -s conftest.$ac_objext; then
6310 eval "$as_ac_Header=yes"
6311 else
6312 $as_echo "$as_me: failed program was:" >&5
6313 sed 's/^/| /' conftest.$ac_ext >&5
6315 eval "$as_ac_Header=no"
6318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6320 ac_res=`eval 'as_val=${'$as_ac_Header'}
6321 $as_echo "$as_val"'`
6322 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6323 $as_echo "$ac_res" >&6; }
6324 if test `eval 'as_val=${'$as_ac_Header'}
6325 $as_echo "$as_val"'` = yes; then
6326 cat >>confdefs.h <<_ACEOF
6327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6328 _ACEOF
6332 done
6336 # Set options
6340 enable_dlopen=no
6343 enable_win32_dll=no
6346 # Check whether --enable-shared was given.
6347 if test "${enable_shared+set}" = set; then
6348 enableval=$enable_shared; p=${PACKAGE-default}
6349 case $enableval in
6350 yes) enable_shared=yes ;;
6351 no) enable_shared=no ;;
6353 enable_shared=no
6354 # Look at the argument we got. We use all the common list separators.
6355 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6356 for pkg in $enableval; do
6357 IFS="$lt_save_ifs"
6358 if test "X$pkg" = "X$p"; then
6359 enable_shared=yes
6361 done
6362 IFS="$lt_save_ifs"
6364 esac
6365 else
6366 enable_shared=yes
6377 # Check whether --enable-static was given.
6378 if test "${enable_static+set}" = set; then
6379 enableval=$enable_static; p=${PACKAGE-default}
6380 case $enableval in
6381 yes) enable_static=yes ;;
6382 no) enable_static=no ;;
6384 enable_static=no
6385 # Look at the argument we got. We use all the common list separators.
6386 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6387 for pkg in $enableval; do
6388 IFS="$lt_save_ifs"
6389 if test "X$pkg" = "X$p"; then
6390 enable_static=yes
6392 done
6393 IFS="$lt_save_ifs"
6395 esac
6396 else
6397 enable_static=yes
6409 # Check whether --with-pic was given.
6410 if test "${with_pic+set}" = set; then
6411 withval=$with_pic; pic_mode="$withval"
6412 else
6413 pic_mode=default
6417 test -z "$pic_mode" && pic_mode=default
6425 # Check whether --enable-fast-install was given.
6426 if test "${enable_fast_install+set}" = set; then
6427 enableval=$enable_fast_install; p=${PACKAGE-default}
6428 case $enableval in
6429 yes) enable_fast_install=yes ;;
6430 no) enable_fast_install=no ;;
6432 enable_fast_install=no
6433 # Look at the argument we got. We use all the common list separators.
6434 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6435 for pkg in $enableval; do
6436 IFS="$lt_save_ifs"
6437 if test "X$pkg" = "X$p"; then
6438 enable_fast_install=yes
6440 done
6441 IFS="$lt_save_ifs"
6443 esac
6444 else
6445 enable_fast_install=yes
6458 # This can be used to rebuild libtool when needed
6459 LIBTOOL_DEPS="$ltmain"
6461 # Always use our own libtool.
6462 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6488 test -z "$LN_S" && LN_S="ln -s"
6503 if test -n "${ZSH_VERSION+set}" ; then
6504 setopt NO_GLOB_SUBST
6507 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6508 $as_echo_n "checking for objdir... " >&6; }
6509 if test "${lt_cv_objdir+set}" = set; then
6510 $as_echo_n "(cached) " >&6
6511 else
6512 rm -f .libs 2>/dev/null
6513 mkdir .libs 2>/dev/null
6514 if test -d .libs; then
6515 lt_cv_objdir=.libs
6516 else
6517 # MS-DOS does not allow filenames that begin with a dot.
6518 lt_cv_objdir=_libs
6520 rmdir .libs 2>/dev/null
6522 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6523 $as_echo "$lt_cv_objdir" >&6; }
6524 objdir=$lt_cv_objdir
6530 cat >>confdefs.h <<_ACEOF
6531 #define LT_OBJDIR "$lt_cv_objdir/"
6532 _ACEOF
6550 case $host_os in
6551 aix3*)
6552 # AIX sometimes has problems with the GCC collect2 program. For some
6553 # reason, if we set the COLLECT_NAMES environment variable, the problems
6554 # vanish in a puff of smoke.
6555 if test "X${COLLECT_NAMES+set}" != Xset; then
6556 COLLECT_NAMES=
6557 export COLLECT_NAMES
6560 esac
6562 # Sed substitution that helps us do robust quoting. It backslashifies
6563 # metacharacters that are still active within double-quoted strings.
6564 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6566 # Same as above, but do not quote variable references.
6567 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6569 # Sed substitution to delay expansion of an escaped shell variable in a
6570 # double_quote_subst'ed string.
6571 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6573 # Sed substitution to delay expansion of an escaped single quote.
6574 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6576 # Sed substitution to avoid accidental globbing in evaled expressions
6577 no_glob_subst='s/\*/\\\*/g'
6579 # Global variables:
6580 ofile=libtool
6581 can_build_shared=yes
6583 # All known linkers require a `.a' archive for static linking (except MSVC,
6584 # which needs '.lib').
6585 libext=a
6587 with_gnu_ld="$lt_cv_prog_gnu_ld"
6589 old_CC="$CC"
6590 old_CFLAGS="$CFLAGS"
6592 # Set sane defaults for various variables
6593 test -z "$CC" && CC=cc
6594 test -z "$LTCC" && LTCC=$CC
6595 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6596 test -z "$LD" && LD=ld
6597 test -z "$ac_objext" && ac_objext=o
6599 for cc_temp in $compiler""; do
6600 case $cc_temp in
6601 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6602 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6603 \-*) ;;
6604 *) break;;
6605 esac
6606 done
6607 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6610 # Only perform the check for file, if the check method requires it
6611 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6612 case $deplibs_check_method in
6613 file_magic*)
6614 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6615 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6616 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6617 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6618 $as_echo_n "(cached) " >&6
6619 else
6620 case $MAGIC_CMD in
6621 [\\/*] | ?:[\\/]*)
6622 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6625 lt_save_MAGIC_CMD="$MAGIC_CMD"
6626 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6627 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6628 for ac_dir in $ac_dummy; do
6629 IFS="$lt_save_ifs"
6630 test -z "$ac_dir" && ac_dir=.
6631 if test -f $ac_dir/${ac_tool_prefix}file; then
6632 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6633 if test -n "$file_magic_test_file"; then
6634 case $deplibs_check_method in
6635 "file_magic "*)
6636 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6637 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6638 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6639 $EGREP "$file_magic_regex" > /dev/null; then
6641 else
6642 cat <<_LT_EOF 1>&2
6644 *** Warning: the command libtool uses to detect shared libraries,
6645 *** $file_magic_cmd, produces output that libtool cannot recognize.
6646 *** The result is that libtool may fail to recognize shared libraries
6647 *** as such. This will affect the creation of libtool libraries that
6648 *** depend on shared libraries, but programs linked with such libtool
6649 *** libraries will work regardless of this problem. Nevertheless, you
6650 *** may want to report the problem to your system manager and/or to
6651 *** bug-libtool@gnu.org
6653 _LT_EOF
6654 fi ;;
6655 esac
6657 break
6659 done
6660 IFS="$lt_save_ifs"
6661 MAGIC_CMD="$lt_save_MAGIC_CMD"
6663 esac
6666 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6667 if test -n "$MAGIC_CMD"; then
6668 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6669 $as_echo "$MAGIC_CMD" >&6; }
6670 else
6671 { $as_echo "$as_me:$LINENO: result: no" >&5
6672 $as_echo "no" >&6; }
6679 if test -z "$lt_cv_path_MAGIC_CMD"; then
6680 if test -n "$ac_tool_prefix"; then
6681 { $as_echo "$as_me:$LINENO: checking for file" >&5
6682 $as_echo_n "checking for file... " >&6; }
6683 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6684 $as_echo_n "(cached) " >&6
6685 else
6686 case $MAGIC_CMD in
6687 [\\/*] | ?:[\\/]*)
6688 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6691 lt_save_MAGIC_CMD="$MAGIC_CMD"
6692 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6693 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6694 for ac_dir in $ac_dummy; do
6695 IFS="$lt_save_ifs"
6696 test -z "$ac_dir" && ac_dir=.
6697 if test -f $ac_dir/file; then
6698 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6699 if test -n "$file_magic_test_file"; then
6700 case $deplibs_check_method in
6701 "file_magic "*)
6702 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6703 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6704 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6705 $EGREP "$file_magic_regex" > /dev/null; then
6707 else
6708 cat <<_LT_EOF 1>&2
6710 *** Warning: the command libtool uses to detect shared libraries,
6711 *** $file_magic_cmd, produces output that libtool cannot recognize.
6712 *** The result is that libtool may fail to recognize shared libraries
6713 *** as such. This will affect the creation of libtool libraries that
6714 *** depend on shared libraries, but programs linked with such libtool
6715 *** libraries will work regardless of this problem. Nevertheless, you
6716 *** may want to report the problem to your system manager and/or to
6717 *** bug-libtool@gnu.org
6719 _LT_EOF
6720 fi ;;
6721 esac
6723 break
6725 done
6726 IFS="$lt_save_ifs"
6727 MAGIC_CMD="$lt_save_MAGIC_CMD"
6729 esac
6732 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6733 if test -n "$MAGIC_CMD"; then
6734 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6735 $as_echo "$MAGIC_CMD" >&6; }
6736 else
6737 { $as_echo "$as_me:$LINENO: result: no" >&5
6738 $as_echo "no" >&6; }
6742 else
6743 MAGIC_CMD=:
6749 esac
6751 # Use C for the default configuration in the libtool script
6753 lt_save_CC="$CC"
6754 ac_ext=c
6755 ac_cpp='$CPP $CPPFLAGS'
6756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6761 # Source file extension for C test sources.
6762 ac_ext=c
6764 # Object file extension for compiled C test sources.
6765 objext=o
6766 objext=$objext
6768 # Code to be used in simple compile tests
6769 lt_simple_compile_test_code="int some_variable = 0;"
6771 # Code to be used in simple link tests
6772 lt_simple_link_test_code='int main(){return(0);}'
6780 # If no C compiler was specified, use CC.
6781 LTCC=${LTCC-"$CC"}
6783 # If no C compiler flags were specified, use CFLAGS.
6784 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6786 # Allow CC to be a program name with arguments.
6787 compiler=$CC
6789 # Save the default compiler, since it gets overwritten when the other
6790 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6791 compiler_DEFAULT=$CC
6793 # save warnings/boilerplate of simple test code
6794 ac_outfile=conftest.$ac_objext
6795 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6796 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6797 _lt_compiler_boilerplate=`cat conftest.err`
6798 $RM conftest*
6800 ac_outfile=conftest.$ac_objext
6801 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6802 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6803 _lt_linker_boilerplate=`cat conftest.err`
6804 $RM -r conftest*
6807 if test -n "$compiler"; then
6809 lt_prog_compiler_no_builtin_flag=
6811 if test "$GCC" = yes; then
6812 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6814 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6815 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6816 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6817 $as_echo_n "(cached) " >&6
6818 else
6819 lt_cv_prog_compiler_rtti_exceptions=no
6820 ac_outfile=conftest.$ac_objext
6821 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6822 lt_compiler_flag="-fno-rtti -fno-exceptions"
6823 # Insert the option either (1) after the last *FLAGS variable, or
6824 # (2) before a word containing "conftest.", or (3) at the end.
6825 # Note that $ac_compile itself does not contain backslashes and begins
6826 # with a dollar sign (not a hyphen), so the echo should work correctly.
6827 # The option is referenced via a variable to avoid confusing sed.
6828 lt_compile=`echo "$ac_compile" | $SED \
6829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6831 -e 's:$: $lt_compiler_flag:'`
6832 (eval echo "\"\$as_me:6832: $lt_compile\"" >&5)
6833 (eval "$lt_compile" 2>conftest.err)
6834 ac_status=$?
6835 cat conftest.err >&5
6836 echo "$as_me:6836: \$? = $ac_status" >&5
6837 if (exit $ac_status) && test -s "$ac_outfile"; then
6838 # The compiler can only warn and ignore the option if not recognized
6839 # So say no if there are warnings other than the usual output.
6840 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6841 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6842 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6843 lt_cv_prog_compiler_rtti_exceptions=yes
6846 $RM conftest*
6849 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6850 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6852 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6853 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6854 else
6865 lt_prog_compiler_wl=
6866 lt_prog_compiler_pic=
6867 lt_prog_compiler_static=
6869 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6870 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6872 if test "$GCC" = yes; then
6873 lt_prog_compiler_wl='-Wl,'
6874 lt_prog_compiler_static='-static'
6876 case $host_os in
6877 aix*)
6878 # All AIX code is PIC.
6879 if test "$host_cpu" = ia64; then
6880 # AIX 5 now supports IA64 processor
6881 lt_prog_compiler_static='-Bstatic'
6885 amigaos*)
6886 case $host_cpu in
6887 powerpc)
6888 # see comment about AmigaOS4 .so support
6889 lt_prog_compiler_pic='-fPIC'
6891 m68k)
6892 # FIXME: we need at least 68020 code to build shared libraries, but
6893 # adding the `-m68020' flag to GCC prevents building anything better,
6894 # like `-m68040'.
6895 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6897 esac
6900 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6901 # PIC is the default for these OSes.
6904 mingw* | cygwin* | pw32* | os2* | cegcc*)
6905 # This hack is so that the source file can tell whether it is being
6906 # built for inclusion in a dll (and should export symbols for example).
6907 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6908 # (--disable-auto-import) libraries
6909 lt_prog_compiler_pic='-DDLL_EXPORT'
6912 darwin* | rhapsody*)
6913 # PIC is the default on this platform
6914 # Common symbols not allowed in MH_DYLIB files
6915 lt_prog_compiler_pic='-fno-common'
6918 hpux*)
6919 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6920 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6921 # sets the default TLS model and affects inlining.
6922 case $host_cpu in
6923 hppa*64*)
6924 # +Z the default
6927 lt_prog_compiler_pic='-fPIC'
6929 esac
6932 interix[3-9]*)
6933 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6934 # Instead, we relocate shared libraries at runtime.
6937 msdosdjgpp*)
6938 # Just because we use GCC doesn't mean we suddenly get shared libraries
6939 # on systems that don't support them.
6940 lt_prog_compiler_can_build_shared=no
6941 enable_shared=no
6944 *nto* | *qnx*)
6945 # QNX uses GNU C++, but need to define -shared option too, otherwise
6946 # it will coredump.
6947 lt_prog_compiler_pic='-fPIC -shared'
6950 sysv4*MP*)
6951 if test -d /usr/nec; then
6952 lt_prog_compiler_pic=-Kconform_pic
6957 lt_prog_compiler_pic='-fPIC'
6959 esac
6960 else
6961 # PORTME Check for flag to pass linker flags through the system compiler.
6962 case $host_os in
6963 aix*)
6964 lt_prog_compiler_wl='-Wl,'
6965 if test "$host_cpu" = ia64; then
6966 # AIX 5 now supports IA64 processor
6967 lt_prog_compiler_static='-Bstatic'
6968 else
6969 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6973 mingw* | cygwin* | pw32* | os2* | cegcc*)
6974 # This hack is so that the source file can tell whether it is being
6975 # built for inclusion in a dll (and should export symbols for example).
6976 lt_prog_compiler_pic='-DDLL_EXPORT'
6979 hpux9* | hpux10* | hpux11*)
6980 lt_prog_compiler_wl='-Wl,'
6981 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6982 # not for PA HP-UX.
6983 case $host_cpu in
6984 hppa*64*|ia64*)
6985 # +Z the default
6988 lt_prog_compiler_pic='+Z'
6990 esac
6991 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6992 lt_prog_compiler_static='${wl}-a ${wl}archive'
6995 irix5* | irix6* | nonstopux*)
6996 lt_prog_compiler_wl='-Wl,'
6997 # PIC (with -KPIC) is the default.
6998 lt_prog_compiler_static='-non_shared'
7001 linux* | k*bsd*-gnu)
7002 case $cc_basename in
7003 # old Intel for x86_64 which still supported -KPIC.
7004 ecc*)
7005 lt_prog_compiler_wl='-Wl,'
7006 lt_prog_compiler_pic='-KPIC'
7007 lt_prog_compiler_static='-static'
7009 # icc used to be incompatible with GCC.
7010 # ICC 10 doesn't accept -KPIC any more.
7011 icc* | ifort*)
7012 lt_prog_compiler_wl='-Wl,'
7013 lt_prog_compiler_pic='-fPIC'
7014 lt_prog_compiler_static='-static'
7016 # Lahey Fortran 8.1.
7017 lf95*)
7018 lt_prog_compiler_wl='-Wl,'
7019 lt_prog_compiler_pic='--shared'
7020 lt_prog_compiler_static='--static'
7022 pgcc* | pgf77* | pgf90* | pgf95*)
7023 # Portland Group compilers (*not* the Pentium gcc compiler,
7024 # which looks to be a dead project)
7025 lt_prog_compiler_wl='-Wl,'
7026 lt_prog_compiler_pic='-fpic'
7027 lt_prog_compiler_static='-Bstatic'
7029 ccc*)
7030 lt_prog_compiler_wl='-Wl,'
7031 # All Alpha code is PIC.
7032 lt_prog_compiler_static='-non_shared'
7034 xl*)
7035 # IBM XL C 8.0/Fortran 10.1 on PPC
7036 lt_prog_compiler_wl='-Wl,'
7037 lt_prog_compiler_pic='-qpic'
7038 lt_prog_compiler_static='-qstaticlink'
7041 case `$CC -V 2>&1 | sed 5q` in
7042 *Sun\ C*)
7043 # Sun C 5.9
7044 lt_prog_compiler_pic='-KPIC'
7045 lt_prog_compiler_static='-Bstatic'
7046 lt_prog_compiler_wl='-Wl,'
7048 *Sun\ F*)
7049 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7050 lt_prog_compiler_pic='-KPIC'
7051 lt_prog_compiler_static='-Bstatic'
7052 lt_prog_compiler_wl=''
7054 esac
7056 esac
7059 newsos6)
7060 lt_prog_compiler_pic='-KPIC'
7061 lt_prog_compiler_static='-Bstatic'
7064 *nto* | *qnx*)
7065 # QNX uses GNU C++, but need to define -shared option too, otherwise
7066 # it will coredump.
7067 lt_prog_compiler_pic='-fPIC -shared'
7070 osf3* | osf4* | osf5*)
7071 lt_prog_compiler_wl='-Wl,'
7072 # All OSF/1 code is PIC.
7073 lt_prog_compiler_static='-non_shared'
7076 rdos*)
7077 lt_prog_compiler_static='-non_shared'
7080 solaris*)
7081 lt_prog_compiler_pic='-KPIC'
7082 lt_prog_compiler_static='-Bstatic'
7083 case $cc_basename in
7084 f77* | f90* | f95*)
7085 lt_prog_compiler_wl='-Qoption ld ';;
7087 lt_prog_compiler_wl='-Wl,';;
7088 esac
7091 sunos4*)
7092 lt_prog_compiler_wl='-Qoption ld '
7093 lt_prog_compiler_pic='-PIC'
7094 lt_prog_compiler_static='-Bstatic'
7097 sysv4 | sysv4.2uw2* | sysv4.3*)
7098 lt_prog_compiler_wl='-Wl,'
7099 lt_prog_compiler_pic='-KPIC'
7100 lt_prog_compiler_static='-Bstatic'
7103 sysv4*MP*)
7104 if test -d /usr/nec ;then
7105 lt_prog_compiler_pic='-Kconform_pic'
7106 lt_prog_compiler_static='-Bstatic'
7110 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7111 lt_prog_compiler_wl='-Wl,'
7112 lt_prog_compiler_pic='-KPIC'
7113 lt_prog_compiler_static='-Bstatic'
7116 unicos*)
7117 lt_prog_compiler_wl='-Wl,'
7118 lt_prog_compiler_can_build_shared=no
7121 uts4*)
7122 lt_prog_compiler_pic='-pic'
7123 lt_prog_compiler_static='-Bstatic'
7127 lt_prog_compiler_can_build_shared=no
7129 esac
7132 case $host_os in
7133 # For platforms which do not support PIC, -DPIC is meaningless:
7134 *djgpp*)
7135 lt_prog_compiler_pic=
7138 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7140 esac
7141 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7142 $as_echo "$lt_prog_compiler_pic" >&6; }
7150 # Check to make sure the PIC flag actually works.
7152 if test -n "$lt_prog_compiler_pic"; then
7153 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7154 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7155 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7156 $as_echo_n "(cached) " >&6
7157 else
7158 lt_cv_prog_compiler_pic_works=no
7159 ac_outfile=conftest.$ac_objext
7160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7161 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7162 # Insert the option either (1) after the last *FLAGS variable, or
7163 # (2) before a word containing "conftest.", or (3) at the end.
7164 # Note that $ac_compile itself does not contain backslashes and begins
7165 # with a dollar sign (not a hyphen), so the echo should work correctly.
7166 # The option is referenced via a variable to avoid confusing sed.
7167 lt_compile=`echo "$ac_compile" | $SED \
7168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7170 -e 's:$: $lt_compiler_flag:'`
7171 (eval echo "\"\$as_me:7171: $lt_compile\"" >&5)
7172 (eval "$lt_compile" 2>conftest.err)
7173 ac_status=$?
7174 cat conftest.err >&5
7175 echo "$as_me:7175: \$? = $ac_status" >&5
7176 if (exit $ac_status) && test -s "$ac_outfile"; then
7177 # The compiler can only warn and ignore the option if not recognized
7178 # So say no if there are warnings other than the usual output.
7179 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7180 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7181 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7182 lt_cv_prog_compiler_pic_works=yes
7185 $RM conftest*
7188 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7189 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7191 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7192 case $lt_prog_compiler_pic in
7193 "" | " "*) ;;
7194 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7195 esac
7196 else
7197 lt_prog_compiler_pic=
7198 lt_prog_compiler_can_build_shared=no
7209 # Check to make sure the static flag actually works.
7211 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7212 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7213 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7214 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7215 $as_echo_n "(cached) " >&6
7216 else
7217 lt_cv_prog_compiler_static_works=no
7218 save_LDFLAGS="$LDFLAGS"
7219 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7220 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7221 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7222 # The linker can only warn and ignore the option if not recognized
7223 # So say no if there are warnings
7224 if test -s conftest.err; then
7225 # Append any errors to the config.log.
7226 cat conftest.err 1>&5
7227 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7229 if diff conftest.exp conftest.er2 >/dev/null; then
7230 lt_cv_prog_compiler_static_works=yes
7232 else
7233 lt_cv_prog_compiler_static_works=yes
7236 $RM -r conftest*
7237 LDFLAGS="$save_LDFLAGS"
7240 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7241 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7243 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7245 else
7246 lt_prog_compiler_static=
7255 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7256 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7257 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7258 $as_echo_n "(cached) " >&6
7259 else
7260 lt_cv_prog_compiler_c_o=no
7261 $RM -r conftest 2>/dev/null
7262 mkdir conftest
7263 cd conftest
7264 mkdir out
7265 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7267 lt_compiler_flag="-o out/conftest2.$ac_objext"
7268 # Insert the option either (1) after the last *FLAGS variable, or
7269 # (2) before a word containing "conftest.", or (3) at the end.
7270 # Note that $ac_compile itself does not contain backslashes and begins
7271 # with a dollar sign (not a hyphen), so the echo should work correctly.
7272 lt_compile=`echo "$ac_compile" | $SED \
7273 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7274 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7275 -e 's:$: $lt_compiler_flag:'`
7276 (eval echo "\"\$as_me:7276: $lt_compile\"" >&5)
7277 (eval "$lt_compile" 2>out/conftest.err)
7278 ac_status=$?
7279 cat out/conftest.err >&5
7280 echo "$as_me:7280: \$? = $ac_status" >&5
7281 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7282 then
7283 # The compiler can only warn and ignore the option if not recognized
7284 # So say no if there are warnings
7285 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7286 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7287 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7288 lt_cv_prog_compiler_c_o=yes
7291 chmod u+w . 2>&5
7292 $RM conftest*
7293 # SGI C++ compiler will create directory out/ii_files/ for
7294 # template instantiation
7295 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7296 $RM out/* && rmdir out
7297 cd ..
7298 $RM -r conftest
7299 $RM conftest*
7302 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7303 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7310 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7311 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7312 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7313 $as_echo_n "(cached) " >&6
7314 else
7315 lt_cv_prog_compiler_c_o=no
7316 $RM -r conftest 2>/dev/null
7317 mkdir conftest
7318 cd conftest
7319 mkdir out
7320 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7322 lt_compiler_flag="-o out/conftest2.$ac_objext"
7323 # Insert the option either (1) after the last *FLAGS variable, or
7324 # (2) before a word containing "conftest.", or (3) at the end.
7325 # Note that $ac_compile itself does not contain backslashes and begins
7326 # with a dollar sign (not a hyphen), so the echo should work correctly.
7327 lt_compile=`echo "$ac_compile" | $SED \
7328 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7329 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7330 -e 's:$: $lt_compiler_flag:'`
7331 (eval echo "\"\$as_me:7331: $lt_compile\"" >&5)
7332 (eval "$lt_compile" 2>out/conftest.err)
7333 ac_status=$?
7334 cat out/conftest.err >&5
7335 echo "$as_me:7335: \$? = $ac_status" >&5
7336 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7337 then
7338 # The compiler can only warn and ignore the option if not recognized
7339 # So say no if there are warnings
7340 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7341 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7342 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7343 lt_cv_prog_compiler_c_o=yes
7346 chmod u+w . 2>&5
7347 $RM conftest*
7348 # SGI C++ compiler will create directory out/ii_files/ for
7349 # template instantiation
7350 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7351 $RM out/* && rmdir out
7352 cd ..
7353 $RM -r conftest
7354 $RM conftest*
7357 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7358 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7363 hard_links="nottested"
7364 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7365 # do not overwrite the value of need_locks provided by the user
7366 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7367 $as_echo_n "checking if we can lock with hard links... " >&6; }
7368 hard_links=yes
7369 $RM conftest*
7370 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7371 touch conftest.a
7372 ln conftest.a conftest.b 2>&5 || hard_links=no
7373 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7374 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7375 $as_echo "$hard_links" >&6; }
7376 if test "$hard_links" = no; then
7377 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7378 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7379 need_locks=warn
7381 else
7382 need_locks=no
7390 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7391 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7393 runpath_var=
7394 allow_undefined_flag=
7395 always_export_symbols=no
7396 archive_cmds=
7397 archive_expsym_cmds=
7398 compiler_needs_object=no
7399 enable_shared_with_static_runtimes=no
7400 export_dynamic_flag_spec=
7401 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7402 hardcode_automatic=no
7403 hardcode_direct=no
7404 hardcode_direct_absolute=no
7405 hardcode_libdir_flag_spec=
7406 hardcode_libdir_flag_spec_ld=
7407 hardcode_libdir_separator=
7408 hardcode_minus_L=no
7409 hardcode_shlibpath_var=unsupported
7410 inherit_rpath=no
7411 link_all_deplibs=unknown
7412 module_cmds=
7413 module_expsym_cmds=
7414 old_archive_from_new_cmds=
7415 old_archive_from_expsyms_cmds=
7416 thread_safe_flag_spec=
7417 whole_archive_flag_spec=
7418 # include_expsyms should be a list of space-separated symbols to be *always*
7419 # included in the symbol list
7420 include_expsyms=
7421 # exclude_expsyms can be an extended regexp of symbols to exclude
7422 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7423 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7424 # as well as any symbol that contains `d'.
7425 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7426 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7427 # platforms (ab)use it in PIC code, but their linkers get confused if
7428 # the symbol is explicitly referenced. Since portable code cannot
7429 # rely on this symbol name, it's probably fine to never include it in
7430 # preloaded symbol tables.
7431 # Exclude shared library initialization/finalization symbols.
7432 extract_expsyms_cmds=
7434 case $host_os in
7435 cygwin* | mingw* | pw32* | cegcc*)
7436 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7437 # When not using gcc, we currently assume that we are using
7438 # Microsoft Visual C++.
7439 if test "$GCC" != yes; then
7440 with_gnu_ld=no
7443 interix*)
7444 # we just hope/assume this is gcc and not c89 (= MSVC++)
7445 with_gnu_ld=yes
7447 openbsd*)
7448 with_gnu_ld=no
7450 esac
7452 ld_shlibs=yes
7453 if test "$with_gnu_ld" = yes; then
7454 # If archive_cmds runs LD, not CC, wlarc should be empty
7455 wlarc='${wl}'
7457 # Set some defaults for GNU ld with shared library support. These
7458 # are reset later if shared libraries are not supported. Putting them
7459 # here allows them to be overridden if necessary.
7460 runpath_var=LD_RUN_PATH
7461 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7462 export_dynamic_flag_spec='${wl}--export-dynamic'
7463 # ancient GNU ld didn't support --whole-archive et. al.
7464 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7465 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7466 else
7467 whole_archive_flag_spec=
7469 supports_anon_versioning=no
7470 case `$LD -v 2>&1` in
7471 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7472 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7473 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7474 *\ 2.11.*) ;; # other 2.11 versions
7475 *) supports_anon_versioning=yes ;;
7476 esac
7478 # See if GNU ld supports shared libraries.
7479 case $host_os in
7480 aix[3-9]*)
7481 # On AIX/PPC, the GNU linker is very broken
7482 if test "$host_cpu" != ia64; then
7483 ld_shlibs=no
7484 cat <<_LT_EOF 1>&2
7486 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7487 *** to be unable to reliably create shared libraries on AIX.
7488 *** Therefore, libtool is disabling shared libraries support. If you
7489 *** really care for shared libraries, you may want to modify your PATH
7490 *** so that a non-GNU linker is found, and then restart.
7492 _LT_EOF
7496 amigaos*)
7497 case $host_cpu in
7498 powerpc)
7499 # see comment about AmigaOS4 .so support
7500 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7501 archive_expsym_cmds=''
7503 m68k)
7504 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)'
7505 hardcode_libdir_flag_spec='-L$libdir'
7506 hardcode_minus_L=yes
7508 esac
7511 beos*)
7512 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7513 allow_undefined_flag=unsupported
7514 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7515 # support --undefined. This deserves some investigation. FIXME
7516 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7517 else
7518 ld_shlibs=no
7522 cygwin* | mingw* | pw32* | cegcc*)
7523 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7524 # as there is no search path for DLLs.
7525 hardcode_libdir_flag_spec='-L$libdir'
7526 allow_undefined_flag=unsupported
7527 always_export_symbols=no
7528 enable_shared_with_static_runtimes=yes
7529 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7531 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7532 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7533 # If the export-symbols file already is a .def file (1st line
7534 # is EXPORTS), use it as is; otherwise, prepend...
7535 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7536 cp $export_symbols $output_objdir/$soname.def;
7537 else
7538 echo EXPORTS > $output_objdir/$soname.def;
7539 cat $export_symbols >> $output_objdir/$soname.def;
7541 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7542 else
7543 ld_shlibs=no
7547 interix[3-9]*)
7548 hardcode_direct=no
7549 hardcode_shlibpath_var=no
7550 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7551 export_dynamic_flag_spec='${wl}-E'
7552 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7553 # Instead, shared libraries are loaded at an image base (0x10000000 by
7554 # default) and relocated if they conflict, which is a slow very memory
7555 # consuming and fragmenting process. To avoid this, we pick a random,
7556 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7557 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7558 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7559 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'
7562 gnu* | linux* | tpf* | k*bsd*-gnu)
7563 tmp_diet=no
7564 if test "$host_os" = linux-dietlibc; then
7565 case $cc_basename in
7566 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7567 esac
7569 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7570 && test "$tmp_diet" = no
7571 then
7572 tmp_addflag=
7573 tmp_sharedflag='-shared'
7574 case $cc_basename,$host_cpu in
7575 pgcc*) # Portland Group C compiler
7576 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7577 tmp_addflag=' $pic_flag'
7579 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7580 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7581 tmp_addflag=' $pic_flag -Mnomain' ;;
7582 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7583 tmp_addflag=' -i_dynamic' ;;
7584 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7585 tmp_addflag=' -i_dynamic -nofor_main' ;;
7586 ifc* | ifort*) # Intel Fortran compiler
7587 tmp_addflag=' -nofor_main' ;;
7588 lf95*) # Lahey Fortran 8.1
7589 whole_archive_flag_spec=
7590 tmp_sharedflag='--shared' ;;
7591 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7592 tmp_sharedflag='-qmkshrobj'
7593 tmp_addflag= ;;
7594 esac
7595 case `$CC -V 2>&1 | sed 5q` in
7596 *Sun\ C*) # Sun C 5.9
7597 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7598 compiler_needs_object=yes
7599 tmp_sharedflag='-G' ;;
7600 *Sun\ F*) # Sun Fortran 8.3
7601 tmp_sharedflag='-G' ;;
7602 esac
7603 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7605 if test "x$supports_anon_versioning" = xyes; then
7606 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7607 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7608 echo "local: *; };" >> $output_objdir/$libname.ver~
7609 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7612 case $cc_basename in
7613 xlf*)
7614 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7615 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7616 hardcode_libdir_flag_spec=
7617 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7618 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7619 if test "x$supports_anon_versioning" = xyes; then
7620 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7621 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7622 echo "local: *; };" >> $output_objdir/$libname.ver~
7623 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7626 esac
7627 else
7628 ld_shlibs=no
7632 netbsd*)
7633 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7634 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7635 wlarc=
7636 else
7637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7638 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7642 solaris*)
7643 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7644 ld_shlibs=no
7645 cat <<_LT_EOF 1>&2
7647 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7648 *** create shared libraries on Solaris systems. Therefore, libtool
7649 *** is disabling shared libraries support. We urge you to upgrade GNU
7650 *** binutils to release 2.9.1 or newer. Another option is to modify
7651 *** your PATH or compiler configuration so that the native linker is
7652 *** used, and then restart.
7654 _LT_EOF
7655 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7657 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7658 else
7659 ld_shlibs=no
7663 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7664 case `$LD -v 2>&1` in
7665 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7666 ld_shlibs=no
7667 cat <<_LT_EOF 1>&2
7669 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7670 *** reliably create shared libraries on SCO systems. Therefore, libtool
7671 *** is disabling shared libraries support. We urge you to upgrade GNU
7672 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7673 *** your PATH or compiler configuration so that the native linker is
7674 *** used, and then restart.
7676 _LT_EOF
7679 # For security reasons, it is highly recommended that you always
7680 # use absolute paths for naming shared libraries, and exclude the
7681 # DT_RUNPATH tag from executables and libraries. But doing so
7682 # requires that you compile everything twice, which is a pain.
7683 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7685 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7686 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7687 else
7688 ld_shlibs=no
7691 esac
7694 sunos4*)
7695 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7696 wlarc=
7697 hardcode_direct=yes
7698 hardcode_shlibpath_var=no
7702 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7704 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7705 else
7706 ld_shlibs=no
7709 esac
7711 if test "$ld_shlibs" = no; then
7712 runpath_var=
7713 hardcode_libdir_flag_spec=
7714 export_dynamic_flag_spec=
7715 whole_archive_flag_spec=
7717 else
7718 # PORTME fill in a description of your system's linker (not GNU ld)
7719 case $host_os in
7720 aix3*)
7721 allow_undefined_flag=unsupported
7722 always_export_symbols=yes
7723 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'
7724 # Note: this linker hardcodes the directories in LIBPATH if there
7725 # are no directories specified by -L.
7726 hardcode_minus_L=yes
7727 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7728 # Neither direct hardcoding nor static linking is supported with a
7729 # broken collect2.
7730 hardcode_direct=unsupported
7734 aix[4-9]*)
7735 if test "$host_cpu" = ia64; then
7736 # On IA64, the linker does run time linking by default, so we don't
7737 # have to do anything special.
7738 aix_use_runtimelinking=no
7739 exp_sym_flag='-Bexport'
7740 no_entry_flag=""
7741 else
7742 # If we're using GNU nm, then we don't want the "-C" option.
7743 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7744 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7745 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7746 else
7747 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7749 aix_use_runtimelinking=no
7751 # Test if we are trying to use run time linking or normal
7752 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7753 # need to do runtime linking.
7754 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7755 for ld_flag in $LDFLAGS; do
7756 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7757 aix_use_runtimelinking=yes
7758 break
7760 done
7762 esac
7764 exp_sym_flag='-bexport'
7765 no_entry_flag='-bnoentry'
7768 # When large executables or shared objects are built, AIX ld can
7769 # have problems creating the table of contents. If linking a library
7770 # or program results in "error TOC overflow" add -mminimal-toc to
7771 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7772 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7774 archive_cmds=''
7775 hardcode_direct=yes
7776 hardcode_direct_absolute=yes
7777 hardcode_libdir_separator=':'
7778 link_all_deplibs=yes
7779 file_list_spec='${wl}-f,'
7781 if test "$GCC" = yes; then
7782 case $host_os in aix4.[012]|aix4.[012].*)
7783 # We only want to do this on AIX 4.2 and lower, the check
7784 # below for broken collect2 doesn't work under 4.3+
7785 collect2name=`${CC} -print-prog-name=collect2`
7786 if test -f "$collect2name" &&
7787 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7788 then
7789 # We have reworked collect2
7791 else
7792 # We have old collect2
7793 hardcode_direct=unsupported
7794 # It fails to find uninstalled libraries when the uninstalled
7795 # path is not listed in the libpath. Setting hardcode_minus_L
7796 # to unsupported forces relinking
7797 hardcode_minus_L=yes
7798 hardcode_libdir_flag_spec='-L$libdir'
7799 hardcode_libdir_separator=
7802 esac
7803 shared_flag='-shared'
7804 if test "$aix_use_runtimelinking" = yes; then
7805 shared_flag="$shared_flag "'${wl}-G'
7807 else
7808 # not using gcc
7809 if test "$host_cpu" = ia64; then
7810 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7811 # chokes on -Wl,-G. The following line is correct:
7812 shared_flag='-G'
7813 else
7814 if test "$aix_use_runtimelinking" = yes; then
7815 shared_flag='${wl}-G'
7816 else
7817 shared_flag='${wl}-bM:SRE'
7822 export_dynamic_flag_spec='${wl}-bexpall'
7823 # It seems that -bexpall does not export symbols beginning with
7824 # underscore (_), so it is better to generate a list of symbols to export.
7825 always_export_symbols=yes
7826 if test "$aix_use_runtimelinking" = yes; then
7827 # Warning - without using the other runtime loading flags (-brtl),
7828 # -berok will link without error, but may produce a broken library.
7829 allow_undefined_flag='-berok'
7830 # Determine the default libpath from the value encoded in an
7831 # empty executable.
7832 cat >conftest.$ac_ext <<_ACEOF
7833 /* confdefs.h. */
7834 _ACEOF
7835 cat confdefs.h >>conftest.$ac_ext
7836 cat >>conftest.$ac_ext <<_ACEOF
7837 /* end confdefs.h. */
7840 main ()
7844 return 0;
7846 _ACEOF
7847 rm -f conftest.$ac_objext conftest$ac_exeext
7848 if { (ac_try="$ac_link"
7849 case "(($ac_try" in
7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7852 esac
7853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7854 $as_echo "$ac_try_echo") >&5
7855 (eval "$ac_link") 2>conftest.er1
7856 ac_status=$?
7857 grep -v '^ *+' conftest.er1 >conftest.err
7858 rm -f conftest.er1
7859 cat conftest.err >&5
7860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } && {
7862 test -z "$ac_c_werror_flag" ||
7863 test ! -s conftest.err
7864 } && test -s conftest$ac_exeext && {
7865 test "$cross_compiling" = yes ||
7866 $as_test_x conftest$ac_exeext
7867 }; then
7869 lt_aix_libpath_sed='
7870 /Import File Strings/,/^$/ {
7871 /^0/ {
7872 s/^0 *\(.*\)$/\1/
7876 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7877 # Check for a 64-bit object if we didn't find anything.
7878 if test -z "$aix_libpath"; then
7879 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7881 else
7882 $as_echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.$ac_ext >&5
7888 rm -rf conftest.dSYM
7889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7890 conftest$ac_exeext conftest.$ac_ext
7891 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7893 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7894 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7895 else
7896 if test "$host_cpu" = ia64; then
7897 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7898 allow_undefined_flag="-z nodefs"
7899 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"
7900 else
7901 # Determine the default libpath from the value encoded in an
7902 # empty executable.
7903 cat >conftest.$ac_ext <<_ACEOF
7904 /* confdefs.h. */
7905 _ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7911 main ()
7915 return 0;
7917 _ACEOF
7918 rm -f conftest.$ac_objext conftest$ac_exeext
7919 if { (ac_try="$ac_link"
7920 case "(($ac_try" in
7921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7922 *) ac_try_echo=$ac_try;;
7923 esac
7924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7925 $as_echo "$ac_try_echo") >&5
7926 (eval "$ac_link") 2>conftest.er1
7927 ac_status=$?
7928 grep -v '^ *+' conftest.er1 >conftest.err
7929 rm -f conftest.er1
7930 cat conftest.err >&5
7931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } && {
7933 test -z "$ac_c_werror_flag" ||
7934 test ! -s conftest.err
7935 } && test -s conftest$ac_exeext && {
7936 test "$cross_compiling" = yes ||
7937 $as_test_x conftest$ac_exeext
7938 }; then
7940 lt_aix_libpath_sed='
7941 /Import File Strings/,/^$/ {
7942 /^0/ {
7943 s/^0 *\(.*\)$/\1/
7947 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7948 # Check for a 64-bit object if we didn't find anything.
7949 if test -z "$aix_libpath"; then
7950 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7952 else
7953 $as_echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7959 rm -rf conftest.dSYM
7960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7961 conftest$ac_exeext conftest.$ac_ext
7962 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7964 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7965 # Warning - without using the other run time loading flags,
7966 # -berok will link without error, but may produce a broken library.
7967 no_undefined_flag=' ${wl}-bernotok'
7968 allow_undefined_flag=' ${wl}-berok'
7969 # Exported symbols can be pulled into shared objects from archives
7970 whole_archive_flag_spec='$convenience'
7971 archive_cmds_need_lc=yes
7972 # This is similar to how AIX traditionally builds its shared libraries.
7973 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7978 amigaos*)
7979 case $host_cpu in
7980 powerpc)
7981 # see comment about AmigaOS4 .so support
7982 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7983 archive_expsym_cmds=''
7985 m68k)
7986 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)'
7987 hardcode_libdir_flag_spec='-L$libdir'
7988 hardcode_minus_L=yes
7990 esac
7993 bsdi[45]*)
7994 export_dynamic_flag_spec=-rdynamic
7997 cygwin* | mingw* | pw32* | cegcc*)
7998 # When not using gcc, we currently assume that we are using
7999 # Microsoft Visual C++.
8000 # hardcode_libdir_flag_spec is actually meaningless, as there is
8001 # no search path for DLLs.
8002 hardcode_libdir_flag_spec=' '
8003 allow_undefined_flag=unsupported
8004 # Tell ltmain to make .lib files, not .a files.
8005 libext=lib
8006 # Tell ltmain to make .dll files, not .so files.
8007 shrext_cmds=".dll"
8008 # FIXME: Setting linknames here is a bad hack.
8009 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8010 # The linker will automatically build a .lib file if we build a DLL.
8011 old_archive_from_new_cmds='true'
8012 # FIXME: Should let the user specify the lib program.
8013 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8014 fix_srcfile_path='`cygpath -w "$srcfile"`'
8015 enable_shared_with_static_runtimes=yes
8018 darwin* | rhapsody*)
8021 archive_cmds_need_lc=no
8022 hardcode_direct=no
8023 hardcode_automatic=yes
8024 hardcode_shlibpath_var=unsupported
8025 whole_archive_flag_spec=''
8026 link_all_deplibs=yes
8027 allow_undefined_flag="$_lt_dar_allow_undefined"
8028 case $cc_basename in
8029 ifort*) _lt_dar_can_shared=yes ;;
8030 *) _lt_dar_can_shared=$GCC ;;
8031 esac
8032 if test "$_lt_dar_can_shared" = "yes"; then
8033 output_verbose_link_cmd=echo
8034 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8035 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8036 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}"
8037 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}"
8039 else
8040 ld_shlibs=no
8045 dgux*)
8046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8047 hardcode_libdir_flag_spec='-L$libdir'
8048 hardcode_shlibpath_var=no
8051 freebsd1*)
8052 ld_shlibs=no
8055 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8056 # support. Future versions do this automatically, but an explicit c++rt0.o
8057 # does not break anything, and helps significantly (at the cost of a little
8058 # extra space).
8059 freebsd2.2*)
8060 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8061 hardcode_libdir_flag_spec='-R$libdir'
8062 hardcode_direct=yes
8063 hardcode_shlibpath_var=no
8066 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8067 freebsd2*)
8068 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8069 hardcode_direct=yes
8070 hardcode_minus_L=yes
8071 hardcode_shlibpath_var=no
8074 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8075 freebsd* | dragonfly*)
8076 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8077 hardcode_libdir_flag_spec='-R$libdir'
8078 hardcode_direct=yes
8079 hardcode_shlibpath_var=no
8082 hpux9*)
8083 if test "$GCC" = yes; then
8084 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8085 else
8086 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8088 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8089 hardcode_libdir_separator=:
8090 hardcode_direct=yes
8092 # hardcode_minus_L: Not really in the search PATH,
8093 # but as the default location of the library.
8094 hardcode_minus_L=yes
8095 export_dynamic_flag_spec='${wl}-E'
8098 hpux10*)
8099 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8100 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8101 else
8102 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8104 if test "$with_gnu_ld" = no; then
8105 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8106 hardcode_libdir_flag_spec_ld='+b $libdir'
8107 hardcode_libdir_separator=:
8108 hardcode_direct=yes
8109 hardcode_direct_absolute=yes
8110 export_dynamic_flag_spec='${wl}-E'
8111 # hardcode_minus_L: Not really in the search PATH,
8112 # but as the default location of the library.
8113 hardcode_minus_L=yes
8117 hpux11*)
8118 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8119 case $host_cpu in
8120 hppa*64*)
8121 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8123 ia64*)
8124 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8127 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8129 esac
8130 else
8131 case $host_cpu in
8132 hppa*64*)
8133 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8135 ia64*)
8136 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8139 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8141 esac
8143 if test "$with_gnu_ld" = no; then
8144 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8145 hardcode_libdir_separator=:
8147 case $host_cpu in
8148 hppa*64*|ia64*)
8149 hardcode_direct=no
8150 hardcode_shlibpath_var=no
8153 hardcode_direct=yes
8154 hardcode_direct_absolute=yes
8155 export_dynamic_flag_spec='${wl}-E'
8157 # hardcode_minus_L: Not really in the search PATH,
8158 # but as the default location of the library.
8159 hardcode_minus_L=yes
8161 esac
8165 irix5* | irix6* | nonstopux*)
8166 if test "$GCC" = yes; then
8167 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8168 # Try to use the -exported_symbol ld option, if it does not
8169 # work, assume that -exports_file does not work either and
8170 # implicitly export all symbols.
8171 save_LDFLAGS="$LDFLAGS"
8172 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8173 cat >conftest.$ac_ext <<_ACEOF
8174 int foo(void) {}
8175 _ACEOF
8176 rm -f conftest.$ac_objext conftest$ac_exeext
8177 if { (ac_try="$ac_link"
8178 case "(($ac_try" in
8179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180 *) ac_try_echo=$ac_try;;
8181 esac
8182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8183 $as_echo "$ac_try_echo") >&5
8184 (eval "$ac_link") 2>conftest.er1
8185 ac_status=$?
8186 grep -v '^ *+' conftest.er1 >conftest.err
8187 rm -f conftest.er1
8188 cat conftest.err >&5
8189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } && {
8191 test -z "$ac_c_werror_flag" ||
8192 test ! -s conftest.err
8193 } && test -s conftest$ac_exeext && {
8194 test "$cross_compiling" = yes ||
8195 $as_test_x conftest$ac_exeext
8196 }; then
8197 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8199 else
8200 $as_echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8206 rm -rf conftest.dSYM
8207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8208 conftest$ac_exeext conftest.$ac_ext
8209 LDFLAGS="$save_LDFLAGS"
8210 else
8211 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8212 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8214 archive_cmds_need_lc='no'
8215 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8216 hardcode_libdir_separator=:
8217 inherit_rpath=yes
8218 link_all_deplibs=yes
8221 netbsd*)
8222 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8223 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8224 else
8225 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8227 hardcode_libdir_flag_spec='-R$libdir'
8228 hardcode_direct=yes
8229 hardcode_shlibpath_var=no
8232 newsos6)
8233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8234 hardcode_direct=yes
8235 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8236 hardcode_libdir_separator=:
8237 hardcode_shlibpath_var=no
8240 *nto* | *qnx*)
8243 openbsd*)
8244 if test -f /usr/libexec/ld.so; then
8245 hardcode_direct=yes
8246 hardcode_shlibpath_var=no
8247 hardcode_direct_absolute=yes
8248 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8249 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8250 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8251 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8252 export_dynamic_flag_spec='${wl}-E'
8253 else
8254 case $host_os in
8255 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8256 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8257 hardcode_libdir_flag_spec='-R$libdir'
8260 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8261 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8263 esac
8265 else
8266 ld_shlibs=no
8270 os2*)
8271 hardcode_libdir_flag_spec='-L$libdir'
8272 hardcode_minus_L=yes
8273 allow_undefined_flag=unsupported
8274 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8275 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8278 osf3*)
8279 if test "$GCC" = yes; then
8280 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8281 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8282 else
8283 allow_undefined_flag=' -expect_unresolved \*'
8284 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8286 archive_cmds_need_lc='no'
8287 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8288 hardcode_libdir_separator=:
8291 osf4* | osf5*) # as osf3* with the addition of -msym flag
8292 if test "$GCC" = yes; then
8293 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8294 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8295 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8296 else
8297 allow_undefined_flag=' -expect_unresolved \*'
8298 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8299 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~
8300 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8302 # Both c and cxx compiler support -rpath directly
8303 hardcode_libdir_flag_spec='-rpath $libdir'
8305 archive_cmds_need_lc='no'
8306 hardcode_libdir_separator=:
8309 solaris*)
8310 no_undefined_flag=' -z defs'
8311 if test "$GCC" = yes; then
8312 wlarc='${wl}'
8313 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8314 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8315 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8316 else
8317 case `$CC -V 2>&1` in
8318 *"Compilers 5.0"*)
8319 wlarc=''
8320 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8321 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8322 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8325 wlarc='${wl}'
8326 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8327 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8328 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8330 esac
8332 hardcode_libdir_flag_spec='-R$libdir'
8333 hardcode_shlibpath_var=no
8334 case $host_os in
8335 solaris2.[0-5] | solaris2.[0-5].*) ;;
8337 # The compiler driver will combine and reorder linker options,
8338 # but understands `-z linker_flag'. GCC discards it without `$wl',
8339 # but is careful enough not to reorder.
8340 # Supported since Solaris 2.6 (maybe 2.5.1?)
8341 if test "$GCC" = yes; then
8342 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8343 else
8344 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8347 esac
8348 link_all_deplibs=yes
8351 sunos4*)
8352 if test "x$host_vendor" = xsequent; then
8353 # Use $CC to link under sequent, because it throws in some extra .o
8354 # files that make .init and .fini sections work.
8355 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8356 else
8357 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8359 hardcode_libdir_flag_spec='-L$libdir'
8360 hardcode_direct=yes
8361 hardcode_minus_L=yes
8362 hardcode_shlibpath_var=no
8365 sysv4)
8366 case $host_vendor in
8367 sni)
8368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8369 hardcode_direct=yes # is this really true???
8371 siemens)
8372 ## LD is ld it makes a PLAMLIB
8373 ## CC just makes a GrossModule.
8374 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8375 reload_cmds='$CC -r -o $output$reload_objs'
8376 hardcode_direct=no
8378 motorola)
8379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8380 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8382 esac
8383 runpath_var='LD_RUN_PATH'
8384 hardcode_shlibpath_var=no
8387 sysv4.3*)
8388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8389 hardcode_shlibpath_var=no
8390 export_dynamic_flag_spec='-Bexport'
8393 sysv4*MP*)
8394 if test -d /usr/nec; then
8395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8396 hardcode_shlibpath_var=no
8397 runpath_var=LD_RUN_PATH
8398 hardcode_runpath_var=yes
8399 ld_shlibs=yes
8403 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8404 no_undefined_flag='${wl}-z,text'
8405 archive_cmds_need_lc=no
8406 hardcode_shlibpath_var=no
8407 runpath_var='LD_RUN_PATH'
8409 if test "$GCC" = yes; then
8410 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8411 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8412 else
8413 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8414 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8418 sysv5* | sco3.2v5* | sco5v6*)
8419 # Note: We can NOT use -z defs as we might desire, because we do not
8420 # link with -lc, and that would cause any symbols used from libc to
8421 # always be unresolved, which means just about no library would
8422 # ever link correctly. If we're not using GNU ld we use -z text
8423 # though, which does catch some bad symbols but isn't as heavy-handed
8424 # as -z defs.
8425 no_undefined_flag='${wl}-z,text'
8426 allow_undefined_flag='${wl}-z,nodefs'
8427 archive_cmds_need_lc=no
8428 hardcode_shlibpath_var=no
8429 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8430 hardcode_libdir_separator=':'
8431 link_all_deplibs=yes
8432 export_dynamic_flag_spec='${wl}-Bexport'
8433 runpath_var='LD_RUN_PATH'
8435 if test "$GCC" = yes; then
8436 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8437 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8438 else
8439 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8440 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8444 uts4*)
8445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8446 hardcode_libdir_flag_spec='-L$libdir'
8447 hardcode_shlibpath_var=no
8451 ld_shlibs=no
8453 esac
8455 if test x$host_vendor = xsni; then
8456 case $host in
8457 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8458 export_dynamic_flag_spec='${wl}-Blargedynsym'
8460 esac
8464 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8465 $as_echo "$ld_shlibs" >&6; }
8466 test "$ld_shlibs" = no && can_build_shared=no
8468 with_gnu_ld=$with_gnu_ld
8485 # Do we need to explicitly link libc?
8487 case "x$archive_cmds_need_lc" in
8488 x|xyes)
8489 # Assume -lc should be added
8490 archive_cmds_need_lc=yes
8492 if test "$enable_shared" = yes && test "$GCC" = yes; then
8493 case $archive_cmds in
8494 *'~'*)
8495 # FIXME: we may have to deal with multi-command sequences.
8497 '$CC '*)
8498 # Test whether the compiler implicitly links with -lc since on some
8499 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8500 # to ld, don't add -lc before -lgcc.
8501 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8502 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8503 $RM conftest*
8504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8507 (eval $ac_compile) 2>&5
8508 ac_status=$?
8509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } 2>conftest.err; then
8511 soname=conftest
8512 lib=conftest
8513 libobjs=conftest.$ac_objext
8514 deplibs=
8515 wl=$lt_prog_compiler_wl
8516 pic_flag=$lt_prog_compiler_pic
8517 compiler_flags=-v
8518 linker_flags=-v
8519 verstring=
8520 output_objdir=.
8521 libname=conftest
8522 lt_save_allow_undefined_flag=$allow_undefined_flag
8523 allow_undefined_flag=
8524 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8525 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8526 ac_status=$?
8527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }
8529 then
8530 archive_cmds_need_lc=no
8531 else
8532 archive_cmds_need_lc=yes
8534 allow_undefined_flag=$lt_save_allow_undefined_flag
8535 else
8536 cat conftest.err 1>&5
8538 $RM conftest*
8539 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8540 $as_echo "$archive_cmds_need_lc" >&6; }
8542 esac
8545 esac
8703 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8704 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8706 if test "$GCC" = yes; then
8707 case $host_os in
8708 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8709 *) lt_awk_arg="/^libraries:/" ;;
8710 esac
8711 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8712 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8713 # if the path contains ";" then we assume it to be the separator
8714 # otherwise default to the standard path separator (i.e. ":") - it is
8715 # assumed that no part of a normal pathname contains ";" but that should
8716 # okay in the real world where ";" in dirpaths is itself problematic.
8717 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8718 else
8719 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8721 # Ok, now we have the path, separated by spaces, we can step through it
8722 # and add multilib dir if necessary.
8723 lt_tmp_lt_search_path_spec=
8724 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8725 for lt_sys_path in $lt_search_path_spec; do
8726 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8727 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8728 else
8729 test -d "$lt_sys_path" && \
8730 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8732 done
8733 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8734 BEGIN {RS=" "; FS="/|\n";} {
8735 lt_foo="";
8736 lt_count=0;
8737 for (lt_i = NF; lt_i > 0; lt_i--) {
8738 if ($lt_i != "" && $lt_i != ".") {
8739 if ($lt_i == "..") {
8740 lt_count++;
8741 } else {
8742 if (lt_count == 0) {
8743 lt_foo="/" $lt_i lt_foo;
8744 } else {
8745 lt_count--;
8750 if (lt_foo != "") { lt_freq[lt_foo]++; }
8751 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8753 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8754 else
8755 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8757 library_names_spec=
8758 libname_spec='lib$name'
8759 soname_spec=
8760 shrext_cmds=".so"
8761 postinstall_cmds=
8762 postuninstall_cmds=
8763 finish_cmds=
8764 finish_eval=
8765 shlibpath_var=
8766 shlibpath_overrides_runpath=unknown
8767 version_type=none
8768 dynamic_linker="$host_os ld.so"
8769 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8770 need_lib_prefix=unknown
8771 hardcode_into_libs=no
8773 # when you set need_version to no, make sure it does not cause -set_version
8774 # flags to be left without arguments
8775 need_version=unknown
8777 case $host_os in
8778 aix3*)
8779 version_type=linux
8780 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8781 shlibpath_var=LIBPATH
8783 # AIX 3 has no versioning support, so we append a major version to the name.
8784 soname_spec='${libname}${release}${shared_ext}$major'
8787 aix[4-9]*)
8788 version_type=linux
8789 need_lib_prefix=no
8790 need_version=no
8791 hardcode_into_libs=yes
8792 if test "$host_cpu" = ia64; then
8793 # AIX 5 supports IA64
8794 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8795 shlibpath_var=LD_LIBRARY_PATH
8796 else
8797 # With GCC up to 2.95.x, collect2 would create an import file
8798 # for dependence libraries. The import file would start with
8799 # the line `#! .'. This would cause the generated library to
8800 # depend on `.', always an invalid library. This was fixed in
8801 # development snapshots of GCC prior to 3.0.
8802 case $host_os in
8803 aix4 | aix4.[01] | aix4.[01].*)
8804 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8805 echo ' yes '
8806 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8808 else
8809 can_build_shared=no
8812 esac
8813 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8814 # soname into executable. Probably we can add versioning support to
8815 # collect2, so additional links can be useful in future.
8816 if test "$aix_use_runtimelinking" = yes; then
8817 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8818 # instead of lib<name>.a to let people know that these are not
8819 # typical AIX shared libraries.
8820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8821 else
8822 # We preserve .a as extension for shared libraries through AIX4.2
8823 # and later when we are not doing run time linking.
8824 library_names_spec='${libname}${release}.a $libname.a'
8825 soname_spec='${libname}${release}${shared_ext}$major'
8827 shlibpath_var=LIBPATH
8831 amigaos*)
8832 case $host_cpu in
8833 powerpc)
8834 # Since July 2007 AmigaOS4 officially supports .so libraries.
8835 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8838 m68k)
8839 library_names_spec='$libname.ixlibrary $libname.a'
8840 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8841 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
8843 esac
8846 beos*)
8847 library_names_spec='${libname}${shared_ext}'
8848 dynamic_linker="$host_os ld.so"
8849 shlibpath_var=LIBRARY_PATH
8852 bsdi[45]*)
8853 version_type=linux
8854 need_version=no
8855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8856 soname_spec='${libname}${release}${shared_ext}$major'
8857 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8858 shlibpath_var=LD_LIBRARY_PATH
8859 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8860 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8861 # the default ld.so.conf also contains /usr/contrib/lib and
8862 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8863 # libtool to hard-code these into programs
8866 cygwin* | mingw* | pw32* | cegcc*)
8867 version_type=windows
8868 shrext_cmds=".dll"
8869 need_version=no
8870 need_lib_prefix=no
8872 case $GCC,$host_os in
8873 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8874 library_names_spec='$libname.dll.a'
8875 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8876 postinstall_cmds='base_file=`basename \${file}`~
8877 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8878 dldir=$destdir/`dirname \$dlpath`~
8879 test -d \$dldir || mkdir -p \$dldir~
8880 $install_prog $dir/$dlname \$dldir/$dlname~
8881 chmod a+x \$dldir/$dlname~
8882 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8883 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8885 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8886 dlpath=$dir/\$dldll~
8887 $RM \$dlpath'
8888 shlibpath_overrides_runpath=yes
8890 case $host_os in
8891 cygwin*)
8892 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8893 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8894 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8896 mingw* | cegcc*)
8897 # MinGW DLLs use traditional 'lib' prefix
8898 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8899 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8900 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8901 # It is most probably a Windows format PATH printed by
8902 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8903 # path with ; separators, and with drive letters. We can handle the
8904 # drive letters (cygwin fileutils understands them), so leave them,
8905 # especially as we might pass files found there to a mingw objdump,
8906 # which wouldn't understand a cygwinified path. Ahh.
8907 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8908 else
8909 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8912 pw32*)
8913 # pw32 DLLs use 'pw' prefix rather than 'lib'
8914 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8916 esac
8920 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8922 esac
8923 dynamic_linker='Win32 ld.exe'
8924 # FIXME: first we should search . and the directory the executable is in
8925 shlibpath_var=PATH
8928 darwin* | rhapsody*)
8929 dynamic_linker="$host_os dyld"
8930 version_type=darwin
8931 need_lib_prefix=no
8932 need_version=no
8933 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8934 soname_spec='${libname}${release}${major}$shared_ext'
8935 shlibpath_overrides_runpath=yes
8936 shlibpath_var=DYLD_LIBRARY_PATH
8937 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8939 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8940 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8943 dgux*)
8944 version_type=linux
8945 need_lib_prefix=no
8946 need_version=no
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8948 soname_spec='${libname}${release}${shared_ext}$major'
8949 shlibpath_var=LD_LIBRARY_PATH
8952 freebsd1*)
8953 dynamic_linker=no
8956 freebsd* | dragonfly*)
8957 # DragonFly does not have aout. When/if they implement a new
8958 # versioning mechanism, adjust this.
8959 if test -x /usr/bin/objformat; then
8960 objformat=`/usr/bin/objformat`
8961 else
8962 case $host_os in
8963 freebsd[123]*) objformat=aout ;;
8964 *) objformat=elf ;;
8965 esac
8967 # Handle Gentoo/FreeBSD as it was Linux
8968 case $host_vendor in
8969 gentoo)
8970 version_type=linux ;;
8972 version_type=freebsd-$objformat ;;
8973 esac
8975 case $version_type in
8976 freebsd-elf*)
8977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8978 need_version=no
8979 need_lib_prefix=no
8981 freebsd-*)
8982 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8983 need_version=yes
8985 linux)
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8987 soname_spec='${libname}${release}${shared_ext}$major'
8988 need_lib_prefix=no
8989 need_version=no
8991 esac
8992 shlibpath_var=LD_LIBRARY_PATH
8993 case $host_os in
8994 freebsd2*)
8995 shlibpath_overrides_runpath=yes
8997 freebsd3.[01]* | freebsdelf3.[01]*)
8998 shlibpath_overrides_runpath=yes
8999 hardcode_into_libs=yes
9001 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9002 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9003 shlibpath_overrides_runpath=no
9004 hardcode_into_libs=yes
9006 *) # from 4.6 on, and DragonFly
9007 shlibpath_overrides_runpath=yes
9008 hardcode_into_libs=yes
9010 esac
9013 gnu*)
9014 version_type=linux
9015 need_lib_prefix=no
9016 need_version=no
9017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9018 soname_spec='${libname}${release}${shared_ext}$major'
9019 shlibpath_var=LD_LIBRARY_PATH
9020 hardcode_into_libs=yes
9023 hpux9* | hpux10* | hpux11*)
9024 # Give a soname corresponding to the major version so that dld.sl refuses to
9025 # link against other versions.
9026 version_type=sunos
9027 need_lib_prefix=no
9028 need_version=no
9029 case $host_cpu in
9030 ia64*)
9031 shrext_cmds='.so'
9032 hardcode_into_libs=yes
9033 dynamic_linker="$host_os dld.so"
9034 shlibpath_var=LD_LIBRARY_PATH
9035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9037 soname_spec='${libname}${release}${shared_ext}$major'
9038 if test "X$HPUX_IA64_MODE" = X32; then
9039 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9040 else
9041 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9043 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9045 hppa*64*)
9046 shrext_cmds='.sl'
9047 hardcode_into_libs=yes
9048 dynamic_linker="$host_os dld.sl"
9049 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9050 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9052 soname_spec='${libname}${release}${shared_ext}$major'
9053 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9057 shrext_cmds='.sl'
9058 dynamic_linker="$host_os dld.sl"
9059 shlibpath_var=SHLIB_PATH
9060 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9062 soname_spec='${libname}${release}${shared_ext}$major'
9064 esac
9065 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9066 postinstall_cmds='chmod 555 $lib'
9069 interix[3-9]*)
9070 version_type=linux
9071 need_lib_prefix=no
9072 need_version=no
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9074 soname_spec='${libname}${release}${shared_ext}$major'
9075 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9076 shlibpath_var=LD_LIBRARY_PATH
9077 shlibpath_overrides_runpath=no
9078 hardcode_into_libs=yes
9081 irix5* | irix6* | nonstopux*)
9082 case $host_os in
9083 nonstopux*) version_type=nonstopux ;;
9085 if test "$lt_cv_prog_gnu_ld" = yes; then
9086 version_type=linux
9087 else
9088 version_type=irix
9089 fi ;;
9090 esac
9091 need_lib_prefix=no
9092 need_version=no
9093 soname_spec='${libname}${release}${shared_ext}$major'
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9095 case $host_os in
9096 irix5* | nonstopux*)
9097 libsuff= shlibsuff=
9100 case $LD in # libtool.m4 will add one of these switches to LD
9101 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9102 libsuff= shlibsuff= libmagic=32-bit;;
9103 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9104 libsuff=32 shlibsuff=N32 libmagic=N32;;
9105 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9106 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9107 *) libsuff= shlibsuff= libmagic=never-match;;
9108 esac
9110 esac
9111 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9112 shlibpath_overrides_runpath=no
9113 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9114 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9115 hardcode_into_libs=yes
9118 # No shared lib support for Linux oldld, aout, or coff.
9119 linux*oldld* | linux*aout* | linux*coff*)
9120 dynamic_linker=no
9123 # This must be Linux ELF.
9124 linux* | k*bsd*-gnu)
9125 version_type=linux
9126 need_lib_prefix=no
9127 need_version=no
9128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9129 soname_spec='${libname}${release}${shared_ext}$major'
9130 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9131 shlibpath_var=LD_LIBRARY_PATH
9132 shlibpath_overrides_runpath=no
9133 # Some binutils ld are patched to set DT_RUNPATH
9134 save_LDFLAGS=$LDFLAGS
9135 save_libdir=$libdir
9136 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9137 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9138 cat >conftest.$ac_ext <<_ACEOF
9139 /* confdefs.h. */
9140 _ACEOF
9141 cat confdefs.h >>conftest.$ac_ext
9142 cat >>conftest.$ac_ext <<_ACEOF
9143 /* end confdefs.h. */
9146 main ()
9150 return 0;
9152 _ACEOF
9153 rm -f conftest.$ac_objext conftest$ac_exeext
9154 if { (ac_try="$ac_link"
9155 case "(($ac_try" in
9156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9157 *) ac_try_echo=$ac_try;;
9158 esac
9159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9160 $as_echo "$ac_try_echo") >&5
9161 (eval "$ac_link") 2>conftest.er1
9162 ac_status=$?
9163 grep -v '^ *+' conftest.er1 >conftest.err
9164 rm -f conftest.er1
9165 cat conftest.err >&5
9166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); } && {
9168 test -z "$ac_c_werror_flag" ||
9169 test ! -s conftest.err
9170 } && test -s conftest$ac_exeext && {
9171 test "$cross_compiling" = yes ||
9172 $as_test_x conftest$ac_exeext
9173 }; then
9174 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9175 shlibpath_overrides_runpath=yes
9178 else
9179 $as_echo "$as_me: failed program was:" >&5
9180 sed 's/^/| /' conftest.$ac_ext >&5
9185 rm -rf conftest.dSYM
9186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9187 conftest$ac_exeext conftest.$ac_ext
9188 LDFLAGS=$save_LDFLAGS
9189 libdir=$save_libdir
9191 # This implies no fast_install, which is unacceptable.
9192 # Some rework will be needed to allow for fast_install
9193 # before this can be enabled.
9194 hardcode_into_libs=yes
9196 # Append ld.so.conf contents to the search path
9197 if test -f /etc/ld.so.conf; then
9198 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;/^$/d' | tr '\n' ' '`
9199 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9202 # We used to test for /lib/ld.so.1 and disable shared libraries on
9203 # powerpc, because MkLinux only supported shared libraries with the
9204 # GNU dynamic linker. Since this was broken with cross compilers,
9205 # most powerpc-linux boxes support dynamic linking these days and
9206 # people can always --disable-shared, the test was removed, and we
9207 # assume the GNU/Linux dynamic linker is in use.
9208 dynamic_linker='GNU/Linux ld.so'
9211 netbsd*)
9212 version_type=sunos
9213 need_lib_prefix=no
9214 need_version=no
9215 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9217 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9218 dynamic_linker='NetBSD (a.out) ld.so'
9219 else
9220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9221 soname_spec='${libname}${release}${shared_ext}$major'
9222 dynamic_linker='NetBSD ld.elf_so'
9224 shlibpath_var=LD_LIBRARY_PATH
9225 shlibpath_overrides_runpath=yes
9226 hardcode_into_libs=yes
9229 newsos6)
9230 version_type=linux
9231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9232 shlibpath_var=LD_LIBRARY_PATH
9233 shlibpath_overrides_runpath=yes
9236 *nto* | *qnx*)
9237 version_type=qnx
9238 need_lib_prefix=no
9239 need_version=no
9240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9241 soname_spec='${libname}${release}${shared_ext}$major'
9242 shlibpath_var=LD_LIBRARY_PATH
9243 shlibpath_overrides_runpath=no
9244 hardcode_into_libs=yes
9245 dynamic_linker='ldqnx.so'
9248 openbsd*)
9249 version_type=sunos
9250 sys_lib_dlsearch_path_spec="/usr/lib"
9251 need_lib_prefix=no
9252 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9253 case $host_os in
9254 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9255 *) need_version=no ;;
9256 esac
9257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9258 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9259 shlibpath_var=LD_LIBRARY_PATH
9260 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9261 case $host_os in
9262 openbsd2.[89] | openbsd2.[89].*)
9263 shlibpath_overrides_runpath=no
9266 shlibpath_overrides_runpath=yes
9268 esac
9269 else
9270 shlibpath_overrides_runpath=yes
9274 os2*)
9275 libname_spec='$name'
9276 shrext_cmds=".dll"
9277 need_lib_prefix=no
9278 library_names_spec='$libname${shared_ext} $libname.a'
9279 dynamic_linker='OS/2 ld.exe'
9280 shlibpath_var=LIBPATH
9283 osf3* | osf4* | osf5*)
9284 version_type=osf
9285 need_lib_prefix=no
9286 need_version=no
9287 soname_spec='${libname}${release}${shared_ext}$major'
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289 shlibpath_var=LD_LIBRARY_PATH
9290 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9291 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9294 rdos*)
9295 dynamic_linker=no
9298 solaris*)
9299 version_type=linux
9300 need_lib_prefix=no
9301 need_version=no
9302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9303 soname_spec='${libname}${release}${shared_ext}$major'
9304 shlibpath_var=LD_LIBRARY_PATH
9305 shlibpath_overrides_runpath=yes
9306 hardcode_into_libs=yes
9307 # ldd complains unless libraries are executable
9308 postinstall_cmds='chmod +x $lib'
9311 sunos4*)
9312 version_type=sunos
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9314 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9315 shlibpath_var=LD_LIBRARY_PATH
9316 shlibpath_overrides_runpath=yes
9317 if test "$with_gnu_ld" = yes; then
9318 need_lib_prefix=no
9320 need_version=yes
9323 sysv4 | sysv4.3*)
9324 version_type=linux
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9326 soname_spec='${libname}${release}${shared_ext}$major'
9327 shlibpath_var=LD_LIBRARY_PATH
9328 case $host_vendor in
9329 sni)
9330 shlibpath_overrides_runpath=no
9331 need_lib_prefix=no
9332 runpath_var=LD_RUN_PATH
9334 siemens)
9335 need_lib_prefix=no
9337 motorola)
9338 need_lib_prefix=no
9339 need_version=no
9340 shlibpath_overrides_runpath=no
9341 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9343 esac
9346 sysv4*MP*)
9347 if test -d /usr/nec ;then
9348 version_type=linux
9349 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9350 soname_spec='$libname${shared_ext}.$major'
9351 shlibpath_var=LD_LIBRARY_PATH
9355 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9356 version_type=freebsd-elf
9357 need_lib_prefix=no
9358 need_version=no
9359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9360 soname_spec='${libname}${release}${shared_ext}$major'
9361 shlibpath_var=LD_LIBRARY_PATH
9362 shlibpath_overrides_runpath=yes
9363 hardcode_into_libs=yes
9364 if test "$with_gnu_ld" = yes; then
9365 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9366 else
9367 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9368 case $host_os in
9369 sco3.2v5*)
9370 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9372 esac
9374 sys_lib_dlsearch_path_spec='/usr/lib'
9377 tpf*)
9378 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9379 version_type=linux
9380 need_lib_prefix=no
9381 need_version=no
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383 shlibpath_var=LD_LIBRARY_PATH
9384 shlibpath_overrides_runpath=no
9385 hardcode_into_libs=yes
9388 uts4*)
9389 version_type=linux
9390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9391 soname_spec='${libname}${release}${shared_ext}$major'
9392 shlibpath_var=LD_LIBRARY_PATH
9396 dynamic_linker=no
9398 esac
9399 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9400 $as_echo "$dynamic_linker" >&6; }
9401 test "$dynamic_linker" = no && can_build_shared=no
9403 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9404 if test "$GCC" = yes; then
9405 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9408 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9409 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9411 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9412 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9501 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9502 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9503 hardcode_action=
9504 if test -n "$hardcode_libdir_flag_spec" ||
9505 test -n "$runpath_var" ||
9506 test "X$hardcode_automatic" = "Xyes" ; then
9508 # We can hardcode non-existent directories.
9509 if test "$hardcode_direct" != no &&
9510 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9511 # have to relink, otherwise we might link with an installed library
9512 # when we should be linking with a yet-to-be-installed one
9513 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9514 test "$hardcode_minus_L" != no; then
9515 # Linking always hardcodes the temporary library directory.
9516 hardcode_action=relink
9517 else
9518 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9519 hardcode_action=immediate
9521 else
9522 # We cannot hardcode anything, or else we can only hardcode existing
9523 # directories.
9524 hardcode_action=unsupported
9526 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9527 $as_echo "$hardcode_action" >&6; }
9529 if test "$hardcode_action" = relink ||
9530 test "$inherit_rpath" = yes; then
9531 # Fast installation is not supported
9532 enable_fast_install=no
9533 elif test "$shlibpath_overrides_runpath" = yes ||
9534 test "$enable_shared" = no; then
9535 # Fast installation is not necessary
9536 enable_fast_install=needless
9544 if test "x$enable_dlopen" != xyes; then
9545 enable_dlopen=unknown
9546 enable_dlopen_self=unknown
9547 enable_dlopen_self_static=unknown
9548 else
9549 lt_cv_dlopen=no
9550 lt_cv_dlopen_libs=
9552 case $host_os in
9553 beos*)
9554 lt_cv_dlopen="load_add_on"
9555 lt_cv_dlopen_libs=
9556 lt_cv_dlopen_self=yes
9559 mingw* | pw32* | cegcc*)
9560 lt_cv_dlopen="LoadLibrary"
9561 lt_cv_dlopen_libs=
9564 cygwin*)
9565 lt_cv_dlopen="dlopen"
9566 lt_cv_dlopen_libs=
9569 darwin*)
9570 # if libdl is installed we need to link against it
9571 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9572 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9573 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9574 $as_echo_n "(cached) " >&6
9575 else
9576 ac_check_lib_save_LIBS=$LIBS
9577 LIBS="-ldl $LIBS"
9578 cat >conftest.$ac_ext <<_ACEOF
9579 /* confdefs.h. */
9580 _ACEOF
9581 cat confdefs.h >>conftest.$ac_ext
9582 cat >>conftest.$ac_ext <<_ACEOF
9583 /* end confdefs.h. */
9585 /* Override any GCC internal prototype to avoid an error.
9586 Use char because int might match the return type of a GCC
9587 builtin and then its argument prototype would still apply. */
9588 #ifdef __cplusplus
9589 extern "C"
9590 #endif
9591 char dlopen ();
9593 main ()
9595 return dlopen ();
9597 return 0;
9599 _ACEOF
9600 rm -f conftest.$ac_objext conftest$ac_exeext
9601 if { (ac_try="$ac_link"
9602 case "(($ac_try" in
9603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9604 *) ac_try_echo=$ac_try;;
9605 esac
9606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9607 $as_echo "$ac_try_echo") >&5
9608 (eval "$ac_link") 2>conftest.er1
9609 ac_status=$?
9610 grep -v '^ *+' conftest.er1 >conftest.err
9611 rm -f conftest.er1
9612 cat conftest.err >&5
9613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } && {
9615 test -z "$ac_c_werror_flag" ||
9616 test ! -s conftest.err
9617 } && test -s conftest$ac_exeext && {
9618 test "$cross_compiling" = yes ||
9619 $as_test_x conftest$ac_exeext
9620 }; then
9621 ac_cv_lib_dl_dlopen=yes
9622 else
9623 $as_echo "$as_me: failed program was:" >&5
9624 sed 's/^/| /' conftest.$ac_ext >&5
9626 ac_cv_lib_dl_dlopen=no
9629 rm -rf conftest.dSYM
9630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9631 conftest$ac_exeext conftest.$ac_ext
9632 LIBS=$ac_check_lib_save_LIBS
9634 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9635 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9636 if test $ac_cv_lib_dl_dlopen = yes; then
9637 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9638 else
9640 lt_cv_dlopen="dyld"
9641 lt_cv_dlopen_libs=
9642 lt_cv_dlopen_self=yes
9649 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9650 $as_echo_n "checking for shl_load... " >&6; }
9651 if test "${ac_cv_func_shl_load+set}" = set; then
9652 $as_echo_n "(cached) " >&6
9653 else
9654 cat >conftest.$ac_ext <<_ACEOF
9655 /* confdefs.h. */
9656 _ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h. */
9660 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9662 #define shl_load innocuous_shl_load
9664 /* System header to define __stub macros and hopefully few prototypes,
9665 which can conflict with char shl_load (); below.
9666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9667 <limits.h> exists even on freestanding compilers. */
9669 #ifdef __STDC__
9670 # include <limits.h>
9671 #else
9672 # include <assert.h>
9673 #endif
9675 #undef shl_load
9677 /* Override any GCC internal prototype to avoid an error.
9678 Use char because int might match the return type of a GCC
9679 builtin and then its argument prototype would still apply. */
9680 #ifdef __cplusplus
9681 extern "C"
9682 #endif
9683 char shl_load ();
9684 /* The GNU C library defines this for functions which it implements
9685 to always fail with ENOSYS. Some functions are actually named
9686 something starting with __ and the normal name is an alias. */
9687 #if defined __stub_shl_load || defined __stub___shl_load
9688 choke me
9689 #endif
9692 main ()
9694 return shl_load ();
9696 return 0;
9698 _ACEOF
9699 rm -f conftest.$ac_objext conftest$ac_exeext
9700 if { (ac_try="$ac_link"
9701 case "(($ac_try" in
9702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703 *) ac_try_echo=$ac_try;;
9704 esac
9705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9706 $as_echo "$ac_try_echo") >&5
9707 (eval "$ac_link") 2>conftest.er1
9708 ac_status=$?
9709 grep -v '^ *+' conftest.er1 >conftest.err
9710 rm -f conftest.er1
9711 cat conftest.err >&5
9712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } && {
9714 test -z "$ac_c_werror_flag" ||
9715 test ! -s conftest.err
9716 } && test -s conftest$ac_exeext && {
9717 test "$cross_compiling" = yes ||
9718 $as_test_x conftest$ac_exeext
9719 }; then
9720 ac_cv_func_shl_load=yes
9721 else
9722 $as_echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.$ac_ext >&5
9725 ac_cv_func_shl_load=no
9728 rm -rf conftest.dSYM
9729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9730 conftest$ac_exeext conftest.$ac_ext
9732 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9733 $as_echo "$ac_cv_func_shl_load" >&6; }
9734 if test $ac_cv_func_shl_load = yes; then
9735 lt_cv_dlopen="shl_load"
9736 else
9737 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9738 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9739 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9740 $as_echo_n "(cached) " >&6
9741 else
9742 ac_check_lib_save_LIBS=$LIBS
9743 LIBS="-ldld $LIBS"
9744 cat >conftest.$ac_ext <<_ACEOF
9745 /* confdefs.h. */
9746 _ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h. */
9751 /* Override any GCC internal prototype to avoid an error.
9752 Use char because int might match the return type of a GCC
9753 builtin and then its argument prototype would still apply. */
9754 #ifdef __cplusplus
9755 extern "C"
9756 #endif
9757 char shl_load ();
9759 main ()
9761 return shl_load ();
9763 return 0;
9765 _ACEOF
9766 rm -f conftest.$ac_objext conftest$ac_exeext
9767 if { (ac_try="$ac_link"
9768 case "(($ac_try" in
9769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9770 *) ac_try_echo=$ac_try;;
9771 esac
9772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9773 $as_echo "$ac_try_echo") >&5
9774 (eval "$ac_link") 2>conftest.er1
9775 ac_status=$?
9776 grep -v '^ *+' conftest.er1 >conftest.err
9777 rm -f conftest.er1
9778 cat conftest.err >&5
9779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } && {
9781 test -z "$ac_c_werror_flag" ||
9782 test ! -s conftest.err
9783 } && test -s conftest$ac_exeext && {
9784 test "$cross_compiling" = yes ||
9785 $as_test_x conftest$ac_exeext
9786 }; then
9787 ac_cv_lib_dld_shl_load=yes
9788 else
9789 $as_echo "$as_me: failed program was:" >&5
9790 sed 's/^/| /' conftest.$ac_ext >&5
9792 ac_cv_lib_dld_shl_load=no
9795 rm -rf conftest.dSYM
9796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9797 conftest$ac_exeext conftest.$ac_ext
9798 LIBS=$ac_check_lib_save_LIBS
9800 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9801 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9802 if test $ac_cv_lib_dld_shl_load = yes; then
9803 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9804 else
9805 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9806 $as_echo_n "checking for dlopen... " >&6; }
9807 if test "${ac_cv_func_dlopen+set}" = set; then
9808 $as_echo_n "(cached) " >&6
9809 else
9810 cat >conftest.$ac_ext <<_ACEOF
9811 /* confdefs.h. */
9812 _ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9816 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9818 #define dlopen innocuous_dlopen
9820 /* System header to define __stub macros and hopefully few prototypes,
9821 which can conflict with char dlopen (); below.
9822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9823 <limits.h> exists even on freestanding compilers. */
9825 #ifdef __STDC__
9826 # include <limits.h>
9827 #else
9828 # include <assert.h>
9829 #endif
9831 #undef dlopen
9833 /* Override any GCC internal prototype to avoid an error.
9834 Use char because int might match the return type of a GCC
9835 builtin and then its argument prototype would still apply. */
9836 #ifdef __cplusplus
9837 extern "C"
9838 #endif
9839 char dlopen ();
9840 /* The GNU C library defines this for functions which it implements
9841 to always fail with ENOSYS. Some functions are actually named
9842 something starting with __ and the normal name is an alias. */
9843 #if defined __stub_dlopen || defined __stub___dlopen
9844 choke me
9845 #endif
9848 main ()
9850 return dlopen ();
9852 return 0;
9854 _ACEOF
9855 rm -f conftest.$ac_objext conftest$ac_exeext
9856 if { (ac_try="$ac_link"
9857 case "(($ac_try" in
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9860 esac
9861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9862 $as_echo "$ac_try_echo") >&5
9863 (eval "$ac_link") 2>conftest.er1
9864 ac_status=$?
9865 grep -v '^ *+' conftest.er1 >conftest.err
9866 rm -f conftest.er1
9867 cat conftest.err >&5
9868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); } && {
9870 test -z "$ac_c_werror_flag" ||
9871 test ! -s conftest.err
9872 } && test -s conftest$ac_exeext && {
9873 test "$cross_compiling" = yes ||
9874 $as_test_x conftest$ac_exeext
9875 }; then
9876 ac_cv_func_dlopen=yes
9877 else
9878 $as_echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9881 ac_cv_func_dlopen=no
9884 rm -rf conftest.dSYM
9885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9886 conftest$ac_exeext conftest.$ac_ext
9888 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9889 $as_echo "$ac_cv_func_dlopen" >&6; }
9890 if test $ac_cv_func_dlopen = yes; then
9891 lt_cv_dlopen="dlopen"
9892 else
9893 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9894 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9895 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9896 $as_echo_n "(cached) " >&6
9897 else
9898 ac_check_lib_save_LIBS=$LIBS
9899 LIBS="-ldl $LIBS"
9900 cat >conftest.$ac_ext <<_ACEOF
9901 /* confdefs.h. */
9902 _ACEOF
9903 cat confdefs.h >>conftest.$ac_ext
9904 cat >>conftest.$ac_ext <<_ACEOF
9905 /* end confdefs.h. */
9907 /* Override any GCC internal prototype to avoid an error.
9908 Use char because int might match the return type of a GCC
9909 builtin and then its argument prototype would still apply. */
9910 #ifdef __cplusplus
9911 extern "C"
9912 #endif
9913 char dlopen ();
9915 main ()
9917 return dlopen ();
9919 return 0;
9921 _ACEOF
9922 rm -f conftest.$ac_objext conftest$ac_exeext
9923 if { (ac_try="$ac_link"
9924 case "(($ac_try" in
9925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9926 *) ac_try_echo=$ac_try;;
9927 esac
9928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9929 $as_echo "$ac_try_echo") >&5
9930 (eval "$ac_link") 2>conftest.er1
9931 ac_status=$?
9932 grep -v '^ *+' conftest.er1 >conftest.err
9933 rm -f conftest.er1
9934 cat conftest.err >&5
9935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } && {
9937 test -z "$ac_c_werror_flag" ||
9938 test ! -s conftest.err
9939 } && test -s conftest$ac_exeext && {
9940 test "$cross_compiling" = yes ||
9941 $as_test_x conftest$ac_exeext
9942 }; then
9943 ac_cv_lib_dl_dlopen=yes
9944 else
9945 $as_echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9948 ac_cv_lib_dl_dlopen=no
9951 rm -rf conftest.dSYM
9952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9953 conftest$ac_exeext conftest.$ac_ext
9954 LIBS=$ac_check_lib_save_LIBS
9956 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9957 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9958 if test $ac_cv_lib_dl_dlopen = yes; then
9959 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9960 else
9961 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9962 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9963 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9964 $as_echo_n "(cached) " >&6
9965 else
9966 ac_check_lib_save_LIBS=$LIBS
9967 LIBS="-lsvld $LIBS"
9968 cat >conftest.$ac_ext <<_ACEOF
9969 /* confdefs.h. */
9970 _ACEOF
9971 cat confdefs.h >>conftest.$ac_ext
9972 cat >>conftest.$ac_ext <<_ACEOF
9973 /* end confdefs.h. */
9975 /* Override any GCC internal prototype to avoid an error.
9976 Use char because int might match the return type of a GCC
9977 builtin and then its argument prototype would still apply. */
9978 #ifdef __cplusplus
9979 extern "C"
9980 #endif
9981 char dlopen ();
9983 main ()
9985 return dlopen ();
9987 return 0;
9989 _ACEOF
9990 rm -f conftest.$ac_objext conftest$ac_exeext
9991 if { (ac_try="$ac_link"
9992 case "(($ac_try" in
9993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994 *) ac_try_echo=$ac_try;;
9995 esac
9996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9997 $as_echo "$ac_try_echo") >&5
9998 (eval "$ac_link") 2>conftest.er1
9999 ac_status=$?
10000 grep -v '^ *+' conftest.er1 >conftest.err
10001 rm -f conftest.er1
10002 cat conftest.err >&5
10003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); } && {
10005 test -z "$ac_c_werror_flag" ||
10006 test ! -s conftest.err
10007 } && test -s conftest$ac_exeext && {
10008 test "$cross_compiling" = yes ||
10009 $as_test_x conftest$ac_exeext
10010 }; then
10011 ac_cv_lib_svld_dlopen=yes
10012 else
10013 $as_echo "$as_me: failed program was:" >&5
10014 sed 's/^/| /' conftest.$ac_ext >&5
10016 ac_cv_lib_svld_dlopen=no
10019 rm -rf conftest.dSYM
10020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10021 conftest$ac_exeext conftest.$ac_ext
10022 LIBS=$ac_check_lib_save_LIBS
10024 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10025 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10026 if test $ac_cv_lib_svld_dlopen = yes; then
10027 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10028 else
10029 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10030 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10031 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10032 $as_echo_n "(cached) " >&6
10033 else
10034 ac_check_lib_save_LIBS=$LIBS
10035 LIBS="-ldld $LIBS"
10036 cat >conftest.$ac_ext <<_ACEOF
10037 /* confdefs.h. */
10038 _ACEOF
10039 cat confdefs.h >>conftest.$ac_ext
10040 cat >>conftest.$ac_ext <<_ACEOF
10041 /* end confdefs.h. */
10043 /* Override any GCC internal prototype to avoid an error.
10044 Use char because int might match the return type of a GCC
10045 builtin and then its argument prototype would still apply. */
10046 #ifdef __cplusplus
10047 extern "C"
10048 #endif
10049 char dld_link ();
10051 main ()
10053 return dld_link ();
10055 return 0;
10057 _ACEOF
10058 rm -f conftest.$ac_objext conftest$ac_exeext
10059 if { (ac_try="$ac_link"
10060 case "(($ac_try" in
10061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10062 *) ac_try_echo=$ac_try;;
10063 esac
10064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10065 $as_echo "$ac_try_echo") >&5
10066 (eval "$ac_link") 2>conftest.er1
10067 ac_status=$?
10068 grep -v '^ *+' conftest.er1 >conftest.err
10069 rm -f conftest.er1
10070 cat conftest.err >&5
10071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); } && {
10073 test -z "$ac_c_werror_flag" ||
10074 test ! -s conftest.err
10075 } && test -s conftest$ac_exeext && {
10076 test "$cross_compiling" = yes ||
10077 $as_test_x conftest$ac_exeext
10078 }; then
10079 ac_cv_lib_dld_dld_link=yes
10080 else
10081 $as_echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10084 ac_cv_lib_dld_dld_link=no
10087 rm -rf conftest.dSYM
10088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10089 conftest$ac_exeext conftest.$ac_ext
10090 LIBS=$ac_check_lib_save_LIBS
10092 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10093 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10094 if test $ac_cv_lib_dld_dld_link = yes; then
10095 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10114 esac
10116 if test "x$lt_cv_dlopen" != xno; then
10117 enable_dlopen=yes
10118 else
10119 enable_dlopen=no
10122 case $lt_cv_dlopen in
10123 dlopen)
10124 save_CPPFLAGS="$CPPFLAGS"
10125 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10127 save_LDFLAGS="$LDFLAGS"
10128 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10130 save_LIBS="$LIBS"
10131 LIBS="$lt_cv_dlopen_libs $LIBS"
10133 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10134 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10135 if test "${lt_cv_dlopen_self+set}" = set; then
10136 $as_echo_n "(cached) " >&6
10137 else
10138 if test "$cross_compiling" = yes; then :
10139 lt_cv_dlopen_self=cross
10140 else
10141 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10142 lt_status=$lt_dlunknown
10143 cat > conftest.$ac_ext <<_LT_EOF
10144 #line 10144 "configure"
10145 #include "confdefs.h"
10147 #if HAVE_DLFCN_H
10148 #include <dlfcn.h>
10149 #endif
10151 #include <stdio.h>
10153 #ifdef RTLD_GLOBAL
10154 # define LT_DLGLOBAL RTLD_GLOBAL
10155 #else
10156 # ifdef DL_GLOBAL
10157 # define LT_DLGLOBAL DL_GLOBAL
10158 # else
10159 # define LT_DLGLOBAL 0
10160 # endif
10161 #endif
10163 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10164 find out it does not work in some platform. */
10165 #ifndef LT_DLLAZY_OR_NOW
10166 # ifdef RTLD_LAZY
10167 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10168 # else
10169 # ifdef DL_LAZY
10170 # define LT_DLLAZY_OR_NOW DL_LAZY
10171 # else
10172 # ifdef RTLD_NOW
10173 # define LT_DLLAZY_OR_NOW RTLD_NOW
10174 # else
10175 # ifdef DL_NOW
10176 # define LT_DLLAZY_OR_NOW DL_NOW
10177 # else
10178 # define LT_DLLAZY_OR_NOW 0
10179 # endif
10180 # endif
10181 # endif
10182 # endif
10183 #endif
10185 void fnord() { int i=42;}
10186 int main ()
10188 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10189 int status = $lt_dlunknown;
10191 if (self)
10193 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10194 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10195 /* dlclose (self); */
10197 else
10198 puts (dlerror ());
10200 return status;
10202 _LT_EOF
10203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10204 (eval $ac_link) 2>&5
10205 ac_status=$?
10206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10208 (./conftest; exit; ) >&5 2>/dev/null
10209 lt_status=$?
10210 case x$lt_status in
10211 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10212 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10213 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10214 esac
10215 else :
10216 # compilation failed
10217 lt_cv_dlopen_self=no
10220 rm -fr conftest*
10224 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10225 $as_echo "$lt_cv_dlopen_self" >&6; }
10227 if test "x$lt_cv_dlopen_self" = xyes; then
10228 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10229 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10230 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10231 if test "${lt_cv_dlopen_self_static+set}" = set; then
10232 $as_echo_n "(cached) " >&6
10233 else
10234 if test "$cross_compiling" = yes; then :
10235 lt_cv_dlopen_self_static=cross
10236 else
10237 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10238 lt_status=$lt_dlunknown
10239 cat > conftest.$ac_ext <<_LT_EOF
10240 #line 10240 "configure"
10241 #include "confdefs.h"
10243 #if HAVE_DLFCN_H
10244 #include <dlfcn.h>
10245 #endif
10247 #include <stdio.h>
10249 #ifdef RTLD_GLOBAL
10250 # define LT_DLGLOBAL RTLD_GLOBAL
10251 #else
10252 # ifdef DL_GLOBAL
10253 # define LT_DLGLOBAL DL_GLOBAL
10254 # else
10255 # define LT_DLGLOBAL 0
10256 # endif
10257 #endif
10259 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10260 find out it does not work in some platform. */
10261 #ifndef LT_DLLAZY_OR_NOW
10262 # ifdef RTLD_LAZY
10263 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10264 # else
10265 # ifdef DL_LAZY
10266 # define LT_DLLAZY_OR_NOW DL_LAZY
10267 # else
10268 # ifdef RTLD_NOW
10269 # define LT_DLLAZY_OR_NOW RTLD_NOW
10270 # else
10271 # ifdef DL_NOW
10272 # define LT_DLLAZY_OR_NOW DL_NOW
10273 # else
10274 # define LT_DLLAZY_OR_NOW 0
10275 # endif
10276 # endif
10277 # endif
10278 # endif
10279 #endif
10281 void fnord() { int i=42;}
10282 int main ()
10284 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10285 int status = $lt_dlunknown;
10287 if (self)
10289 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10290 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10291 /* dlclose (self); */
10293 else
10294 puts (dlerror ());
10296 return status;
10298 _LT_EOF
10299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10300 (eval $ac_link) 2>&5
10301 ac_status=$?
10302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10304 (./conftest; exit; ) >&5 2>/dev/null
10305 lt_status=$?
10306 case x$lt_status in
10307 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10308 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10309 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10310 esac
10311 else :
10312 # compilation failed
10313 lt_cv_dlopen_self_static=no
10316 rm -fr conftest*
10320 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10321 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10324 CPPFLAGS="$save_CPPFLAGS"
10325 LDFLAGS="$save_LDFLAGS"
10326 LIBS="$save_LIBS"
10328 esac
10330 case $lt_cv_dlopen_self in
10331 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10332 *) enable_dlopen_self=unknown ;;
10333 esac
10335 case $lt_cv_dlopen_self_static in
10336 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10337 *) enable_dlopen_self_static=unknown ;;
10338 esac
10357 striplib=
10358 old_striplib=
10359 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10360 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10361 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10362 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10363 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10364 { $as_echo "$as_me:$LINENO: result: yes" >&5
10365 $as_echo "yes" >&6; }
10366 else
10367 # FIXME - insert some real tests, host_os isn't really good enough
10368 case $host_os in
10369 darwin*)
10370 if test -n "$STRIP" ; then
10371 striplib="$STRIP -x"
10372 old_striplib="$STRIP -S"
10373 { $as_echo "$as_me:$LINENO: result: yes" >&5
10374 $as_echo "yes" >&6; }
10375 else
10376 { $as_echo "$as_me:$LINENO: result: no" >&5
10377 $as_echo "no" >&6; }
10381 { $as_echo "$as_me:$LINENO: result: no" >&5
10382 $as_echo "no" >&6; }
10384 esac
10398 # Report which library types will actually be built
10399 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10400 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10401 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10402 $as_echo "$can_build_shared" >&6; }
10404 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10405 $as_echo_n "checking whether to build shared libraries... " >&6; }
10406 test "$can_build_shared" = "no" && enable_shared=no
10408 # On AIX, shared libraries and static libraries use the same namespace, and
10409 # are all built from PIC.
10410 case $host_os in
10411 aix3*)
10412 test "$enable_shared" = yes && enable_static=no
10413 if test -n "$RANLIB"; then
10414 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10415 postinstall_cmds='$RANLIB $lib'
10419 aix[4-9]*)
10420 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10421 test "$enable_shared" = yes && enable_static=no
10424 esac
10425 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10426 $as_echo "$enable_shared" >&6; }
10428 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10429 $as_echo_n "checking whether to build static libraries... " >&6; }
10430 # Make sure either enable_shared or enable_static is yes.
10431 test "$enable_shared" = yes || enable_static=yes
10432 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10433 $as_echo "$enable_static" >&6; }
10439 ac_ext=c
10440 ac_cpp='$CPP $CPPFLAGS'
10441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10445 CC="$lt_save_CC"
10459 ac_config_commands="$ac_config_commands libtool"
10464 # Only expand once:
10467 # Find a good install program. We prefer a C program (faster),
10468 # so one script is as good as another. But avoid the broken or
10469 # incompatible versions:
10470 # SysV /etc/install, /usr/sbin/install
10471 # SunOS /usr/etc/install
10472 # IRIX /sbin/install
10473 # AIX /bin/install
10474 # AmigaOS /C/install, which installs bootblocks on floppy discs
10475 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10476 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10477 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10478 # OS/2's system install, which has a completely different semantic
10479 # ./install, which can be erroneously created by make from ./install.sh.
10480 # Reject install programs that cannot install multiple files.
10481 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10482 $as_echo_n "checking for a BSD-compatible install... " >&6; }
10483 if test -z "$INSTALL"; then
10484 if test "${ac_cv_path_install+set}" = set; then
10485 $as_echo_n "(cached) " >&6
10486 else
10487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10488 for as_dir in $PATH
10490 IFS=$as_save_IFS
10491 test -z "$as_dir" && as_dir=.
10492 # Account for people who put trailing slashes in PATH elements.
10493 case $as_dir/ in
10494 ./ | .// | /cC/* | \
10495 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10496 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10497 /usr/ucb/* ) ;;
10499 # OSF1 and SCO ODT 3.0 have their own names for install.
10500 # Don't use installbsd from OSF since it installs stuff as root
10501 # by default.
10502 for ac_prog in ginstall scoinst install; do
10503 for ac_exec_ext in '' $ac_executable_extensions; do
10504 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10505 if test $ac_prog = install &&
10506 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10507 # AIX install. It has an incompatible calling convention.
10509 elif test $ac_prog = install &&
10510 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10511 # program-specific install script used by HP pwplus--don't use.
10513 else
10514 rm -rf conftest.one conftest.two conftest.dir
10515 echo one > conftest.one
10516 echo two > conftest.two
10517 mkdir conftest.dir
10518 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10519 test -s conftest.one && test -s conftest.two &&
10520 test -s conftest.dir/conftest.one &&
10521 test -s conftest.dir/conftest.two
10522 then
10523 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10524 break 3
10528 done
10529 done
10531 esac
10533 done
10534 IFS=$as_save_IFS
10536 rm -rf conftest.one conftest.two conftest.dir
10539 if test "${ac_cv_path_install+set}" = set; then
10540 INSTALL=$ac_cv_path_install
10541 else
10542 # As a last resort, use the slow shell script. Don't cache a
10543 # value for INSTALL within a source directory, because that will
10544 # break other packages using the cache if that directory is
10545 # removed, or if the value is a relative name.
10546 INSTALL=$ac_install_sh
10549 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
10550 $as_echo "$INSTALL" >&6; }
10552 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10553 # It thinks the first close brace ends the variable substitution.
10554 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10556 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10558 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10560 for ac_prog in gawk mawk nawk awk
10562 # Extract the first word of "$ac_prog", so it can be a program name with args.
10563 set dummy $ac_prog; ac_word=$2
10564 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10565 $as_echo_n "checking for $ac_word... " >&6; }
10566 if test "${ac_cv_prog_AWK+set}" = set; then
10567 $as_echo_n "(cached) " >&6
10568 else
10569 if test -n "$AWK"; then
10570 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10571 else
10572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10573 for as_dir in $PATH
10575 IFS=$as_save_IFS
10576 test -z "$as_dir" && as_dir=.
10577 for ac_exec_ext in '' $ac_executable_extensions; do
10578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10579 ac_cv_prog_AWK="$ac_prog"
10580 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10581 break 2
10583 done
10584 done
10585 IFS=$as_save_IFS
10589 AWK=$ac_cv_prog_AWK
10590 if test -n "$AWK"; then
10591 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
10592 $as_echo "$AWK" >&6; }
10593 else
10594 { $as_echo "$as_me:$LINENO: result: no" >&5
10595 $as_echo "no" >&6; }
10599 test -n "$AWK" && break
10600 done
10603 #########
10604 # Enable large file support (if special flags are necessary)
10606 # Check whether --enable-largefile was given.
10607 if test "${enable_largefile+set}" = set; then
10608 enableval=$enable_largefile;
10611 if test "$enable_largefile" != no; then
10613 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10614 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10615 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10616 $as_echo_n "(cached) " >&6
10617 else
10618 ac_cv_sys_largefile_CC=no
10619 if test "$GCC" != yes; then
10620 ac_save_CC=$CC
10621 while :; do
10622 # IRIX 6.2 and later do not support large files by default,
10623 # so use the C compiler's -n32 option if that helps.
10624 cat >conftest.$ac_ext <<_ACEOF
10625 /* confdefs.h. */
10626 _ACEOF
10627 cat confdefs.h >>conftest.$ac_ext
10628 cat >>conftest.$ac_ext <<_ACEOF
10629 /* end confdefs.h. */
10630 #include <sys/types.h>
10631 /* Check that off_t can represent 2**63 - 1 correctly.
10632 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10633 since some C++ compilers masquerading as C compilers
10634 incorrectly reject 9223372036854775807. */
10635 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10636 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10637 && LARGE_OFF_T % 2147483647 == 1)
10638 ? 1 : -1];
10640 main ()
10644 return 0;
10646 _ACEOF
10647 rm -f conftest.$ac_objext
10648 if { (ac_try="$ac_compile"
10649 case "(($ac_try" in
10650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651 *) ac_try_echo=$ac_try;;
10652 esac
10653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10654 $as_echo "$ac_try_echo") >&5
10655 (eval "$ac_compile") 2>conftest.er1
10656 ac_status=$?
10657 grep -v '^ *+' conftest.er1 >conftest.err
10658 rm -f conftest.er1
10659 cat conftest.err >&5
10660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } && {
10662 test -z "$ac_c_werror_flag" ||
10663 test ! -s conftest.err
10664 } && test -s conftest.$ac_objext; then
10665 break
10666 else
10667 $as_echo "$as_me: failed program was:" >&5
10668 sed 's/^/| /' conftest.$ac_ext >&5
10673 rm -f core conftest.err conftest.$ac_objext
10674 CC="$CC -n32"
10675 rm -f conftest.$ac_objext
10676 if { (ac_try="$ac_compile"
10677 case "(($ac_try" in
10678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10679 *) ac_try_echo=$ac_try;;
10680 esac
10681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10682 $as_echo "$ac_try_echo") >&5
10683 (eval "$ac_compile") 2>conftest.er1
10684 ac_status=$?
10685 grep -v '^ *+' conftest.er1 >conftest.err
10686 rm -f conftest.er1
10687 cat conftest.err >&5
10688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } && {
10690 test -z "$ac_c_werror_flag" ||
10691 test ! -s conftest.err
10692 } && test -s conftest.$ac_objext; then
10693 ac_cv_sys_largefile_CC=' -n32'; break
10694 else
10695 $as_echo "$as_me: failed program was:" >&5
10696 sed 's/^/| /' conftest.$ac_ext >&5
10701 rm -f core conftest.err conftest.$ac_objext
10702 break
10703 done
10704 CC=$ac_save_CC
10705 rm -f conftest.$ac_ext
10708 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10709 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10710 if test "$ac_cv_sys_largefile_CC" != no; then
10711 CC=$CC$ac_cv_sys_largefile_CC
10714 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10715 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10716 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10717 $as_echo_n "(cached) " >&6
10718 else
10719 while :; do
10720 cat >conftest.$ac_ext <<_ACEOF
10721 /* confdefs.h. */
10722 _ACEOF
10723 cat confdefs.h >>conftest.$ac_ext
10724 cat >>conftest.$ac_ext <<_ACEOF
10725 /* end confdefs.h. */
10726 #include <sys/types.h>
10727 /* Check that off_t can represent 2**63 - 1 correctly.
10728 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10729 since some C++ compilers masquerading as C compilers
10730 incorrectly reject 9223372036854775807. */
10731 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10732 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10733 && LARGE_OFF_T % 2147483647 == 1)
10734 ? 1 : -1];
10736 main ()
10740 return 0;
10742 _ACEOF
10743 rm -f conftest.$ac_objext
10744 if { (ac_try="$ac_compile"
10745 case "(($ac_try" in
10746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747 *) ac_try_echo=$ac_try;;
10748 esac
10749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10750 $as_echo "$ac_try_echo") >&5
10751 (eval "$ac_compile") 2>conftest.er1
10752 ac_status=$?
10753 grep -v '^ *+' conftest.er1 >conftest.err
10754 rm -f conftest.er1
10755 cat conftest.err >&5
10756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } && {
10758 test -z "$ac_c_werror_flag" ||
10759 test ! -s conftest.err
10760 } && test -s conftest.$ac_objext; then
10761 ac_cv_sys_file_offset_bits=no; break
10762 else
10763 $as_echo "$as_me: failed program was:" >&5
10764 sed 's/^/| /' conftest.$ac_ext >&5
10769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10770 cat >conftest.$ac_ext <<_ACEOF
10771 /* confdefs.h. */
10772 _ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h. */
10776 #define _FILE_OFFSET_BITS 64
10777 #include <sys/types.h>
10778 /* Check that off_t can represent 2**63 - 1 correctly.
10779 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10780 since some C++ compilers masquerading as C compilers
10781 incorrectly reject 9223372036854775807. */
10782 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10783 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10784 && LARGE_OFF_T % 2147483647 == 1)
10785 ? 1 : -1];
10787 main ()
10791 return 0;
10793 _ACEOF
10794 rm -f conftest.$ac_objext
10795 if { (ac_try="$ac_compile"
10796 case "(($ac_try" in
10797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798 *) ac_try_echo=$ac_try;;
10799 esac
10800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10801 $as_echo "$ac_try_echo") >&5
10802 (eval "$ac_compile") 2>conftest.er1
10803 ac_status=$?
10804 grep -v '^ *+' conftest.er1 >conftest.err
10805 rm -f conftest.er1
10806 cat conftest.err >&5
10807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); } && {
10809 test -z "$ac_c_werror_flag" ||
10810 test ! -s conftest.err
10811 } && test -s conftest.$ac_objext; then
10812 ac_cv_sys_file_offset_bits=64; break
10813 else
10814 $as_echo "$as_me: failed program was:" >&5
10815 sed 's/^/| /' conftest.$ac_ext >&5
10820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10821 ac_cv_sys_file_offset_bits=unknown
10822 break
10823 done
10825 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10826 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10827 case $ac_cv_sys_file_offset_bits in #(
10828 no | unknown) ;;
10830 cat >>confdefs.h <<_ACEOF
10831 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10832 _ACEOF
10834 esac
10835 rm -rf conftest*
10836 if test $ac_cv_sys_file_offset_bits = unknown; then
10837 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10838 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10839 if test "${ac_cv_sys_large_files+set}" = set; then
10840 $as_echo_n "(cached) " >&6
10841 else
10842 while :; do
10843 cat >conftest.$ac_ext <<_ACEOF
10844 /* confdefs.h. */
10845 _ACEOF
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h. */
10849 #include <sys/types.h>
10850 /* Check that off_t can represent 2**63 - 1 correctly.
10851 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10852 since some C++ compilers masquerading as C compilers
10853 incorrectly reject 9223372036854775807. */
10854 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10855 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10856 && LARGE_OFF_T % 2147483647 == 1)
10857 ? 1 : -1];
10859 main ()
10863 return 0;
10865 _ACEOF
10866 rm -f conftest.$ac_objext
10867 if { (ac_try="$ac_compile"
10868 case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10871 esac
10872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10873 $as_echo "$ac_try_echo") >&5
10874 (eval "$ac_compile") 2>conftest.er1
10875 ac_status=$?
10876 grep -v '^ *+' conftest.er1 >conftest.err
10877 rm -f conftest.er1
10878 cat conftest.err >&5
10879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); } && {
10881 test -z "$ac_c_werror_flag" ||
10882 test ! -s conftest.err
10883 } && test -s conftest.$ac_objext; then
10884 ac_cv_sys_large_files=no; break
10885 else
10886 $as_echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.$ac_ext >&5
10892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10893 cat >conftest.$ac_ext <<_ACEOF
10894 /* confdefs.h. */
10895 _ACEOF
10896 cat confdefs.h >>conftest.$ac_ext
10897 cat >>conftest.$ac_ext <<_ACEOF
10898 /* end confdefs.h. */
10899 #define _LARGE_FILES 1
10900 #include <sys/types.h>
10901 /* Check that off_t can represent 2**63 - 1 correctly.
10902 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10903 since some C++ compilers masquerading as C compilers
10904 incorrectly reject 9223372036854775807. */
10905 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10906 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10907 && LARGE_OFF_T % 2147483647 == 1)
10908 ? 1 : -1];
10910 main ()
10914 return 0;
10916 _ACEOF
10917 rm -f conftest.$ac_objext
10918 if { (ac_try="$ac_compile"
10919 case "(($ac_try" in
10920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10921 *) ac_try_echo=$ac_try;;
10922 esac
10923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10924 $as_echo "$ac_try_echo") >&5
10925 (eval "$ac_compile") 2>conftest.er1
10926 ac_status=$?
10927 grep -v '^ *+' conftest.er1 >conftest.err
10928 rm -f conftest.er1
10929 cat conftest.err >&5
10930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } && {
10932 test -z "$ac_c_werror_flag" ||
10933 test ! -s conftest.err
10934 } && test -s conftest.$ac_objext; then
10935 ac_cv_sys_large_files=1; break
10936 else
10937 $as_echo "$as_me: failed program was:" >&5
10938 sed 's/^/| /' conftest.$ac_ext >&5
10943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10944 ac_cv_sys_large_files=unknown
10945 break
10946 done
10948 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10949 $as_echo "$ac_cv_sys_large_files" >&6; }
10950 case $ac_cv_sys_large_files in #(
10951 no | unknown) ;;
10953 cat >>confdefs.h <<_ACEOF
10954 #define _LARGE_FILES $ac_cv_sys_large_files
10955 _ACEOF
10957 esac
10958 rm -rf conftest*
10963 #########
10964 # Check for needed/wanted data types
10965 { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
10966 $as_echo_n "checking for int8_t... " >&6; }
10967 if test "${ac_cv_type_int8_t+set}" = set; then
10968 $as_echo_n "(cached) " >&6
10969 else
10970 ac_cv_type_int8_t=no
10971 cat >conftest.$ac_ext <<_ACEOF
10972 /* confdefs.h. */
10973 _ACEOF
10974 cat confdefs.h >>conftest.$ac_ext
10975 cat >>conftest.$ac_ext <<_ACEOF
10976 /* end confdefs.h. */
10977 $ac_includes_default
10979 main ()
10981 if (sizeof (int8_t))
10982 return 0;
10984 return 0;
10986 _ACEOF
10987 rm -f conftest.$ac_objext
10988 if { (ac_try="$ac_compile"
10989 case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10992 esac
10993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10994 $as_echo "$ac_try_echo") >&5
10995 (eval "$ac_compile") 2>conftest.er1
10996 ac_status=$?
10997 grep -v '^ *+' conftest.er1 >conftest.err
10998 rm -f conftest.er1
10999 cat conftest.err >&5
11000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); } && {
11002 test -z "$ac_c_werror_flag" ||
11003 test ! -s conftest.err
11004 } && test -s conftest.$ac_objext; then
11005 cat >conftest.$ac_ext <<_ACEOF
11006 /* confdefs.h. */
11007 _ACEOF
11008 cat confdefs.h >>conftest.$ac_ext
11009 cat >>conftest.$ac_ext <<_ACEOF
11010 /* end confdefs.h. */
11011 $ac_includes_default
11013 main ()
11015 if (sizeof ((int8_t)))
11016 return 0;
11018 return 0;
11020 _ACEOF
11021 rm -f conftest.$ac_objext
11022 if { (ac_try="$ac_compile"
11023 case "(($ac_try" in
11024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11025 *) ac_try_echo=$ac_try;;
11026 esac
11027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11028 $as_echo "$ac_try_echo") >&5
11029 (eval "$ac_compile") 2>conftest.er1
11030 ac_status=$?
11031 grep -v '^ *+' conftest.er1 >conftest.err
11032 rm -f conftest.er1
11033 cat conftest.err >&5
11034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); } && {
11036 test -z "$ac_c_werror_flag" ||
11037 test ! -s conftest.err
11038 } && test -s conftest.$ac_objext; then
11040 else
11041 $as_echo "$as_me: failed program was:" >&5
11042 sed 's/^/| /' conftest.$ac_ext >&5
11044 ac_cv_type_int8_t=yes
11047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11048 else
11049 $as_echo "$as_me: failed program was:" >&5
11050 sed 's/^/| /' conftest.$ac_ext >&5
11055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11057 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11058 $as_echo "$ac_cv_type_int8_t" >&6; }
11059 if test $ac_cv_type_int8_t = yes; then
11061 cat >>confdefs.h <<_ACEOF
11062 #define HAVE_INT8_T 1
11063 _ACEOF
11067 { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
11068 $as_echo_n "checking for int16_t... " >&6; }
11069 if test "${ac_cv_type_int16_t+set}" = set; then
11070 $as_echo_n "(cached) " >&6
11071 else
11072 ac_cv_type_int16_t=no
11073 cat >conftest.$ac_ext <<_ACEOF
11074 /* confdefs.h. */
11075 _ACEOF
11076 cat confdefs.h >>conftest.$ac_ext
11077 cat >>conftest.$ac_ext <<_ACEOF
11078 /* end confdefs.h. */
11079 $ac_includes_default
11081 main ()
11083 if (sizeof (int16_t))
11084 return 0;
11086 return 0;
11088 _ACEOF
11089 rm -f conftest.$ac_objext
11090 if { (ac_try="$ac_compile"
11091 case "(($ac_try" in
11092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093 *) ac_try_echo=$ac_try;;
11094 esac
11095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11096 $as_echo "$ac_try_echo") >&5
11097 (eval "$ac_compile") 2>conftest.er1
11098 ac_status=$?
11099 grep -v '^ *+' conftest.er1 >conftest.err
11100 rm -f conftest.er1
11101 cat conftest.err >&5
11102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } && {
11104 test -z "$ac_c_werror_flag" ||
11105 test ! -s conftest.err
11106 } && test -s conftest.$ac_objext; then
11107 cat >conftest.$ac_ext <<_ACEOF
11108 /* confdefs.h. */
11109 _ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h. */
11113 $ac_includes_default
11115 main ()
11117 if (sizeof ((int16_t)))
11118 return 0;
11120 return 0;
11122 _ACEOF
11123 rm -f conftest.$ac_objext
11124 if { (ac_try="$ac_compile"
11125 case "(($ac_try" in
11126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127 *) ac_try_echo=$ac_try;;
11128 esac
11129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11130 $as_echo "$ac_try_echo") >&5
11131 (eval "$ac_compile") 2>conftest.er1
11132 ac_status=$?
11133 grep -v '^ *+' conftest.er1 >conftest.err
11134 rm -f conftest.er1
11135 cat conftest.err >&5
11136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); } && {
11138 test -z "$ac_c_werror_flag" ||
11139 test ! -s conftest.err
11140 } && test -s conftest.$ac_objext; then
11142 else
11143 $as_echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11146 ac_cv_type_int16_t=yes
11149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11150 else
11151 $as_echo "$as_me: failed program was:" >&5
11152 sed 's/^/| /' conftest.$ac_ext >&5
11157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11159 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11160 $as_echo "$ac_cv_type_int16_t" >&6; }
11161 if test $ac_cv_type_int16_t = yes; then
11163 cat >>confdefs.h <<_ACEOF
11164 #define HAVE_INT16_T 1
11165 _ACEOF
11169 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
11170 $as_echo_n "checking for int32_t... " >&6; }
11171 if test "${ac_cv_type_int32_t+set}" = set; then
11172 $as_echo_n "(cached) " >&6
11173 else
11174 ac_cv_type_int32_t=no
11175 cat >conftest.$ac_ext <<_ACEOF
11176 /* confdefs.h. */
11177 _ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h. */
11181 $ac_includes_default
11183 main ()
11185 if (sizeof (int32_t))
11186 return 0;
11188 return 0;
11190 _ACEOF
11191 rm -f conftest.$ac_objext
11192 if { (ac_try="$ac_compile"
11193 case "(($ac_try" in
11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195 *) ac_try_echo=$ac_try;;
11196 esac
11197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11198 $as_echo "$ac_try_echo") >&5
11199 (eval "$ac_compile") 2>conftest.er1
11200 ac_status=$?
11201 grep -v '^ *+' conftest.er1 >conftest.err
11202 rm -f conftest.er1
11203 cat conftest.err >&5
11204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); } && {
11206 test -z "$ac_c_werror_flag" ||
11207 test ! -s conftest.err
11208 } && test -s conftest.$ac_objext; then
11209 cat >conftest.$ac_ext <<_ACEOF
11210 /* confdefs.h. */
11211 _ACEOF
11212 cat confdefs.h >>conftest.$ac_ext
11213 cat >>conftest.$ac_ext <<_ACEOF
11214 /* end confdefs.h. */
11215 $ac_includes_default
11217 main ()
11219 if (sizeof ((int32_t)))
11220 return 0;
11222 return 0;
11224 _ACEOF
11225 rm -f conftest.$ac_objext
11226 if { (ac_try="$ac_compile"
11227 case "(($ac_try" in
11228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11229 *) ac_try_echo=$ac_try;;
11230 esac
11231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11232 $as_echo "$ac_try_echo") >&5
11233 (eval "$ac_compile") 2>conftest.er1
11234 ac_status=$?
11235 grep -v '^ *+' conftest.er1 >conftest.err
11236 rm -f conftest.er1
11237 cat conftest.err >&5
11238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); } && {
11240 test -z "$ac_c_werror_flag" ||
11241 test ! -s conftest.err
11242 } && test -s conftest.$ac_objext; then
11244 else
11245 $as_echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11248 ac_cv_type_int32_t=yes
11251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11252 else
11253 $as_echo "$as_me: failed program was:" >&5
11254 sed 's/^/| /' conftest.$ac_ext >&5
11259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11261 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11262 $as_echo "$ac_cv_type_int32_t" >&6; }
11263 if test $ac_cv_type_int32_t = yes; then
11265 cat >>confdefs.h <<_ACEOF
11266 #define HAVE_INT32_T 1
11267 _ACEOF
11271 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
11272 $as_echo_n "checking for int64_t... " >&6; }
11273 if test "${ac_cv_type_int64_t+set}" = set; then
11274 $as_echo_n "(cached) " >&6
11275 else
11276 ac_cv_type_int64_t=no
11277 cat >conftest.$ac_ext <<_ACEOF
11278 /* confdefs.h. */
11279 _ACEOF
11280 cat confdefs.h >>conftest.$ac_ext
11281 cat >>conftest.$ac_ext <<_ACEOF
11282 /* end confdefs.h. */
11283 $ac_includes_default
11285 main ()
11287 if (sizeof (int64_t))
11288 return 0;
11290 return 0;
11292 _ACEOF
11293 rm -f conftest.$ac_objext
11294 if { (ac_try="$ac_compile"
11295 case "(($ac_try" in
11296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11297 *) ac_try_echo=$ac_try;;
11298 esac
11299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11300 $as_echo "$ac_try_echo") >&5
11301 (eval "$ac_compile") 2>conftest.er1
11302 ac_status=$?
11303 grep -v '^ *+' conftest.er1 >conftest.err
11304 rm -f conftest.er1
11305 cat conftest.err >&5
11306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } && {
11308 test -z "$ac_c_werror_flag" ||
11309 test ! -s conftest.err
11310 } && test -s conftest.$ac_objext; then
11311 cat >conftest.$ac_ext <<_ACEOF
11312 /* confdefs.h. */
11313 _ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h. */
11317 $ac_includes_default
11319 main ()
11321 if (sizeof ((int64_t)))
11322 return 0;
11324 return 0;
11326 _ACEOF
11327 rm -f conftest.$ac_objext
11328 if { (ac_try="$ac_compile"
11329 case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11332 esac
11333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11334 $as_echo "$ac_try_echo") >&5
11335 (eval "$ac_compile") 2>conftest.er1
11336 ac_status=$?
11337 grep -v '^ *+' conftest.er1 >conftest.err
11338 rm -f conftest.er1
11339 cat conftest.err >&5
11340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } && {
11342 test -z "$ac_c_werror_flag" ||
11343 test ! -s conftest.err
11344 } && test -s conftest.$ac_objext; then
11346 else
11347 $as_echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11350 ac_cv_type_int64_t=yes
11353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11354 else
11355 $as_echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11363 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11364 $as_echo "$ac_cv_type_int64_t" >&6; }
11365 if test $ac_cv_type_int64_t = yes; then
11367 cat >>confdefs.h <<_ACEOF
11368 #define HAVE_INT64_T 1
11369 _ACEOF
11373 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
11374 $as_echo_n "checking for intptr_t... " >&6; }
11375 if test "${ac_cv_type_intptr_t+set}" = set; then
11376 $as_echo_n "(cached) " >&6
11377 else
11378 ac_cv_type_intptr_t=no
11379 cat >conftest.$ac_ext <<_ACEOF
11380 /* confdefs.h. */
11381 _ACEOF
11382 cat confdefs.h >>conftest.$ac_ext
11383 cat >>conftest.$ac_ext <<_ACEOF
11384 /* end confdefs.h. */
11385 $ac_includes_default
11387 main ()
11389 if (sizeof (intptr_t))
11390 return 0;
11392 return 0;
11394 _ACEOF
11395 rm -f conftest.$ac_objext
11396 if { (ac_try="$ac_compile"
11397 case "(($ac_try" in
11398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11399 *) ac_try_echo=$ac_try;;
11400 esac
11401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11402 $as_echo "$ac_try_echo") >&5
11403 (eval "$ac_compile") 2>conftest.er1
11404 ac_status=$?
11405 grep -v '^ *+' conftest.er1 >conftest.err
11406 rm -f conftest.er1
11407 cat conftest.err >&5
11408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } && {
11410 test -z "$ac_c_werror_flag" ||
11411 test ! -s conftest.err
11412 } && test -s conftest.$ac_objext; then
11413 cat >conftest.$ac_ext <<_ACEOF
11414 /* confdefs.h. */
11415 _ACEOF
11416 cat confdefs.h >>conftest.$ac_ext
11417 cat >>conftest.$ac_ext <<_ACEOF
11418 /* end confdefs.h. */
11419 $ac_includes_default
11421 main ()
11423 if (sizeof ((intptr_t)))
11424 return 0;
11426 return 0;
11428 _ACEOF
11429 rm -f conftest.$ac_objext
11430 if { (ac_try="$ac_compile"
11431 case "(($ac_try" in
11432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11433 *) ac_try_echo=$ac_try;;
11434 esac
11435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11436 $as_echo "$ac_try_echo") >&5
11437 (eval "$ac_compile") 2>conftest.er1
11438 ac_status=$?
11439 grep -v '^ *+' conftest.er1 >conftest.err
11440 rm -f conftest.er1
11441 cat conftest.err >&5
11442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); } && {
11444 test -z "$ac_c_werror_flag" ||
11445 test ! -s conftest.err
11446 } && test -s conftest.$ac_objext; then
11448 else
11449 $as_echo "$as_me: failed program was:" >&5
11450 sed 's/^/| /' conftest.$ac_ext >&5
11452 ac_cv_type_intptr_t=yes
11455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11456 else
11457 $as_echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11465 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
11466 $as_echo "$ac_cv_type_intptr_t" >&6; }
11467 if test $ac_cv_type_intptr_t = yes; then
11469 cat >>confdefs.h <<_ACEOF
11470 #define HAVE_INTPTR_T 1
11471 _ACEOF
11475 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
11476 $as_echo_n "checking for uint8_t... " >&6; }
11477 if test "${ac_cv_type_uint8_t+set}" = set; then
11478 $as_echo_n "(cached) " >&6
11479 else
11480 ac_cv_type_uint8_t=no
11481 cat >conftest.$ac_ext <<_ACEOF
11482 /* confdefs.h. */
11483 _ACEOF
11484 cat confdefs.h >>conftest.$ac_ext
11485 cat >>conftest.$ac_ext <<_ACEOF
11486 /* end confdefs.h. */
11487 $ac_includes_default
11489 main ()
11491 if (sizeof (uint8_t))
11492 return 0;
11494 return 0;
11496 _ACEOF
11497 rm -f conftest.$ac_objext
11498 if { (ac_try="$ac_compile"
11499 case "(($ac_try" in
11500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11501 *) ac_try_echo=$ac_try;;
11502 esac
11503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11504 $as_echo "$ac_try_echo") >&5
11505 (eval "$ac_compile") 2>conftest.er1
11506 ac_status=$?
11507 grep -v '^ *+' conftest.er1 >conftest.err
11508 rm -f conftest.er1
11509 cat conftest.err >&5
11510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } && {
11512 test -z "$ac_c_werror_flag" ||
11513 test ! -s conftest.err
11514 } && test -s conftest.$ac_objext; then
11515 cat >conftest.$ac_ext <<_ACEOF
11516 /* confdefs.h. */
11517 _ACEOF
11518 cat confdefs.h >>conftest.$ac_ext
11519 cat >>conftest.$ac_ext <<_ACEOF
11520 /* end confdefs.h. */
11521 $ac_includes_default
11523 main ()
11525 if (sizeof ((uint8_t)))
11526 return 0;
11528 return 0;
11530 _ACEOF
11531 rm -f conftest.$ac_objext
11532 if { (ac_try="$ac_compile"
11533 case "(($ac_try" in
11534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535 *) ac_try_echo=$ac_try;;
11536 esac
11537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11538 $as_echo "$ac_try_echo") >&5
11539 (eval "$ac_compile") 2>conftest.er1
11540 ac_status=$?
11541 grep -v '^ *+' conftest.er1 >conftest.err
11542 rm -f conftest.er1
11543 cat conftest.err >&5
11544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); } && {
11546 test -z "$ac_c_werror_flag" ||
11547 test ! -s conftest.err
11548 } && test -s conftest.$ac_objext; then
11550 else
11551 $as_echo "$as_me: failed program was:" >&5
11552 sed 's/^/| /' conftest.$ac_ext >&5
11554 ac_cv_type_uint8_t=yes
11557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11558 else
11559 $as_echo "$as_me: failed program was:" >&5
11560 sed 's/^/| /' conftest.$ac_ext >&5
11565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11567 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
11568 $as_echo "$ac_cv_type_uint8_t" >&6; }
11569 if test $ac_cv_type_uint8_t = yes; then
11571 cat >>confdefs.h <<_ACEOF
11572 #define HAVE_UINT8_T 1
11573 _ACEOF
11577 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
11578 $as_echo_n "checking for uint16_t... " >&6; }
11579 if test "${ac_cv_type_uint16_t+set}" = set; then
11580 $as_echo_n "(cached) " >&6
11581 else
11582 ac_cv_type_uint16_t=no
11583 cat >conftest.$ac_ext <<_ACEOF
11584 /* confdefs.h. */
11585 _ACEOF
11586 cat confdefs.h >>conftest.$ac_ext
11587 cat >>conftest.$ac_ext <<_ACEOF
11588 /* end confdefs.h. */
11589 $ac_includes_default
11591 main ()
11593 if (sizeof (uint16_t))
11594 return 0;
11596 return 0;
11598 _ACEOF
11599 rm -f conftest.$ac_objext
11600 if { (ac_try="$ac_compile"
11601 case "(($ac_try" in
11602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11603 *) ac_try_echo=$ac_try;;
11604 esac
11605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11606 $as_echo "$ac_try_echo") >&5
11607 (eval "$ac_compile") 2>conftest.er1
11608 ac_status=$?
11609 grep -v '^ *+' conftest.er1 >conftest.err
11610 rm -f conftest.er1
11611 cat conftest.err >&5
11612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); } && {
11614 test -z "$ac_c_werror_flag" ||
11615 test ! -s conftest.err
11616 } && test -s conftest.$ac_objext; then
11617 cat >conftest.$ac_ext <<_ACEOF
11618 /* confdefs.h. */
11619 _ACEOF
11620 cat confdefs.h >>conftest.$ac_ext
11621 cat >>conftest.$ac_ext <<_ACEOF
11622 /* end confdefs.h. */
11623 $ac_includes_default
11625 main ()
11627 if (sizeof ((uint16_t)))
11628 return 0;
11630 return 0;
11632 _ACEOF
11633 rm -f conftest.$ac_objext
11634 if { (ac_try="$ac_compile"
11635 case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11638 esac
11639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11640 $as_echo "$ac_try_echo") >&5
11641 (eval "$ac_compile") 2>conftest.er1
11642 ac_status=$?
11643 grep -v '^ *+' conftest.er1 >conftest.err
11644 rm -f conftest.er1
11645 cat conftest.err >&5
11646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); } && {
11648 test -z "$ac_c_werror_flag" ||
11649 test ! -s conftest.err
11650 } && test -s conftest.$ac_objext; then
11652 else
11653 $as_echo "$as_me: failed program was:" >&5
11654 sed 's/^/| /' conftest.$ac_ext >&5
11656 ac_cv_type_uint16_t=yes
11659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11660 else
11661 $as_echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11669 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
11670 $as_echo "$ac_cv_type_uint16_t" >&6; }
11671 if test $ac_cv_type_uint16_t = yes; then
11673 cat >>confdefs.h <<_ACEOF
11674 #define HAVE_UINT16_T 1
11675 _ACEOF
11679 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
11680 $as_echo_n "checking for uint32_t... " >&6; }
11681 if test "${ac_cv_type_uint32_t+set}" = set; then
11682 $as_echo_n "(cached) " >&6
11683 else
11684 ac_cv_type_uint32_t=no
11685 cat >conftest.$ac_ext <<_ACEOF
11686 /* confdefs.h. */
11687 _ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11691 $ac_includes_default
11693 main ()
11695 if (sizeof (uint32_t))
11696 return 0;
11698 return 0;
11700 _ACEOF
11701 rm -f conftest.$ac_objext
11702 if { (ac_try="$ac_compile"
11703 case "(($ac_try" in
11704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11705 *) ac_try_echo=$ac_try;;
11706 esac
11707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11708 $as_echo "$ac_try_echo") >&5
11709 (eval "$ac_compile") 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } && {
11716 test -z "$ac_c_werror_flag" ||
11717 test ! -s conftest.err
11718 } && test -s conftest.$ac_objext; then
11719 cat >conftest.$ac_ext <<_ACEOF
11720 /* confdefs.h. */
11721 _ACEOF
11722 cat confdefs.h >>conftest.$ac_ext
11723 cat >>conftest.$ac_ext <<_ACEOF
11724 /* end confdefs.h. */
11725 $ac_includes_default
11727 main ()
11729 if (sizeof ((uint32_t)))
11730 return 0;
11732 return 0;
11734 _ACEOF
11735 rm -f conftest.$ac_objext
11736 if { (ac_try="$ac_compile"
11737 case "(($ac_try" in
11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739 *) ac_try_echo=$ac_try;;
11740 esac
11741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11742 $as_echo "$ac_try_echo") >&5
11743 (eval "$ac_compile") 2>conftest.er1
11744 ac_status=$?
11745 grep -v '^ *+' conftest.er1 >conftest.err
11746 rm -f conftest.er1
11747 cat conftest.err >&5
11748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } && {
11750 test -z "$ac_c_werror_flag" ||
11751 test ! -s conftest.err
11752 } && test -s conftest.$ac_objext; then
11754 else
11755 $as_echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.$ac_ext >&5
11758 ac_cv_type_uint32_t=yes
11761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11762 else
11763 $as_echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11771 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11772 $as_echo "$ac_cv_type_uint32_t" >&6; }
11773 if test $ac_cv_type_uint32_t = yes; then
11775 cat >>confdefs.h <<_ACEOF
11776 #define HAVE_UINT32_T 1
11777 _ACEOF
11781 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
11782 $as_echo_n "checking for uint64_t... " >&6; }
11783 if test "${ac_cv_type_uint64_t+set}" = set; then
11784 $as_echo_n "(cached) " >&6
11785 else
11786 ac_cv_type_uint64_t=no
11787 cat >conftest.$ac_ext <<_ACEOF
11788 /* confdefs.h. */
11789 _ACEOF
11790 cat confdefs.h >>conftest.$ac_ext
11791 cat >>conftest.$ac_ext <<_ACEOF
11792 /* end confdefs.h. */
11793 $ac_includes_default
11795 main ()
11797 if (sizeof (uint64_t))
11798 return 0;
11800 return 0;
11802 _ACEOF
11803 rm -f conftest.$ac_objext
11804 if { (ac_try="$ac_compile"
11805 case "(($ac_try" in
11806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11807 *) ac_try_echo=$ac_try;;
11808 esac
11809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11810 $as_echo "$ac_try_echo") >&5
11811 (eval "$ac_compile") 2>conftest.er1
11812 ac_status=$?
11813 grep -v '^ *+' conftest.er1 >conftest.err
11814 rm -f conftest.er1
11815 cat conftest.err >&5
11816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); } && {
11818 test -z "$ac_c_werror_flag" ||
11819 test ! -s conftest.err
11820 } && test -s conftest.$ac_objext; then
11821 cat >conftest.$ac_ext <<_ACEOF
11822 /* confdefs.h. */
11823 _ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11827 $ac_includes_default
11829 main ()
11831 if (sizeof ((uint64_t)))
11832 return 0;
11834 return 0;
11836 _ACEOF
11837 rm -f conftest.$ac_objext
11838 if { (ac_try="$ac_compile"
11839 case "(($ac_try" in
11840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841 *) ac_try_echo=$ac_try;;
11842 esac
11843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11844 $as_echo "$ac_try_echo") >&5
11845 (eval "$ac_compile") 2>conftest.er1
11846 ac_status=$?
11847 grep -v '^ *+' conftest.er1 >conftest.err
11848 rm -f conftest.er1
11849 cat conftest.err >&5
11850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } && {
11852 test -z "$ac_c_werror_flag" ||
11853 test ! -s conftest.err
11854 } && test -s conftest.$ac_objext; then
11856 else
11857 $as_echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11860 ac_cv_type_uint64_t=yes
11863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11864 else
11865 $as_echo "$as_me: failed program was:" >&5
11866 sed 's/^/| /' conftest.$ac_ext >&5
11871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11873 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11874 $as_echo "$ac_cv_type_uint64_t" >&6; }
11875 if test $ac_cv_type_uint64_t = yes; then
11877 cat >>confdefs.h <<_ACEOF
11878 #define HAVE_UINT64_T 1
11879 _ACEOF
11883 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
11884 $as_echo_n "checking for uintptr_t... " >&6; }
11885 if test "${ac_cv_type_uintptr_t+set}" = set; then
11886 $as_echo_n "(cached) " >&6
11887 else
11888 ac_cv_type_uintptr_t=no
11889 cat >conftest.$ac_ext <<_ACEOF
11890 /* confdefs.h. */
11891 _ACEOF
11892 cat confdefs.h >>conftest.$ac_ext
11893 cat >>conftest.$ac_ext <<_ACEOF
11894 /* end confdefs.h. */
11895 $ac_includes_default
11897 main ()
11899 if (sizeof (uintptr_t))
11900 return 0;
11902 return 0;
11904 _ACEOF
11905 rm -f conftest.$ac_objext
11906 if { (ac_try="$ac_compile"
11907 case "(($ac_try" in
11908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11909 *) ac_try_echo=$ac_try;;
11910 esac
11911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11912 $as_echo "$ac_try_echo") >&5
11913 (eval "$ac_compile") 2>conftest.er1
11914 ac_status=$?
11915 grep -v '^ *+' conftest.er1 >conftest.err
11916 rm -f conftest.er1
11917 cat conftest.err >&5
11918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); } && {
11920 test -z "$ac_c_werror_flag" ||
11921 test ! -s conftest.err
11922 } && test -s conftest.$ac_objext; then
11923 cat >conftest.$ac_ext <<_ACEOF
11924 /* confdefs.h. */
11925 _ACEOF
11926 cat confdefs.h >>conftest.$ac_ext
11927 cat >>conftest.$ac_ext <<_ACEOF
11928 /* end confdefs.h. */
11929 $ac_includes_default
11931 main ()
11933 if (sizeof ((uintptr_t)))
11934 return 0;
11936 return 0;
11938 _ACEOF
11939 rm -f conftest.$ac_objext
11940 if { (ac_try="$ac_compile"
11941 case "(($ac_try" in
11942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11943 *) ac_try_echo=$ac_try;;
11944 esac
11945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11946 $as_echo "$ac_try_echo") >&5
11947 (eval "$ac_compile") 2>conftest.er1
11948 ac_status=$?
11949 grep -v '^ *+' conftest.er1 >conftest.err
11950 rm -f conftest.er1
11951 cat conftest.err >&5
11952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); } && {
11954 test -z "$ac_c_werror_flag" ||
11955 test ! -s conftest.err
11956 } && test -s conftest.$ac_objext; then
11958 else
11959 $as_echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11962 ac_cv_type_uintptr_t=yes
11965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11966 else
11967 $as_echo "$as_me: failed program was:" >&5
11968 sed 's/^/| /' conftest.$ac_ext >&5
11973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11975 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11976 $as_echo "$ac_cv_type_uintptr_t" >&6; }
11977 if test $ac_cv_type_uintptr_t = yes; then
11979 cat >>confdefs.h <<_ACEOF
11980 #define HAVE_UINTPTR_T 1
11981 _ACEOF
11987 #########
11988 # Check for needed/wanted headers
11994 for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
11996 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11998 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11999 $as_echo_n "checking for $ac_header... " >&6; }
12000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12001 $as_echo_n "(cached) " >&6
12003 ac_res=`eval 'as_val=${'$as_ac_Header'}
12004 $as_echo "$as_val"'`
12005 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12006 $as_echo "$ac_res" >&6; }
12007 else
12008 # Is the header compilable?
12009 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12010 $as_echo_n "checking $ac_header usability... " >&6; }
12011 cat >conftest.$ac_ext <<_ACEOF
12012 /* confdefs.h. */
12013 _ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h. */
12017 $ac_includes_default
12018 #include <$ac_header>
12019 _ACEOF
12020 rm -f conftest.$ac_objext
12021 if { (ac_try="$ac_compile"
12022 case "(($ac_try" in
12023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024 *) ac_try_echo=$ac_try;;
12025 esac
12026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12027 $as_echo "$ac_try_echo") >&5
12028 (eval "$ac_compile") 2>conftest.er1
12029 ac_status=$?
12030 grep -v '^ *+' conftest.er1 >conftest.err
12031 rm -f conftest.er1
12032 cat conftest.err >&5
12033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); } && {
12035 test -z "$ac_c_werror_flag" ||
12036 test ! -s conftest.err
12037 } && test -s conftest.$ac_objext; then
12038 ac_header_compiler=yes
12039 else
12040 $as_echo "$as_me: failed program was:" >&5
12041 sed 's/^/| /' conftest.$ac_ext >&5
12043 ac_header_compiler=no
12046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12047 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12048 $as_echo "$ac_header_compiler" >&6; }
12050 # Is the header present?
12051 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12052 $as_echo_n "checking $ac_header presence... " >&6; }
12053 cat >conftest.$ac_ext <<_ACEOF
12054 /* confdefs.h. */
12055 _ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h. */
12059 #include <$ac_header>
12060 _ACEOF
12061 if { (ac_try="$ac_cpp conftest.$ac_ext"
12062 case "(($ac_try" in
12063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12064 *) ac_try_echo=$ac_try;;
12065 esac
12066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12067 $as_echo "$ac_try_echo") >&5
12068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12069 ac_status=$?
12070 grep -v '^ *+' conftest.er1 >conftest.err
12071 rm -f conftest.er1
12072 cat conftest.err >&5
12073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); } >/dev/null && {
12075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12076 test ! -s conftest.err
12077 }; then
12078 ac_header_preproc=yes
12079 else
12080 $as_echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12083 ac_header_preproc=no
12086 rm -f conftest.err conftest.$ac_ext
12087 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12088 $as_echo "$ac_header_preproc" >&6; }
12090 # So? What about this header?
12091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12092 yes:no: )
12093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12094 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12096 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12097 ac_header_preproc=yes
12099 no:yes:* )
12100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12101 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12103 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12105 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12107 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12109 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12111 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12114 esac
12115 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12116 $as_echo_n "checking for $ac_header... " >&6; }
12117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12118 $as_echo_n "(cached) " >&6
12119 else
12120 eval "$as_ac_Header=\$ac_header_preproc"
12122 ac_res=`eval 'as_val=${'$as_ac_Header'}
12123 $as_echo "$as_val"'`
12124 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12125 $as_echo "$ac_res" >&6; }
12128 if test `eval 'as_val=${'$as_ac_Header'}
12129 $as_echo "$as_val"'` = yes; then
12130 cat >>confdefs.h <<_ACEOF
12131 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12132 _ACEOF
12136 done
12139 #########
12140 # Figure out whether or not we have these functions
12149 for ac_func in usleep fdatasync localtime_r gmtime_r localtime_s utime malloc_usable_size
12151 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12152 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12153 $as_echo_n "checking for $ac_func... " >&6; }
12154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12155 $as_echo_n "(cached) " >&6
12156 else
12157 cat >conftest.$ac_ext <<_ACEOF
12158 /* confdefs.h. */
12159 _ACEOF
12160 cat confdefs.h >>conftest.$ac_ext
12161 cat >>conftest.$ac_ext <<_ACEOF
12162 /* end confdefs.h. */
12163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12165 #define $ac_func innocuous_$ac_func
12167 /* System header to define __stub macros and hopefully few prototypes,
12168 which can conflict with char $ac_func (); below.
12169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12170 <limits.h> exists even on freestanding compilers. */
12172 #ifdef __STDC__
12173 # include <limits.h>
12174 #else
12175 # include <assert.h>
12176 #endif
12178 #undef $ac_func
12180 /* Override any GCC internal prototype to avoid an error.
12181 Use char because int might match the return type of a GCC
12182 builtin and then its argument prototype would still apply. */
12183 #ifdef __cplusplus
12184 extern "C"
12185 #endif
12186 char $ac_func ();
12187 /* The GNU C library defines this for functions which it implements
12188 to always fail with ENOSYS. Some functions are actually named
12189 something starting with __ and the normal name is an alias. */
12190 #if defined __stub_$ac_func || defined __stub___$ac_func
12191 choke me
12192 #endif
12195 main ()
12197 return $ac_func ();
12199 return 0;
12201 _ACEOF
12202 rm -f conftest.$ac_objext conftest$ac_exeext
12203 if { (ac_try="$ac_link"
12204 case "(($ac_try" in
12205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206 *) ac_try_echo=$ac_try;;
12207 esac
12208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12209 $as_echo "$ac_try_echo") >&5
12210 (eval "$ac_link") 2>conftest.er1
12211 ac_status=$?
12212 grep -v '^ *+' conftest.er1 >conftest.err
12213 rm -f conftest.er1
12214 cat conftest.err >&5
12215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); } && {
12217 test -z "$ac_c_werror_flag" ||
12218 test ! -s conftest.err
12219 } && test -s conftest$ac_exeext && {
12220 test "$cross_compiling" = yes ||
12221 $as_test_x conftest$ac_exeext
12222 }; then
12223 eval "$as_ac_var=yes"
12224 else
12225 $as_echo "$as_me: failed program was:" >&5
12226 sed 's/^/| /' conftest.$ac_ext >&5
12228 eval "$as_ac_var=no"
12231 rm -rf conftest.dSYM
12232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12233 conftest$ac_exeext conftest.$ac_ext
12235 ac_res=`eval 'as_val=${'$as_ac_var'}
12236 $as_echo "$as_val"'`
12237 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12238 $as_echo "$ac_res" >&6; }
12239 if test `eval 'as_val=${'$as_ac_var'}
12240 $as_echo "$as_val"'` = yes; then
12241 cat >>confdefs.h <<_ACEOF
12242 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12243 _ACEOF
12246 done
12249 #########
12250 # By default, we use the amalgamation (this may be changed below...)
12252 USE_AMALGAMATION=1
12254 #########
12255 # See whether we can run specific tclsh versions known to work well;
12256 # if not, then we fall back to plain tclsh.
12257 # TODO: try other versions before falling back?
12259 for ac_prog in tclsh8.6 tclsh8.5 tclsh
12261 # Extract the first word of "$ac_prog", so it can be a program name with args.
12262 set dummy $ac_prog; ac_word=$2
12263 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12264 $as_echo_n "checking for $ac_word... " >&6; }
12265 if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then
12266 $as_echo_n "(cached) " >&6
12267 else
12268 if test -n "$TCLSH_CMD"; then
12269 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
12270 else
12271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12272 for as_dir in $PATH
12274 IFS=$as_save_IFS
12275 test -z "$as_dir" && as_dir=.
12276 for ac_exec_ext in '' $ac_executable_extensions; do
12277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12278 ac_cv_prog_TCLSH_CMD="$ac_prog"
12279 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12280 break 2
12282 done
12283 done
12284 IFS=$as_save_IFS
12288 TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
12289 if test -n "$TCLSH_CMD"; then
12290 { $as_echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5
12291 $as_echo "$TCLSH_CMD" >&6; }
12292 else
12293 { $as_echo "$as_me:$LINENO: result: no" >&5
12294 $as_echo "no" >&6; }
12298 test -n "$TCLSH_CMD" && break
12299 done
12300 test -n "$TCLSH_CMD" || TCLSH_CMD="none"
12302 if test "$TCLSH_CMD" = "none"; then
12303 # If we can't find a local tclsh, then building the amalgamation will fail.
12304 # We act as though --disable-amalgamation has been used.
12305 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
12306 USE_AMALGAMATION=0
12307 TCLSH_CMD="tclsh"
12312 if test "x${TCLLIBDIR+set}" != "xset" ; then
12313 TCLLIBDIR='$(libdir)'
12314 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
12315 TCLLIBDIR=$i
12316 break
12317 done
12318 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
12322 #########
12323 # Set up an appropriate program prefix
12325 if test "$program_prefix" = "NONE"; then
12326 program_prefix=""
12330 VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
12331 { $as_echo "$as_me:$LINENO: Version set to $VERSION" >&5
12332 $as_echo "$as_me: Version set to $VERSION" >&6;}
12334 RELEASE=`cat $srcdir/VERSION`
12335 { $as_echo "$as_me:$LINENO: Release set to $RELEASE" >&5
12336 $as_echo "$as_me: Release set to $RELEASE" >&6;}
12338 VERSION_NUMBER=`cat $srcdir/VERSION \
12339 | sed 's/[^0-9]/ /g' \
12340 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
12341 { $as_echo "$as_me:$LINENO: Version number set to $VERSION_NUMBER" >&5
12342 $as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
12345 #########
12346 # Check to see if the --with-hints=FILE option is used. If there is none,
12347 # then check for a files named "$host.hints" and ../$hosts.hints where
12348 # $host is the hostname of the build system. If still no hints are
12349 # found, try looking in $system.hints and ../$system.hints where
12350 # $system is the result of uname -s.
12353 # Check whether --with-hints was given.
12354 if test "${with_hints+set}" = set; then
12355 withval=$with_hints; hints=$withval
12358 if test "$hints" = ""; then
12359 host=`hostname | sed 's/\..*//'`
12360 if test -r $host.hints; then
12361 hints=$host.hints
12362 else
12363 if test -r ../$host.hints; then
12364 hints=../$host.hints
12368 if test "$hints" = ""; then
12369 sys=`uname -s`
12370 if test -r $sys.hints; then
12371 hints=$sys.hints
12372 else
12373 if test -r ../$sys.hints; then
12374 hints=../$sys.hints
12378 if test "$hints" != ""; then
12379 { $as_echo "$as_me:$LINENO: result: reading hints from $hints" >&5
12380 $as_echo "reading hints from $hints" >&6; }
12381 . $hints
12384 #########
12385 # Locate a compiler for the build machine. This compiler should
12386 # generate command-line programs that run on the build machine.
12388 if test x"$cross_compiling" = xno; then
12389 BUILD_CC=$CC
12390 BUILD_CFLAGS=$CFLAGS
12391 else
12392 if test "${BUILD_CC+set}" != set; then
12393 for ac_prog in gcc cc cl
12395 # Extract the first word of "$ac_prog", so it can be a program name with args.
12396 set dummy $ac_prog; ac_word=$2
12397 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12398 $as_echo_n "checking for $ac_word... " >&6; }
12399 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
12400 $as_echo_n "(cached) " >&6
12401 else
12402 if test -n "$BUILD_CC"; then
12403 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12404 else
12405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12406 for as_dir in $PATH
12408 IFS=$as_save_IFS
12409 test -z "$as_dir" && as_dir=.
12410 for ac_exec_ext in '' $ac_executable_extensions; do
12411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12412 ac_cv_prog_BUILD_CC="$ac_prog"
12413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12414 break 2
12416 done
12417 done
12418 IFS=$as_save_IFS
12422 BUILD_CC=$ac_cv_prog_BUILD_CC
12423 if test -n "$BUILD_CC"; then
12424 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
12425 $as_echo "$BUILD_CC" >&6; }
12426 else
12427 { $as_echo "$as_me:$LINENO: result: no" >&5
12428 $as_echo "no" >&6; }
12432 test -n "$BUILD_CC" && break
12433 done
12436 if test "${BUILD_CFLAGS+set}" != set; then
12437 BUILD_CFLAGS="-g"
12442 ##########
12443 # Do we want to support multithreaded use of sqlite
12445 # Check whether --enable-threadsafe was given.
12446 if test "${enable_threadsafe+set}" = set; then
12447 enableval=$enable_threadsafe;
12448 else
12449 enable_threadsafe=yes
12452 { $as_echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
12453 $as_echo_n "checking whether to support threadsafe operation... " >&6; }
12454 if test "$enable_threadsafe" = "no"; then
12455 SQLITE_THREADSAFE=0
12456 { $as_echo "$as_me:$LINENO: result: no" >&5
12457 $as_echo "no" >&6; }
12458 else
12459 SQLITE_THREADSAFE=1
12460 { $as_echo "$as_me:$LINENO: result: yes" >&5
12461 $as_echo "yes" >&6; }
12465 if test "$SQLITE_THREADSAFE" = "1"; then
12466 { $as_echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
12467 $as_echo_n "checking for library containing pthread_create... " >&6; }
12468 if test "${ac_cv_search_pthread_create+set}" = set; then
12469 $as_echo_n "(cached) " >&6
12470 else
12471 ac_func_search_save_LIBS=$LIBS
12472 cat >conftest.$ac_ext <<_ACEOF
12473 /* confdefs.h. */
12474 _ACEOF
12475 cat confdefs.h >>conftest.$ac_ext
12476 cat >>conftest.$ac_ext <<_ACEOF
12477 /* end confdefs.h. */
12479 /* Override any GCC internal prototype to avoid an error.
12480 Use char because int might match the return type of a GCC
12481 builtin and then its argument prototype would still apply. */
12482 #ifdef __cplusplus
12483 extern "C"
12484 #endif
12485 char pthread_create ();
12487 main ()
12489 return pthread_create ();
12491 return 0;
12493 _ACEOF
12494 for ac_lib in '' pthread; do
12495 if test -z "$ac_lib"; then
12496 ac_res="none required"
12497 else
12498 ac_res=-l$ac_lib
12499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12501 rm -f conftest.$ac_objext conftest$ac_exeext
12502 if { (ac_try="$ac_link"
12503 case "(($ac_try" in
12504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505 *) ac_try_echo=$ac_try;;
12506 esac
12507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12508 $as_echo "$ac_try_echo") >&5
12509 (eval "$ac_link") 2>conftest.er1
12510 ac_status=$?
12511 grep -v '^ *+' conftest.er1 >conftest.err
12512 rm -f conftest.er1
12513 cat conftest.err >&5
12514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } && {
12516 test -z "$ac_c_werror_flag" ||
12517 test ! -s conftest.err
12518 } && test -s conftest$ac_exeext && {
12519 test "$cross_compiling" = yes ||
12520 $as_test_x conftest$ac_exeext
12521 }; then
12522 ac_cv_search_pthread_create=$ac_res
12523 else
12524 $as_echo "$as_me: failed program was:" >&5
12525 sed 's/^/| /' conftest.$ac_ext >&5
12530 rm -rf conftest.dSYM
12531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12532 conftest$ac_exeext
12533 if test "${ac_cv_search_pthread_create+set}" = set; then
12534 break
12536 done
12537 if test "${ac_cv_search_pthread_create+set}" = set; then
12539 else
12540 ac_cv_search_pthread_create=no
12542 rm conftest.$ac_ext
12543 LIBS=$ac_func_search_save_LIBS
12545 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
12546 $as_echo "$ac_cv_search_pthread_create" >&6; }
12547 ac_res=$ac_cv_search_pthread_create
12548 if test "$ac_res" != no; then
12549 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12555 ##########
12556 # Do we want to allow a connection created in one thread to be used
12557 # in another thread. This does not work on many Linux systems (ex: RedHat 9)
12558 # due to bugs in the threading implementations. This is thus off by default.
12560 # Check whether --enable-cross-thread-connections was given.
12561 if test "${enable_cross_thread_connections+set}" = set; then
12562 enableval=$enable_cross_thread_connections;
12563 else
12564 enable_xthreadconnect=no
12567 { $as_echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5
12568 $as_echo_n "checking whether to allow connections to be shared across threads... " >&6; }
12569 if test "$enable_xthreadconnect" = "no"; then
12570 XTHREADCONNECT=''
12571 { $as_echo "$as_me:$LINENO: result: no" >&5
12572 $as_echo "no" >&6; }
12573 else
12574 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
12575 { $as_echo "$as_me:$LINENO: result: yes" >&5
12576 $as_echo "yes" >&6; }
12580 ##########
12581 # Do we want to support release
12583 # Check whether --enable-releasemode was given.
12584 if test "${enable_releasemode+set}" = set; then
12585 enableval=$enable_releasemode;
12586 else
12587 enable_releasemode=no
12590 { $as_echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
12591 $as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
12592 if test "$enable_releasemode" = "no"; then
12593 ALLOWRELEASE=""
12594 { $as_echo "$as_me:$LINENO: result: no" >&5
12595 $as_echo "no" >&6; }
12596 else
12597 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
12598 { $as_echo "$as_me:$LINENO: result: yes" >&5
12599 $as_echo "yes" >&6; }
12603 ##########
12604 # Do we want temporary databases in memory
12606 # Check whether --enable-tempstore was given.
12607 if test "${enable_tempstore+set}" = set; then
12608 enableval=$enable_tempstore;
12609 else
12610 enable_tempstore=no
12613 { $as_echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
12614 $as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
12615 case "$enable_tempstore" in
12616 never )
12617 TEMP_STORE=0
12618 { $as_echo "$as_me:$LINENO: result: never" >&5
12619 $as_echo "never" >&6; }
12621 no )
12622 TEMP_STORE=1
12623 { $as_echo "$as_me:$LINENO: result: no" >&5
12624 $as_echo "no" >&6; }
12626 yes )
12627 TEMP_STORE=2
12628 { $as_echo "$as_me:$LINENO: result: yes" >&5
12629 $as_echo "yes" >&6; }
12631 always )
12632 TEMP_STORE=3
12633 { $as_echo "$as_me:$LINENO: result: always" >&5
12634 $as_echo "always" >&6; }
12637 TEMP_STORE=1
12638 { $as_echo "$as_me:$LINENO: result: no" >&5
12639 $as_echo "no" >&6; }
12641 esac
12645 ###########
12646 # Lots of things are different if we are compiling for Windows using
12647 # the CYGWIN environment. So check for that special case and handle
12648 # things accordingly.
12650 { $as_echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
12651 $as_echo_n "checking if executables have the .exe suffix... " >&6; }
12652 if test "$config_BUILD_EXEEXT" = ".exe"; then
12653 CYGWIN=yes
12654 { $as_echo "$as_me:$LINENO: result: yes" >&5
12655 $as_echo "yes" >&6; }
12656 else
12657 { $as_echo "$as_me:$LINENO: result: unknown" >&5
12658 $as_echo "unknown" >&6; }
12660 if test "$CYGWIN" != "yes"; then
12661 { $as_echo "$as_me:$LINENO: checking host system type" >&5
12662 $as_echo_n "checking host system type... " >&6; }
12663 if test "${ac_cv_host+set}" = set; then
12664 $as_echo_n "(cached) " >&6
12665 else
12666 if test "x$host_alias" = x; then
12667 ac_cv_host=$ac_cv_build
12668 else
12669 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12670 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12671 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12672 { (exit 1); exit 1; }; }
12676 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12677 $as_echo "$ac_cv_host" >&6; }
12678 case $ac_cv_host in
12679 *-*-*) ;;
12680 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12681 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
12682 { (exit 1); exit 1; }; };;
12683 esac
12684 host=$ac_cv_host
12685 ac_save_IFS=$IFS; IFS='-'
12686 set x $ac_cv_host
12687 shift
12688 host_cpu=$1
12689 host_vendor=$2
12690 shift; shift
12691 # Remember, the first character of IFS is used to create $*,
12692 # except with old shells:
12693 host_os=$*
12694 IFS=$ac_save_IFS
12695 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12698 case $host_os in
12699 *cygwin* ) CYGWIN=yes;;
12700 * ) CYGWIN=no;;
12701 esac
12704 if test "$CYGWIN" = "yes"; then
12705 BUILD_EXEEXT=.exe
12706 else
12707 BUILD_EXEEXT=$EXEEXT
12709 if test x"$cross_compiling" = xno; then
12710 TARGET_EXEEXT=$BUILD_EXEEXT
12711 else
12712 TARGET_EXEEXT=$config_TARGET_EXEEXT
12714 if test "$TARGET_EXEEXT" = ".exe"; then
12715 SQLITE_OS_UNIX=0
12716 SQLITE_OS_WIN=1
12717 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
12718 else
12719 SQLITE_OS_UNIX=1
12720 SQLITE_OS_WIN=0
12721 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
12729 ##########
12730 # Figure out all the parameters needed to compile against Tcl.
12732 # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
12733 # macros in the in the tcl.m4 file of the standard TCL distribution.
12734 # Those macros could not be used directly since we have to make some
12735 # minor changes to accomodate systems that do not have TCL installed.
12737 # Check whether --enable-tcl was given.
12738 if test "${enable_tcl+set}" = set; then
12739 enableval=$enable_tcl; use_tcl=$enableval
12740 else
12741 use_tcl=yes
12744 if test "${use_tcl}" = "yes" ; then
12746 # Check whether --with-tcl was given.
12747 if test "${with_tcl+set}" = set; then
12748 withval=$with_tcl; with_tclconfig=${withval}
12751 { $as_echo "$as_me:$LINENO: checking for Tcl configuration" >&5
12752 $as_echo_n "checking for Tcl configuration... " >&6; }
12753 if test "${ac_cv_c_tclconfig+set}" = set; then
12754 $as_echo_n "(cached) " >&6
12755 else
12757 # First check to see if --with-tcl was specified.
12758 if test x"${with_tclconfig}" != x ; then
12759 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12760 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
12761 else
12762 { { $as_echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
12763 $as_echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
12764 { (exit 1); exit 1; }; }
12768 # Start autosearch by asking tclsh
12769 if test x"${ac_cv_c_tclconfig}" = x ; then
12770 if test x"$cross_compiling" = xno; then
12771 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
12773 if test -f "$i/tclConfig.sh" ; then
12774 ac_cv_c_tclconfig="$i"
12775 break
12777 done
12781 # then check for a private Tcl installation
12782 if test x"${ac_cv_c_tclconfig}" = x ; then
12783 for i in \
12784 ../tcl \
12785 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12786 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12787 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12788 ../../tcl \
12789 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12790 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12791 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12792 ../../../tcl \
12793 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12794 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12795 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
12797 if test -f "$i/unix/tclConfig.sh" ; then
12798 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12799 break
12801 done
12804 # check in a few common install locations
12805 if test x"${ac_cv_c_tclconfig}" = x ; then
12806 for i in \
12807 `ls -d ${libdir} 2>/dev/null` \
12808 `ls -d /usr/local/lib 2>/dev/null` \
12809 `ls -d /usr/contrib/lib 2>/dev/null` \
12810 `ls -d /usr/lib 2>/dev/null`
12812 if test -f "$i/tclConfig.sh" ; then
12813 ac_cv_c_tclconfig=`(cd $i; pwd)`
12814 break
12816 done
12819 # check in a few other private locations
12820 if test x"${ac_cv_c_tclconfig}" = x ; then
12821 for i in \
12822 ${srcdir}/../tcl \
12823 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12824 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12825 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
12827 if test -f "$i/unix/tclConfig.sh" ; then
12828 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12829 break
12831 done
12837 if test x"${ac_cv_c_tclconfig}" = x ; then
12838 use_tcl=no
12839 { $as_echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
12840 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
12841 { $as_echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
12842 $as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
12843 { $as_echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
12844 $as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
12845 else
12846 TCL_BIN_DIR=${ac_cv_c_tclconfig}
12847 { $as_echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
12848 $as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
12850 { $as_echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
12851 $as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
12852 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
12853 { $as_echo "$as_me:$LINENO: result: loading" >&5
12854 $as_echo "loading" >&6; }
12855 . $TCL_BIN_DIR/tclConfig.sh
12856 else
12857 { $as_echo "$as_me:$LINENO: result: file not found" >&5
12858 $as_echo "file not found" >&6; }
12862 # If the TCL_BIN_DIR is the build directory (not the install directory),
12863 # then set the common variable name to the value of the build variables.
12864 # For example, the variable TCL_LIB_SPEC will be set to the value
12865 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12866 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12867 # installed and uninstalled version of Tcl.
12870 if test -f $TCL_BIN_DIR/Makefile ; then
12871 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
12872 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
12873 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
12877 # eval is required to do the TCL_DBGX substitution
12880 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12881 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12882 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12884 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12885 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12886 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12902 if test "${use_tcl}" = "no" ; then
12903 HAVE_TCL=""
12904 else
12905 HAVE_TCL=1
12909 ##########
12910 # Figure out what C libraries are required to compile programs
12911 # that use "readline()" library.
12913 TARGET_READLINE_LIBS=""
12914 TARGET_READLINE_INC=""
12915 TARGET_HAVE_READLINE=0
12916 # Check whether --enable-readline was given.
12917 if test "${enable_readline+set}" = set; then
12918 enableval=$enable_readline; with_readline=$enableval
12919 else
12920 with_readline=auto
12924 if test x"$with_readline" != xno; then
12925 found="yes"
12928 # Check whether --with-readline-lib was given.
12929 if test "${with_readline_lib+set}" = set; then
12930 withval=$with_readline_lib; with_readline_lib=$withval
12931 else
12932 with_readline_lib="auto"
12935 if test "x$with_readline_lib" = xauto; then
12936 save_LIBS="$LIBS"
12937 LIBS=""
12938 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
12939 $as_echo_n "checking for library containing tgetent... " >&6; }
12940 if test "${ac_cv_search_tgetent+set}" = set; then
12941 $as_echo_n "(cached) " >&6
12942 else
12943 ac_func_search_save_LIBS=$LIBS
12944 cat >conftest.$ac_ext <<_ACEOF
12945 /* confdefs.h. */
12946 _ACEOF
12947 cat confdefs.h >>conftest.$ac_ext
12948 cat >>conftest.$ac_ext <<_ACEOF
12949 /* end confdefs.h. */
12951 /* Override any GCC internal prototype to avoid an error.
12952 Use char because int might match the return type of a GCC
12953 builtin and then its argument prototype would still apply. */
12954 #ifdef __cplusplus
12955 extern "C"
12956 #endif
12957 char tgetent ();
12959 main ()
12961 return tgetent ();
12963 return 0;
12965 _ACEOF
12966 for ac_lib in '' readline ncurses curses termcap; do
12967 if test -z "$ac_lib"; then
12968 ac_res="none required"
12969 else
12970 ac_res=-l$ac_lib
12971 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12973 rm -f conftest.$ac_objext conftest$ac_exeext
12974 if { (ac_try="$ac_link"
12975 case "(($ac_try" in
12976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12977 *) ac_try_echo=$ac_try;;
12978 esac
12979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12980 $as_echo "$ac_try_echo") >&5
12981 (eval "$ac_link") 2>conftest.er1
12982 ac_status=$?
12983 grep -v '^ *+' conftest.er1 >conftest.err
12984 rm -f conftest.er1
12985 cat conftest.err >&5
12986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); } && {
12988 test -z "$ac_c_werror_flag" ||
12989 test ! -s conftest.err
12990 } && test -s conftest$ac_exeext && {
12991 test "$cross_compiling" = yes ||
12992 $as_test_x conftest$ac_exeext
12993 }; then
12994 ac_cv_search_tgetent=$ac_res
12995 else
12996 $as_echo "$as_me: failed program was:" >&5
12997 sed 's/^/| /' conftest.$ac_ext >&5
13002 rm -rf conftest.dSYM
13003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13004 conftest$ac_exeext
13005 if test "${ac_cv_search_tgetent+set}" = set; then
13006 break
13008 done
13009 if test "${ac_cv_search_tgetent+set}" = set; then
13011 else
13012 ac_cv_search_tgetent=no
13014 rm conftest.$ac_ext
13015 LIBS=$ac_func_search_save_LIBS
13017 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
13018 $as_echo "$ac_cv_search_tgetent" >&6; }
13019 ac_res=$ac_cv_search_tgetent
13020 if test "$ac_res" != no; then
13021 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13022 term_LIBS="$LIBS"
13023 else
13024 term_LIBS=""
13027 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
13028 $as_echo_n "checking for readline in -lreadline... " >&6; }
13029 if test "${ac_cv_lib_readline_readline+set}" = set; then
13030 $as_echo_n "(cached) " >&6
13031 else
13032 ac_check_lib_save_LIBS=$LIBS
13033 LIBS="-lreadline $LIBS"
13034 cat >conftest.$ac_ext <<_ACEOF
13035 /* confdefs.h. */
13036 _ACEOF
13037 cat confdefs.h >>conftest.$ac_ext
13038 cat >>conftest.$ac_ext <<_ACEOF
13039 /* end confdefs.h. */
13041 /* Override any GCC internal prototype to avoid an error.
13042 Use char because int might match the return type of a GCC
13043 builtin and then its argument prototype would still apply. */
13044 #ifdef __cplusplus
13045 extern "C"
13046 #endif
13047 char readline ();
13049 main ()
13051 return readline ();
13053 return 0;
13055 _ACEOF
13056 rm -f conftest.$ac_objext conftest$ac_exeext
13057 if { (ac_try="$ac_link"
13058 case "(($ac_try" in
13059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060 *) ac_try_echo=$ac_try;;
13061 esac
13062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13063 $as_echo "$ac_try_echo") >&5
13064 (eval "$ac_link") 2>conftest.er1
13065 ac_status=$?
13066 grep -v '^ *+' conftest.er1 >conftest.err
13067 rm -f conftest.er1
13068 cat conftest.err >&5
13069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); } && {
13071 test -z "$ac_c_werror_flag" ||
13072 test ! -s conftest.err
13073 } && test -s conftest$ac_exeext && {
13074 test "$cross_compiling" = yes ||
13075 $as_test_x conftest$ac_exeext
13076 }; then
13077 ac_cv_lib_readline_readline=yes
13078 else
13079 $as_echo "$as_me: failed program was:" >&5
13080 sed 's/^/| /' conftest.$ac_ext >&5
13082 ac_cv_lib_readline_readline=no
13085 rm -rf conftest.dSYM
13086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13087 conftest$ac_exeext conftest.$ac_ext
13088 LIBS=$ac_check_lib_save_LIBS
13090 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13091 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13092 if test $ac_cv_lib_readline_readline = yes; then
13093 TARGET_READLINE_LIBS="-lreadline"
13094 else
13095 found="no"
13098 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
13099 LIBS="$save_LIBS"
13100 else
13101 TARGET_READLINE_LIBS="$with_readline_lib"
13105 # Check whether --with-readline-inc was given.
13106 if test "${with_readline_inc+set}" = set; then
13107 withval=$with_readline_inc; with_readline_inc=$withval
13108 else
13109 with_readline_inc="auto"
13112 if test "x$with_readline_inc" = xauto; then
13113 if test "${ac_cv_header_readline_h+set}" = set; then
13114 { $as_echo "$as_me:$LINENO: checking for readline.h" >&5
13115 $as_echo_n "checking for readline.h... " >&6; }
13116 if test "${ac_cv_header_readline_h+set}" = set; then
13117 $as_echo_n "(cached) " >&6
13119 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
13120 $as_echo "$ac_cv_header_readline_h" >&6; }
13121 else
13122 # Is the header compilable?
13123 { $as_echo "$as_me:$LINENO: checking readline.h usability" >&5
13124 $as_echo_n "checking readline.h usability... " >&6; }
13125 cat >conftest.$ac_ext <<_ACEOF
13126 /* confdefs.h. */
13127 _ACEOF
13128 cat confdefs.h >>conftest.$ac_ext
13129 cat >>conftest.$ac_ext <<_ACEOF
13130 /* end confdefs.h. */
13131 $ac_includes_default
13132 #include <readline.h>
13133 _ACEOF
13134 rm -f conftest.$ac_objext
13135 if { (ac_try="$ac_compile"
13136 case "(($ac_try" in
13137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13138 *) ac_try_echo=$ac_try;;
13139 esac
13140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13141 $as_echo "$ac_try_echo") >&5
13142 (eval "$ac_compile") 2>conftest.er1
13143 ac_status=$?
13144 grep -v '^ *+' conftest.er1 >conftest.err
13145 rm -f conftest.er1
13146 cat conftest.err >&5
13147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } && {
13149 test -z "$ac_c_werror_flag" ||
13150 test ! -s conftest.err
13151 } && test -s conftest.$ac_objext; then
13152 ac_header_compiler=yes
13153 else
13154 $as_echo "$as_me: failed program was:" >&5
13155 sed 's/^/| /' conftest.$ac_ext >&5
13157 ac_header_compiler=no
13160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13161 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13162 $as_echo "$ac_header_compiler" >&6; }
13164 # Is the header present?
13165 { $as_echo "$as_me:$LINENO: checking readline.h presence" >&5
13166 $as_echo_n "checking readline.h presence... " >&6; }
13167 cat >conftest.$ac_ext <<_ACEOF
13168 /* confdefs.h. */
13169 _ACEOF
13170 cat confdefs.h >>conftest.$ac_ext
13171 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h. */
13173 #include <readline.h>
13174 _ACEOF
13175 if { (ac_try="$ac_cpp conftest.$ac_ext"
13176 case "(($ac_try" in
13177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178 *) ac_try_echo=$ac_try;;
13179 esac
13180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13181 $as_echo "$ac_try_echo") >&5
13182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13183 ac_status=$?
13184 grep -v '^ *+' conftest.er1 >conftest.err
13185 rm -f conftest.er1
13186 cat conftest.err >&5
13187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); } >/dev/null && {
13189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13190 test ! -s conftest.err
13191 }; then
13192 ac_header_preproc=yes
13193 else
13194 $as_echo "$as_me: failed program was:" >&5
13195 sed 's/^/| /' conftest.$ac_ext >&5
13197 ac_header_preproc=no
13200 rm -f conftest.err conftest.$ac_ext
13201 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13202 $as_echo "$ac_header_preproc" >&6; }
13204 # So? What about this header?
13205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13206 yes:no: )
13207 { $as_echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13208 $as_echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13209 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
13210 $as_echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
13211 ac_header_preproc=yes
13213 no:yes:* )
13214 { $as_echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
13215 $as_echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
13216 { $as_echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
13217 $as_echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
13218 { $as_echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
13219 $as_echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
13220 { $as_echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
13221 $as_echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13222 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
13223 $as_echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
13224 { $as_echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
13225 $as_echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
13228 esac
13229 { $as_echo "$as_me:$LINENO: checking for readline.h" >&5
13230 $as_echo_n "checking for readline.h... " >&6; }
13231 if test "${ac_cv_header_readline_h+set}" = set; then
13232 $as_echo_n "(cached) " >&6
13233 else
13234 ac_cv_header_readline_h=$ac_header_preproc
13236 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
13237 $as_echo "$ac_cv_header_readline_h" >&6; }
13240 if test $ac_cv_header_readline_h = yes; then
13241 found="yes"
13242 else
13244 found="no"
13245 if test "$cross_compiling" != yes; then
13246 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
13247 for subdir in include include/readline; do
13248 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
13249 { $as_echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5
13250 $as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
13251 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
13252 $as_echo_n "(cached) " >&6
13253 else
13254 test "$cross_compiling" = yes &&
13255 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
13256 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
13257 { (exit 1); exit 1; }; }
13258 if test -r "$dir/$subdir/readline.h"; then
13259 eval "$as_ac_File=yes"
13260 else
13261 eval "$as_ac_File=no"
13264 ac_res=`eval 'as_val=${'$as_ac_File'}
13265 $as_echo "$as_val"'`
13266 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13267 $as_echo "$ac_res" >&6; }
13268 if test `eval 'as_val=${'$as_ac_File'}
13269 $as_echo "$as_val"'` = yes; then
13270 found=yes
13273 if test "$found" = "yes"; then
13274 TARGET_READLINE_INC="-I$dir/$subdir"
13275 break
13277 done
13278 test "$found" = "yes" && break
13279 done
13285 else
13286 TARGET_READLINE_INC="$with_readline_inc"
13289 if test x"$found" = xno; then
13290 TARGET_READLINE_LIBS=""
13291 TARGET_READLINE_INC=""
13292 TARGET_HAVE_READLINE=0
13293 else
13294 TARGET_HAVE_READLINE=1
13302 ##########
13303 # Figure out what C libraries are required to compile programs
13304 # that use "fdatasync()" function.
13306 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
13307 $as_echo_n "checking for library containing fdatasync... " >&6; }
13308 if test "${ac_cv_search_fdatasync+set}" = set; then
13309 $as_echo_n "(cached) " >&6
13310 else
13311 ac_func_search_save_LIBS=$LIBS
13312 cat >conftest.$ac_ext <<_ACEOF
13313 /* confdefs.h. */
13314 _ACEOF
13315 cat confdefs.h >>conftest.$ac_ext
13316 cat >>conftest.$ac_ext <<_ACEOF
13317 /* end confdefs.h. */
13319 /* Override any GCC internal prototype to avoid an error.
13320 Use char because int might match the return type of a GCC
13321 builtin and then its argument prototype would still apply. */
13322 #ifdef __cplusplus
13323 extern "C"
13324 #endif
13325 char fdatasync ();
13327 main ()
13329 return fdatasync ();
13331 return 0;
13333 _ACEOF
13334 for ac_lib in '' rt; do
13335 if test -z "$ac_lib"; then
13336 ac_res="none required"
13337 else
13338 ac_res=-l$ac_lib
13339 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13341 rm -f conftest.$ac_objext conftest$ac_exeext
13342 if { (ac_try="$ac_link"
13343 case "(($ac_try" in
13344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13345 *) ac_try_echo=$ac_try;;
13346 esac
13347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13348 $as_echo "$ac_try_echo") >&5
13349 (eval "$ac_link") 2>conftest.er1
13350 ac_status=$?
13351 grep -v '^ *+' conftest.er1 >conftest.err
13352 rm -f conftest.er1
13353 cat conftest.err >&5
13354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); } && {
13356 test -z "$ac_c_werror_flag" ||
13357 test ! -s conftest.err
13358 } && test -s conftest$ac_exeext && {
13359 test "$cross_compiling" = yes ||
13360 $as_test_x conftest$ac_exeext
13361 }; then
13362 ac_cv_search_fdatasync=$ac_res
13363 else
13364 $as_echo "$as_me: failed program was:" >&5
13365 sed 's/^/| /' conftest.$ac_ext >&5
13370 rm -rf conftest.dSYM
13371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13372 conftest$ac_exeext
13373 if test "${ac_cv_search_fdatasync+set}" = set; then
13374 break
13376 done
13377 if test "${ac_cv_search_fdatasync+set}" = set; then
13379 else
13380 ac_cv_search_fdatasync=no
13382 rm conftest.$ac_ext
13383 LIBS=$ac_func_search_save_LIBS
13385 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
13386 $as_echo "$ac_cv_search_fdatasync" >&6; }
13387 ac_res=$ac_cv_search_fdatasync
13388 if test "$ac_res" != no; then
13389 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13394 #########
13395 # check for debug enabled
13396 # Check whether --enable-debug was given.
13397 if test "${enable_debug+set}" = set; then
13398 enableval=$enable_debug; use_debug=$enableval
13399 else
13400 use_debug=no
13403 if test "${use_debug}" = "yes" ; then
13404 TARGET_DEBUG="-DSQLITE_DEBUG=1"
13405 else
13406 TARGET_DEBUG="-DNDEBUG"
13410 #########
13411 # See whether we should use the amalgamation to build
13412 # Check whether --enable-amalgamation was given.
13413 if test "${enable_amalgamation+set}" = set; then
13414 enableval=$enable_amalgamation; use_amalgamation=$enableval
13415 else
13416 use_amalgamation=yes
13419 if test "${use_amalgamation}" != "yes" ; then
13420 USE_AMALGAMATION=0
13424 #########
13425 # See whether we should allow loadable extensions
13426 # Check whether --enable-load-extension was given.
13427 if test "${enable_load_extension+set}" = set; then
13428 enableval=$enable_load_extension; use_loadextension=$enableval
13429 else
13430 use_loadextension=no
13433 if test "${use_loadextension}" = "yes" ; then
13434 OPT_FEATURE_FLAGS=""
13435 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13436 $as_echo_n "checking for library containing dlopen... " >&6; }
13437 if test "${ac_cv_search_dlopen+set}" = set; then
13438 $as_echo_n "(cached) " >&6
13439 else
13440 ac_func_search_save_LIBS=$LIBS
13441 cat >conftest.$ac_ext <<_ACEOF
13442 /* confdefs.h. */
13443 _ACEOF
13444 cat confdefs.h >>conftest.$ac_ext
13445 cat >>conftest.$ac_ext <<_ACEOF
13446 /* end confdefs.h. */
13448 /* Override any GCC internal prototype to avoid an error.
13449 Use char because int might match the return type of a GCC
13450 builtin and then its argument prototype would still apply. */
13451 #ifdef __cplusplus
13452 extern "C"
13453 #endif
13454 char dlopen ();
13456 main ()
13458 return dlopen ();
13460 return 0;
13462 _ACEOF
13463 for ac_lib in '' dl; do
13464 if test -z "$ac_lib"; then
13465 ac_res="none required"
13466 else
13467 ac_res=-l$ac_lib
13468 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13470 rm -f conftest.$ac_objext conftest$ac_exeext
13471 if { (ac_try="$ac_link"
13472 case "(($ac_try" in
13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474 *) ac_try_echo=$ac_try;;
13475 esac
13476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13477 $as_echo "$ac_try_echo") >&5
13478 (eval "$ac_link") 2>conftest.er1
13479 ac_status=$?
13480 grep -v '^ *+' conftest.er1 >conftest.err
13481 rm -f conftest.er1
13482 cat conftest.err >&5
13483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); } && {
13485 test -z "$ac_c_werror_flag" ||
13486 test ! -s conftest.err
13487 } && test -s conftest$ac_exeext && {
13488 test "$cross_compiling" = yes ||
13489 $as_test_x conftest$ac_exeext
13490 }; then
13491 ac_cv_search_dlopen=$ac_res
13492 else
13493 $as_echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13499 rm -rf conftest.dSYM
13500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13501 conftest$ac_exeext
13502 if test "${ac_cv_search_dlopen+set}" = set; then
13503 break
13505 done
13506 if test "${ac_cv_search_dlopen+set}" = set; then
13508 else
13509 ac_cv_search_dlopen=no
13511 rm conftest.$ac_ext
13512 LIBS=$ac_func_search_save_LIBS
13514 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13515 $as_echo "$ac_cv_search_dlopen" >&6; }
13516 ac_res=$ac_cv_search_dlopen
13517 if test "$ac_res" != no; then
13518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13522 else
13523 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
13526 #########
13527 # attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
13528 for option in $CFLAGS $CPPFLAGS
13530 case $option in
13531 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
13532 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
13533 esac
13534 done
13538 # attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
13539 ac_temp_CFLAGS=""
13540 for option in $CFLAGS
13542 case $option in
13543 -DSQLITE_OMIT*) ;;
13544 -DSQLITE_ENABLE*) ;;
13545 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
13546 esac
13547 done
13548 CFLAGS=$ac_temp_CFLAGS
13551 # attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
13552 ac_temp_CPPFLAGS=""
13553 for option in $CPPFLAGS
13555 case $option in
13556 -DSQLITE_OMIT*) ;;
13557 -DSQLITE_ENABLE*) ;;
13558 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
13559 esac
13560 done
13561 CPPFLAGS=$ac_temp_CPPFLAGS
13564 # attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
13565 ac_temp_BUILD_CFLAGS=""
13566 for option in $BUILD_CFLAGS
13568 case $option in
13569 -DSQLITE_OMIT*) ;;
13570 -DSQLITE_ENABLE*) ;;
13571 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
13572 esac
13573 done
13574 BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
13577 #########
13578 # See whether we should use GCOV
13579 # Check whether --enable-gcov was given.
13580 if test "${enable_gcov+set}" = set; then
13581 enableval=$enable_gcov; use_gcov=$enableval
13582 else
13583 use_gcov=no
13586 if test "${use_gcov}" = "yes" ; then
13587 USE_GCOV=1
13588 else
13589 USE_GCOV=0
13594 #########
13595 # Output the config header
13596 ac_config_headers="$ac_config_headers config.h"
13599 #########
13600 # Generate the output files.
13603 ac_config_files="$ac_config_files Makefile sqlite3.pc"
13605 cat >confcache <<\_ACEOF
13606 # This file is a shell script that caches the results of configure
13607 # tests run on this system so they can be shared between configure
13608 # scripts and configure runs, see configure's option --config-cache.
13609 # It is not useful on other systems. If it contains results you don't
13610 # want to keep, you may remove or edit it.
13612 # config.status only pays attention to the cache file if you give it
13613 # the --recheck option to rerun configure.
13615 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13616 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13617 # following values.
13619 _ACEOF
13621 # The following way of writing the cache mishandles newlines in values,
13622 # but we know of no workaround that is simple, portable, and efficient.
13623 # So, we kill variables containing newlines.
13624 # Ultrix sh set writes to stderr and can't be redirected directly,
13625 # and sets the high bit in the cache file unless we assign to the vars.
13627 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13628 eval ac_val=\$$ac_var
13629 case $ac_val in #(
13630 *${as_nl}*)
13631 case $ac_var in #(
13632 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13633 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13634 esac
13635 case $ac_var in #(
13636 _ | IFS | as_nl) ;; #(
13637 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13638 *) $as_unset $ac_var ;;
13639 esac ;;
13640 esac
13641 done
13643 (set) 2>&1 |
13644 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13645 *${as_nl}ac_space=\ *)
13646 # `set' does not quote correctly, so add quotes (double-quote
13647 # substitution turns \\\\ into \\, and sed turns \\ into \).
13648 sed -n \
13649 "s/'/'\\\\''/g;
13650 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13651 ;; #(
13653 # `set' quotes correctly as required by POSIX, so do not add quotes.
13654 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13656 esac |
13657 sort
13659 sed '
13660 /^ac_cv_env_/b end
13661 t clear
13662 :clear
13663 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13664 t end
13665 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13666 :end' >>confcache
13667 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13668 if test -w "$cache_file"; then
13669 test "x$cache_file" != "x/dev/null" &&
13670 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13671 $as_echo "$as_me: updating cache $cache_file" >&6;}
13672 cat confcache >$cache_file
13673 else
13674 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13675 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13678 rm -f confcache
13680 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13681 # Let make expand exec_prefix.
13682 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13684 DEFS=-DHAVE_CONFIG_H
13686 ac_libobjs=
13687 ac_ltlibobjs=
13688 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13689 # 1. Remove the extension, and $U if already installed.
13690 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13691 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13692 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13693 # will be set to the directory where LIBOBJS objects are built.
13694 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13695 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13696 done
13697 LIBOBJS=$ac_libobjs
13699 LTLIBOBJS=$ac_ltlibobjs
13703 : ${CONFIG_STATUS=./config.status}
13704 ac_write_fail=0
13705 ac_clean_files_save=$ac_clean_files
13706 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13707 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13708 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13709 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13710 #! $SHELL
13711 # Generated by $as_me.
13712 # Run this file to recreate the current configuration.
13713 # Compiler output produced by configure, useful for debugging
13714 # configure, is in config.log if it exists.
13716 debug=false
13717 ac_cs_recheck=false
13718 ac_cs_silent=false
13719 SHELL=\${CONFIG_SHELL-$SHELL}
13720 _ACEOF
13722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13723 ## --------------------- ##
13724 ## M4sh Initialization. ##
13725 ## --------------------- ##
13727 # Be more Bourne compatible
13728 DUALCASE=1; export DUALCASE # for MKS sh
13729 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13730 emulate sh
13731 NULLCMD=:
13732 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13733 # is contrary to our usage. Disable this feature.
13734 alias -g '${1+"$@"}'='"$@"'
13735 setopt NO_GLOB_SUBST
13736 else
13737 case `(set -o) 2>/dev/null` in
13738 *posix*) set -o posix ;;
13739 esac
13746 # PATH needs CR
13747 # Avoid depending upon Character Ranges.
13748 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13749 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13750 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13751 as_cr_digits='0123456789'
13752 as_cr_alnum=$as_cr_Letters$as_cr_digits
13754 as_nl='
13756 export as_nl
13757 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13758 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13759 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13760 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13761 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13762 as_echo='printf %s\n'
13763 as_echo_n='printf %s'
13764 else
13765 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13766 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13767 as_echo_n='/usr/ucb/echo -n'
13768 else
13769 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13770 as_echo_n_body='eval
13771 arg=$1;
13772 case $arg in
13773 *"$as_nl"*)
13774 expr "X$arg" : "X\\(.*\\)$as_nl";
13775 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13776 esac;
13777 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13779 export as_echo_n_body
13780 as_echo_n='sh -c $as_echo_n_body as_echo'
13782 export as_echo_body
13783 as_echo='sh -c $as_echo_body as_echo'
13786 # The user is always right.
13787 if test "${PATH_SEPARATOR+set}" != set; then
13788 PATH_SEPARATOR=:
13789 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13790 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13791 PATH_SEPARATOR=';'
13795 # Support unset when possible.
13796 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13797 as_unset=unset
13798 else
13799 as_unset=false
13803 # IFS
13804 # We need space, tab and new line, in precisely that order. Quoting is
13805 # there to prevent editors from complaining about space-tab.
13806 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13807 # splitting by setting IFS to empty value.)
13808 IFS=" "" $as_nl"
13810 # Find who we are. Look in the path if we contain no directory separator.
13811 case $0 in
13812 *[\\/]* ) as_myself=$0 ;;
13813 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13814 for as_dir in $PATH
13816 IFS=$as_save_IFS
13817 test -z "$as_dir" && as_dir=.
13818 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13819 done
13820 IFS=$as_save_IFS
13823 esac
13824 # We did not find ourselves, most probably we were run as `sh COMMAND'
13825 # in which case we are not to be found in the path.
13826 if test "x$as_myself" = x; then
13827 as_myself=$0
13829 if test ! -f "$as_myself"; then
13830 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13831 { (exit 1); exit 1; }
13834 # Work around bugs in pre-3.0 UWIN ksh.
13835 for as_var in ENV MAIL MAILPATH
13836 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13837 done
13838 PS1='$ '
13839 PS2='> '
13840 PS4='+ '
13842 # NLS nuisances.
13843 LC_ALL=C
13844 export LC_ALL
13845 LANGUAGE=C
13846 export LANGUAGE
13848 # Required to use basename.
13849 if expr a : '\(a\)' >/dev/null 2>&1 &&
13850 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13851 as_expr=expr
13852 else
13853 as_expr=false
13856 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13857 as_basename=basename
13858 else
13859 as_basename=false
13863 # Name of the executable.
13864 as_me=`$as_basename -- "$0" ||
13865 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13866 X"$0" : 'X\(//\)$' \| \
13867 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13868 $as_echo X/"$0" |
13869 sed '/^.*\/\([^/][^/]*\)\/*$/{
13870 s//\1/
13873 /^X\/\(\/\/\)$/{
13874 s//\1/
13877 /^X\/\(\/\).*/{
13878 s//\1/
13881 s/.*/./; q'`
13883 # CDPATH.
13884 $as_unset CDPATH
13888 as_lineno_1=$LINENO
13889 as_lineno_2=$LINENO
13890 test "x$as_lineno_1" != "x$as_lineno_2" &&
13891 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13893 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13894 # uniformly replaced by the line number. The first 'sed' inserts a
13895 # line-number line after each line using $LINENO; the second 'sed'
13896 # does the real work. The second script uses 'N' to pair each
13897 # line-number line with the line containing $LINENO, and appends
13898 # trailing '-' during substitution so that $LINENO is not a special
13899 # case at line end.
13900 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13901 # scripts with optimization help from Paolo Bonzini. Blame Lee
13902 # E. McMahon (1931-1989) for sed's syntax. :-)
13903 sed -n '
13905 /[$]LINENO/=
13906 ' <$as_myself |
13907 sed '
13908 s/[$]LINENO.*/&-/
13909 t lineno
13911 :lineno
13913 :loop
13914 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13915 t loop
13916 s/-\n.*//
13917 ' >$as_me.lineno &&
13918 chmod +x "$as_me.lineno" ||
13919 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13920 { (exit 1); exit 1; }; }
13922 # Don't try to exec as it changes $[0], causing all sort of problems
13923 # (the dirname of $[0] is not the place where we might find the
13924 # original and so on. Autoconf is especially sensitive to this).
13925 . "./$as_me.lineno"
13926 # Exit status is that of the last command.
13927 exit
13931 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13932 as_dirname=dirname
13933 else
13934 as_dirname=false
13937 ECHO_C= ECHO_N= ECHO_T=
13938 case `echo -n x` in
13939 -n*)
13940 case `echo 'x\c'` in
13941 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13942 *) ECHO_C='\c';;
13943 esac;;
13945 ECHO_N='-n';;
13946 esac
13947 if expr a : '\(a\)' >/dev/null 2>&1 &&
13948 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13949 as_expr=expr
13950 else
13951 as_expr=false
13954 rm -f conf$$ conf$$.exe conf$$.file
13955 if test -d conf$$.dir; then
13956 rm -f conf$$.dir/conf$$.file
13957 else
13958 rm -f conf$$.dir
13959 mkdir conf$$.dir 2>/dev/null
13961 if (echo >conf$$.file) 2>/dev/null; then
13962 if ln -s conf$$.file conf$$ 2>/dev/null; then
13963 as_ln_s='ln -s'
13964 # ... but there are two gotchas:
13965 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13966 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13967 # In both cases, we have to default to `cp -p'.
13968 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13969 as_ln_s='cp -p'
13970 elif ln conf$$.file conf$$ 2>/dev/null; then
13971 as_ln_s=ln
13972 else
13973 as_ln_s='cp -p'
13975 else
13976 as_ln_s='cp -p'
13978 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13979 rmdir conf$$.dir 2>/dev/null
13981 if mkdir -p . 2>/dev/null; then
13982 as_mkdir_p=:
13983 else
13984 test -d ./-p && rmdir ./-p
13985 as_mkdir_p=false
13988 if test -x / >/dev/null 2>&1; then
13989 as_test_x='test -x'
13990 else
13991 if ls -dL / >/dev/null 2>&1; then
13992 as_ls_L_option=L
13993 else
13994 as_ls_L_option=
13996 as_test_x='
13997 eval sh -c '\''
13998 if test -d "$1"; then
13999 test -d "$1/.";
14000 else
14001 case $1 in
14002 -*)set "./$1";;
14003 esac;
14004 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14005 ???[sx]*):;;*)false;;esac;fi
14006 '\'' sh
14009 as_executable_p=$as_test_x
14011 # Sed expression to map a string onto a valid CPP name.
14012 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14014 # Sed expression to map a string onto a valid variable name.
14015 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14018 exec 6>&1
14020 # Save the log message, to keep $[0] and so on meaningful, and to
14021 # report actual input values of CONFIG_FILES etc. instead of their
14022 # values after options handling.
14023 ac_log="
14024 This file was extended by sqlite $as_me 3.8.7.4, which was
14025 generated by GNU Autoconf 2.62. Invocation command line was
14027 CONFIG_FILES = $CONFIG_FILES
14028 CONFIG_HEADERS = $CONFIG_HEADERS
14029 CONFIG_LINKS = $CONFIG_LINKS
14030 CONFIG_COMMANDS = $CONFIG_COMMANDS
14031 $ $0 $@
14033 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14036 _ACEOF
14038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14039 # Files that config.status was made for.
14040 config_files="$ac_config_files"
14041 config_headers="$ac_config_headers"
14042 config_commands="$ac_config_commands"
14044 _ACEOF
14046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14047 ac_cs_usage="\
14048 \`$as_me' instantiates files from templates according to the
14049 current configuration.
14051 Usage: $0 [OPTIONS] [FILE]...
14053 -h, --help print this help, then exit
14054 -V, --version print version number and configuration settings, then exit
14055 -q, --quiet do not print progress messages
14056 -d, --debug don't remove temporary files
14057 --recheck update $as_me by reconfiguring in the same conditions
14058 --file=FILE[:TEMPLATE]
14059 instantiate the configuration file FILE
14060 --header=FILE[:TEMPLATE]
14061 instantiate the configuration header FILE
14063 Configuration files:
14064 $config_files
14066 Configuration headers:
14067 $config_headers
14069 Configuration commands:
14070 $config_commands
14072 Report bugs to <bug-autoconf@gnu.org>."
14074 _ACEOF
14075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14076 ac_cs_version="\\
14077 sqlite config.status 3.8.7.4
14078 configured by $0, generated by GNU Autoconf 2.62,
14079 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14081 Copyright (C) 2008 Free Software Foundation, Inc.
14082 This config.status script is free software; the Free Software Foundation
14083 gives unlimited permission to copy, distribute and modify it."
14085 ac_pwd='$ac_pwd'
14086 srcdir='$srcdir'
14087 INSTALL='$INSTALL'
14088 AWK='$AWK'
14089 test -n "\$AWK" || AWK=awk
14090 _ACEOF
14092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14093 # The default lists apply if the user does not specify any file.
14094 ac_need_defaults=:
14095 while test $# != 0
14097 case $1 in
14098 --*=*)
14099 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14100 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14101 ac_shift=:
14104 ac_option=$1
14105 ac_optarg=$2
14106 ac_shift=shift
14108 esac
14110 case $ac_option in
14111 # Handling of the options.
14112 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14113 ac_cs_recheck=: ;;
14114 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14115 $as_echo "$ac_cs_version"; exit ;;
14116 --debug | --debu | --deb | --de | --d | -d )
14117 debug=: ;;
14118 --file | --fil | --fi | --f )
14119 $ac_shift
14120 case $ac_optarg in
14121 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14122 esac
14123 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14124 ac_need_defaults=false;;
14125 --header | --heade | --head | --hea )
14126 $ac_shift
14127 case $ac_optarg in
14128 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14129 esac
14130 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14131 ac_need_defaults=false;;
14132 --he | --h)
14133 # Conflict between --help and --header
14134 { $as_echo "$as_me: error: ambiguous option: $1
14135 Try \`$0 --help' for more information." >&2
14136 { (exit 1); exit 1; }; };;
14137 --help | --hel | -h )
14138 $as_echo "$ac_cs_usage"; exit ;;
14139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14140 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14141 ac_cs_silent=: ;;
14143 # This is an error.
14144 -*) { $as_echo "$as_me: error: unrecognized option: $1
14145 Try \`$0 --help' for more information." >&2
14146 { (exit 1); exit 1; }; } ;;
14148 *) ac_config_targets="$ac_config_targets $1"
14149 ac_need_defaults=false ;;
14151 esac
14152 shift
14153 done
14155 ac_configure_extra_args=
14157 if $ac_cs_silent; then
14158 exec 6>/dev/null
14159 ac_configure_extra_args="$ac_configure_extra_args --silent"
14162 _ACEOF
14163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14164 if \$ac_cs_recheck; then
14165 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14166 shift
14167 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14168 CONFIG_SHELL='$SHELL'
14169 export CONFIG_SHELL
14170 exec "\$@"
14173 _ACEOF
14174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14175 exec 5>>config.log
14177 echo
14178 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14179 ## Running $as_me. ##
14180 _ASBOX
14181 $as_echo "$ac_log"
14182 } >&5
14184 _ACEOF
14185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14187 # INIT-COMMANDS
14191 # The HP-UX ksh and POSIX shell print the target directory to stdout
14192 # if CDPATH is set.
14193 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14195 sed_quote_subst='$sed_quote_subst'
14196 double_quote_subst='$double_quote_subst'
14197 delay_variable_subst='$delay_variable_subst'
14198 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14199 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14200 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14201 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14202 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14203 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14204 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14205 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14206 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14207 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14208 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14209 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14210 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14211 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14212 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14213 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14214 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14215 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14216 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14217 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14218 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14219 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14220 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14221 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14222 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14223 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14224 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14225 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14226 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14227 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14228 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14229 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14230 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14231 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14232 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14233 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14234 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14235 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14236 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14237 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14238 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14239 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14240 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14241 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14242 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
14243 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14244 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14245 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14246 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14247 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14248 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14249 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14250 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14251 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14252 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14253 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14254 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14255 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14256 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14257 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14258 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14259 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14260 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14261 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14262 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14263 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14264 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14265 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14266 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14267 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14268 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14269 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14270 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14271 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14272 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14273 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14274 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14275 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14276 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14277 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14278 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14279 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14280 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14281 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14282 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14283 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14284 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14285 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14286 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14287 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14288 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14289 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14290 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14291 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14292 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14293 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14294 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14295 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14296 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14297 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14298 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14299 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14300 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14301 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14302 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14303 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14304 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14305 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14306 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14307 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14308 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14309 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14310 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14311 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14312 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14313 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14314 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14315 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14317 LTCC='$LTCC'
14318 LTCFLAGS='$LTCFLAGS'
14319 compiler='$compiler_DEFAULT'
14321 # Quote evaled strings.
14322 for var in SED \
14323 GREP \
14324 EGREP \
14325 FGREP \
14326 LD \
14327 NM \
14328 LN_S \
14329 lt_SP2NL \
14330 lt_NL2SP \
14331 reload_flag \
14332 OBJDUMP \
14333 deplibs_check_method \
14334 file_magic_cmd \
14335 AR \
14336 AR_FLAGS \
14337 STRIP \
14338 RANLIB \
14339 CC \
14340 CFLAGS \
14341 compiler \
14342 lt_cv_sys_global_symbol_pipe \
14343 lt_cv_sys_global_symbol_to_cdecl \
14344 lt_cv_sys_global_symbol_to_c_name_address \
14345 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14346 SHELL \
14347 ECHO \
14348 lt_prog_compiler_no_builtin_flag \
14349 lt_prog_compiler_wl \
14350 lt_prog_compiler_pic \
14351 lt_prog_compiler_static \
14352 lt_cv_prog_compiler_c_o \
14353 need_locks \
14354 DSYMUTIL \
14355 NMEDIT \
14356 LIPO \
14357 OTOOL \
14358 OTOOL64 \
14359 shrext_cmds \
14360 export_dynamic_flag_spec \
14361 whole_archive_flag_spec \
14362 compiler_needs_object \
14363 with_gnu_ld \
14364 allow_undefined_flag \
14365 no_undefined_flag \
14366 hardcode_libdir_flag_spec \
14367 hardcode_libdir_flag_spec_ld \
14368 hardcode_libdir_separator \
14369 fix_srcfile_path \
14370 exclude_expsyms \
14371 include_expsyms \
14372 file_list_spec \
14373 variables_saved_for_relink \
14374 libname_spec \
14375 library_names_spec \
14376 soname_spec \
14377 finish_eval \
14378 old_striplib \
14379 striplib; do
14380 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14381 *[\\\\\\\`\\"\\\$]*)
14382 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14385 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14387 esac
14388 done
14390 # Double-quote double-evaled strings.
14391 for var in reload_cmds \
14392 old_postinstall_cmds \
14393 old_postuninstall_cmds \
14394 old_archive_cmds \
14395 extract_expsyms_cmds \
14396 old_archive_from_new_cmds \
14397 old_archive_from_expsyms_cmds \
14398 archive_cmds \
14399 archive_expsym_cmds \
14400 module_cmds \
14401 module_expsym_cmds \
14402 export_symbols_cmds \
14403 prelink_cmds \
14404 postinstall_cmds \
14405 postuninstall_cmds \
14406 finish_cmds \
14407 sys_lib_search_path_spec \
14408 sys_lib_dlsearch_path_spec; do
14409 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14410 *[\\\\\\\`\\"\\\$]*)
14411 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14414 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14416 esac
14417 done
14419 # Fix-up fallback echo if it was mangled by the above quoting rules.
14420 case \$lt_ECHO in
14421 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14423 esac
14425 ac_aux_dir='$ac_aux_dir'
14426 xsi_shell='$xsi_shell'
14427 lt_shell_append='$lt_shell_append'
14429 # See if we are running on zsh, and set the options which allow our
14430 # commands through without removal of \ escapes INIT.
14431 if test -n "\${ZSH_VERSION+set}" ; then
14432 setopt NO_GLOB_SUBST
14436 PACKAGE='$PACKAGE'
14437 VERSION='$VERSION'
14438 TIMESTAMP='$TIMESTAMP'
14439 RM='$RM'
14440 ofile='$ofile'
14445 _ACEOF
14447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14449 # Handling of arguments.
14450 for ac_config_target in $ac_config_targets
14452 case $ac_config_target in
14453 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14454 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14455 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14456 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
14458 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14459 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14460 { (exit 1); exit 1; }; };;
14461 esac
14462 done
14465 # If the user did not use the arguments to specify the items to instantiate,
14466 # then the envvar interface is used. Set only those that are not.
14467 # We use the long form for the default assignment because of an extremely
14468 # bizarre bug on SunOS 4.1.3.
14469 if $ac_need_defaults; then
14470 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14471 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14472 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14475 # Have a temporary directory for convenience. Make it in the build tree
14476 # simply because there is no reason against having it here, and in addition,
14477 # creating and moving files from /tmp can sometimes cause problems.
14478 # Hook for its removal unless debugging.
14479 # Note that there is a small window in which the directory will not be cleaned:
14480 # after its creation but before its name has been assigned to `$tmp'.
14481 $debug ||
14483 tmp=
14484 trap 'exit_status=$?
14485 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14487 trap '{ (exit 1); exit 1; }' 1 2 13 15
14489 # Create a (secure) tmp directory for tmp files.
14492 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14493 test -n "$tmp" && test -d "$tmp"
14494 } ||
14496 tmp=./conf$$-$RANDOM
14497 (umask 077 && mkdir "$tmp")
14498 } ||
14500 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14501 { (exit 1); exit 1; }
14504 # Set up the scripts for CONFIG_FILES section.
14505 # No need to generate them if there are no CONFIG_FILES.
14506 # This happens for instance with `./config.status config.h'.
14507 if test -n "$CONFIG_FILES"; then
14510 ac_cr=' '
14511 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14512 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14513 ac_cs_awk_cr='\\r'
14514 else
14515 ac_cs_awk_cr=$ac_cr
14518 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14519 _ACEOF
14523 echo "cat >conf$$subs.awk <<_ACEOF" &&
14524 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14525 echo "_ACEOF"
14526 } >conf$$subs.sh ||
14527 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14528 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14529 { (exit 1); exit 1; }; }
14530 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14531 ac_delim='%!_!# '
14532 for ac_last_try in false false false false false :; do
14533 . ./conf$$subs.sh ||
14534 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14535 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14536 { (exit 1); exit 1; }; }
14538 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
14539 break
14540 elif $ac_last_try; then
14541 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14542 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14543 { (exit 1); exit 1; }; }
14544 else
14545 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14547 done
14548 rm -f conf$$subs.sh
14550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14551 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14552 _ACEOF
14553 sed -n '
14555 s/^/S["/; s/!.*/"]=/
14558 s/^[^!]*!//
14559 :repl
14560 t repl
14561 s/'"$ac_delim"'$//
14562 t delim
14565 s/\(.\{148\}\).*/\1/
14566 t more1
14567 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14570 b repl
14571 :more1
14572 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14575 s/.\{148\}//
14576 t nl
14577 :delim
14579 s/\(.\{148\}\).*/\1/
14580 t more2
14581 s/["\\]/\\&/g; s/^/"/; s/$/"/
14584 :more2
14585 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14588 s/.\{148\}//
14589 t delim
14590 ' <conf$$subs.awk | sed '
14591 /^[^""]/{
14593 s/\n//
14595 ' >>$CONFIG_STATUS || ac_write_fail=1
14596 rm -f conf$$subs.awk
14597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14598 _ACAWK
14599 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14600 for (key in S) S_is_set[key] = 1
14601 FS = "\a"
14605 line = $ 0
14606 nfields = split(line, field, "@")
14607 substed = 0
14608 len = length(field[1])
14609 for (i = 2; i < nfields; i++) {
14610 key = field[i]
14611 keylen = length(key)
14612 if (S_is_set[key]) {
14613 value = S[key]
14614 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14615 len += length(value) + length(field[++i])
14616 substed = 1
14617 } else
14618 len += 1 + keylen
14621 print line
14624 _ACAWK
14625 _ACEOF
14626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14627 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14628 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14629 else
14631 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14632 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14633 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14634 { (exit 1); exit 1; }; }
14635 _ACEOF
14637 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14638 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14639 # trailing colons and then remove the whole line if VPATH becomes empty
14640 # (actually we leave an empty line to preserve line numbers).
14641 if test "x$srcdir" = x.; then
14642 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14643 s/:*\$(srcdir):*/:/
14644 s/:*\${srcdir}:*/:/
14645 s/:*@srcdir@:*/:/
14646 s/^\([^=]*=[ ]*\):*/\1/
14647 s/:*$//
14648 s/^[^=]*=[ ]*$//
14652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14653 fi # test -n "$CONFIG_FILES"
14655 # Set up the scripts for CONFIG_HEADERS section.
14656 # No need to generate them if there are no CONFIG_HEADERS.
14657 # This happens for instance with `./config.status Makefile'.
14658 if test -n "$CONFIG_HEADERS"; then
14659 cat >"$tmp/defines.awk" <<\_ACAWK ||
14660 BEGIN {
14661 _ACEOF
14663 # Transform confdefs.h into an awk script `defines.awk', embedded as
14664 # here-document in config.status, that substitutes the proper values into
14665 # config.h.in to produce config.h.
14667 # Create a delimiter string that does not exist in confdefs.h, to ease
14668 # handling of long lines.
14669 ac_delim='%!_!# '
14670 for ac_last_try in false false :; do
14671 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14672 if test -z "$ac_t"; then
14673 break
14674 elif $ac_last_try; then
14675 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14676 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14677 { (exit 1); exit 1; }; }
14678 else
14679 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14681 done
14683 # For the awk script, D is an array of macro values keyed by name,
14684 # likewise P contains macro parameters if any. Preserve backslash
14685 # newline sequences.
14687 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14688 sed -n '
14689 s/.\{148\}/&'"$ac_delim"'/g
14690 t rset
14691 :rset
14692 s/^[ ]*#[ ]*define[ ][ ]*/ /
14693 t def
14695 :def
14696 s/\\$//
14697 t bsnl
14698 s/["\\]/\\&/g
14699 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14700 D["\1"]=" \3"/p
14701 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14703 :bsnl
14704 s/["\\]/\\&/g
14705 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14706 D["\1"]=" \3\\\\\\n"\\/p
14707 t cont
14708 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14709 t cont
14711 :cont
14713 s/.\{148\}/&'"$ac_delim"'/g
14714 t clear
14715 :clear
14716 s/\\$//
14717 t bsnlc
14718 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14720 :bsnlc
14721 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14722 b cont
14723 ' <confdefs.h | sed '
14724 s/'"$ac_delim"'/"\\\
14725 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14728 for (key in D) D_is_set[key] = 1
14729 FS = "\a"
14731 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14732 line = \$ 0
14733 split(line, arg, " ")
14734 if (arg[1] == "#") {
14735 defundef = arg[2]
14736 mac1 = arg[3]
14737 } else {
14738 defundef = substr(arg[1], 2)
14739 mac1 = arg[2]
14741 split(mac1, mac2, "(") #)
14742 macro = mac2[1]
14743 if (D_is_set[macro]) {
14744 # Preserve the white space surrounding the "#".
14745 prefix = substr(line, 1, index(line, defundef) - 1)
14746 print prefix "define", macro P[macro] D[macro]
14747 next
14748 } else {
14749 # Replace #undef with comments. This is necessary, for example,
14750 # in the case of _POSIX_SOURCE, which is predefined and required
14751 # on some systems where configure will not decide to define it.
14752 if (defundef == "undef") {
14753 print "/*", line, "*/"
14754 next
14758 { print }
14759 _ACAWK
14760 _ACEOF
14761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14762 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14763 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14764 { (exit 1); exit 1; }; }
14765 fi # test -n "$CONFIG_HEADERS"
14768 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14769 shift
14770 for ac_tag
14772 case $ac_tag in
14773 :[FHLC]) ac_mode=$ac_tag; continue;;
14774 esac
14775 case $ac_mode$ac_tag in
14776 :[FHL]*:*);;
14777 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14778 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14779 { (exit 1); exit 1; }; };;
14780 :[FH]-) ac_tag=-:-;;
14781 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14782 esac
14783 ac_save_IFS=$IFS
14784 IFS=:
14785 set x $ac_tag
14786 IFS=$ac_save_IFS
14787 shift
14788 ac_file=$1
14789 shift
14791 case $ac_mode in
14792 :L) ac_source=$1;;
14793 :[FH])
14794 ac_file_inputs=
14795 for ac_f
14797 case $ac_f in
14798 -) ac_f="$tmp/stdin";;
14799 *) # Look for the file first in the build tree, then in the source tree
14800 # (if the path is not absolute). The absolute path cannot be DOS-style,
14801 # because $ac_f cannot contain `:'.
14802 test -f "$ac_f" ||
14803 case $ac_f in
14804 [\\/$]*) false;;
14805 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14806 esac ||
14807 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14808 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14809 { (exit 1); exit 1; }; };;
14810 esac
14811 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14812 ac_file_inputs="$ac_file_inputs '$ac_f'"
14813 done
14815 # Let's still pretend it is `configure' which instantiates (i.e., don't
14816 # use $as_me), people would be surprised to read:
14817 # /* config.h. Generated by config.status. */
14818 configure_input='Generated from '`
14819 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14820 `' by configure.'
14821 if test x"$ac_file" != x-; then
14822 configure_input="$ac_file. $configure_input"
14823 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14824 $as_echo "$as_me: creating $ac_file" >&6;}
14826 # Neutralize special characters interpreted by sed in replacement strings.
14827 case $configure_input in #(
14828 *\&* | *\|* | *\\* )
14829 ac_sed_conf_input=`$as_echo "$configure_input" |
14830 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14831 *) ac_sed_conf_input=$configure_input;;
14832 esac
14834 case $ac_tag in
14835 *:-:* | *:-) cat >"$tmp/stdin" \
14836 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14837 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14838 { (exit 1); exit 1; }; } ;;
14839 esac
14841 esac
14843 ac_dir=`$as_dirname -- "$ac_file" ||
14844 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14845 X"$ac_file" : 'X\(//\)[^/]' \| \
14846 X"$ac_file" : 'X\(//\)$' \| \
14847 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14848 $as_echo X"$ac_file" |
14849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14850 s//\1/
14853 /^X\(\/\/\)[^/].*/{
14854 s//\1/
14857 /^X\(\/\/\)$/{
14858 s//\1/
14861 /^X\(\/\).*/{
14862 s//\1/
14865 s/.*/./; q'`
14866 { as_dir="$ac_dir"
14867 case $as_dir in #(
14868 -*) as_dir=./$as_dir;;
14869 esac
14870 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14871 as_dirs=
14872 while :; do
14873 case $as_dir in #(
14874 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14875 *) as_qdir=$as_dir;;
14876 esac
14877 as_dirs="'$as_qdir' $as_dirs"
14878 as_dir=`$as_dirname -- "$as_dir" ||
14879 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14880 X"$as_dir" : 'X\(//\)[^/]' \| \
14881 X"$as_dir" : 'X\(//\)$' \| \
14882 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14883 $as_echo X"$as_dir" |
14884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14885 s//\1/
14888 /^X\(\/\/\)[^/].*/{
14889 s//\1/
14892 /^X\(\/\/\)$/{
14893 s//\1/
14896 /^X\(\/\).*/{
14897 s//\1/
14900 s/.*/./; q'`
14901 test -d "$as_dir" && break
14902 done
14903 test -z "$as_dirs" || eval "mkdir $as_dirs"
14904 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14905 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14906 { (exit 1); exit 1; }; }; }
14907 ac_builddir=.
14909 case "$ac_dir" in
14910 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14912 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14913 # A ".." for each directory in $ac_dir_suffix.
14914 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14915 case $ac_top_builddir_sub in
14916 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14917 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14918 esac ;;
14919 esac
14920 ac_abs_top_builddir=$ac_pwd
14921 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14922 # for backward compatibility:
14923 ac_top_builddir=$ac_top_build_prefix
14925 case $srcdir in
14926 .) # We are building in place.
14927 ac_srcdir=.
14928 ac_top_srcdir=$ac_top_builddir_sub
14929 ac_abs_top_srcdir=$ac_pwd ;;
14930 [\\/]* | ?:[\\/]* ) # Absolute name.
14931 ac_srcdir=$srcdir$ac_dir_suffix;
14932 ac_top_srcdir=$srcdir
14933 ac_abs_top_srcdir=$srcdir ;;
14934 *) # Relative name.
14935 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14936 ac_top_srcdir=$ac_top_build_prefix$srcdir
14937 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14938 esac
14939 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14942 case $ac_mode in
14945 # CONFIG_FILE
14948 case $INSTALL in
14949 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14950 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14951 esac
14952 _ACEOF
14954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14955 # If the template does not know about datarootdir, expand it.
14956 # FIXME: This hack should be removed a few years after 2.60.
14957 ac_datarootdir_hack=; ac_datarootdir_seen=
14959 ac_sed_dataroot='
14960 /datarootdir/ {
14964 /@datadir@/p
14965 /@docdir@/p
14966 /@infodir@/p
14967 /@localedir@/p
14968 /@mandir@/p
14970 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14971 *datarootdir*) ac_datarootdir_seen=yes;;
14972 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14973 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14974 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14975 _ACEOF
14976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14977 ac_datarootdir_hack='
14978 s&@datadir@&$datadir&g
14979 s&@docdir@&$docdir&g
14980 s&@infodir@&$infodir&g
14981 s&@localedir@&$localedir&g
14982 s&@mandir@&$mandir&g
14983 s&\\\${datarootdir}&$datarootdir&g' ;;
14984 esac
14985 _ACEOF
14987 # Neutralize VPATH when `$srcdir' = `.'.
14988 # Shell code in configure.ac might set extrasub.
14989 # FIXME: do we really want to maintain this feature?
14990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14991 ac_sed_extra="$ac_vpsub
14992 $extrasub
14993 _ACEOF
14994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14996 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14997 s|@configure_input@|$ac_sed_conf_input|;t t
14998 s&@top_builddir@&$ac_top_builddir_sub&;t t
14999 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15000 s&@srcdir@&$ac_srcdir&;t t
15001 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15002 s&@top_srcdir@&$ac_top_srcdir&;t t
15003 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15004 s&@builddir@&$ac_builddir&;t t
15005 s&@abs_builddir@&$ac_abs_builddir&;t t
15006 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15007 s&@INSTALL@&$ac_INSTALL&;t t
15008 $ac_datarootdir_hack
15010 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15011 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15012 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15013 { (exit 1); exit 1; }; }
15015 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15016 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15017 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15018 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15019 which seems to be undefined. Please make sure it is defined." >&5
15020 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15021 which seems to be undefined. Please make sure it is defined." >&2;}
15023 rm -f "$tmp/stdin"
15024 case $ac_file in
15025 -) cat "$tmp/out" && rm -f "$tmp/out";;
15026 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15027 esac \
15028 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15029 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15030 { (exit 1); exit 1; }; }
15034 # CONFIG_HEADER
15036 if test x"$ac_file" != x-; then
15038 $as_echo "/* $configure_input */" \
15039 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15040 } >"$tmp/config.h" \
15041 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15042 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15043 { (exit 1); exit 1; }; }
15044 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15045 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15046 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15047 else
15048 rm -f "$ac_file"
15049 mv "$tmp/config.h" "$ac_file" \
15050 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15051 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15052 { (exit 1); exit 1; }; }
15054 else
15055 $as_echo "/* $configure_input */" \
15056 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15057 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
15058 $as_echo "$as_me: error: could not create -" >&2;}
15059 { (exit 1); exit 1; }; }
15063 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
15064 $as_echo "$as_me: executing $ac_file commands" >&6;}
15066 esac
15069 case $ac_file$ac_mode in
15070 "libtool":C)
15072 # See if we are running on zsh, and set the options which allow our
15073 # commands through without removal of \ escapes.
15074 if test -n "${ZSH_VERSION+set}" ; then
15075 setopt NO_GLOB_SUBST
15078 cfgfile="${ofile}T"
15079 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15080 $RM "$cfgfile"
15082 cat <<_LT_EOF >> "$cfgfile"
15083 #! $SHELL
15085 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15086 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15087 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15088 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15090 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15091 # 2006, 2007, 2008 Free Software Foundation, Inc.
15092 # Written by Gordon Matzigkeit, 1996
15094 # This file is part of GNU Libtool.
15096 # GNU Libtool is free software; you can redistribute it and/or
15097 # modify it under the terms of the GNU General Public License as
15098 # published by the Free Software Foundation; either version 2 of
15099 # the License, or (at your option) any later version.
15101 # As a special exception to the GNU General Public License,
15102 # if you distribute this file as part of a program or library that
15103 # is built using GNU Libtool, you may include this file under the
15104 # same distribution terms that you use for the rest of that program.
15106 # GNU Libtool is distributed in the hope that it will be useful,
15107 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15108 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15109 # GNU General Public License for more details.
15111 # You should have received a copy of the GNU General Public License
15112 # along with GNU Libtool; see the file COPYING. If not, a copy
15113 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15114 # obtained by writing to the Free Software Foundation, Inc.,
15115 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15118 # The names of the tagged configurations supported by this script.
15119 available_tags=""
15121 # ### BEGIN LIBTOOL CONFIG
15123 # Which release of libtool.m4 was used?
15124 macro_version=$macro_version
15125 macro_revision=$macro_revision
15127 # Whether or not to build shared libraries.
15128 build_libtool_libs=$enable_shared
15130 # Whether or not to build static libraries.
15131 build_old_libs=$enable_static
15133 # What type of objects to build.
15134 pic_mode=$pic_mode
15136 # Whether or not to optimize for fast installation.
15137 fast_install=$enable_fast_install
15139 # The host system.
15140 host_alias=$host_alias
15141 host=$host
15142 host_os=$host_os
15144 # The build system.
15145 build_alias=$build_alias
15146 build=$build
15147 build_os=$build_os
15149 # A sed program that does not truncate output.
15150 SED=$lt_SED
15152 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15153 Xsed="\$SED -e 1s/^X//"
15155 # A grep program that handles long lines.
15156 GREP=$lt_GREP
15158 # An ERE matcher.
15159 EGREP=$lt_EGREP
15161 # A literal string matcher.
15162 FGREP=$lt_FGREP
15164 # A BSD- or MS-compatible name lister.
15165 NM=$lt_NM
15167 # Whether we need soft or hard links.
15168 LN_S=$lt_LN_S
15170 # What is the maximum length of a command?
15171 max_cmd_len=$max_cmd_len
15173 # Object file suffix (normally "o").
15174 objext=$ac_objext
15176 # Executable file suffix (normally "").
15177 exeext=$exeext
15179 # whether the shell understands "unset".
15180 lt_unset=$lt_unset
15182 # turn spaces into newlines.
15183 SP2NL=$lt_lt_SP2NL
15185 # turn newlines into spaces.
15186 NL2SP=$lt_lt_NL2SP
15188 # How to create reloadable object files.
15189 reload_flag=$lt_reload_flag
15190 reload_cmds=$lt_reload_cmds
15192 # An object symbol dumper.
15193 OBJDUMP=$lt_OBJDUMP
15195 # Method to check whether dependent libraries are shared objects.
15196 deplibs_check_method=$lt_deplibs_check_method
15198 # Command to use when deplibs_check_method == "file_magic".
15199 file_magic_cmd=$lt_file_magic_cmd
15201 # The archiver.
15202 AR=$lt_AR
15203 AR_FLAGS=$lt_AR_FLAGS
15205 # A symbol stripping program.
15206 STRIP=$lt_STRIP
15208 # Commands used to install an old-style archive.
15209 RANLIB=$lt_RANLIB
15210 old_postinstall_cmds=$lt_old_postinstall_cmds
15211 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15213 # A C compiler.
15214 LTCC=$lt_CC
15216 # LTCC compiler flags.
15217 LTCFLAGS=$lt_CFLAGS
15219 # Take the output of nm and produce a listing of raw symbols and C names.
15220 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15222 # Transform the output of nm in a proper C declaration.
15223 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15225 # Transform the output of nm in a C name address pair.
15226 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15228 # Transform the output of nm in a C name address pair when lib prefix is needed.
15229 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15231 # The name of the directory that contains temporary libtool files.
15232 objdir=$objdir
15234 # Shell to use when invoking shell scripts.
15235 SHELL=$lt_SHELL
15237 # An echo program that does not interpret backslashes.
15238 ECHO=$lt_ECHO
15240 # Used to examine libraries when file_magic_cmd begins with "file".
15241 MAGIC_CMD=$MAGIC_CMD
15243 # Must we lock files when doing compilation?
15244 need_locks=$lt_need_locks
15246 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15247 DSYMUTIL=$lt_DSYMUTIL
15249 # Tool to change global to local symbols on Mac OS X.
15250 NMEDIT=$lt_NMEDIT
15252 # Tool to manipulate fat objects and archives on Mac OS X.
15253 LIPO=$lt_LIPO
15255 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15256 OTOOL=$lt_OTOOL
15258 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15259 OTOOL64=$lt_OTOOL64
15261 # Old archive suffix (normally "a").
15262 libext=$libext
15264 # Shared library suffix (normally ".so").
15265 shrext_cmds=$lt_shrext_cmds
15267 # The commands to extract the exported symbol list from a shared archive.
15268 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15270 # Variables whose values should be saved in libtool wrapper scripts and
15271 # restored at link time.
15272 variables_saved_for_relink=$lt_variables_saved_for_relink
15274 # Do we need the "lib" prefix for modules?
15275 need_lib_prefix=$need_lib_prefix
15277 # Do we need a version for libraries?
15278 need_version=$need_version
15280 # Library versioning type.
15281 version_type=$version_type
15283 # Shared library runtime path variable.
15284 runpath_var=$runpath_var
15286 # Shared library path variable.
15287 shlibpath_var=$shlibpath_var
15289 # Is shlibpath searched before the hard-coded library search path?
15290 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15292 # Format of library name prefix.
15293 libname_spec=$lt_libname_spec
15295 # List of archive names. First name is the real one, the rest are links.
15296 # The last name is the one that the linker finds with -lNAME
15297 library_names_spec=$lt_library_names_spec
15299 # The coded name of the library, if different from the real name.
15300 soname_spec=$lt_soname_spec
15302 # Command to use after installation of a shared archive.
15303 postinstall_cmds=$lt_postinstall_cmds
15305 # Command to use after uninstallation of a shared archive.
15306 postuninstall_cmds=$lt_postuninstall_cmds
15308 # Commands used to finish a libtool library installation in a directory.
15309 finish_cmds=$lt_finish_cmds
15311 # As "finish_cmds", except a single script fragment to be evaled but
15312 # not shown.
15313 finish_eval=$lt_finish_eval
15315 # Whether we should hardcode library paths into libraries.
15316 hardcode_into_libs=$hardcode_into_libs
15318 # Compile-time system search path for libraries.
15319 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15321 # Run-time system search path for libraries.
15322 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15324 # Whether dlopen is supported.
15325 dlopen_support=$enable_dlopen
15327 # Whether dlopen of programs is supported.
15328 dlopen_self=$enable_dlopen_self
15330 # Whether dlopen of statically linked programs is supported.
15331 dlopen_self_static=$enable_dlopen_self_static
15333 # Commands to strip libraries.
15334 old_striplib=$lt_old_striplib
15335 striplib=$lt_striplib
15338 # The linker used to build libraries.
15339 LD=$lt_LD
15341 # Commands used to build an old-style archive.
15342 old_archive_cmds=$lt_old_archive_cmds
15344 # A language specific compiler.
15345 CC=$lt_compiler
15347 # Is the compiler the GNU compiler?
15348 with_gcc=$GCC
15350 # Compiler flag to turn off builtin functions.
15351 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15353 # How to pass a linker flag through the compiler.
15354 wl=$lt_lt_prog_compiler_wl
15356 # Additional compiler flags for building library objects.
15357 pic_flag=$lt_lt_prog_compiler_pic
15359 # Compiler flag to prevent dynamic linking.
15360 link_static_flag=$lt_lt_prog_compiler_static
15362 # Does compiler simultaneously support -c and -o options?
15363 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15365 # Whether or not to add -lc for building shared libraries.
15366 build_libtool_need_lc=$archive_cmds_need_lc
15368 # Whether or not to disallow shared libs when runtime libs are static.
15369 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15371 # Compiler flag to allow reflexive dlopens.
15372 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15374 # Compiler flag to generate shared objects directly from archives.
15375 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15377 # Whether the compiler copes with passing no objects directly.
15378 compiler_needs_object=$lt_compiler_needs_object
15380 # Create an old-style archive from a shared archive.
15381 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15383 # Create a temporary old-style archive to link instead of a shared archive.
15384 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15386 # Commands used to build a shared archive.
15387 archive_cmds=$lt_archive_cmds
15388 archive_expsym_cmds=$lt_archive_expsym_cmds
15390 # Commands used to build a loadable module if different from building
15391 # a shared archive.
15392 module_cmds=$lt_module_cmds
15393 module_expsym_cmds=$lt_module_expsym_cmds
15395 # Whether we are building with GNU ld or not.
15396 with_gnu_ld=$lt_with_gnu_ld
15398 # Flag that allows shared libraries with undefined symbols to be built.
15399 allow_undefined_flag=$lt_allow_undefined_flag
15401 # Flag that enforces no undefined symbols.
15402 no_undefined_flag=$lt_no_undefined_flag
15404 # Flag to hardcode \$libdir into a binary during linking.
15405 # This must work even if \$libdir does not exist
15406 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15408 # If ld is used when linking, flag to hardcode \$libdir into a binary
15409 # during linking. This must work even if \$libdir does not exist.
15410 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15412 # Whether we need a single "-rpath" flag with a separated argument.
15413 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15415 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15416 # DIR into the resulting binary.
15417 hardcode_direct=$hardcode_direct
15419 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15420 # DIR into the resulting binary and the resulting library dependency is
15421 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15422 # library is relocated.
15423 hardcode_direct_absolute=$hardcode_direct_absolute
15425 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15426 # into the resulting binary.
15427 hardcode_minus_L=$hardcode_minus_L
15429 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15430 # into the resulting binary.
15431 hardcode_shlibpath_var=$hardcode_shlibpath_var
15433 # Set to "yes" if building a shared library automatically hardcodes DIR
15434 # into the library and all subsequent libraries and executables linked
15435 # against it.
15436 hardcode_automatic=$hardcode_automatic
15438 # Set to yes if linker adds runtime paths of dependent libraries
15439 # to runtime path list.
15440 inherit_rpath=$inherit_rpath
15442 # Whether libtool must link a program against all its dependency libraries.
15443 link_all_deplibs=$link_all_deplibs
15445 # Fix the shell variable \$srcfile for the compiler.
15446 fix_srcfile_path=$lt_fix_srcfile_path
15448 # Set to "yes" if exported symbols are required.
15449 always_export_symbols=$always_export_symbols
15451 # The commands to list exported symbols.
15452 export_symbols_cmds=$lt_export_symbols_cmds
15454 # Symbols that should not be listed in the preloaded symbols.
15455 exclude_expsyms=$lt_exclude_expsyms
15457 # Symbols that must always be exported.
15458 include_expsyms=$lt_include_expsyms
15460 # Commands necessary for linking programs (against libraries) with templates.
15461 prelink_cmds=$lt_prelink_cmds
15463 # Specify filename containing input files.
15464 file_list_spec=$lt_file_list_spec
15466 # How to hardcode a shared library path into an executable.
15467 hardcode_action=$hardcode_action
15469 # ### END LIBTOOL CONFIG
15471 _LT_EOF
15473 case $host_os in
15474 aix3*)
15475 cat <<\_LT_EOF >> "$cfgfile"
15476 # AIX sometimes has problems with the GCC collect2 program. For some
15477 # reason, if we set the COLLECT_NAMES environment variable, the problems
15478 # vanish in a puff of smoke.
15479 if test "X${COLLECT_NAMES+set}" != Xset; then
15480 COLLECT_NAMES=
15481 export COLLECT_NAMES
15483 _LT_EOF
15485 esac
15488 ltmain="$ac_aux_dir/ltmain.sh"
15491 # We use sed instead of cat because bash on DJGPP gets confused if
15492 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15493 # text mode, it properly converts lines to CR/LF. This bash problem
15494 # is reportedly fixed, but why not run on old versions too?
15495 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15496 || (rm -f "$cfgfile"; exit 1)
15498 case $xsi_shell in
15499 yes)
15500 cat << \_LT_EOF >> "$cfgfile"
15502 # func_dirname file append nondir_replacement
15503 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15504 # otherwise set result to NONDIR_REPLACEMENT.
15505 func_dirname ()
15507 case ${1} in
15508 */*) func_dirname_result="${1%/*}${2}" ;;
15509 * ) func_dirname_result="${3}" ;;
15510 esac
15513 # func_basename file
15514 func_basename ()
15516 func_basename_result="${1##*/}"
15519 # func_dirname_and_basename file append nondir_replacement
15520 # perform func_basename and func_dirname in a single function
15521 # call:
15522 # dirname: Compute the dirname of FILE. If nonempty,
15523 # add APPEND to the result, otherwise set result
15524 # to NONDIR_REPLACEMENT.
15525 # value returned in "$func_dirname_result"
15526 # basename: Compute filename of FILE.
15527 # value retuned in "$func_basename_result"
15528 # Implementation must be kept synchronized with func_dirname
15529 # and func_basename. For efficiency, we do not delegate to
15530 # those functions but instead duplicate the functionality here.
15531 func_dirname_and_basename ()
15533 case ${1} in
15534 */*) func_dirname_result="${1%/*}${2}" ;;
15535 * ) func_dirname_result="${3}" ;;
15536 esac
15537 func_basename_result="${1##*/}"
15540 # func_stripname prefix suffix name
15541 # strip PREFIX and SUFFIX off of NAME.
15542 # PREFIX and SUFFIX must not contain globbing or regex special
15543 # characters, hashes, percent signs, but SUFFIX may contain a leading
15544 # dot (in which case that matches only a dot).
15545 func_stripname ()
15547 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15548 # positional parameters, so assign one to ordinary parameter first.
15549 func_stripname_result=${3}
15550 func_stripname_result=${func_stripname_result#"${1}"}
15551 func_stripname_result=${func_stripname_result%"${2}"}
15554 # func_opt_split
15555 func_opt_split ()
15557 func_opt_split_opt=${1%%=*}
15558 func_opt_split_arg=${1#*=}
15561 # func_lo2o object
15562 func_lo2o ()
15564 case ${1} in
15565 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15566 *) func_lo2o_result=${1} ;;
15567 esac
15570 # func_xform libobj-or-source
15571 func_xform ()
15573 func_xform_result=${1%.*}.lo
15576 # func_arith arithmetic-term...
15577 func_arith ()
15579 func_arith_result=$(( $* ))
15582 # func_len string
15583 # STRING may not start with a hyphen.
15584 func_len ()
15586 func_len_result=${#1}
15589 _LT_EOF
15591 *) # Bourne compatible functions.
15592 cat << \_LT_EOF >> "$cfgfile"
15594 # func_dirname file append nondir_replacement
15595 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15596 # otherwise set result to NONDIR_REPLACEMENT.
15597 func_dirname ()
15599 # Extract subdirectory from the argument.
15600 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15601 if test "X$func_dirname_result" = "X${1}"; then
15602 func_dirname_result="${3}"
15603 else
15604 func_dirname_result="$func_dirname_result${2}"
15608 # func_basename file
15609 func_basename ()
15611 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15615 # func_stripname prefix suffix name
15616 # strip PREFIX and SUFFIX off of NAME.
15617 # PREFIX and SUFFIX must not contain globbing or regex special
15618 # characters, hashes, percent signs, but SUFFIX may contain a leading
15619 # dot (in which case that matches only a dot).
15620 # func_strip_suffix prefix name
15621 func_stripname ()
15623 case ${2} in
15624 .*) func_stripname_result=`$ECHO "X${3}" \
15625 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15626 *) func_stripname_result=`$ECHO "X${3}" \
15627 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15628 esac
15631 # sed scripts:
15632 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15633 my_sed_long_arg='1s/^-[^=]*=//'
15635 # func_opt_split
15636 func_opt_split ()
15638 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15639 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15642 # func_lo2o object
15643 func_lo2o ()
15645 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15648 # func_xform libobj-or-source
15649 func_xform ()
15651 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15654 # func_arith arithmetic-term...
15655 func_arith ()
15657 func_arith_result=`expr "$@"`
15660 # func_len string
15661 # STRING may not start with a hyphen.
15662 func_len ()
15664 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15667 _LT_EOF
15668 esac
15670 case $lt_shell_append in
15671 yes)
15672 cat << \_LT_EOF >> "$cfgfile"
15674 # func_append var value
15675 # Append VALUE to the end of shell variable VAR.
15676 func_append ()
15678 eval "$1+=\$2"
15680 _LT_EOF
15683 cat << \_LT_EOF >> "$cfgfile"
15685 # func_append var value
15686 # Append VALUE to the end of shell variable VAR.
15687 func_append ()
15689 eval "$1=\$$1\$2"
15692 _LT_EOF
15694 esac
15697 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15698 || (rm -f "$cfgfile"; exit 1)
15700 mv -f "$cfgfile" "$ofile" ||
15701 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15702 chmod +x "$ofile"
15706 esac
15707 done # for ac_tag
15710 { (exit 0); exit 0; }
15711 _ACEOF
15712 chmod +x $CONFIG_STATUS
15713 ac_clean_files=$ac_clean_files_save
15715 test $ac_write_fail = 0 ||
15716 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15717 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15718 { (exit 1); exit 1; }; }
15721 # configure is writing to config.log, and then calls config.status.
15722 # config.status does its own redirection, appending to config.log.
15723 # Unfortunately, on DOS this fails, as config.log is still kept open
15724 # by configure, so config.status won't be able to write to it; its
15725 # output is simply discarded. So we exec the FD to /dev/null,
15726 # effectively closing config.log, so it can be properly (re)opened and
15727 # appended to by config.status. When coming back to configure, we
15728 # need to make the FD available again.
15729 if test "$no_create" != yes; then
15730 ac_cs_success=:
15731 ac_config_status_args=
15732 test "$silent" = yes &&
15733 ac_config_status_args="$ac_config_status_args --quiet"
15734 exec 5>/dev/null
15735 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15736 exec 5>>config.log
15737 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15738 # would make configure fail if this is the last instruction.
15739 $ac_cs_success || { (exit 1); exit 1; }
15741 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15742 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
15743 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}