Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / cyassl / configure
blob9aeb2d28263b36eee98a23b028ba7081877e7d91
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
556 case X$lt_ECHO in
557 X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
561 esac
563 ECHO=${lt_ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $ECHO works!
573 else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<_LT_EOF
583 _LT_EOF
584 exit 0
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$lt_ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598 then
599 break
601 done
604 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
608 else
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
613 # So, first we look for a working echo in the user's PATH.
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
617 IFS="$lt_save_ifs"
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
622 ECHO="$dir/echo"
623 break
625 done
626 IFS="$lt_save_ifs"
628 if test "X$ECHO" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
634 ECHO='print -r'
635 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
641 export CONFIG_SHELL
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643 else
644 # Try using printf.
645 ECHO='printf %s\n'
646 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
649 # Cool, printf works
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656 export CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
658 export SHELL
659 ECHO="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
665 else
666 # maybe with a smaller string...
667 prev=:
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671 then
672 break
674 prev="$cmd"
675 done
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681 else
682 # Oops. We lost completely, so just stick with echo.
683 ECHO=echo
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 lt_ECHO=$ECHO
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 exec 7<&0 </dev/null 6>&1
703 # Name of the host.
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
709 # Initializations.
711 ac_default_prefix=/usr/local
712 ac_clean_files=
713 ac_config_libobj_dir=.
714 LIBOBJS=
715 cross_compiling=no
716 subdirs=
717 MFLAGS=
718 MAKEFLAGS=
719 SHELL=${CONFIG_SHELL-/bin/sh}
721 # Identity of this package.
722 PACKAGE_NAME=
723 PACKAGE_TARNAME=
724 PACKAGE_VERSION=
725 PACKAGE_STRING=
726 PACKAGE_BUGREPORT=
728 # Factoring default headers for most tests.
729 ac_includes_default="\
730 #include <stdio.h>
731 #ifdef HAVE_SYS_TYPES_H
732 # include <sys/types.h>
733 #endif
734 #ifdef HAVE_SYS_STAT_H
735 # include <sys/stat.h>
736 #endif
737 #ifdef STDC_HEADERS
738 # include <stdlib.h>
739 # include <stddef.h>
740 #else
741 # ifdef HAVE_STDLIB_H
742 # include <stdlib.h>
743 # endif
744 #endif
745 #ifdef HAVE_STRING_H
746 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
747 # include <memory.h>
748 # endif
749 # include <string.h>
750 #endif
751 #ifdef HAVE_STRINGS_H
752 # include <strings.h>
753 #endif
754 #ifdef HAVE_INTTYPES_H
755 # include <inttypes.h>
756 #endif
757 #ifdef HAVE_STDINT_H
758 # include <stdint.h>
759 #endif
760 #ifdef HAVE_UNISTD_H
761 # include <unistd.h>
762 #endif"
764 ac_default_prefix=/usr/local/cyassl
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 build
803 build_cpu
804 build_vendor
805 build_os
806 host
807 host_cpu
808 host_vendor
809 host_os
810 target
811 target_cpu
812 target_vendor
813 target_os
814 INSTALL_PROGRAM
815 INSTALL_SCRIPT
816 INSTALL_DATA
817 am__isrc
818 CYGPATH_W
819 PACKAGE
820 VERSION
821 ACLOCAL
822 AUTOCONF
823 AUTOMAKE
824 AUTOHEADER
825 MAKEINFO
826 install_sh
827 STRIP
828 INSTALL_STRIP_PROGRAM
829 mkdir_p
831 SET_MAKE
832 am__leading_dot
833 AMTAR
834 am__tar
835 am__untar
837 CFLAGS
838 LDFLAGS
839 CPPFLAGS
840 ac_ct_CC
841 EXEEXT
842 OBJEXT
843 DEPDIR
844 am__include
845 am__quote
846 AMDEP_TRUE
847 AMDEP_FALSE
848 AMDEPBACKSLASH
849 CCDEPMODE
850 am__fastdepCC_TRUE
851 am__fastdepCC_FALSE
852 CCAS
853 CCASFLAGS
854 CCASDEPMODE
855 am__fastdepCCAS_TRUE
856 am__fastdepCCAS_FALSE
858 DLLTOOL
859 OBJDUMP
860 LIBTOOL
862 GREP
863 EGREP
864 FGREP
866 DUMPBIN
867 ac_ct_DUMPBIN
869 LN_S
871 RANLIB
872 lt_ECHO
873 DSYMUTIL
874 NMEDIT
875 LIPO
876 OTOOL
877 OTOOL64
879 LIBM
880 BUILD_FASTMATH_TRUE
881 BUILD_FASTMATH_FALSE
882 BUILD_SNIFFER_TRUE
883 BUILD_SNIFFER_FALSE
884 BUILD_AESNI_TRUE
885 BUILD_AESNI_FALSE
886 BUILD_RIPEMD_TRUE
887 BUILD_RIPEMD_FALSE
888 BUILD_SHA512_TRUE
889 BUILD_SHA512_FALSE
890 BUILD_HC128_TRUE
891 BUILD_HC128_FALSE
892 BUILD_ECC_TRUE
893 BUILD_ECC_FALSE
894 BUILD_NTRU_TRUE
895 BUILD_NTRU_FALSE
896 acx_pthread_config
897 PTHREAD_CC
898 PTHREAD_LIBS
899 PTHREAD_CFLAGS
900 LIBOBJS
901 LTLIBOBJS'
902 ac_subst_files=''
903 ac_precious_vars='build_alias
904 host_alias
905 target_alias
907 CFLAGS
908 LDFLAGS
909 LIBS
910 CPPFLAGS
911 CCAS
912 CCASFLAGS
913 CPP'
916 # Initialize some variables set by options.
917 ac_init_help=
918 ac_init_version=false
919 # The variables have the same names as the options, with
920 # dashes changed to underlines.
921 cache_file=/dev/null
922 exec_prefix=NONE
923 no_create=
924 no_recursion=
925 prefix=NONE
926 program_prefix=NONE
927 program_suffix=NONE
928 program_transform_name=s,x,x,
929 silent=
930 site=
931 srcdir=
932 verbose=
933 x_includes=NONE
934 x_libraries=NONE
936 # Installation directory options.
937 # These are left unexpanded so users can "make install exec_prefix=/foo"
938 # and all the variables that are supposed to be based on exec_prefix
939 # by default will actually change.
940 # Use braces instead of parens because sh, perl, etc. also accept them.
941 # (The list follows the same order as the GNU Coding Standards.)
942 bindir='${exec_prefix}/bin'
943 sbindir='${exec_prefix}/sbin'
944 libexecdir='${exec_prefix}/libexec'
945 datarootdir='${prefix}/share'
946 datadir='${datarootdir}'
947 sysconfdir='${prefix}/etc'
948 sharedstatedir='${prefix}/com'
949 localstatedir='${prefix}/var'
950 includedir='${prefix}/include'
951 oldincludedir='/usr/include'
952 docdir='${datarootdir}/doc/${PACKAGE}'
953 infodir='${datarootdir}/info'
954 htmldir='${docdir}'
955 dvidir='${docdir}'
956 pdfdir='${docdir}'
957 psdir='${docdir}'
958 libdir='${exec_prefix}/lib'
959 localedir='${datarootdir}/locale'
960 mandir='${datarootdir}/man'
962 ac_prev=
963 ac_dashdash=
964 for ac_option
966 # If the previous option needs an argument, assign it.
967 if test -n "$ac_prev"; then
968 eval $ac_prev=\$ac_option
969 ac_prev=
970 continue
973 case $ac_option in
974 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975 *) ac_optarg=yes ;;
976 esac
978 # Accept the important Cygnus configure options, so we can diagnose typos.
980 case $ac_dashdash$ac_option in
982 ac_dashdash=yes ;;
984 -bindir | --bindir | --bindi | --bind | --bin | --bi)
985 ac_prev=bindir ;;
986 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
987 bindir=$ac_optarg ;;
989 -build | --build | --buil | --bui | --bu)
990 ac_prev=build_alias ;;
991 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
992 build_alias=$ac_optarg ;;
994 -cache-file | --cache-file | --cache-fil | --cache-fi \
995 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
996 ac_prev=cache_file ;;
997 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
998 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
999 cache_file=$ac_optarg ;;
1001 --config-cache | -C)
1002 cache_file=config.cache ;;
1004 -datadir | --datadir | --datadi | --datad)
1005 ac_prev=datadir ;;
1006 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1007 datadir=$ac_optarg ;;
1009 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1010 | --dataroo | --dataro | --datar)
1011 ac_prev=datarootdir ;;
1012 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1013 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1014 datarootdir=$ac_optarg ;;
1016 -disable-* | --disable-*)
1017 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021 { (exit 1); exit 1; }; }
1022 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1023 eval enable_$ac_feature=no ;;
1025 -docdir | --docdir | --docdi | --doc | --do)
1026 ac_prev=docdir ;;
1027 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1028 docdir=$ac_optarg ;;
1030 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1031 ac_prev=dvidir ;;
1032 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1033 dvidir=$ac_optarg ;;
1035 -enable-* | --enable-*)
1036 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1039 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1040 { (exit 1); exit 1; }; }
1041 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1042 eval enable_$ac_feature=\$ac_optarg ;;
1044 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046 | --exec | --exe | --ex)
1047 ac_prev=exec_prefix ;;
1048 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050 | --exec=* | --exe=* | --ex=*)
1051 exec_prefix=$ac_optarg ;;
1053 -gas | --gas | --ga | --g)
1054 # Obsolete; use --with-gas.
1055 with_gas=yes ;;
1057 -help | --help | --hel | --he | -h)
1058 ac_init_help=long ;;
1059 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1060 ac_init_help=recursive ;;
1061 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1062 ac_init_help=short ;;
1064 -host | --host | --hos | --ho)
1065 ac_prev=host_alias ;;
1066 -host=* | --host=* | --hos=* | --ho=*)
1067 host_alias=$ac_optarg ;;
1069 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1070 ac_prev=htmldir ;;
1071 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1072 | --ht=*)
1073 htmldir=$ac_optarg ;;
1075 -includedir | --includedir | --includedi | --included | --include \
1076 | --includ | --inclu | --incl | --inc)
1077 ac_prev=includedir ;;
1078 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079 | --includ=* | --inclu=* | --incl=* | --inc=*)
1080 includedir=$ac_optarg ;;
1082 -infodir | --infodir | --infodi | --infod | --info | --inf)
1083 ac_prev=infodir ;;
1084 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1085 infodir=$ac_optarg ;;
1087 -libdir | --libdir | --libdi | --libd)
1088 ac_prev=libdir ;;
1089 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1090 libdir=$ac_optarg ;;
1092 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093 | --libexe | --libex | --libe)
1094 ac_prev=libexecdir ;;
1095 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096 | --libexe=* | --libex=* | --libe=*)
1097 libexecdir=$ac_optarg ;;
1099 -localedir | --localedir | --localedi | --localed | --locale)
1100 ac_prev=localedir ;;
1101 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102 localedir=$ac_optarg ;;
1104 -localstatedir | --localstatedir | --localstatedi | --localstated \
1105 | --localstate | --localstat | --localsta | --localst | --locals)
1106 ac_prev=localstatedir ;;
1107 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1108 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1109 localstatedir=$ac_optarg ;;
1111 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1112 ac_prev=mandir ;;
1113 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1114 mandir=$ac_optarg ;;
1116 -nfp | --nfp | --nf)
1117 # Obsolete; use --without-fp.
1118 with_fp=no ;;
1120 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1121 | --no-cr | --no-c | -n)
1122 no_create=yes ;;
1124 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1126 no_recursion=yes ;;
1128 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130 | --oldin | --oldi | --old | --ol | --o)
1131 ac_prev=oldincludedir ;;
1132 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1135 oldincludedir=$ac_optarg ;;
1137 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1138 ac_prev=prefix ;;
1139 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1140 prefix=$ac_optarg ;;
1142 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1143 | --program-pre | --program-pr | --program-p)
1144 ac_prev=program_prefix ;;
1145 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1146 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1147 program_prefix=$ac_optarg ;;
1149 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1150 | --program-suf | --program-su | --program-s)
1151 ac_prev=program_suffix ;;
1152 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1153 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1154 program_suffix=$ac_optarg ;;
1156 -program-transform-name | --program-transform-name \
1157 | --program-transform-nam | --program-transform-na \
1158 | --program-transform-n | --program-transform- \
1159 | --program-transform | --program-transfor \
1160 | --program-transfo | --program-transf \
1161 | --program-trans | --program-tran \
1162 | --progr-tra | --program-tr | --program-t)
1163 ac_prev=program_transform_name ;;
1164 -program-transform-name=* | --program-transform-name=* \
1165 | --program-transform-nam=* | --program-transform-na=* \
1166 | --program-transform-n=* | --program-transform-=* \
1167 | --program-transform=* | --program-transfor=* \
1168 | --program-transfo=* | --program-transf=* \
1169 | --program-trans=* | --program-tran=* \
1170 | --progr-tra=* | --program-tr=* | --program-t=*)
1171 program_transform_name=$ac_optarg ;;
1173 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1174 ac_prev=pdfdir ;;
1175 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176 pdfdir=$ac_optarg ;;
1178 -psdir | --psdir | --psdi | --psd | --ps)
1179 ac_prev=psdir ;;
1180 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1181 psdir=$ac_optarg ;;
1183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184 | -silent | --silent | --silen | --sile | --sil)
1185 silent=yes ;;
1187 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1188 ac_prev=sbindir ;;
1189 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1190 | --sbi=* | --sb=*)
1191 sbindir=$ac_optarg ;;
1193 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1194 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1195 | --sharedst | --shareds | --shared | --share | --shar \
1196 | --sha | --sh)
1197 ac_prev=sharedstatedir ;;
1198 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1199 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1200 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1201 | --sha=* | --sh=*)
1202 sharedstatedir=$ac_optarg ;;
1204 -site | --site | --sit)
1205 ac_prev=site ;;
1206 -site=* | --site=* | --sit=*)
1207 site=$ac_optarg ;;
1209 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1210 ac_prev=srcdir ;;
1211 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1212 srcdir=$ac_optarg ;;
1214 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1215 | --syscon | --sysco | --sysc | --sys | --sy)
1216 ac_prev=sysconfdir ;;
1217 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1218 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1219 sysconfdir=$ac_optarg ;;
1221 -target | --target | --targe | --targ | --tar | --ta | --t)
1222 ac_prev=target_alias ;;
1223 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1224 target_alias=$ac_optarg ;;
1226 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1227 verbose=yes ;;
1229 -version | --version | --versio | --versi | --vers | -V)
1230 ac_init_version=: ;;
1232 -with-* | --with-*)
1233 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236 { echo "$as_me: error: invalid package name: $ac_package" >&2
1237 { (exit 1); exit 1; }; }
1238 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1239 eval with_$ac_package=\$ac_optarg ;;
1241 -without-* | --without-*)
1242 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 { echo "$as_me: error: invalid package name: $ac_package" >&2
1246 { (exit 1); exit 1; }; }
1247 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1248 eval with_$ac_package=no ;;
1250 --x)
1251 # Obsolete; use --with-x.
1252 with_x=yes ;;
1254 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255 | --x-incl | --x-inc | --x-in | --x-i)
1256 ac_prev=x_includes ;;
1257 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1259 x_includes=$ac_optarg ;;
1261 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1262 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263 ac_prev=x_libraries ;;
1264 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1266 x_libraries=$ac_optarg ;;
1268 -*) { echo "$as_me: error: unrecognized option: $ac_option
1269 Try \`$0 --help' for more information." >&2
1270 { (exit 1); exit 1; }; }
1273 *=*)
1274 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1277 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1278 { (exit 1); exit 1; }; }
1279 eval $ac_envvar=\$ac_optarg
1280 export $ac_envvar ;;
1283 # FIXME: should be removed in autoconf 3.0.
1284 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1285 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1286 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1287 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1290 esac
1291 done
1293 if test -n "$ac_prev"; then
1294 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1295 { echo "$as_me: error: missing argument to $ac_option" >&2
1296 { (exit 1); exit 1; }; }
1299 # Be sure to have absolute directory names.
1300 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301 datadir sysconfdir sharedstatedir localstatedir includedir \
1302 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303 libdir localedir mandir
1305 eval ac_val=\$$ac_var
1306 case $ac_val in
1307 [\\/$]* | ?:[\\/]* ) continue;;
1308 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309 esac
1310 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1311 { (exit 1); exit 1; }; }
1312 done
1314 # There might be people who depend on the old broken behavior: `$host'
1315 # used to hold the argument of --host etc.
1316 # FIXME: To remove some day.
1317 build=$build_alias
1318 host=$host_alias
1319 target=$target_alias
1321 # FIXME: To remove some day.
1322 if test "x$host_alias" != x; then
1323 if test "x$build_alias" = x; then
1324 cross_compiling=maybe
1325 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1326 If a cross compiler is detected then cross compile mode will be used." >&2
1327 elif test "x$build_alias" != "x$host_alias"; then
1328 cross_compiling=yes
1332 ac_tool_prefix=
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335 test "$silent" = yes && exec 6>/dev/null
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341 { echo "$as_me: error: Working directory cannot be determined" >&2
1342 { (exit 1); exit 1; }; }
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344 { echo "$as_me: error: pwd does not report name of working directory" >&2
1345 { (exit 1); exit 1; }; }
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350 ac_srcdir_defaulted=yes
1351 # Try the directory containing this script, then the parent directory.
1352 ac_confdir=`$as_dirname -- "$0" ||
1353 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354 X"$0" : 'X\(//\)[^/]' \| \
1355 X"$0" : 'X\(//\)$' \| \
1356 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1357 echo X"$0" |
1358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359 s//\1/
1362 /^X\(\/\/\)[^/].*/{
1363 s//\1/
1366 /^X\(\/\/\)$/{
1367 s//\1/
1370 /^X\(\/\).*/{
1371 s//\1/
1374 s/.*/./; q'`
1375 srcdir=$ac_confdir
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377 srcdir=..
1379 else
1380 ac_srcdir_defaulted=no
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1385 { (exit 1); exit 1; }; }
1387 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 ac_abs_confdir=`(
1389 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1390 { (exit 1); exit 1; }; }
1391 pwd)`
1392 # When building in place, set srcdir=.
1393 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394 srcdir=.
1396 # Remove unnecessary trailing slashes from srcdir.
1397 # Double slashes in file names in object file debugging info
1398 # mess up M-x gdb in Emacs.
1399 case $srcdir in
1400 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401 esac
1402 for ac_var in $ac_precious_vars; do
1403 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_env_${ac_var}_value=\$${ac_var}
1405 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 done
1410 # Report the --help message.
1412 if test "$ac_init_help" = "long"; then
1413 # Omit some internal or obsolete options to make the list less imposing.
1414 # This message is too long to be a string in the A/UX 3.1 sh.
1415 cat <<_ACEOF
1416 \`configure' configures this package to adapt to many kinds of systems.
1418 Usage: $0 [OPTION]... [VAR=VALUE]...
1420 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421 VAR=VALUE. See below for descriptions of some of the useful variables.
1423 Defaults for the options are specified in brackets.
1425 Configuration:
1426 -h, --help display this help and exit
1427 --help=short display options specific to this package
1428 --help=recursive display the short help of all the included packages
1429 -V, --version display version information and exit
1430 -q, --quiet, --silent do not print \`checking...' messages
1431 --cache-file=FILE cache test results in FILE [disabled]
1432 -C, --config-cache alias for \`--cache-file=config.cache'
1433 -n, --no-create do not create output files
1434 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1436 Installation directories:
1437 --prefix=PREFIX install architecture-independent files in PREFIX
1438 [$ac_default_prefix]
1439 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1440 [PREFIX]
1442 By default, \`make install' will install all the files in
1443 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1444 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445 for instance \`--prefix=\$HOME'.
1447 For better control, use the options below.
1449 Fine tuning of the installation directories:
1450 --bindir=DIR user executables [EPREFIX/bin]
1451 --sbindir=DIR system admin executables [EPREFIX/sbin]
1452 --libexecdir=DIR program executables [EPREFIX/libexec]
1453 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1454 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1455 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1456 --libdir=DIR object code libraries [EPREFIX/lib]
1457 --includedir=DIR C header files [PREFIX/include]
1458 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1459 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1460 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1461 --infodir=DIR info documentation [DATAROOTDIR/info]
1462 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1463 --mandir=DIR man documentation [DATAROOTDIR/man]
1464 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1465 --htmldir=DIR html documentation [DOCDIR]
1466 --dvidir=DIR dvi documentation [DOCDIR]
1467 --pdfdir=DIR pdf documentation [DOCDIR]
1468 --psdir=DIR ps documentation [DOCDIR]
1469 _ACEOF
1471 cat <<\_ACEOF
1473 Program names:
1474 --program-prefix=PREFIX prepend PREFIX to installed program names
1475 --program-suffix=SUFFIX append SUFFIX to installed program names
1476 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1478 System types:
1479 --build=BUILD configure for building on BUILD [guessed]
1480 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1481 --target=TARGET configure for building compilers for TARGET [HOST]
1482 _ACEOF
1485 if test -n "$ac_init_help"; then
1487 cat <<\_ACEOF
1489 Optional Features:
1490 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1491 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1492 --disable-dependency-tracking speeds up one-time build
1493 --enable-dependency-tracking do not reject slow dependency extractors
1494 --enable-shared[=PKGS] build shared libraries [default=yes]
1495 --enable-static[=PKGS] build static libraries [default=yes]
1496 --enable-fast-install[=PKGS]
1497 optimize for fast installation [default=yes]
1498 --disable-libtool-lock avoid locking (might break parallel builds)
1499 --enable-debug Enable CyaSSL debugging support (default: disabled)
1500 --enable-small Enable smallest build (default: disabled)
1501 --enable-singleThreaded Enable CyaSSL single threaded (default: disabled)
1502 --enable-dtls Enable CyaSSL DTLS (default: disabled)
1503 --enable-opensslExtra Enable extra OpenSSL API, size+ (default: disabled)
1504 --enable-ipv6 Enable testing of IPV6 (default: disabled)
1505 --enable-fastmath Enable fast math for BigInts(default: disabled)
1506 --enable-fasthugemath Enable fast math + huge code for BigInts(def: off)
1507 --enable-bigcache Enable big session cache (default: disabled)
1508 --enable-hugecache Enable huge session cache (default: disabled)
1509 --enable-sniffer Enable CyaSSL sniffer support (default: disabled)
1510 --enable-aesni Enable CyaSSL AES-NI support (default: disabled)
1511 --enable-ripemd Enable CyaSSL RIPEMD-160 support (default: disabled)
1512 --enable-sha512 Enable CyaSSL SHA-160 support (default: disabled)
1513 --enable-sessioncerts Enable session cert storing (default: disabled)
1514 --enable-keygen Enable key generation (default: disabled)
1515 --enable-certgen Enable cert generation (default: disabled)
1516 --enable-hc128 Enable HC-128 (default: disabled)
1517 --enable-psk Enable PSK (default: disabled)
1518 --enable-webServer Enable Web Server (default: disabled)
1519 --enable-ecc Enable ECC (default: disabled)
1520 --enable-ntru Enable NTRU (default: disabled)
1522 Optional Packages:
1523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1525 --with-pic try to use only PIC/non-PIC objects [default=use
1526 both]
1527 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1528 --with-libz=PATH PATH to libz install (default /usr/)
1530 Some influential environment variables:
1531 CC C compiler command
1532 CFLAGS C compiler flags
1533 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1534 nonstandard directory <lib dir>
1535 LIBS libraries to pass to the linker, e.g. -l<library>
1536 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1537 you have headers in a nonstandard directory <include dir>
1538 CCAS assembler compiler command (defaults to CC)
1539 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1540 CPP C preprocessor
1542 Use these variables to override the choices made by `configure' or to help
1543 it to find libraries and programs with nonstandard names/locations.
1545 _ACEOF
1546 ac_status=$?
1549 if test "$ac_init_help" = "recursive"; then
1550 # If there are subdirs, report their specific --help.
1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552 test -d "$ac_dir" || continue
1553 ac_builddir=.
1555 case "$ac_dir" in
1556 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1559 # A ".." for each directory in $ac_dir_suffix.
1560 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1561 case $ac_top_builddir_sub in
1562 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1564 esac ;;
1565 esac
1566 ac_abs_top_builddir=$ac_pwd
1567 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1568 # for backward compatibility:
1569 ac_top_builddir=$ac_top_build_prefix
1571 case $srcdir in
1572 .) # We are building in place.
1573 ac_srcdir=.
1574 ac_top_srcdir=$ac_top_builddir_sub
1575 ac_abs_top_srcdir=$ac_pwd ;;
1576 [\\/]* | ?:[\\/]* ) # Absolute name.
1577 ac_srcdir=$srcdir$ac_dir_suffix;
1578 ac_top_srcdir=$srcdir
1579 ac_abs_top_srcdir=$srcdir ;;
1580 *) # Relative name.
1581 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1582 ac_top_srcdir=$ac_top_build_prefix$srcdir
1583 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1584 esac
1585 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1587 cd "$ac_dir" || { ac_status=$?; continue; }
1588 # Check for guested configure.
1589 if test -f "$ac_srcdir/configure.gnu"; then
1590 echo &&
1591 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1592 elif test -f "$ac_srcdir/configure"; then
1593 echo &&
1594 $SHELL "$ac_srcdir/configure" --help=recursive
1595 else
1596 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1597 fi || ac_status=$?
1598 cd "$ac_pwd" || { ac_status=$?; break; }
1599 done
1602 test -n "$ac_init_help" && exit $ac_status
1603 if $ac_init_version; then
1604 cat <<\_ACEOF
1605 configure
1606 generated by GNU Autoconf 2.61
1608 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1609 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1610 This configure script is free software; the Free Software Foundation
1611 gives unlimited permission to copy, distribute and modify it.
1612 _ACEOF
1613 exit
1615 cat >config.log <<_ACEOF
1616 This file contains any messages produced by compilers while
1617 running configure, to aid debugging if configure makes a mistake.
1619 It was created by $as_me, which was
1620 generated by GNU Autoconf 2.61. Invocation command line was
1622 $ $0 $@
1624 _ACEOF
1625 exec 5>>config.log
1627 cat <<_ASUNAME
1628 ## --------- ##
1629 ## Platform. ##
1630 ## --------- ##
1632 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1633 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1634 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1635 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1636 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1638 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1639 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1641 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1642 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1643 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1644 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1645 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1646 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1647 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1649 _ASUNAME
1651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652 for as_dir in $PATH
1654 IFS=$as_save_IFS
1655 test -z "$as_dir" && as_dir=.
1656 echo "PATH: $as_dir"
1657 done
1658 IFS=$as_save_IFS
1660 } >&5
1662 cat >&5 <<_ACEOF
1665 ## ----------- ##
1666 ## Core tests. ##
1667 ## ----------- ##
1669 _ACEOF
1672 # Keep a trace of the command line.
1673 # Strip out --no-create and --no-recursion so they do not pile up.
1674 # Strip out --silent because we don't want to record it for future runs.
1675 # Also quote any args containing shell meta-characters.
1676 # Make two passes to allow for proper duplicate-argument suppression.
1677 ac_configure_args=
1678 ac_configure_args0=
1679 ac_configure_args1=
1680 ac_must_keep_next=false
1681 for ac_pass in 1 2
1683 for ac_arg
1685 case $ac_arg in
1686 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1688 | -silent | --silent | --silen | --sile | --sil)
1689 continue ;;
1690 *\'*)
1691 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1692 esac
1693 case $ac_pass in
1694 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1696 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1697 if test $ac_must_keep_next = true; then
1698 ac_must_keep_next=false # Got value, back to normal.
1699 else
1700 case $ac_arg in
1701 *=* | --config-cache | -C | -disable-* | --disable-* \
1702 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1703 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1704 | -with-* | --with-* | -without-* | --without-* | --x)
1705 case "$ac_configure_args0 " in
1706 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1707 esac
1709 -* ) ac_must_keep_next=true ;;
1710 esac
1712 ac_configure_args="$ac_configure_args '$ac_arg'"
1714 esac
1715 done
1716 done
1717 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1718 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1720 # When interrupted or exit'd, cleanup temporary files, and complete
1721 # config.log. We remove comments because anyway the quotes in there
1722 # would cause problems or look ugly.
1723 # WARNING: Use '\'' to represent an apostrophe within the trap.
1724 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1725 trap 'exit_status=$?
1726 # Save into config.log some information that might help in debugging.
1728 echo
1730 cat <<\_ASBOX
1731 ## ---------------- ##
1732 ## Cache variables. ##
1733 ## ---------------- ##
1734 _ASBOX
1735 echo
1736 # The following way of writing the cache mishandles newlines in values,
1738 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1739 eval ac_val=\$$ac_var
1740 case $ac_val in #(
1741 *${as_nl}*)
1742 case $ac_var in #(
1743 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1744 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1745 esac
1746 case $ac_var in #(
1747 _ | IFS | as_nl) ;; #(
1748 *) $as_unset $ac_var ;;
1749 esac ;;
1750 esac
1751 done
1752 (set) 2>&1 |
1753 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1754 *${as_nl}ac_space=\ *)
1755 sed -n \
1756 "s/'\''/'\''\\\\'\'''\''/g;
1757 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1758 ;; #(
1760 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1762 esac |
1763 sort
1765 echo
1767 cat <<\_ASBOX
1768 ## ----------------- ##
1769 ## Output variables. ##
1770 ## ----------------- ##
1771 _ASBOX
1772 echo
1773 for ac_var in $ac_subst_vars
1775 eval ac_val=\$$ac_var
1776 case $ac_val in
1777 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1778 esac
1779 echo "$ac_var='\''$ac_val'\''"
1780 done | sort
1781 echo
1783 if test -n "$ac_subst_files"; then
1784 cat <<\_ASBOX
1785 ## ------------------- ##
1786 ## File substitutions. ##
1787 ## ------------------- ##
1788 _ASBOX
1789 echo
1790 for ac_var in $ac_subst_files
1792 eval ac_val=\$$ac_var
1793 case $ac_val in
1794 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1795 esac
1796 echo "$ac_var='\''$ac_val'\''"
1797 done | sort
1798 echo
1801 if test -s confdefs.h; then
1802 cat <<\_ASBOX
1803 ## ----------- ##
1804 ## confdefs.h. ##
1805 ## ----------- ##
1806 _ASBOX
1807 echo
1808 cat confdefs.h
1809 echo
1811 test "$ac_signal" != 0 &&
1812 echo "$as_me: caught signal $ac_signal"
1813 echo "$as_me: exit $exit_status"
1814 } >&5
1815 rm -f core *.core core.conftest.* &&
1816 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1817 exit $exit_status
1819 for ac_signal in 1 2 13 15; do
1820 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1821 done
1822 ac_signal=0
1824 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1825 rm -f -r conftest* confdefs.h
1827 # Predefined preprocessor variables.
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_NAME "$PACKAGE_NAME"
1831 _ACEOF
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1836 _ACEOF
1839 cat >>confdefs.h <<_ACEOF
1840 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1841 _ACEOF
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE_STRING "$PACKAGE_STRING"
1846 _ACEOF
1849 cat >>confdefs.h <<_ACEOF
1850 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1851 _ACEOF
1854 # Let the site file select an alternate cache file if it wants to.
1855 # Prefer explicitly selected file to automatically selected ones.
1856 if test -n "$CONFIG_SITE"; then
1857 set x "$CONFIG_SITE"
1858 elif test "x$prefix" != xNONE; then
1859 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1860 else
1861 set x "$ac_default_prefix/share/config.site" \
1862 "$ac_default_prefix/etc/config.site"
1864 shift
1865 for ac_site_file
1867 if test -r "$ac_site_file"; then
1868 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1869 echo "$as_me: loading site script $ac_site_file" >&6;}
1870 sed 's/^/| /' "$ac_site_file" >&5
1871 . "$ac_site_file"
1873 done
1875 if test -r "$cache_file"; then
1876 # Some versions of bash will fail to source /dev/null (special
1877 # files actually), so we avoid doing that.
1878 if test -f "$cache_file"; then
1879 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1880 echo "$as_me: loading cache $cache_file" >&6;}
1881 case $cache_file in
1882 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1883 *) . "./$cache_file";;
1884 esac
1886 else
1887 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1888 echo "$as_me: creating cache $cache_file" >&6;}
1889 >$cache_file
1892 # Check that the precious variables saved in the cache have kept the same
1893 # value.
1894 ac_cache_corrupted=false
1895 for ac_var in $ac_precious_vars; do
1896 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1897 eval ac_new_set=\$ac_env_${ac_var}_set
1898 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1899 eval ac_new_val=\$ac_env_${ac_var}_value
1900 case $ac_old_set,$ac_new_set in
1901 set,)
1902 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1903 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1904 ac_cache_corrupted=: ;;
1905 ,set)
1906 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1907 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1908 ac_cache_corrupted=: ;;
1909 ,);;
1911 if test "x$ac_old_val" != "x$ac_new_val"; then
1912 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1913 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1914 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1915 echo "$as_me: former value: $ac_old_val" >&2;}
1916 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1917 echo "$as_me: current value: $ac_new_val" >&2;}
1918 ac_cache_corrupted=:
1919 fi;;
1920 esac
1921 # Pass precious variables to config.status.
1922 if test "$ac_new_set" = set; then
1923 case $ac_new_val in
1924 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1925 *) ac_arg=$ac_var=$ac_new_val ;;
1926 esac
1927 case " $ac_configure_args " in
1928 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1929 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1930 esac
1932 done
1933 if $ac_cache_corrupted; then
1934 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1935 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1936 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1937 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1938 { (exit 1); exit 1; }; }
1957 ac_ext=c
1958 ac_cpp='$CPP $CPPFLAGS'
1959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1964 ac_aux_dir=
1965 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1966 if test -f "$ac_dir/install-sh"; then
1967 ac_aux_dir=$ac_dir
1968 ac_install_sh="$ac_aux_dir/install-sh -c"
1969 break
1970 elif test -f "$ac_dir/install.sh"; then
1971 ac_aux_dir=$ac_dir
1972 ac_install_sh="$ac_aux_dir/install.sh -c"
1973 break
1974 elif test -f "$ac_dir/shtool"; then
1975 ac_aux_dir=$ac_dir
1976 ac_install_sh="$ac_aux_dir/shtool install -c"
1977 break
1979 done
1980 if test -z "$ac_aux_dir"; then
1981 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1982 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1983 { (exit 1); exit 1; }; }
1986 # These three variables are undocumented and unsupported,
1987 # and are intended to be withdrawn in a future Autoconf release.
1988 # They can cause serious problems if a builder's source tree is in a directory
1989 # whose full name contains unusual characters.
1990 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1991 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1992 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1995 # Make sure we can run config.sub.
1996 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1997 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1998 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1999 { (exit 1); exit 1; }; }
2001 { echo "$as_me:$LINENO: checking build system type" >&5
2002 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2003 if test "${ac_cv_build+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006 ac_build_alias=$build_alias
2007 test "x$ac_build_alias" = x &&
2008 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2009 test "x$ac_build_alias" = x &&
2010 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2011 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2012 { (exit 1); exit 1; }; }
2013 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2014 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2015 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2016 { (exit 1); exit 1; }; }
2019 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2020 echo "${ECHO_T}$ac_cv_build" >&6; }
2021 case $ac_cv_build in
2022 *-*-*) ;;
2023 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2024 echo "$as_me: error: invalid value of canonical build" >&2;}
2025 { (exit 1); exit 1; }; };;
2026 esac
2027 build=$ac_cv_build
2028 ac_save_IFS=$IFS; IFS='-'
2029 set x $ac_cv_build
2030 shift
2031 build_cpu=$1
2032 build_vendor=$2
2033 shift; shift
2034 # Remember, the first character of IFS is used to create $*,
2035 # except with old shells:
2036 build_os=$*
2037 IFS=$ac_save_IFS
2038 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2041 { echo "$as_me:$LINENO: checking host system type" >&5
2042 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2043 if test "${ac_cv_host+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046 if test "x$host_alias" = x; then
2047 ac_cv_host=$ac_cv_build
2048 else
2049 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2050 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2051 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2052 { (exit 1); exit 1; }; }
2056 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2057 echo "${ECHO_T}$ac_cv_host" >&6; }
2058 case $ac_cv_host in
2059 *-*-*) ;;
2060 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2061 echo "$as_me: error: invalid value of canonical host" >&2;}
2062 { (exit 1); exit 1; }; };;
2063 esac
2064 host=$ac_cv_host
2065 ac_save_IFS=$IFS; IFS='-'
2066 set x $ac_cv_host
2067 shift
2068 host_cpu=$1
2069 host_vendor=$2
2070 shift; shift
2071 # Remember, the first character of IFS is used to create $*,
2072 # except with old shells:
2073 host_os=$*
2074 IFS=$ac_save_IFS
2075 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2078 { echo "$as_me:$LINENO: checking target system type" >&5
2079 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2080 if test "${ac_cv_target+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 else
2083 if test "x$target_alias" = x; then
2084 ac_cv_target=$ac_cv_host
2085 else
2086 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2087 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2088 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2089 { (exit 1); exit 1; }; }
2093 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2094 echo "${ECHO_T}$ac_cv_target" >&6; }
2095 case $ac_cv_target in
2096 *-*-*) ;;
2097 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2098 echo "$as_me: error: invalid value of canonical target" >&2;}
2099 { (exit 1); exit 1; }; };;
2100 esac
2101 target=$ac_cv_target
2102 ac_save_IFS=$IFS; IFS='-'
2103 set x $ac_cv_target
2104 shift
2105 target_cpu=$1
2106 target_vendor=$2
2107 shift; shift
2108 # Remember, the first character of IFS is used to create $*,
2109 # except with old shells:
2110 target_os=$*
2111 IFS=$ac_save_IFS
2112 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2115 # The aliases save the names the user supplied, while $host etc.
2116 # will get canonicalized.
2117 test -n "$target_alias" &&
2118 test "$program_prefix$program_suffix$program_transform_name" = \
2119 NONENONEs,x,x, &&
2120 program_prefix=${target_alias}-
2121 am__api_version='1.10'
2123 # Find a good install program. We prefer a C program (faster),
2124 # so one script is as good as another. But avoid the broken or
2125 # incompatible versions:
2126 # SysV /etc/install, /usr/sbin/install
2127 # SunOS /usr/etc/install
2128 # IRIX /sbin/install
2129 # AIX /bin/install
2130 # AmigaOS /C/install, which installs bootblocks on floppy discs
2131 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2132 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2133 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2134 # OS/2's system install, which has a completely different semantic
2135 # ./install, which can be erroneously created by make from ./install.sh.
2136 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2137 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2138 if test -z "$INSTALL"; then
2139 if test "${ac_cv_path_install+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2141 else
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 for as_dir in $PATH
2145 IFS=$as_save_IFS
2146 test -z "$as_dir" && as_dir=.
2147 # Account for people who put trailing slashes in PATH elements.
2148 case $as_dir/ in
2149 ./ | .// | /cC/* | \
2150 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2151 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2152 /usr/ucb/* ) ;;
2154 # OSF1 and SCO ODT 3.0 have their own names for install.
2155 # Don't use installbsd from OSF since it installs stuff as root
2156 # by default.
2157 for ac_prog in ginstall scoinst install; do
2158 for ac_exec_ext in '' $ac_executable_extensions; do
2159 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2160 if test $ac_prog = install &&
2161 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2162 # AIX install. It has an incompatible calling convention.
2164 elif test $ac_prog = install &&
2165 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2166 # program-specific install script used by HP pwplus--don't use.
2168 else
2169 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2170 break 3
2173 done
2174 done
2176 esac
2177 done
2178 IFS=$as_save_IFS
2182 if test "${ac_cv_path_install+set}" = set; then
2183 INSTALL=$ac_cv_path_install
2184 else
2185 # As a last resort, use the slow shell script. Don't cache a
2186 # value for INSTALL within a source directory, because that will
2187 # break other packages using the cache if that directory is
2188 # removed, or if the value is a relative name.
2189 INSTALL=$ac_install_sh
2192 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2193 echo "${ECHO_T}$INSTALL" >&6; }
2195 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2196 # It thinks the first close brace ends the variable substitution.
2197 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2199 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2201 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2203 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2204 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2205 # Just in case
2206 sleep 1
2207 echo timestamp > conftest.file
2208 # Do `set' in a subshell so we don't clobber the current shell's
2209 # arguments. Must try -L first in case configure is actually a
2210 # symlink; some systems play weird games with the mod time of symlinks
2211 # (eg FreeBSD returns the mod time of the symlink's containing
2212 # directory).
2213 if (
2214 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2215 if test "$*" = "X"; then
2216 # -L didn't work.
2217 set X `ls -t $srcdir/configure conftest.file`
2219 rm -f conftest.file
2220 if test "$*" != "X $srcdir/configure conftest.file" \
2221 && test "$*" != "X conftest.file $srcdir/configure"; then
2223 # If neither matched, then we have a broken ls. This can happen
2224 # if, for instance, CONFIG_SHELL is bash and it inherits a
2225 # broken ls alias from the environment. This has actually
2226 # happened. Such a system could not be considered "sane".
2227 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2228 alias in your environment" >&5
2229 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2230 alias in your environment" >&2;}
2231 { (exit 1); exit 1; }; }
2234 test "$2" = conftest.file
2236 then
2237 # Ok.
2239 else
2240 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2241 Check your system clock" >&5
2242 echo "$as_me: error: newly created file is older than distributed files!
2243 Check your system clock" >&2;}
2244 { (exit 1); exit 1; }; }
2246 { echo "$as_me:$LINENO: result: yes" >&5
2247 echo "${ECHO_T}yes" >&6; }
2248 test "$program_prefix" != NONE &&
2249 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2250 # Use a double $ so make ignores it.
2251 test "$program_suffix" != NONE &&
2252 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2253 # Double any \ or $. echo might interpret backslashes.
2254 # By default was `s,x,x', remove it if useless.
2255 cat <<\_ACEOF >conftest.sed
2256 s/[\\$]/&&/g;s/;s,x,x,$//
2257 _ACEOF
2258 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2259 rm -f conftest.sed
2261 # expand $ac_aux_dir to an absolute path
2262 am_aux_dir=`cd $ac_aux_dir && pwd`
2264 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2265 # Use eval to expand $SHELL
2266 if eval "$MISSING --run true"; then
2267 am_missing_run="$MISSING --run "
2268 else
2269 am_missing_run=
2270 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2271 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2274 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2275 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2276 if test -z "$MKDIR_P"; then
2277 if test "${ac_cv_path_mkdir+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2283 IFS=$as_save_IFS
2284 test -z "$as_dir" && as_dir=.
2285 for ac_prog in mkdir gmkdir; do
2286 for ac_exec_ext in '' $ac_executable_extensions; do
2287 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2288 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2289 'mkdir (GNU coreutils) '* | \
2290 'mkdir (coreutils) '* | \
2291 'mkdir (fileutils) '4.1*)
2292 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2293 break 3;;
2294 esac
2295 done
2296 done
2297 done
2298 IFS=$as_save_IFS
2302 if test "${ac_cv_path_mkdir+set}" = set; then
2303 MKDIR_P="$ac_cv_path_mkdir -p"
2304 else
2305 # As a last resort, use the slow shell script. Don't cache a
2306 # value for MKDIR_P within a source directory, because that will
2307 # break other packages using the cache if that directory is
2308 # removed, or if the value is a relative name.
2309 test -d ./--version && rmdir ./--version
2310 MKDIR_P="$ac_install_sh -d"
2313 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2314 echo "${ECHO_T}$MKDIR_P" >&6; }
2316 mkdir_p="$MKDIR_P"
2317 case $mkdir_p in
2318 [\\/$]* | ?:[\\/]*) ;;
2319 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2320 esac
2322 for ac_prog in gawk mawk nawk awk
2324 # Extract the first word of "$ac_prog", so it can be a program name with args.
2325 set dummy $ac_prog; ac_word=$2
2326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2328 if test "${ac_cv_prog_AWK+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 else
2331 if test -n "$AWK"; then
2332 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2333 else
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 for as_dir in $PATH
2337 IFS=$as_save_IFS
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2341 ac_cv_prog_AWK="$ac_prog"
2342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 break 2
2345 done
2346 done
2347 IFS=$as_save_IFS
2351 AWK=$ac_cv_prog_AWK
2352 if test -n "$AWK"; then
2353 { echo "$as_me:$LINENO: result: $AWK" >&5
2354 echo "${ECHO_T}$AWK" >&6; }
2355 else
2356 { echo "$as_me:$LINENO: result: no" >&5
2357 echo "${ECHO_T}no" >&6; }
2361 test -n "$AWK" && break
2362 done
2364 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2365 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2366 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2367 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370 cat >conftest.make <<\_ACEOF
2371 SHELL = /bin/sh
2372 all:
2373 @echo '@@@%%%=$(MAKE)=@@@%%%'
2374 _ACEOF
2375 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2376 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2377 *@@@%%%=?*=@@@%%%*)
2378 eval ac_cv_prog_make_${ac_make}_set=yes;;
2380 eval ac_cv_prog_make_${ac_make}_set=no;;
2381 esac
2382 rm -f conftest.make
2384 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2385 { echo "$as_me:$LINENO: result: yes" >&5
2386 echo "${ECHO_T}yes" >&6; }
2387 SET_MAKE=
2388 else
2389 { echo "$as_me:$LINENO: result: no" >&5
2390 echo "${ECHO_T}no" >&6; }
2391 SET_MAKE="MAKE=${MAKE-make}"
2394 rm -rf .tst 2>/dev/null
2395 mkdir .tst 2>/dev/null
2396 if test -d .tst; then
2397 am__leading_dot=.
2398 else
2399 am__leading_dot=_
2401 rmdir .tst 2>/dev/null
2403 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2404 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2405 # is not polluted with repeated "-I."
2406 am__isrc=' -I$(srcdir)'
2407 # test to see if srcdir already configured
2408 if test -f $srcdir/config.status; then
2409 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2410 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2411 { (exit 1); exit 1; }; }
2415 # test whether we have cygpath
2416 if test -z "$CYGPATH_W"; then
2417 if (cygpath --version) >/dev/null 2>/dev/null; then
2418 CYGPATH_W='cygpath -w'
2419 else
2420 CYGPATH_W=echo
2425 # Define the identity of the package.
2426 PACKAGE=cyassl
2427 VERSION=1.9.0
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE "$PACKAGE"
2432 _ACEOF
2435 cat >>confdefs.h <<_ACEOF
2436 #define VERSION "$VERSION"
2437 _ACEOF
2439 # Some tools Automake needs.
2441 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2444 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2447 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2450 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2453 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2455 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2457 # Installed binaries are usually stripped using `strip' when the user
2458 # run `make install-strip'. However `strip' might not be the right
2459 # tool to use in cross-compilation environments, therefore Automake
2460 # will honor the `STRIP' environment variable to overrule this program.
2461 if test "$cross_compiling" != no; then
2462 if test -n "$ac_tool_prefix"; then
2463 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2464 set dummy ${ac_tool_prefix}strip; ac_word=$2
2465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2467 if test "${ac_cv_prog_STRIP+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 else
2470 if test -n "$STRIP"; then
2471 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2472 else
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 for as_dir in $PATH
2476 IFS=$as_save_IFS
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 break 2
2484 done
2485 done
2486 IFS=$as_save_IFS
2490 STRIP=$ac_cv_prog_STRIP
2491 if test -n "$STRIP"; then
2492 { echo "$as_me:$LINENO: result: $STRIP" >&5
2493 echo "${ECHO_T}$STRIP" >&6; }
2494 else
2495 { echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6; }
2501 if test -z "$ac_cv_prog_STRIP"; then
2502 ac_ct_STRIP=$STRIP
2503 # Extract the first word of "strip", so it can be a program name with args.
2504 set dummy strip; ac_word=$2
2505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2507 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510 if test -n "$ac_ct_STRIP"; then
2511 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520 ac_cv_prog_ac_ct_STRIP="strip"
2521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522 break 2
2524 done
2525 done
2526 IFS=$as_save_IFS
2530 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2531 if test -n "$ac_ct_STRIP"; then
2532 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2533 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2534 else
2535 { echo "$as_me:$LINENO: result: no" >&5
2536 echo "${ECHO_T}no" >&6; }
2539 if test "x$ac_ct_STRIP" = x; then
2540 STRIP=":"
2541 else
2542 case $cross_compiling:$ac_tool_warned in
2543 yes:)
2544 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2545 whose name does not start with the host triplet. If you think this
2546 configuration is useful to you, please write to autoconf@gnu.org." >&5
2547 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2548 whose name does not start with the host triplet. If you think this
2549 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2550 ac_tool_warned=yes ;;
2551 esac
2552 STRIP=$ac_ct_STRIP
2554 else
2555 STRIP="$ac_cv_prog_STRIP"
2559 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2561 # We need awk for the "check" target. The system "awk" is bad on
2562 # some platforms.
2563 # Always define AMTAR for backward compatibility.
2565 AMTAR=${AMTAR-"${am_missing_run}tar"}
2567 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2572 # !!! also change in ssl.h !!!
2573 ac_config_headers="$ac_config_headers ctaocrypt/include/config.h"
2577 #dnl Include m4
2578 #sinclude(lib_socket_nsl.m4)
2579 #sinclude(acx_pthread.m4)
2583 # make sure configure doesn't add to CFLAGS
2584 CFLAGS="$CFLAGS $C_EXTRA_FLAGS"
2586 ac_ext=c
2587 ac_cpp='$CPP $CPPFLAGS'
2588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2591 if test -n "$ac_tool_prefix"; then
2592 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2593 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2596 if test "${ac_cv_prog_CC+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2598 else
2599 if test -n "$CC"; then
2600 ac_cv_prog_CC="$CC" # Let the user override the test.
2601 else
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 for as_dir in $PATH
2605 IFS=$as_save_IFS
2606 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2609 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 break 2
2613 done
2614 done
2615 IFS=$as_save_IFS
2619 CC=$ac_cv_prog_CC
2620 if test -n "$CC"; then
2621 { echo "$as_me:$LINENO: result: $CC" >&5
2622 echo "${ECHO_T}$CC" >&6; }
2623 else
2624 { echo "$as_me:$LINENO: result: no" >&5
2625 echo "${ECHO_T}no" >&6; }
2630 if test -z "$ac_cv_prog_CC"; then
2631 ac_ct_CC=$CC
2632 # Extract the first word of "gcc", so it can be a program name with args.
2633 set dummy gcc; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639 if test -n "$ac_ct_CC"; then
2640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_ac_ct_CC="gcc"
2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 break 2
2653 done
2654 done
2655 IFS=$as_save_IFS
2659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2660 if test -n "$ac_ct_CC"; then
2661 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2662 echo "${ECHO_T}$ac_ct_CC" >&6; }
2663 else
2664 { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2668 if test "x$ac_ct_CC" = x; then
2669 CC=""
2670 else
2671 case $cross_compiling:$ac_tool_warned in
2672 yes:)
2673 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2674 whose name does not start with the host triplet. If you think this
2675 configuration is useful to you, please write to autoconf@gnu.org." >&5
2676 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2677 whose name does not start with the host triplet. If you think this
2678 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2679 ac_tool_warned=yes ;;
2680 esac
2681 CC=$ac_ct_CC
2683 else
2684 CC="$ac_cv_prog_CC"
2687 if test -z "$CC"; then
2688 if test -n "$ac_tool_prefix"; then
2689 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2690 set dummy ${ac_tool_prefix}cc; ac_word=$2
2691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2693 if test "${ac_cv_prog_CC+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2695 else
2696 if test -n "$CC"; then
2697 ac_cv_prog_CC="$CC" # Let the user override the test.
2698 else
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 for as_dir in $PATH
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706 ac_cv_prog_CC="${ac_tool_prefix}cc"
2707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 break 2
2710 done
2711 done
2712 IFS=$as_save_IFS
2716 CC=$ac_cv_prog_CC
2717 if test -n "$CC"; then
2718 { echo "$as_me:$LINENO: result: $CC" >&5
2719 echo "${ECHO_T}$CC" >&6; }
2720 else
2721 { echo "$as_me:$LINENO: result: no" >&5
2722 echo "${ECHO_T}no" >&6; }
2728 if test -z "$CC"; then
2729 # Extract the first word of "cc", so it can be a program name with args.
2730 set dummy cc; ac_word=$2
2731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2733 if test "${ac_cv_prog_CC+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736 if test -n "$CC"; then
2737 ac_cv_prog_CC="$CC" # Let the user override the test.
2738 else
2739 ac_prog_rejected=no
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2747 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2748 ac_prog_rejected=yes
2749 continue
2751 ac_cv_prog_CC="cc"
2752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 break 2
2755 done
2756 done
2757 IFS=$as_save_IFS
2759 if test $ac_prog_rejected = yes; then
2760 # We found a bogon in the path, so make sure we never use it.
2761 set dummy $ac_cv_prog_CC
2762 shift
2763 if test $# != 0; then
2764 # We chose a different compiler from the bogus one.
2765 # However, it has the same basename, so the bogon will be chosen
2766 # first if we set CC to just the basename; use the full file name.
2767 shift
2768 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2773 CC=$ac_cv_prog_CC
2774 if test -n "$CC"; then
2775 { echo "$as_me:$LINENO: result: $CC" >&5
2776 echo "${ECHO_T}$CC" >&6; }
2777 else
2778 { echo "$as_me:$LINENO: result: no" >&5
2779 echo "${ECHO_T}no" >&6; }
2784 if test -z "$CC"; then
2785 if test -n "$ac_tool_prefix"; then
2786 for ac_prog in cl.exe
2788 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2789 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2792 if test "${ac_cv_prog_CC+set}" = set; then
2793 echo $ECHO_N "(cached) $ECHO_C" >&6
2794 else
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2805 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 break 2
2809 done
2810 done
2811 IFS=$as_save_IFS
2815 CC=$ac_cv_prog_CC
2816 if test -n "$CC"; then
2817 { echo "$as_me:$LINENO: result: $CC" >&5
2818 echo "${ECHO_T}$CC" >&6; }
2819 else
2820 { echo "$as_me:$LINENO: result: no" >&5
2821 echo "${ECHO_T}no" >&6; }
2825 test -n "$CC" && break
2826 done
2828 if test -z "$CC"; then
2829 ac_ct_CC=$CC
2830 for ac_prog in cl.exe
2832 # Extract the first word of "$ac_prog", so it can be a program name with args.
2833 set dummy $ac_prog; ac_word=$2
2834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2836 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2837 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 else
2839 if test -n "$ac_ct_CC"; then
2840 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2841 else
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 for as_dir in $PATH
2845 IFS=$as_save_IFS
2846 test -z "$as_dir" && as_dir=.
2847 for ac_exec_ext in '' $ac_executable_extensions; do
2848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2849 ac_cv_prog_ac_ct_CC="$ac_prog"
2850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 break 2
2853 done
2854 done
2855 IFS=$as_save_IFS
2859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2860 if test -n "$ac_ct_CC"; then
2861 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2862 echo "${ECHO_T}$ac_ct_CC" >&6; }
2863 else
2864 { echo "$as_me:$LINENO: result: no" >&5
2865 echo "${ECHO_T}no" >&6; }
2869 test -n "$ac_ct_CC" && break
2870 done
2872 if test "x$ac_ct_CC" = x; then
2873 CC=""
2874 else
2875 case $cross_compiling:$ac_tool_warned in
2876 yes:)
2877 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2878 whose name does not start with the host triplet. If you think this
2879 configuration is useful to you, please write to autoconf@gnu.org." >&5
2880 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2881 whose name does not start with the host triplet. If you think this
2882 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2883 ac_tool_warned=yes ;;
2884 esac
2885 CC=$ac_ct_CC
2892 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2893 See \`config.log' for more details." >&5
2894 echo "$as_me: error: no acceptable C compiler found in \$PATH
2895 See \`config.log' for more details." >&2;}
2896 { (exit 1); exit 1; }; }
2898 # Provide some information about the compiler.
2899 echo "$as_me:$LINENO: checking for C compiler version" >&5
2900 ac_compiler=`set X $ac_compile; echo $2`
2901 { (ac_try="$ac_compiler --version >&5"
2902 case "(($ac_try" in
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2905 esac
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compiler --version >&5") 2>&5
2908 ac_status=$?
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }
2911 { (ac_try="$ac_compiler -v >&5"
2912 case "(($ac_try" in
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2915 esac
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_compiler -v >&5") 2>&5
2918 ac_status=$?
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }
2921 { (ac_try="$ac_compiler -V >&5"
2922 case "(($ac_try" in
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2925 esac
2926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927 (eval "$ac_compiler -V >&5") 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }
2932 cat >conftest.$ac_ext <<_ACEOF
2933 /* confdefs.h. */
2934 _ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h. */
2940 main ()
2944 return 0;
2946 _ACEOF
2947 ac_clean_files_save=$ac_clean_files
2948 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2949 # Try to create an executable without -o first, disregard a.out.
2950 # It will help us diagnose broken compilers, and finding out an intuition
2951 # of exeext.
2952 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2953 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2954 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2956 # List of possible output files, starting from the most likely.
2957 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2958 # only as a last resort. b.out is created by i960 compilers.
2959 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2961 # The IRIX 6 linker writes into existing files which may not be
2962 # executable, retaining their permissions. Remove them first so a
2963 # subsequent execution test works.
2964 ac_rmfiles=
2965 for ac_file in $ac_files
2967 case $ac_file in
2968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2969 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2970 esac
2971 done
2972 rm -f $ac_rmfiles
2974 if { (ac_try="$ac_link_default"
2975 case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978 esac
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_link_default") 2>&5
2981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; then
2984 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2985 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2986 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2987 # so that the user can short-circuit this test for compilers unknown to
2988 # Autoconf.
2989 for ac_file in $ac_files ''
2991 test -f "$ac_file" || continue
2992 case $ac_file in
2993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2995 [ab].out )
2996 # We found the default executable, but exeext='' is most
2997 # certainly right.
2998 break;;
2999 *.* )
3000 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3001 then :; else
3002 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3004 # We set ac_cv_exeext here because the later test for it is not
3005 # safe: cross compilers may not add the suffix if given an `-o'
3006 # argument, so we may need to know it at that point already.
3007 # Even if this section looks crufty: it has the advantage of
3008 # actually working.
3009 break;;
3011 break;;
3012 esac
3013 done
3014 test "$ac_cv_exeext" = no && ac_cv_exeext=
3016 else
3017 ac_file=''
3020 { echo "$as_me:$LINENO: result: $ac_file" >&5
3021 echo "${ECHO_T}$ac_file" >&6; }
3022 if test -z "$ac_file"; then
3023 echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3026 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3027 See \`config.log' for more details." >&5
3028 echo "$as_me: error: C compiler cannot create executables
3029 See \`config.log' for more details." >&2;}
3030 { (exit 77); exit 77; }; }
3033 ac_exeext=$ac_cv_exeext
3035 # Check that the compiler produces executables we can run. If not, either
3036 # the compiler is broken, or we cross compile.
3037 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3038 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3039 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3040 # If not cross compiling, check that we can run a simple program.
3041 if test "$cross_compiling" != yes; then
3042 if { ac_try='./$ac_file'
3043 { (case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046 esac
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_try") 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; }; then
3052 cross_compiling=no
3053 else
3054 if test "$cross_compiling" = maybe; then
3055 cross_compiling=yes
3056 else
3057 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3058 If you meant to cross compile, use \`--host'.
3059 See \`config.log' for more details." >&5
3060 echo "$as_me: error: cannot run C compiled programs.
3061 If you meant to cross compile, use \`--host'.
3062 See \`config.log' for more details." >&2;}
3063 { (exit 1); exit 1; }; }
3067 { echo "$as_me:$LINENO: result: yes" >&5
3068 echo "${ECHO_T}yes" >&6; }
3070 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3071 ac_clean_files=$ac_clean_files_save
3072 # Check that the compiler produces executables we can run. If not, either
3073 # the compiler is broken, or we cross compile.
3074 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3075 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3076 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3077 echo "${ECHO_T}$cross_compiling" >&6; }
3079 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3080 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3081 if { (ac_try="$ac_link"
3082 case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085 esac
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_link") 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; then
3091 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3092 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3093 # work properly (i.e., refer to `conftest.exe'), while it won't with
3094 # `rm'.
3095 for ac_file in conftest.exe conftest conftest.*; do
3096 test -f "$ac_file" || continue
3097 case $ac_file in
3098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3099 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3100 break;;
3101 * ) break;;
3102 esac
3103 done
3104 else
3105 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3106 See \`config.log' for more details." >&5
3107 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3108 See \`config.log' for more details." >&2;}
3109 { (exit 1); exit 1; }; }
3112 rm -f conftest$ac_cv_exeext
3113 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3114 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3116 rm -f conftest.$ac_ext
3117 EXEEXT=$ac_cv_exeext
3118 ac_exeext=$EXEEXT
3119 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3120 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3121 if test "${ac_cv_objext+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 else
3124 cat >conftest.$ac_ext <<_ACEOF
3125 /* confdefs.h. */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3132 main ()
3136 return 0;
3138 _ACEOF
3139 rm -f conftest.o conftest.obj
3140 if { (ac_try="$ac_compile"
3141 case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3144 esac
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_compile") 2>&5
3147 ac_status=$?
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; then
3150 for ac_file in conftest.o conftest.obj conftest.*; do
3151 test -f "$ac_file" || continue;
3152 case $ac_file in
3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3154 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3155 break;;
3156 esac
3157 done
3158 else
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3162 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3163 See \`config.log' for more details." >&5
3164 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3165 See \`config.log' for more details." >&2;}
3166 { (exit 1); exit 1; }; }
3169 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3171 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3172 echo "${ECHO_T}$ac_cv_objext" >&6; }
3173 OBJEXT=$ac_cv_objext
3174 ac_objext=$OBJEXT
3175 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3176 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3177 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3178 echo $ECHO_N "(cached) $ECHO_C" >&6
3179 else
3180 cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h. */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3188 main ()
3190 #ifndef __GNUC__
3191 choke me
3192 #endif
3195 return 0;
3197 _ACEOF
3198 rm -f conftest.$ac_objext
3199 if { (ac_try="$ac_compile"
3200 case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203 esac
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_compile") 2>conftest.er1
3206 ac_status=$?
3207 grep -v '^ *+' conftest.er1 >conftest.err
3208 rm -f conftest.er1
3209 cat conftest.err >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } && {
3212 test -z "$ac_c_werror_flag" ||
3213 test ! -s conftest.err
3214 } && test -s conftest.$ac_objext; then
3215 ac_compiler_gnu=yes
3216 else
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3220 ac_compiler_gnu=no
3223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3227 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3228 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3229 GCC=`test $ac_compiler_gnu = yes && echo yes`
3230 ac_test_CFLAGS=${CFLAGS+set}
3231 ac_save_CFLAGS=$CFLAGS
3232 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3233 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3234 if test "${ac_cv_prog_cc_g+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237 ac_save_c_werror_flag=$ac_c_werror_flag
3238 ac_c_werror_flag=yes
3239 ac_cv_prog_cc_g=no
3240 CFLAGS="-g"
3241 cat >conftest.$ac_ext <<_ACEOF
3242 /* confdefs.h. */
3243 _ACEOF
3244 cat confdefs.h >>conftest.$ac_ext
3245 cat >>conftest.$ac_ext <<_ACEOF
3246 /* end confdefs.h. */
3249 main ()
3253 return 0;
3255 _ACEOF
3256 rm -f conftest.$ac_objext
3257 if { (ac_try="$ac_compile"
3258 case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261 esac
3262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3263 (eval "$ac_compile") 2>conftest.er1
3264 ac_status=$?
3265 grep -v '^ *+' conftest.er1 >conftest.err
3266 rm -f conftest.er1
3267 cat conftest.err >&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } && {
3270 test -z "$ac_c_werror_flag" ||
3271 test ! -s conftest.err
3272 } && test -s conftest.$ac_objext; then
3273 ac_cv_prog_cc_g=yes
3274 else
3275 echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3278 CFLAGS=""
3279 cat >conftest.$ac_ext <<_ACEOF
3280 /* confdefs.h. */
3281 _ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h. */
3287 main ()
3291 return 0;
3293 _ACEOF
3294 rm -f conftest.$ac_objext
3295 if { (ac_try="$ac_compile"
3296 case "(($ac_try" in
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3299 esac
3300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301 (eval "$ac_compile") 2>conftest.er1
3302 ac_status=$?
3303 grep -v '^ *+' conftest.er1 >conftest.err
3304 rm -f conftest.er1
3305 cat conftest.err >&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); } && {
3308 test -z "$ac_c_werror_flag" ||
3309 test ! -s conftest.err
3310 } && test -s conftest.$ac_objext; then
3312 else
3313 echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3316 ac_c_werror_flag=$ac_save_c_werror_flag
3317 CFLAGS="-g"
3318 cat >conftest.$ac_ext <<_ACEOF
3319 /* confdefs.h. */
3320 _ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h. */
3326 main ()
3330 return 0;
3332 _ACEOF
3333 rm -f conftest.$ac_objext
3334 if { (ac_try="$ac_compile"
3335 case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3338 esac
3339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340 (eval "$ac_compile") 2>conftest.er1
3341 ac_status=$?
3342 grep -v '^ *+' conftest.er1 >conftest.err
3343 rm -f conftest.er1
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } && {
3347 test -z "$ac_c_werror_flag" ||
3348 test ! -s conftest.err
3349 } && test -s conftest.$ac_objext; then
3350 ac_cv_prog_cc_g=yes
3351 else
3352 echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 ac_c_werror_flag=$ac_save_c_werror_flag
3367 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3368 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3369 if test "$ac_test_CFLAGS" = set; then
3370 CFLAGS=$ac_save_CFLAGS
3371 elif test $ac_cv_prog_cc_g = yes; then
3372 if test "$GCC" = yes; then
3373 CFLAGS="-g -O2"
3374 else
3375 CFLAGS="-g"
3377 else
3378 if test "$GCC" = yes; then
3379 CFLAGS="-O2"
3380 else
3381 CFLAGS=
3384 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3385 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3386 if test "${ac_cv_prog_cc_c89+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 else
3389 ac_cv_prog_cc_c89=no
3390 ac_save_CC=$CC
3391 cat >conftest.$ac_ext <<_ACEOF
3392 /* confdefs.h. */
3393 _ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3397 #include <stdarg.h>
3398 #include <stdio.h>
3399 #include <sys/types.h>
3400 #include <sys/stat.h>
3401 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3402 struct buf { int x; };
3403 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3404 static char *e (p, i)
3405 char **p;
3406 int i;
3408 return p[i];
3410 static char *f (char * (*g) (char **, int), char **p, ...)
3412 char *s;
3413 va_list v;
3414 va_start (v,p);
3415 s = g (p, va_arg (v,int));
3416 va_end (v);
3417 return s;
3420 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3421 function prototypes and stuff, but not '\xHH' hex character constants.
3422 These don't provoke an error unfortunately, instead are silently treated
3423 as 'x'. The following induces an error, until -std is added to get
3424 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3425 array size at least. It's necessary to write '\x00'==0 to get something
3426 that's true only with -std. */
3427 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3429 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3430 inside strings and character constants. */
3431 #define FOO(x) 'x'
3432 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3434 int test (int i, double x);
3435 struct s1 {int (*f) (int a);};
3436 struct s2 {int (*f) (double a);};
3437 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3438 int argc;
3439 char **argv;
3441 main ()
3443 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3445 return 0;
3447 _ACEOF
3448 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3449 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3451 CC="$ac_save_CC $ac_arg"
3452 rm -f conftest.$ac_objext
3453 if { (ac_try="$ac_compile"
3454 case "(($ac_try" in
3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456 *) ac_try_echo=$ac_try;;
3457 esac
3458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3459 (eval "$ac_compile") 2>conftest.er1
3460 ac_status=$?
3461 grep -v '^ *+' conftest.er1 >conftest.err
3462 rm -f conftest.er1
3463 cat conftest.err >&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } && {
3466 test -z "$ac_c_werror_flag" ||
3467 test ! -s conftest.err
3468 } && test -s conftest.$ac_objext; then
3469 ac_cv_prog_cc_c89=$ac_arg
3470 else
3471 echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3477 rm -f core conftest.err conftest.$ac_objext
3478 test "x$ac_cv_prog_cc_c89" != "xno" && break
3479 done
3480 rm -f conftest.$ac_ext
3481 CC=$ac_save_CC
3484 # AC_CACHE_VAL
3485 case "x$ac_cv_prog_cc_c89" in
3487 { echo "$as_me:$LINENO: result: none needed" >&5
3488 echo "${ECHO_T}none needed" >&6; } ;;
3489 xno)
3490 { echo "$as_me:$LINENO: result: unsupported" >&5
3491 echo "${ECHO_T}unsupported" >&6; } ;;
3493 CC="$CC $ac_cv_prog_cc_c89"
3494 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3495 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3496 esac
3499 ac_ext=c
3500 ac_cpp='$CPP $CPPFLAGS'
3501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3504 DEPDIR="${am__leading_dot}deps"
3506 ac_config_commands="$ac_config_commands depfiles"
3509 am_make=${MAKE-make}
3510 cat > confinc << 'END'
3511 am__doit:
3512 @echo done
3513 .PHONY: am__doit
3515 # If we don't find an include directive, just comment out the code.
3516 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3517 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3518 am__include="#"
3519 am__quote=
3520 _am_result=none
3521 # First try GNU make style include.
3522 echo "include confinc" > confmf
3523 # We grep out `Entering directory' and `Leaving directory'
3524 # messages which can occur if `w' ends up in MAKEFLAGS.
3525 # In particular we don't look at `^make:' because GNU make might
3526 # be invoked under some other name (usually "gmake"), in which
3527 # case it prints its new name instead of `make'.
3528 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3529 am__include=include
3530 am__quote=
3531 _am_result=GNU
3533 # Now try BSD make style include.
3534 if test "$am__include" = "#"; then
3535 echo '.include "confinc"' > confmf
3536 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3537 am__include=.include
3538 am__quote="\""
3539 _am_result=BSD
3544 { echo "$as_me:$LINENO: result: $_am_result" >&5
3545 echo "${ECHO_T}$_am_result" >&6; }
3546 rm -f confinc confmf
3548 # Check whether --enable-dependency-tracking was given.
3549 if test "${enable_dependency_tracking+set}" = set; then
3550 enableval=$enable_dependency_tracking;
3553 if test "x$enable_dependency_tracking" != xno; then
3554 am_depcomp="$ac_aux_dir/depcomp"
3555 AMDEPBACKSLASH='\'
3557 if test "x$enable_dependency_tracking" != xno; then
3558 AMDEP_TRUE=
3559 AMDEP_FALSE='#'
3560 else
3561 AMDEP_TRUE='#'
3562 AMDEP_FALSE=
3567 depcc="$CC" am_compiler_list=
3569 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3570 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3571 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3573 else
3574 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3575 # We make a subdir and do the tests there. Otherwise we can end up
3576 # making bogus files that we don't know about and never remove. For
3577 # instance it was reported that on HP-UX the gcc test will end up
3578 # making a dummy file named `D' -- because `-MD' means `put the output
3579 # in D'.
3580 mkdir conftest.dir
3581 # Copy depcomp to subdir because otherwise we won't find it if we're
3582 # using a relative directory.
3583 cp "$am_depcomp" conftest.dir
3584 cd conftest.dir
3585 # We will build objects and dependencies in a subdirectory because
3586 # it helps to detect inapplicable dependency modes. For instance
3587 # both Tru64's cc and ICC support -MD to output dependencies as a
3588 # side effect of compilation, but ICC will put the dependencies in
3589 # the current directory while Tru64 will put them in the object
3590 # directory.
3591 mkdir sub
3593 am_cv_CC_dependencies_compiler_type=none
3594 if test "$am_compiler_list" = ""; then
3595 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3597 for depmode in $am_compiler_list; do
3598 # Setup a source with many dependencies, because some compilers
3599 # like to wrap large dependency lists on column 80 (with \), and
3600 # we should not choose a depcomp mode which is confused by this.
3602 # We need to recreate these files for each test, as the compiler may
3603 # overwrite some of them when testing with obscure command lines.
3604 # This happens at least with the AIX C compiler.
3605 : > sub/conftest.c
3606 for i in 1 2 3 4 5 6; do
3607 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3608 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3609 # Solaris 8's {/usr,}/bin/sh.
3610 touch sub/conftst$i.h
3611 done
3612 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3614 case $depmode in
3615 nosideeffect)
3616 # after this tag, mechanisms are not by side-effect, so they'll
3617 # only be used when explicitly requested
3618 if test "x$enable_dependency_tracking" = xyes; then
3619 continue
3620 else
3621 break
3624 none) break ;;
3625 esac
3626 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3627 # mode. It turns out that the SunPro C++ compiler does not properly
3628 # handle `-M -o', and we need to detect this.
3629 if depmode=$depmode \
3630 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3631 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3632 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3633 >/dev/null 2>conftest.err &&
3634 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3635 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3636 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3637 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3638 # icc doesn't choke on unknown options, it will just issue warnings
3639 # or remarks (even with -Werror). So we grep stderr for any message
3640 # that says an option was ignored or not supported.
3641 # When given -MP, icc 7.0 and 7.1 complain thusly:
3642 # icc: Command line warning: ignoring option '-M'; no argument required
3643 # The diagnosis changed in icc 8.0:
3644 # icc: Command line remark: option '-MP' not supported
3645 if (grep 'ignoring option' conftest.err ||
3646 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3647 am_cv_CC_dependencies_compiler_type=$depmode
3648 break
3651 done
3653 cd ..
3654 rm -rf conftest.dir
3655 else
3656 am_cv_CC_dependencies_compiler_type=none
3660 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3661 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3662 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3665 test "x$enable_dependency_tracking" != xno \
3666 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3667 am__fastdepCC_TRUE=
3668 am__fastdepCC_FALSE='#'
3669 else
3670 am__fastdepCC_TRUE='#'
3671 am__fastdepCC_FALSE=
3675 if test "x$CC" != xcc; then
3676 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3677 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3678 else
3679 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3680 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3682 set dummy $CC; ac_cc=`echo $2 |
3683 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3684 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 else
3687 cat >conftest.$ac_ext <<_ACEOF
3688 /* confdefs.h. */
3689 _ACEOF
3690 cat confdefs.h >>conftest.$ac_ext
3691 cat >>conftest.$ac_ext <<_ACEOF
3692 /* end confdefs.h. */
3695 main ()
3699 return 0;
3701 _ACEOF
3702 # Make sure it works both with $CC and with simple cc.
3703 # We do the test twice because some compilers refuse to overwrite an
3704 # existing .o file with -o, though they will create one.
3705 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3706 rm -f conftest2.*
3707 if { (case "(($ac_try" in
3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709 *) ac_try_echo=$ac_try;;
3710 esac
3711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3712 (eval "$ac_try") 2>&5
3713 ac_status=$?
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } &&
3716 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3719 esac
3720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3721 (eval "$ac_try") 2>&5
3722 ac_status=$?
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); };
3725 then
3726 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3727 if test "x$CC" != xcc; then
3728 # Test first that cc exists at all.
3729 if { ac_try='cc -c conftest.$ac_ext >&5'
3730 { (case "(($ac_try" in
3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3733 esac
3734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3735 (eval "$ac_try") 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; }; then
3739 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3740 rm -f conftest2.*
3741 if { (case "(($ac_try" in
3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3744 esac
3745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3746 (eval "$ac_try") 2>&5
3747 ac_status=$?
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } &&
3750 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752 *) ac_try_echo=$ac_try;;
3753 esac
3754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3755 (eval "$ac_try") 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); };
3759 then
3760 # cc works too.
3762 else
3763 # cc exists but doesn't like -o.
3764 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3768 else
3769 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3771 rm -f -r core conftest*
3774 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3775 { echo "$as_me:$LINENO: result: yes" >&5
3776 echo "${ECHO_T}yes" >&6; }
3777 else
3778 { echo "$as_me:$LINENO: result: no" >&5
3779 echo "${ECHO_T}no" >&6; }
3781 cat >>confdefs.h <<\_ACEOF
3782 #define NO_MINUS_C_MINUS_O 1
3783 _ACEOF
3787 # By default we simply use the C compiler to build assembly code.
3789 test "${CCAS+set}" = set || CCAS=$CC
3790 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3794 depcc="$CCAS" am_compiler_list=
3796 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3797 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3798 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3802 # We make a subdir and do the tests there. Otherwise we can end up
3803 # making bogus files that we don't know about and never remove. For
3804 # instance it was reported that on HP-UX the gcc test will end up
3805 # making a dummy file named `D' -- because `-MD' means `put the output
3806 # in D'.
3807 mkdir conftest.dir
3808 # Copy depcomp to subdir because otherwise we won't find it if we're
3809 # using a relative directory.
3810 cp "$am_depcomp" conftest.dir
3811 cd conftest.dir
3812 # We will build objects and dependencies in a subdirectory because
3813 # it helps to detect inapplicable dependency modes. For instance
3814 # both Tru64's cc and ICC support -MD to output dependencies as a
3815 # side effect of compilation, but ICC will put the dependencies in
3816 # the current directory while Tru64 will put them in the object
3817 # directory.
3818 mkdir sub
3820 am_cv_CCAS_dependencies_compiler_type=none
3821 if test "$am_compiler_list" = ""; then
3822 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3824 for depmode in $am_compiler_list; do
3825 # Setup a source with many dependencies, because some compilers
3826 # like to wrap large dependency lists on column 80 (with \), and
3827 # we should not choose a depcomp mode which is confused by this.
3829 # We need to recreate these files for each test, as the compiler may
3830 # overwrite some of them when testing with obscure command lines.
3831 # This happens at least with the AIX C compiler.
3832 : > sub/conftest.c
3833 for i in 1 2 3 4 5 6; do
3834 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3835 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3836 # Solaris 8's {/usr,}/bin/sh.
3837 touch sub/conftst$i.h
3838 done
3839 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3841 case $depmode in
3842 nosideeffect)
3843 # after this tag, mechanisms are not by side-effect, so they'll
3844 # only be used when explicitly requested
3845 if test "x$enable_dependency_tracking" = xyes; then
3846 continue
3847 else
3848 break
3851 none) break ;;
3852 esac
3853 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3854 # mode. It turns out that the SunPro C++ compiler does not properly
3855 # handle `-M -o', and we need to detect this.
3856 if depmode=$depmode \
3857 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3858 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3859 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3860 >/dev/null 2>conftest.err &&
3861 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3862 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3863 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3864 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3865 # icc doesn't choke on unknown options, it will just issue warnings
3866 # or remarks (even with -Werror). So we grep stderr for any message
3867 # that says an option was ignored or not supported.
3868 # When given -MP, icc 7.0 and 7.1 complain thusly:
3869 # icc: Command line warning: ignoring option '-M'; no argument required
3870 # The diagnosis changed in icc 8.0:
3871 # icc: Command line remark: option '-MP' not supported
3872 if (grep 'ignoring option' conftest.err ||
3873 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3874 am_cv_CCAS_dependencies_compiler_type=$depmode
3875 break
3878 done
3880 cd ..
3881 rm -rf conftest.dir
3882 else
3883 am_cv_CCAS_dependencies_compiler_type=none
3887 { echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
3888 echo "${ECHO_T}$am_cv_CCAS_dependencies_compiler_type" >&6; }
3889 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
3892 test "x$enable_dependency_tracking" != xno \
3893 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
3894 am__fastdepCCAS_TRUE=
3895 am__fastdepCCAS_FALSE='#'
3896 else
3897 am__fastdepCCAS_TRUE='#'
3898 am__fastdepCCAS_FALSE=
3902 # Find a good install program. We prefer a C program (faster),
3903 # so one script is as good as another. But avoid the broken or
3904 # incompatible versions:
3905 # SysV /etc/install, /usr/sbin/install
3906 # SunOS /usr/etc/install
3907 # IRIX /sbin/install
3908 # AIX /bin/install
3909 # AmigaOS /C/install, which installs bootblocks on floppy discs
3910 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3911 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3912 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3913 # OS/2's system install, which has a completely different semantic
3914 # ./install, which can be erroneously created by make from ./install.sh.
3915 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3916 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3917 if test -z "$INSTALL"; then
3918 if test "${ac_cv_path_install+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 else
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
3926 # Account for people who put trailing slashes in PATH elements.
3927 case $as_dir/ in
3928 ./ | .// | /cC/* | \
3929 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3930 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3931 /usr/ucb/* ) ;;
3933 # OSF1 and SCO ODT 3.0 have their own names for install.
3934 # Don't use installbsd from OSF since it installs stuff as root
3935 # by default.
3936 for ac_prog in ginstall scoinst install; do
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3939 if test $ac_prog = install &&
3940 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3941 # AIX install. It has an incompatible calling convention.
3943 elif test $ac_prog = install &&
3944 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3945 # program-specific install script used by HP pwplus--don't use.
3947 else
3948 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3949 break 3
3952 done
3953 done
3955 esac
3956 done
3957 IFS=$as_save_IFS
3961 if test "${ac_cv_path_install+set}" = set; then
3962 INSTALL=$ac_cv_path_install
3963 else
3964 # As a last resort, use the slow shell script. Don't cache a
3965 # value for INSTALL within a source directory, because that will
3966 # break other packages using the cache if that directory is
3967 # removed, or if the value is a relative name.
3968 INSTALL=$ac_install_sh
3971 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3972 echo "${ECHO_T}$INSTALL" >&6; }
3974 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3975 # It thinks the first close brace ends the variable substitution.
3976 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3978 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3980 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3982 enable_win32_dll=yes
3984 case $host in
3985 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
3986 if test -n "$ac_tool_prefix"; then
3987 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3988 set dummy ${ac_tool_prefix}as; ac_word=$2
3989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3991 if test "${ac_cv_prog_AS+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 else
3994 if test -n "$AS"; then
3995 ac_cv_prog_AS="$AS" # Let the user override the test.
3996 else
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4004 ac_cv_prog_AS="${ac_tool_prefix}as"
4005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 break 2
4008 done
4009 done
4010 IFS=$as_save_IFS
4014 AS=$ac_cv_prog_AS
4015 if test -n "$AS"; then
4016 { echo "$as_me:$LINENO: result: $AS" >&5
4017 echo "${ECHO_T}$AS" >&6; }
4018 else
4019 { echo "$as_me:$LINENO: result: no" >&5
4020 echo "${ECHO_T}no" >&6; }
4025 if test -z "$ac_cv_prog_AS"; then
4026 ac_ct_AS=$AS
4027 # Extract the first word of "as", so it can be a program name with args.
4028 set dummy as; ac_word=$2
4029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4031 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4033 else
4034 if test -n "$ac_ct_AS"; then
4035 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4036 else
4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038 for as_dir in $PATH
4040 IFS=$as_save_IFS
4041 test -z "$as_dir" && as_dir=.
4042 for ac_exec_ext in '' $ac_executable_extensions; do
4043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4044 ac_cv_prog_ac_ct_AS="as"
4045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4046 break 2
4048 done
4049 done
4050 IFS=$as_save_IFS
4054 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4055 if test -n "$ac_ct_AS"; then
4056 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4057 echo "${ECHO_T}$ac_ct_AS" >&6; }
4058 else
4059 { echo "$as_me:$LINENO: result: no" >&5
4060 echo "${ECHO_T}no" >&6; }
4063 if test "x$ac_ct_AS" = x; then
4064 AS="false"
4065 else
4066 case $cross_compiling:$ac_tool_warned in
4067 yes:)
4068 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4069 whose name does not start with the host triplet. If you think this
4070 configuration is useful to you, please write to autoconf@gnu.org." >&5
4071 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4072 whose name does not start with the host triplet. If you think this
4073 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4074 ac_tool_warned=yes ;;
4075 esac
4076 AS=$ac_ct_AS
4078 else
4079 AS="$ac_cv_prog_AS"
4082 if test -n "$ac_tool_prefix"; then
4083 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4084 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4087 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090 if test -n "$DLLTOOL"; then
4091 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4092 else
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4100 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4102 break 2
4104 done
4105 done
4106 IFS=$as_save_IFS
4110 DLLTOOL=$ac_cv_prog_DLLTOOL
4111 if test -n "$DLLTOOL"; then
4112 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4113 echo "${ECHO_T}$DLLTOOL" >&6; }
4114 else
4115 { echo "$as_me:$LINENO: result: no" >&5
4116 echo "${ECHO_T}no" >&6; }
4121 if test -z "$ac_cv_prog_DLLTOOL"; then
4122 ac_ct_DLLTOOL=$DLLTOOL
4123 # Extract the first word of "dlltool", so it can be a program name with args.
4124 set dummy dlltool; ac_word=$2
4125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4127 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130 if test -n "$ac_ct_DLLTOOL"; then
4131 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4132 else
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 for as_dir in $PATH
4136 IFS=$as_save_IFS
4137 test -z "$as_dir" && as_dir=.
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4140 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142 break 2
4144 done
4145 done
4146 IFS=$as_save_IFS
4150 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4151 if test -n "$ac_ct_DLLTOOL"; then
4152 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4153 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4154 else
4155 { echo "$as_me:$LINENO: result: no" >&5
4156 echo "${ECHO_T}no" >&6; }
4159 if test "x$ac_ct_DLLTOOL" = x; then
4160 DLLTOOL="false"
4161 else
4162 case $cross_compiling:$ac_tool_warned in
4163 yes:)
4164 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4165 whose name does not start with the host triplet. If you think this
4166 configuration is useful to you, please write to autoconf@gnu.org." >&5
4167 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4168 whose name does not start with the host triplet. If you think this
4169 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4170 ac_tool_warned=yes ;;
4171 esac
4172 DLLTOOL=$ac_ct_DLLTOOL
4174 else
4175 DLLTOOL="$ac_cv_prog_DLLTOOL"
4178 if test -n "$ac_tool_prefix"; then
4179 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4180 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4183 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4185 else
4186 if test -n "$OBJDUMP"; then
4187 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4188 else
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4196 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 break 2
4200 done
4201 done
4202 IFS=$as_save_IFS
4206 OBJDUMP=$ac_cv_prog_OBJDUMP
4207 if test -n "$OBJDUMP"; then
4208 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4209 echo "${ECHO_T}$OBJDUMP" >&6; }
4210 else
4211 { echo "$as_me:$LINENO: result: no" >&5
4212 echo "${ECHO_T}no" >&6; }
4217 if test -z "$ac_cv_prog_OBJDUMP"; then
4218 ac_ct_OBJDUMP=$OBJDUMP
4219 # Extract the first word of "objdump", so it can be a program name with args.
4220 set dummy objdump; ac_word=$2
4221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4223 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4225 else
4226 if test -n "$ac_ct_OBJDUMP"; then
4227 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4228 else
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH
4232 IFS=$as_save_IFS
4233 test -z "$as_dir" && as_dir=.
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4236 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4238 break 2
4240 done
4241 done
4242 IFS=$as_save_IFS
4246 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4247 if test -n "$ac_ct_OBJDUMP"; then
4248 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4249 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4250 else
4251 { echo "$as_me:$LINENO: result: no" >&5
4252 echo "${ECHO_T}no" >&6; }
4255 if test "x$ac_ct_OBJDUMP" = x; then
4256 OBJDUMP="false"
4257 else
4258 case $cross_compiling:$ac_tool_warned in
4259 yes:)
4260 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4261 whose name does not start with the host triplet. If you think this
4262 configuration is useful to you, please write to autoconf@gnu.org." >&5
4263 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4264 whose name does not start with the host triplet. If you think this
4265 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4266 ac_tool_warned=yes ;;
4267 esac
4268 OBJDUMP=$ac_ct_OBJDUMP
4270 else
4271 OBJDUMP="$ac_cv_prog_OBJDUMP"
4275 esac
4277 test -z "$AS" && AS=as
4283 test -z "$DLLTOOL" && DLLTOOL=dlltool
4289 test -z "$OBJDUMP" && OBJDUMP=objdump
4297 case `pwd` in
4298 *\ * | *\ *)
4299 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4300 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4301 esac
4305 macro_version='2.2.4'
4306 macro_revision='1.2976'
4320 ltmain="$ac_aux_dir/ltmain.sh"
4322 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4323 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4324 if test "${ac_cv_path_SED+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4328 for ac_i in 1 2 3 4 5 6 7; do
4329 ac_script="$ac_script$as_nl$ac_script"
4330 done
4331 echo "$ac_script" | sed 99q >conftest.sed
4332 $as_unset ac_script || ac_script=
4333 # Extract the first word of "sed gsed" to use in msg output
4334 if test -z "$SED"; then
4335 set dummy sed gsed; ac_prog_name=$2
4336 if test "${ac_cv_path_SED+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4338 else
4339 ac_path_SED_found=false
4340 # Loop through the user's path and test for each of PROGNAME-LIST
4341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 for as_dir in $PATH
4344 IFS=$as_save_IFS
4345 test -z "$as_dir" && as_dir=.
4346 for ac_prog in sed gsed; do
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4349 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4350 # Check for GNU ac_path_SED and select it if it is found.
4351 # Check for GNU $ac_path_SED
4352 case `"$ac_path_SED" --version 2>&1` in
4353 *GNU*)
4354 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4356 ac_count=0
4357 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4358 while :
4360 cat "conftest.in" "conftest.in" >"conftest.tmp"
4361 mv "conftest.tmp" "conftest.in"
4362 cp "conftest.in" "conftest.nl"
4363 echo '' >> "conftest.nl"
4364 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4365 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4366 ac_count=`expr $ac_count + 1`
4367 if test $ac_count -gt ${ac_path_SED_max-0}; then
4368 # Best one so far, save it but keep looking for a better one
4369 ac_cv_path_SED="$ac_path_SED"
4370 ac_path_SED_max=$ac_count
4372 # 10*(2^10) chars as input seems more than enough
4373 test $ac_count -gt 10 && break
4374 done
4375 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4376 esac
4379 $ac_path_SED_found && break 3
4380 done
4381 done
4383 done
4384 IFS=$as_save_IFS
4389 SED="$ac_cv_path_SED"
4390 if test -z "$SED"; then
4391 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4392 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4393 { (exit 1); exit 1; }; }
4396 else
4397 ac_cv_path_SED=$SED
4401 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4402 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4403 SED="$ac_cv_path_SED"
4404 rm -f conftest.sed
4406 test -z "$SED" && SED=sed
4407 Xsed="$SED -e 1s/^X//"
4419 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4420 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4421 if test "${ac_cv_path_GREP+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 else
4424 # Extract the first word of "grep ggrep" to use in msg output
4425 if test -z "$GREP"; then
4426 set dummy grep ggrep; ac_prog_name=$2
4427 if test "${ac_cv_path_GREP+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430 ac_path_GREP_found=false
4431 # Loop through the user's path and test for each of PROGNAME-LIST
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
4437 for ac_prog in grep ggrep; do
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4440 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4441 # Check for GNU ac_path_GREP and select it if it is found.
4442 # Check for GNU $ac_path_GREP
4443 case `"$ac_path_GREP" --version 2>&1` in
4444 *GNU*)
4445 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4447 ac_count=0
4448 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4449 while :
4451 cat "conftest.in" "conftest.in" >"conftest.tmp"
4452 mv "conftest.tmp" "conftest.in"
4453 cp "conftest.in" "conftest.nl"
4454 echo 'GREP' >> "conftest.nl"
4455 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4456 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4457 ac_count=`expr $ac_count + 1`
4458 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4459 # Best one so far, save it but keep looking for a better one
4460 ac_cv_path_GREP="$ac_path_GREP"
4461 ac_path_GREP_max=$ac_count
4463 # 10*(2^10) chars as input seems more than enough
4464 test $ac_count -gt 10 && break
4465 done
4466 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4467 esac
4470 $ac_path_GREP_found && break 3
4471 done
4472 done
4474 done
4475 IFS=$as_save_IFS
4480 GREP="$ac_cv_path_GREP"
4481 if test -z "$GREP"; then
4482 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4483 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4484 { (exit 1); exit 1; }; }
4487 else
4488 ac_cv_path_GREP=$GREP
4493 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4494 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4495 GREP="$ac_cv_path_GREP"
4498 { echo "$as_me:$LINENO: checking for egrep" >&5
4499 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4500 if test "${ac_cv_path_EGREP+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4504 then ac_cv_path_EGREP="$GREP -E"
4505 else
4506 # Extract the first word of "egrep" to use in msg output
4507 if test -z "$EGREP"; then
4508 set dummy egrep; ac_prog_name=$2
4509 if test "${ac_cv_path_EGREP+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512 ac_path_EGREP_found=false
4513 # Loop through the user's path and test for each of PROGNAME-LIST
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_prog in egrep; do
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4522 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4523 # Check for GNU ac_path_EGREP and select it if it is found.
4524 # Check for GNU $ac_path_EGREP
4525 case `"$ac_path_EGREP" --version 2>&1` in
4526 *GNU*)
4527 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4529 ac_count=0
4530 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4531 while :
4533 cat "conftest.in" "conftest.in" >"conftest.tmp"
4534 mv "conftest.tmp" "conftest.in"
4535 cp "conftest.in" "conftest.nl"
4536 echo 'EGREP' >> "conftest.nl"
4537 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4538 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4539 ac_count=`expr $ac_count + 1`
4540 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4541 # Best one so far, save it but keep looking for a better one
4542 ac_cv_path_EGREP="$ac_path_EGREP"
4543 ac_path_EGREP_max=$ac_count
4545 # 10*(2^10) chars as input seems more than enough
4546 test $ac_count -gt 10 && break
4547 done
4548 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4549 esac
4552 $ac_path_EGREP_found && break 3
4553 done
4554 done
4556 done
4557 IFS=$as_save_IFS
4562 EGREP="$ac_cv_path_EGREP"
4563 if test -z "$EGREP"; then
4564 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4565 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4566 { (exit 1); exit 1; }; }
4569 else
4570 ac_cv_path_EGREP=$EGREP
4576 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4577 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4578 EGREP="$ac_cv_path_EGREP"
4581 { echo "$as_me:$LINENO: checking for fgrep" >&5
4582 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
4583 if test "${ac_cv_path_FGREP+set}" = set; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 else
4586 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4587 then ac_cv_path_FGREP="$GREP -F"
4588 else
4589 # Extract the first word of "fgrep" to use in msg output
4590 if test -z "$FGREP"; then
4591 set dummy fgrep; ac_prog_name=$2
4592 if test "${ac_cv_path_FGREP+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595 ac_path_FGREP_found=false
4596 # Loop through the user's path and test for each of PROGNAME-LIST
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4600 IFS=$as_save_IFS
4601 test -z "$as_dir" && as_dir=.
4602 for ac_prog in fgrep; do
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4605 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4606 # Check for GNU ac_path_FGREP and select it if it is found.
4607 # Check for GNU $ac_path_FGREP
4608 case `"$ac_path_FGREP" --version 2>&1` in
4609 *GNU*)
4610 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4612 ac_count=0
4613 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4614 while :
4616 cat "conftest.in" "conftest.in" >"conftest.tmp"
4617 mv "conftest.tmp" "conftest.in"
4618 cp "conftest.in" "conftest.nl"
4619 echo 'FGREP' >> "conftest.nl"
4620 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4621 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4622 ac_count=`expr $ac_count + 1`
4623 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4624 # Best one so far, save it but keep looking for a better one
4625 ac_cv_path_FGREP="$ac_path_FGREP"
4626 ac_path_FGREP_max=$ac_count
4628 # 10*(2^10) chars as input seems more than enough
4629 test $ac_count -gt 10 && break
4630 done
4631 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4632 esac
4635 $ac_path_FGREP_found && break 3
4636 done
4637 done
4639 done
4640 IFS=$as_save_IFS
4645 FGREP="$ac_cv_path_FGREP"
4646 if test -z "$FGREP"; then
4647 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4648 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4649 { (exit 1); exit 1; }; }
4652 else
4653 ac_cv_path_FGREP=$FGREP
4659 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4660 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4661 FGREP="$ac_cv_path_FGREP"
4664 test -z "$GREP" && GREP=grep
4684 # Check whether --with-gnu-ld was given.
4685 if test "${with_gnu_ld+set}" = set; then
4686 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4687 else
4688 with_gnu_ld=no
4691 ac_prog=ld
4692 if test "$GCC" = yes; then
4693 # Check if gcc -print-prog-name=ld gives a path.
4694 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4695 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4696 case $host in
4697 *-*-mingw*)
4698 # gcc leaves a trailing carriage return which upsets mingw
4699 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4701 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4702 esac
4703 case $ac_prog in
4704 # Accept absolute paths.
4705 [\\/]* | ?:[\\/]*)
4706 re_direlt='/[^/][^/]*/\.\./'
4707 # Canonicalize the pathname of ld
4708 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4709 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4710 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4711 done
4712 test -z "$LD" && LD="$ac_prog"
4715 # If it fails, then pretend we aren't using GCC.
4716 ac_prog=ld
4719 # If it is relative, then search for the first ld in PATH.
4720 with_gnu_ld=unknown
4722 esac
4723 elif test "$with_gnu_ld" = yes; then
4724 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4725 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4726 else
4727 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4728 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4730 if test "${lt_cv_path_LD+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 else
4733 if test -z "$LD"; then
4734 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4735 for ac_dir in $PATH; do
4736 IFS="$lt_save_ifs"
4737 test -z "$ac_dir" && ac_dir=.
4738 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4739 lt_cv_path_LD="$ac_dir/$ac_prog"
4740 # Check to see if the program is GNU ld. I'd rather use --version,
4741 # but apparently some variants of GNU ld only accept -v.
4742 # Break only if it was the GNU/non-GNU ld that we prefer.
4743 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4744 *GNU* | *'with BFD'*)
4745 test "$with_gnu_ld" != no && break
4748 test "$with_gnu_ld" != yes && break
4750 esac
4752 done
4753 IFS="$lt_save_ifs"
4754 else
4755 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4759 LD="$lt_cv_path_LD"
4760 if test -n "$LD"; then
4761 { echo "$as_me:$LINENO: result: $LD" >&5
4762 echo "${ECHO_T}$LD" >&6; }
4763 else
4764 { echo "$as_me:$LINENO: result: no" >&5
4765 echo "${ECHO_T}no" >&6; }
4767 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4768 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4769 { (exit 1); exit 1; }; }
4770 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4771 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4772 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4774 else
4775 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4776 case `$LD -v 2>&1 </dev/null` in
4777 *GNU* | *'with BFD'*)
4778 lt_cv_prog_gnu_ld=yes
4781 lt_cv_prog_gnu_ld=no
4783 esac
4785 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4786 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4787 with_gnu_ld=$lt_cv_prog_gnu_ld
4797 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4798 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4799 if test "${lt_cv_path_NM+set}" = set; then
4800 echo $ECHO_N "(cached) $ECHO_C" >&6
4801 else
4802 if test -n "$NM"; then
4803 # Let the user override the test.
4804 lt_cv_path_NM="$NM"
4805 else
4806 lt_nm_to_check="${ac_tool_prefix}nm"
4807 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4808 lt_nm_to_check="$lt_nm_to_check nm"
4810 for lt_tmp_nm in $lt_nm_to_check; do
4811 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4812 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4813 IFS="$lt_save_ifs"
4814 test -z "$ac_dir" && ac_dir=.
4815 tmp_nm="$ac_dir/$lt_tmp_nm"
4816 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4817 # Check to see if the nm accepts a BSD-compat flag.
4818 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4819 # nm: unknown option "B" ignored
4820 # Tru64's nm complains that /dev/null is an invalid object file
4821 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4822 */dev/null* | *'Invalid file or object type'*)
4823 lt_cv_path_NM="$tmp_nm -B"
4824 break
4827 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4828 */dev/null*)
4829 lt_cv_path_NM="$tmp_nm -p"
4830 break
4833 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4834 continue # so that we can try to find one that supports BSD flags
4836 esac
4838 esac
4840 done
4841 IFS="$lt_save_ifs"
4842 done
4843 : ${lt_cv_path_NM=no}
4846 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4847 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4848 if test "$lt_cv_path_NM" != "no"; then
4849 NM="$lt_cv_path_NM"
4850 else
4851 # Didn't find any BSD compatible name lister, look for dumpbin.
4852 if test -n "$ac_tool_prefix"; then
4853 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4855 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4856 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4859 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 else
4862 if test -n "$DUMPBIN"; then
4863 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4864 else
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 break 2
4876 done
4877 done
4878 IFS=$as_save_IFS
4882 DUMPBIN=$ac_cv_prog_DUMPBIN
4883 if test -n "$DUMPBIN"; then
4884 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4885 echo "${ECHO_T}$DUMPBIN" >&6; }
4886 else
4887 { echo "$as_me:$LINENO: result: no" >&5
4888 echo "${ECHO_T}no" >&6; }
4892 test -n "$DUMPBIN" && break
4893 done
4895 if test -z "$DUMPBIN"; then
4896 ac_ct_DUMPBIN=$DUMPBIN
4897 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4899 # Extract the first word of "$ac_prog", so it can be a program name with args.
4900 set dummy $ac_prog; ac_word=$2
4901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4903 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906 if test -n "$ac_ct_DUMPBIN"; then
4907 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4908 else
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4916 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4920 done
4921 done
4922 IFS=$as_save_IFS
4926 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4927 if test -n "$ac_ct_DUMPBIN"; then
4928 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4929 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4930 else
4931 { echo "$as_me:$LINENO: result: no" >&5
4932 echo "${ECHO_T}no" >&6; }
4936 test -n "$ac_ct_DUMPBIN" && break
4937 done
4939 if test "x$ac_ct_DUMPBIN" = x; then
4940 DUMPBIN=":"
4941 else
4942 case $cross_compiling:$ac_tool_warned in
4943 yes:)
4944 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4945 whose name does not start with the host triplet. If you think this
4946 configuration is useful to you, please write to autoconf@gnu.org." >&5
4947 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4948 whose name does not start with the host triplet. If you think this
4949 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4950 ac_tool_warned=yes ;;
4951 esac
4952 DUMPBIN=$ac_ct_DUMPBIN
4957 if test "$DUMPBIN" != ":"; then
4958 NM="$DUMPBIN"
4961 test -z "$NM" && NM=nm
4968 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4969 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4970 if test "${lt_cv_nm_interface+set}" = set; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 else
4973 lt_cv_nm_interface="BSD nm"
4974 echo "int some_variable = 0;" > conftest.$ac_ext
4975 (eval echo "\"\$as_me:4975: $ac_compile\"" >&5)
4976 (eval "$ac_compile" 2>conftest.err)
4977 cat conftest.err >&5
4978 (eval echo "\"\$as_me:4978: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4979 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4980 cat conftest.err >&5
4981 (eval echo "\"\$as_me:4981: output\"" >&5)
4982 cat conftest.out >&5
4983 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4984 lt_cv_nm_interface="MS dumpbin"
4986 rm -r -f conftest*
4988 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4989 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
4991 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4992 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4993 LN_S=$as_ln_s
4994 if test "$LN_S" = "ln -s"; then
4995 { echo "$as_me:$LINENO: result: yes" >&5
4996 echo "${ECHO_T}yes" >&6; }
4997 else
4998 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4999 echo "${ECHO_T}no, using $LN_S" >&6; }
5002 # find the maximum length of command line arguments
5003 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5004 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5005 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 else
5009 teststring="ABCD"
5011 case $build_os in
5012 msdosdjgpp*)
5013 # On DJGPP, this test can blow up pretty badly due to problems in libc
5014 # (any single argument exceeding 2000 bytes causes a buffer overrun
5015 # during glob expansion). Even if it were fixed, the result of this
5016 # check would be larger than it should be.
5017 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5020 gnu*)
5021 # Under GNU Hurd, this test is not required because there is
5022 # no limit to the length of command line arguments.
5023 # Libtool will interpret -1 as no limit whatsoever
5024 lt_cv_sys_max_cmd_len=-1;
5027 cygwin* | mingw*)
5028 # On Win9x/ME, this test blows up -- it succeeds, but takes
5029 # about 5 minutes as the teststring grows exponentially.
5030 # Worse, since 9x/ME are not pre-emptively multitasking,
5031 # you end up with a "frozen" computer, even though with patience
5032 # the test eventually succeeds (with a max line length of 256k).
5033 # Instead, let's just punt: use the minimum linelength reported by
5034 # all of the supported platforms: 8192 (on NT/2K/XP).
5035 lt_cv_sys_max_cmd_len=8192;
5038 amigaos*)
5039 # On AmigaOS with pdksh, this test takes hours, literally.
5040 # So we just punt and use a minimum line length of 8192.
5041 lt_cv_sys_max_cmd_len=8192;
5044 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5045 # This has been around since 386BSD, at least. Likely further.
5046 if test -x /sbin/sysctl; then
5047 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5048 elif test -x /usr/sbin/sysctl; then
5049 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5050 else
5051 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5053 # And add a safety zone
5054 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5055 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5058 interix*)
5059 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5060 lt_cv_sys_max_cmd_len=196608
5063 osf*)
5064 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5065 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5066 # nice to cause kernel panics so lets avoid the loop below.
5067 # First set a reasonable default.
5068 lt_cv_sys_max_cmd_len=16384
5070 if test -x /sbin/sysconfig; then
5071 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5072 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5073 esac
5076 sco3.2v5*)
5077 lt_cv_sys_max_cmd_len=102400
5079 sysv5* | sco5v6* | sysv4.2uw2*)
5080 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5081 if test -n "$kargmax"; then
5082 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5083 else
5084 lt_cv_sys_max_cmd_len=32768
5088 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5089 if test -n "$lt_cv_sys_max_cmd_len"; then
5090 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5091 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5092 else
5093 # Make teststring a little bigger before we do anything with it.
5094 # a 1K string should be a reasonable start.
5095 for i in 1 2 3 4 5 6 7 8 ; do
5096 teststring=$teststring$teststring
5097 done
5098 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5099 # If test is not a shell built-in, we'll probably end up computing a
5100 # maximum length that is only half of the actual maximum length, but
5101 # we can't tell.
5102 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5103 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5104 test $i != 17 # 1/2 MB should be enough
5106 i=`expr $i + 1`
5107 teststring=$teststring$teststring
5108 done
5109 # Only check the string length outside the loop.
5110 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5111 teststring=
5112 # Add a significant safety factor because C++ compilers can tack on
5113 # massive amounts of additional arguments before passing them to the
5114 # linker. It appears as though 1/2 is a usable value.
5115 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5118 esac
5122 if test -n $lt_cv_sys_max_cmd_len ; then
5123 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5124 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5125 else
5126 { echo "$as_me:$LINENO: result: none" >&5
5127 echo "${ECHO_T}none" >&6; }
5129 max_cmd_len=$lt_cv_sys_max_cmd_len
5136 : ${CP="cp -f"}
5137 : ${MV="mv -f"}
5138 : ${RM="rm -f"}
5140 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5141 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
5142 # Try some XSI features
5143 xsi_shell=no
5144 ( _lt_dummy="a/b/c"
5145 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5146 = c,a/b,, \
5147 && eval 'test $(( 1 + 1 )) -eq 2 \
5148 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5149 && xsi_shell=yes
5150 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
5151 echo "${ECHO_T}$xsi_shell" >&6; }
5154 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5155 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
5156 lt_shell_append=no
5157 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5158 >/dev/null 2>&1 \
5159 && lt_shell_append=yes
5160 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5161 echo "${ECHO_T}$lt_shell_append" >&6; }
5164 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5165 lt_unset=unset
5166 else
5167 lt_unset=false
5174 # test EBCDIC or ASCII
5175 case `echo X|tr X '\101'` in
5176 A) # ASCII based system
5177 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5178 lt_SP2NL='tr \040 \012'
5179 lt_NL2SP='tr \015\012 \040\040'
5181 *) # EBCDIC based system
5182 lt_SP2NL='tr \100 \n'
5183 lt_NL2SP='tr \r\n \100\100'
5185 esac
5195 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5196 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5197 if test "${lt_cv_ld_reload_flag+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200 lt_cv_ld_reload_flag='-r'
5202 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5203 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5204 reload_flag=$lt_cv_ld_reload_flag
5205 case $reload_flag in
5206 "" | " "*) ;;
5207 *) reload_flag=" $reload_flag" ;;
5208 esac
5209 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5210 case $host_os in
5211 darwin*)
5212 if test "$GCC" = yes; then
5213 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5214 else
5215 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5218 esac
5229 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5230 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5231 if test "${lt_cv_deplibs_check_method+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 else
5234 lt_cv_file_magic_cmd='$MAGIC_CMD'
5235 lt_cv_file_magic_test_file=
5236 lt_cv_deplibs_check_method='unknown'
5237 # Need to set the preceding variable on all platforms that support
5238 # interlibrary dependencies.
5239 # 'none' -- dependencies not supported.
5240 # `unknown' -- same as none, but documents that we really don't know.
5241 # 'pass_all' -- all dependencies passed with no checks.
5242 # 'test_compile' -- check by making test program.
5243 # 'file_magic [[regex]]' -- check by looking for files in library path
5244 # which responds to the $file_magic_cmd with a given extended regex.
5245 # If you have `file' or equivalent on your system and you're not sure
5246 # whether `pass_all' will *always* work, you probably want this one.
5248 case $host_os in
5249 aix[4-9]*)
5250 lt_cv_deplibs_check_method=pass_all
5253 beos*)
5254 lt_cv_deplibs_check_method=pass_all
5257 bsdi[45]*)
5258 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5259 lt_cv_file_magic_cmd='/usr/bin/file -L'
5260 lt_cv_file_magic_test_file=/shlib/libc.so
5263 cygwin*)
5264 # func_win32_libid is a shell function defined in ltmain.sh
5265 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5266 lt_cv_file_magic_cmd='func_win32_libid'
5269 mingw* | pw32*)
5270 # Base MSYS/MinGW do not provide the 'file' command needed by
5271 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5272 # unless we find 'file', for example because we are cross-compiling.
5273 if ( file / ) >/dev/null 2>&1; then
5274 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5275 lt_cv_file_magic_cmd='func_win32_libid'
5276 else
5277 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5278 lt_cv_file_magic_cmd='$OBJDUMP -f'
5282 darwin* | rhapsody*)
5283 lt_cv_deplibs_check_method=pass_all
5286 freebsd* | dragonfly*)
5287 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5288 case $host_cpu in
5289 i*86 )
5290 # Not sure whether the presence of OpenBSD here was a mistake.
5291 # Let's accept both of them until this is cleared up.
5292 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5293 lt_cv_file_magic_cmd=/usr/bin/file
5294 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5296 esac
5297 else
5298 lt_cv_deplibs_check_method=pass_all
5302 gnu*)
5303 lt_cv_deplibs_check_method=pass_all
5306 hpux10.20* | hpux11*)
5307 lt_cv_file_magic_cmd=/usr/bin/file
5308 case $host_cpu in
5309 ia64*)
5310 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5311 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5313 hppa*64*)
5314 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]'
5315 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5318 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5319 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5321 esac
5324 interix[3-9]*)
5325 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5326 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5329 irix5* | irix6* | nonstopux*)
5330 case $LD in
5331 *-32|*"-32 ") libmagic=32-bit;;
5332 *-n32|*"-n32 ") libmagic=N32;;
5333 *-64|*"-64 ") libmagic=64-bit;;
5334 *) libmagic=never-match;;
5335 esac
5336 lt_cv_deplibs_check_method=pass_all
5339 # This must be Linux ELF.
5340 linux* | k*bsd*-gnu)
5341 lt_cv_deplibs_check_method=pass_all
5344 netbsd*)
5345 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5346 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5347 else
5348 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5352 newos6*)
5353 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5354 lt_cv_file_magic_cmd=/usr/bin/file
5355 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5358 *nto* | *qnx*)
5359 lt_cv_deplibs_check_method=pass_all
5362 openbsd*)
5363 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5364 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5365 else
5366 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5370 osf3* | osf4* | osf5*)
5371 lt_cv_deplibs_check_method=pass_all
5374 rdos*)
5375 lt_cv_deplibs_check_method=pass_all
5378 solaris*)
5379 lt_cv_deplibs_check_method=pass_all
5382 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5383 lt_cv_deplibs_check_method=pass_all
5386 sysv4 | sysv4.3*)
5387 case $host_vendor in
5388 motorola)
5389 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]'
5390 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5392 ncr)
5393 lt_cv_deplibs_check_method=pass_all
5395 sequent)
5396 lt_cv_file_magic_cmd='/bin/file'
5397 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5399 sni)
5400 lt_cv_file_magic_cmd='/bin/file'
5401 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5402 lt_cv_file_magic_test_file=/lib/libc.so
5404 siemens)
5405 lt_cv_deplibs_check_method=pass_all
5408 lt_cv_deplibs_check_method=pass_all
5410 esac
5413 tpf*)
5414 lt_cv_deplibs_check_method=pass_all
5416 esac
5419 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5420 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5421 file_magic_cmd=$lt_cv_file_magic_cmd
5422 deplibs_check_method=$lt_cv_deplibs_check_method
5423 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5436 if test -n "$ac_tool_prefix"; then
5437 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5438 set dummy ${ac_tool_prefix}ar; ac_word=$2
5439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5441 if test "${ac_cv_prog_AR+set}" = set; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
5443 else
5444 if test -n "$AR"; then
5445 ac_cv_prog_AR="$AR" # Let the user override the test.
5446 else
5447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 for as_dir in $PATH
5450 IFS=$as_save_IFS
5451 test -z "$as_dir" && as_dir=.
5452 for ac_exec_ext in '' $ac_executable_extensions; do
5453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5454 ac_cv_prog_AR="${ac_tool_prefix}ar"
5455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5456 break 2
5458 done
5459 done
5460 IFS=$as_save_IFS
5464 AR=$ac_cv_prog_AR
5465 if test -n "$AR"; then
5466 { echo "$as_me:$LINENO: result: $AR" >&5
5467 echo "${ECHO_T}$AR" >&6; }
5468 else
5469 { echo "$as_me:$LINENO: result: no" >&5
5470 echo "${ECHO_T}no" >&6; }
5475 if test -z "$ac_cv_prog_AR"; then
5476 ac_ct_AR=$AR
5477 # Extract the first word of "ar", so it can be a program name with args.
5478 set dummy ar; ac_word=$2
5479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5481 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5483 else
5484 if test -n "$ac_ct_AR"; then
5485 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5486 else
5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 for as_dir in $PATH
5490 IFS=$as_save_IFS
5491 test -z "$as_dir" && as_dir=.
5492 for ac_exec_ext in '' $ac_executable_extensions; do
5493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5494 ac_cv_prog_ac_ct_AR="ar"
5495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5496 break 2
5498 done
5499 done
5500 IFS=$as_save_IFS
5504 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5505 if test -n "$ac_ct_AR"; then
5506 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5507 echo "${ECHO_T}$ac_ct_AR" >&6; }
5508 else
5509 { echo "$as_me:$LINENO: result: no" >&5
5510 echo "${ECHO_T}no" >&6; }
5513 if test "x$ac_ct_AR" = x; then
5514 AR="false"
5515 else
5516 case $cross_compiling:$ac_tool_warned in
5517 yes:)
5518 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5519 whose name does not start with the host triplet. If you think this
5520 configuration is useful to you, please write to autoconf@gnu.org." >&5
5521 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5522 whose name does not start with the host triplet. If you think this
5523 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5524 ac_tool_warned=yes ;;
5525 esac
5526 AR=$ac_ct_AR
5528 else
5529 AR="$ac_cv_prog_AR"
5532 test -z "$AR" && AR=ar
5533 test -z "$AR_FLAGS" && AR_FLAGS=cru
5545 if test -n "$ac_tool_prefix"; then
5546 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5547 set dummy ${ac_tool_prefix}strip; ac_word=$2
5548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5550 if test "${ac_cv_prog_STRIP+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 else
5553 if test -n "$STRIP"; then
5554 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5555 else
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH
5559 IFS=$as_save_IFS
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 break 2
5567 done
5568 done
5569 IFS=$as_save_IFS
5573 STRIP=$ac_cv_prog_STRIP
5574 if test -n "$STRIP"; then
5575 { echo "$as_me:$LINENO: result: $STRIP" >&5
5576 echo "${ECHO_T}$STRIP" >&6; }
5577 else
5578 { echo "$as_me:$LINENO: result: no" >&5
5579 echo "${ECHO_T}no" >&6; }
5584 if test -z "$ac_cv_prog_STRIP"; then
5585 ac_ct_STRIP=$STRIP
5586 # Extract the first word of "strip", so it can be a program name with args.
5587 set dummy strip; ac_word=$2
5588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5590 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5592 else
5593 if test -n "$ac_ct_STRIP"; then
5594 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5595 else
5596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 for as_dir in $PATH
5599 IFS=$as_save_IFS
5600 test -z "$as_dir" && as_dir=.
5601 for ac_exec_ext in '' $ac_executable_extensions; do
5602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5603 ac_cv_prog_ac_ct_STRIP="strip"
5604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5605 break 2
5607 done
5608 done
5609 IFS=$as_save_IFS
5613 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5614 if test -n "$ac_ct_STRIP"; then
5615 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5616 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5617 else
5618 { echo "$as_me:$LINENO: result: no" >&5
5619 echo "${ECHO_T}no" >&6; }
5622 if test "x$ac_ct_STRIP" = x; then
5623 STRIP=":"
5624 else
5625 case $cross_compiling:$ac_tool_warned in
5626 yes:)
5627 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5628 whose name does not start with the host triplet. If you think this
5629 configuration is useful to you, please write to autoconf@gnu.org." >&5
5630 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5631 whose name does not start with the host triplet. If you think this
5632 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5633 ac_tool_warned=yes ;;
5634 esac
5635 STRIP=$ac_ct_STRIP
5637 else
5638 STRIP="$ac_cv_prog_STRIP"
5641 test -z "$STRIP" && STRIP=:
5648 if test -n "$ac_tool_prefix"; then
5649 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5650 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5653 if test "${ac_cv_prog_RANLIB+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5655 else
5656 if test -n "$RANLIB"; then
5657 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5658 else
5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 for as_dir in $PATH
5662 IFS=$as_save_IFS
5663 test -z "$as_dir" && as_dir=.
5664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5666 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5668 break 2
5670 done
5671 done
5672 IFS=$as_save_IFS
5676 RANLIB=$ac_cv_prog_RANLIB
5677 if test -n "$RANLIB"; then
5678 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5679 echo "${ECHO_T}$RANLIB" >&6; }
5680 else
5681 { echo "$as_me:$LINENO: result: no" >&5
5682 echo "${ECHO_T}no" >&6; }
5687 if test -z "$ac_cv_prog_RANLIB"; then
5688 ac_ct_RANLIB=$RANLIB
5689 # Extract the first word of "ranlib", so it can be a program name with args.
5690 set dummy ranlib; ac_word=$2
5691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5693 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696 if test -n "$ac_ct_RANLIB"; then
5697 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5698 else
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 for as_dir in $PATH
5702 IFS=$as_save_IFS
5703 test -z "$as_dir" && as_dir=.
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5706 ac_cv_prog_ac_ct_RANLIB="ranlib"
5707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5708 break 2
5710 done
5711 done
5712 IFS=$as_save_IFS
5716 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5717 if test -n "$ac_ct_RANLIB"; then
5718 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5719 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5720 else
5721 { echo "$as_me:$LINENO: result: no" >&5
5722 echo "${ECHO_T}no" >&6; }
5725 if test "x$ac_ct_RANLIB" = x; then
5726 RANLIB=":"
5727 else
5728 case $cross_compiling:$ac_tool_warned in
5729 yes:)
5730 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5731 whose name does not start with the host triplet. If you think this
5732 configuration is useful to you, please write to autoconf@gnu.org." >&5
5733 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5734 whose name does not start with the host triplet. If you think this
5735 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5736 ac_tool_warned=yes ;;
5737 esac
5738 RANLIB=$ac_ct_RANLIB
5740 else
5741 RANLIB="$ac_cv_prog_RANLIB"
5744 test -z "$RANLIB" && RANLIB=:
5751 # Determine commands to create old-style static archives.
5752 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5753 old_postinstall_cmds='chmod 644 $oldlib'
5754 old_postuninstall_cmds=
5756 if test -n "$RANLIB"; then
5757 case $host_os in
5758 openbsd*)
5759 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5762 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5764 esac
5765 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5801 # If no C compiler was specified, use CC.
5802 LTCC=${LTCC-"$CC"}
5804 # If no C compiler flags were specified, use CFLAGS.
5805 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5807 # Allow CC to be a program name with arguments.
5808 compiler=$CC
5811 # Check for command to grab the raw symbol name followed by C symbol from nm.
5812 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5813 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5814 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5818 # These are sane defaults that work on at least a few old systems.
5819 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5821 # Character class describing NM global symbol codes.
5822 symcode='[BCDEGRST]'
5824 # Regexp to match symbols that can be accessed directly from C.
5825 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5827 # Define system-specific variables.
5828 case $host_os in
5829 aix*)
5830 symcode='[BCDT]'
5832 cygwin* | mingw* | pw32*)
5833 symcode='[ABCDGISTW]'
5835 hpux*)
5836 if test "$host_cpu" = ia64; then
5837 symcode='[ABCDEGRST]'
5840 irix* | nonstopux*)
5841 symcode='[BCDEGRST]'
5843 osf*)
5844 symcode='[BCDEGQRST]'
5846 solaris*)
5847 symcode='[BDRT]'
5849 sco3.2v5*)
5850 symcode='[DT]'
5852 sysv4.2uw2*)
5853 symcode='[DT]'
5855 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5856 symcode='[ABDT]'
5858 sysv4)
5859 symcode='[DFNSTU]'
5861 esac
5863 # If we're using GNU nm, then use its standard symbol codes.
5864 case `$NM -V 2>&1` in
5865 *GNU* | *'with BFD'*)
5866 symcode='[ABCDGIRSTW]' ;;
5867 esac
5869 # Transform an extracted symbol line into a proper C declaration.
5870 # Some systems (esp. on ia64) link data and code symbols differently,
5871 # so use this general approach.
5872 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5874 # Transform an extracted symbol line into symbol name and symbol address
5875 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5876 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'"
5878 # Handle CRLF in mingw tool chain
5879 opt_cr=
5880 case $build_os in
5881 mingw*)
5882 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5884 esac
5886 # Try without a prefix underscore, then with it.
5887 for ac_symprfx in "" "_"; do
5889 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5890 symxfrm="\\1 $ac_symprfx\\2 \\2"
5892 # Write the raw and C identifiers.
5893 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5894 # Fake it for dumpbin and say T for any non-static function
5895 # and D for any global variable.
5896 # Also find C++ and __fastcall symbols from MSVC++,
5897 # which start with @ or ?.
5898 lt_cv_sys_global_symbol_pipe="$AWK '"\
5899 " {last_section=section; section=\$ 3};"\
5900 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5901 " \$ 0!~/External *\|/{next};"\
5902 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5903 " {if(hide[section]) next};"\
5904 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5905 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5906 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5907 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5908 " ' prfx=^$ac_symprfx"
5909 else
5910 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5913 # Check to see that the pipe works correctly.
5914 pipe_works=no
5916 rm -r -f conftest*
5917 cat > conftest.$ac_ext <<_LT_EOF
5918 #ifdef __cplusplus
5919 extern "C" {
5920 #endif
5921 char nm_test_var;
5922 void nm_test_func(void);
5923 void nm_test_func(void){}
5924 #ifdef __cplusplus
5926 #endif
5927 int main(){nm_test_var='a';nm_test_func();return(0);}
5928 _LT_EOF
5930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5931 (eval $ac_compile) 2>&5
5932 ac_status=$?
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; then
5935 # Now try to grab the symbols.
5936 nlist=conftest.nm
5937 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5938 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5939 ac_status=$?
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } && test -s "$nlist"; then
5942 # Try sorting and uniquifying the output.
5943 if sort "$nlist" | uniq > "$nlist"T; then
5944 mv -f "$nlist"T "$nlist"
5945 else
5946 rm -f "$nlist"T
5949 # Make sure that we snagged all the symbols we need.
5950 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5951 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5952 cat <<_LT_EOF > conftest.$ac_ext
5953 #ifdef __cplusplus
5954 extern "C" {
5955 #endif
5957 _LT_EOF
5958 # Now generate the symbol file.
5959 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5961 cat <<_LT_EOF >> conftest.$ac_ext
5963 /* The mapping between symbol names and symbols. */
5964 const struct {
5965 const char *name;
5966 void *address;
5968 lt__PROGRAM__LTX_preloaded_symbols[] =
5970 { "@PROGRAM@", (void *) 0 },
5971 _LT_EOF
5972 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5973 cat <<\_LT_EOF >> conftest.$ac_ext
5974 {0, (void *) 0}
5977 /* This works around a problem in FreeBSD linker */
5978 #ifdef FREEBSD_WORKAROUND
5979 static const void *lt_preloaded_setup() {
5980 return lt__PROGRAM__LTX_preloaded_symbols;
5982 #endif
5984 #ifdef __cplusplus
5986 #endif
5987 _LT_EOF
5988 # Now try linking the two files.
5989 mv conftest.$ac_objext conftstm.$ac_objext
5990 lt_save_LIBS="$LIBS"
5991 lt_save_CFLAGS="$CFLAGS"
5992 LIBS="conftstm.$ac_objext"
5993 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5995 (eval $ac_link) 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5999 pipe_works=yes
6001 LIBS="$lt_save_LIBS"
6002 CFLAGS="$lt_save_CFLAGS"
6003 else
6004 echo "cannot find nm_test_func in $nlist" >&5
6006 else
6007 echo "cannot find nm_test_var in $nlist" >&5
6009 else
6010 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6012 else
6013 echo "$progname: failed program was:" >&5
6014 cat conftest.$ac_ext >&5
6016 rm -rf conftest* conftst*
6018 # Do not use the global_symbol_pipe unless it works.
6019 if test "$pipe_works" = yes; then
6020 break
6021 else
6022 lt_cv_sys_global_symbol_pipe=
6024 done
6028 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6029 lt_cv_sys_global_symbol_to_cdecl=
6031 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6032 { echo "$as_me:$LINENO: result: failed" >&5
6033 echo "${ECHO_T}failed" >&6; }
6034 else
6035 { echo "$as_me:$LINENO: result: ok" >&5
6036 echo "${ECHO_T}ok" >&6; }
6061 # Check whether --enable-libtool-lock was given.
6062 if test "${enable_libtool_lock+set}" = set; then
6063 enableval=$enable_libtool_lock;
6066 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6068 # Some flags need to be propagated to the compiler or linker for good
6069 # libtool support.
6070 case $host in
6071 ia64-*-hpux*)
6072 # Find out which ABI we are using.
6073 echo 'int i;' > conftest.$ac_ext
6074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6075 (eval $ac_compile) 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; then
6079 case `/usr/bin/file conftest.$ac_objext` in
6080 *ELF-32*)
6081 HPUX_IA64_MODE="32"
6083 *ELF-64*)
6084 HPUX_IA64_MODE="64"
6086 esac
6088 rm -rf conftest*
6090 *-*-irix6*)
6091 # Find out which ABI we are using.
6092 echo '#line 6092 "configure"' > conftest.$ac_ext
6093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6094 (eval $ac_compile) 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; then
6098 if test "$lt_cv_prog_gnu_ld" = yes; then
6099 case `/usr/bin/file conftest.$ac_objext` in
6100 *32-bit*)
6101 LD="${LD-ld} -melf32bsmip"
6103 *N32*)
6104 LD="${LD-ld} -melf32bmipn32"
6106 *64-bit*)
6107 LD="${LD-ld} -melf64bmip"
6109 esac
6110 else
6111 case `/usr/bin/file conftest.$ac_objext` in
6112 *32-bit*)
6113 LD="${LD-ld} -32"
6115 *N32*)
6116 LD="${LD-ld} -n32"
6118 *64-bit*)
6119 LD="${LD-ld} -64"
6121 esac
6124 rm -rf conftest*
6127 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6128 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6129 # Find out which ABI we are using.
6130 echo 'int i;' > conftest.$ac_ext
6131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6132 (eval $ac_compile) 2>&5
6133 ac_status=$?
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; then
6136 case `/usr/bin/file conftest.o` in
6137 *32-bit*)
6138 case $host in
6139 x86_64-*kfreebsd*-gnu)
6140 LD="${LD-ld} -m elf_i386_fbsd"
6142 x86_64-*linux*)
6143 LD="${LD-ld} -m elf_i386"
6145 ppc64-*linux*|powerpc64-*linux*)
6146 LD="${LD-ld} -m elf32ppclinux"
6148 s390x-*linux*)
6149 LD="${LD-ld} -m elf_s390"
6151 sparc64-*linux*)
6152 LD="${LD-ld} -m elf32_sparc"
6154 esac
6156 *64-bit*)
6157 case $host in
6158 x86_64-*kfreebsd*-gnu)
6159 LD="${LD-ld} -m elf_x86_64_fbsd"
6161 x86_64-*linux*)
6162 LD="${LD-ld} -m elf_x86_64"
6164 ppc*-*linux*|powerpc*-*linux*)
6165 LD="${LD-ld} -m elf64ppc"
6167 s390*-*linux*|s390*-*tpf*)
6168 LD="${LD-ld} -m elf64_s390"
6170 sparc*-*linux*)
6171 LD="${LD-ld} -m elf64_sparc"
6173 esac
6175 esac
6177 rm -rf conftest*
6180 *-*-sco3.2v5*)
6181 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6182 SAVE_CFLAGS="$CFLAGS"
6183 CFLAGS="$CFLAGS -belf"
6184 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6185 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6186 if test "${lt_cv_cc_needs_belf+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189 ac_ext=c
6190 ac_cpp='$CPP $CPPFLAGS'
6191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6195 cat >conftest.$ac_ext <<_ACEOF
6196 /* confdefs.h. */
6197 _ACEOF
6198 cat confdefs.h >>conftest.$ac_ext
6199 cat >>conftest.$ac_ext <<_ACEOF
6200 /* end confdefs.h. */
6203 main ()
6207 return 0;
6209 _ACEOF
6210 rm -f conftest.$ac_objext conftest$ac_exeext
6211 if { (ac_try="$ac_link"
6212 case "(($ac_try" in
6213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6214 *) ac_try_echo=$ac_try;;
6215 esac
6216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6217 (eval "$ac_link") 2>conftest.er1
6218 ac_status=$?
6219 grep -v '^ *+' conftest.er1 >conftest.err
6220 rm -f conftest.er1
6221 cat conftest.err >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } && {
6224 test -z "$ac_c_werror_flag" ||
6225 test ! -s conftest.err
6226 } && test -s conftest$ac_exeext &&
6227 $as_test_x conftest$ac_exeext; then
6228 lt_cv_cc_needs_belf=yes
6229 else
6230 echo "$as_me: failed program was:" >&5
6231 sed 's/^/| /' conftest.$ac_ext >&5
6233 lt_cv_cc_needs_belf=no
6236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6237 conftest$ac_exeext conftest.$ac_ext
6238 ac_ext=c
6239 ac_cpp='$CPP $CPPFLAGS'
6240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6245 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6246 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6247 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6248 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6249 CFLAGS="$SAVE_CFLAGS"
6252 sparc*-*solaris*)
6253 # Find out which ABI we are using.
6254 echo 'int i;' > conftest.$ac_ext
6255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6256 (eval $ac_compile) 2>&5
6257 ac_status=$?
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); }; then
6260 case `/usr/bin/file conftest.o` in
6261 *64-bit*)
6262 case $lt_cv_prog_gnu_ld in
6263 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6265 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6266 LD="${LD-ld} -64"
6269 esac
6271 esac
6273 rm -rf conftest*
6275 esac
6277 need_locks="$enable_libtool_lock"
6280 case $host_os in
6281 rhapsody* | darwin*)
6282 if test -n "$ac_tool_prefix"; then
6283 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6284 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6287 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6289 else
6290 if test -n "$DSYMUTIL"; then
6291 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6292 else
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6300 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 break 2
6304 done
6305 done
6306 IFS=$as_save_IFS
6310 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6311 if test -n "$DSYMUTIL"; then
6312 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6313 echo "${ECHO_T}$DSYMUTIL" >&6; }
6314 else
6315 { echo "$as_me:$LINENO: result: no" >&5
6316 echo "${ECHO_T}no" >&6; }
6321 if test -z "$ac_cv_prog_DSYMUTIL"; then
6322 ac_ct_DSYMUTIL=$DSYMUTIL
6323 # Extract the first word of "dsymutil", so it can be a program name with args.
6324 set dummy dsymutil; ac_word=$2
6325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6327 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330 if test -n "$ac_ct_DSYMUTIL"; then
6331 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6332 else
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in $PATH
6336 IFS=$as_save_IFS
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6340 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6342 break 2
6344 done
6345 done
6346 IFS=$as_save_IFS
6350 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6351 if test -n "$ac_ct_DSYMUTIL"; then
6352 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6353 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
6354 else
6355 { echo "$as_me:$LINENO: result: no" >&5
6356 echo "${ECHO_T}no" >&6; }
6359 if test "x$ac_ct_DSYMUTIL" = x; then
6360 DSYMUTIL=":"
6361 else
6362 case $cross_compiling:$ac_tool_warned in
6363 yes:)
6364 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6365 whose name does not start with the host triplet. If you think this
6366 configuration is useful to you, please write to autoconf@gnu.org." >&5
6367 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6368 whose name does not start with the host triplet. If you think this
6369 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6370 ac_tool_warned=yes ;;
6371 esac
6372 DSYMUTIL=$ac_ct_DSYMUTIL
6374 else
6375 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6378 if test -n "$ac_tool_prefix"; then
6379 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6380 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6383 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386 if test -n "$NMEDIT"; then
6387 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6392 IFS=$as_save_IFS
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6396 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 break 2
6400 done
6401 done
6402 IFS=$as_save_IFS
6406 NMEDIT=$ac_cv_prog_NMEDIT
6407 if test -n "$NMEDIT"; then
6408 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
6409 echo "${ECHO_T}$NMEDIT" >&6; }
6410 else
6411 { echo "$as_me:$LINENO: result: no" >&5
6412 echo "${ECHO_T}no" >&6; }
6417 if test -z "$ac_cv_prog_NMEDIT"; then
6418 ac_ct_NMEDIT=$NMEDIT
6419 # Extract the first word of "nmedit", so it can be a program name with args.
6420 set dummy nmedit; ac_word=$2
6421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6423 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6425 else
6426 if test -n "$ac_ct_NMEDIT"; then
6427 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6428 else
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6432 IFS=$as_save_IFS
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6436 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 break 2
6440 done
6441 done
6442 IFS=$as_save_IFS
6446 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6447 if test -n "$ac_ct_NMEDIT"; then
6448 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6449 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
6450 else
6451 { echo "$as_me:$LINENO: result: no" >&5
6452 echo "${ECHO_T}no" >&6; }
6455 if test "x$ac_ct_NMEDIT" = x; then
6456 NMEDIT=":"
6457 else
6458 case $cross_compiling:$ac_tool_warned in
6459 yes:)
6460 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6461 whose name does not start with the host triplet. If you think this
6462 configuration is useful to you, please write to autoconf@gnu.org." >&5
6463 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6464 whose name does not start with the host triplet. If you think this
6465 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6466 ac_tool_warned=yes ;;
6467 esac
6468 NMEDIT=$ac_ct_NMEDIT
6470 else
6471 NMEDIT="$ac_cv_prog_NMEDIT"
6474 if test -n "$ac_tool_prefix"; then
6475 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6476 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6479 if test "${ac_cv_prog_LIPO+set}" = set; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 else
6482 if test -n "$LIPO"; then
6483 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6484 else
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 for as_dir in $PATH
6488 IFS=$as_save_IFS
6489 test -z "$as_dir" && as_dir=.
6490 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6492 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6494 break 2
6496 done
6497 done
6498 IFS=$as_save_IFS
6502 LIPO=$ac_cv_prog_LIPO
6503 if test -n "$LIPO"; then
6504 { echo "$as_me:$LINENO: result: $LIPO" >&5
6505 echo "${ECHO_T}$LIPO" >&6; }
6506 else
6507 { echo "$as_me:$LINENO: result: no" >&5
6508 echo "${ECHO_T}no" >&6; }
6513 if test -z "$ac_cv_prog_LIPO"; then
6514 ac_ct_LIPO=$LIPO
6515 # Extract the first word of "lipo", so it can be a program name with args.
6516 set dummy lipo; ac_word=$2
6517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6519 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522 if test -n "$ac_ct_LIPO"; then
6523 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6524 else
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
6528 IFS=$as_save_IFS
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6532 ac_cv_prog_ac_ct_LIPO="lipo"
6533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 break 2
6536 done
6537 done
6538 IFS=$as_save_IFS
6542 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6543 if test -n "$ac_ct_LIPO"; then
6544 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6545 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
6546 else
6547 { echo "$as_me:$LINENO: result: no" >&5
6548 echo "${ECHO_T}no" >&6; }
6551 if test "x$ac_ct_LIPO" = x; then
6552 LIPO=":"
6553 else
6554 case $cross_compiling:$ac_tool_warned in
6555 yes:)
6556 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6557 whose name does not start with the host triplet. If you think this
6558 configuration is useful to you, please write to autoconf@gnu.org." >&5
6559 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6560 whose name does not start with the host triplet. If you think this
6561 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6562 ac_tool_warned=yes ;;
6563 esac
6564 LIPO=$ac_ct_LIPO
6566 else
6567 LIPO="$ac_cv_prog_LIPO"
6570 if test -n "$ac_tool_prefix"; then
6571 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6572 set dummy ${ac_tool_prefix}otool; ac_word=$2
6573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6575 if test "${ac_cv_prog_OTOOL+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 else
6578 if test -n "$OTOOL"; then
6579 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6580 else
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6584 IFS=$as_save_IFS
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 break 2
6592 done
6593 done
6594 IFS=$as_save_IFS
6598 OTOOL=$ac_cv_prog_OTOOL
6599 if test -n "$OTOOL"; then
6600 { echo "$as_me:$LINENO: result: $OTOOL" >&5
6601 echo "${ECHO_T}$OTOOL" >&6; }
6602 else
6603 { echo "$as_me:$LINENO: result: no" >&5
6604 echo "${ECHO_T}no" >&6; }
6609 if test -z "$ac_cv_prog_OTOOL"; then
6610 ac_ct_OTOOL=$OTOOL
6611 # Extract the first word of "otool", so it can be a program name with args.
6612 set dummy otool; ac_word=$2
6613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6615 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618 if test -n "$ac_ct_OTOOL"; then
6619 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6620 else
6621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 for as_dir in $PATH
6624 IFS=$as_save_IFS
6625 test -z "$as_dir" && as_dir=.
6626 for ac_exec_ext in '' $ac_executable_extensions; do
6627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6628 ac_cv_prog_ac_ct_OTOOL="otool"
6629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6630 break 2
6632 done
6633 done
6634 IFS=$as_save_IFS
6638 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6639 if test -n "$ac_ct_OTOOL"; then
6640 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6641 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
6642 else
6643 { echo "$as_me:$LINENO: result: no" >&5
6644 echo "${ECHO_T}no" >&6; }
6647 if test "x$ac_ct_OTOOL" = x; then
6648 OTOOL=":"
6649 else
6650 case $cross_compiling:$ac_tool_warned in
6651 yes:)
6652 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6653 whose name does not start with the host triplet. If you think this
6654 configuration is useful to you, please write to autoconf@gnu.org." >&5
6655 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6656 whose name does not start with the host triplet. If you think this
6657 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6658 ac_tool_warned=yes ;;
6659 esac
6660 OTOOL=$ac_ct_OTOOL
6662 else
6663 OTOOL="$ac_cv_prog_OTOOL"
6666 if test -n "$ac_tool_prefix"; then
6667 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6668 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674 if test -n "$OTOOL64"; then
6675 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6676 else
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 break 2
6688 done
6689 done
6690 IFS=$as_save_IFS
6694 OTOOL64=$ac_cv_prog_OTOOL64
6695 if test -n "$OTOOL64"; then
6696 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6697 echo "${ECHO_T}$OTOOL64" >&6; }
6698 else
6699 { echo "$as_me:$LINENO: result: no" >&5
6700 echo "${ECHO_T}no" >&6; }
6705 if test -z "$ac_cv_prog_OTOOL64"; then
6706 ac_ct_OTOOL64=$OTOOL64
6707 # Extract the first word of "otool64", so it can be a program name with args.
6708 set dummy otool64; ac_word=$2
6709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6711 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 else
6714 if test -n "$ac_ct_OTOOL64"; then
6715 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6716 else
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 for as_dir in $PATH
6720 IFS=$as_save_IFS
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6724 ac_cv_prog_ac_ct_OTOOL64="otool64"
6725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6726 break 2
6728 done
6729 done
6730 IFS=$as_save_IFS
6734 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6735 if test -n "$ac_ct_OTOOL64"; then
6736 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6737 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6738 else
6739 { echo "$as_me:$LINENO: result: no" >&5
6740 echo "${ECHO_T}no" >&6; }
6743 if test "x$ac_ct_OTOOL64" = x; then
6744 OTOOL64=":"
6745 else
6746 case $cross_compiling:$ac_tool_warned in
6747 yes:)
6748 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6749 whose name does not start with the host triplet. If you think this
6750 configuration is useful to you, please write to autoconf@gnu.org." >&5
6751 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6752 whose name does not start with the host triplet. If you think this
6753 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6754 ac_tool_warned=yes ;;
6755 esac
6756 OTOOL64=$ac_ct_OTOOL64
6758 else
6759 OTOOL64="$ac_cv_prog_OTOOL64"
6788 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6789 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6790 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793 lt_cv_apple_cc_single_mod=no
6794 if test -z "${LT_MULTI_MODULE}"; then
6795 # By default we will add the -single_module flag. You can override
6796 # by either setting the environment variable LT_MULTI_MODULE
6797 # non-empty at configure time, or by adding -multi_module to the
6798 # link flags.
6799 rm -rf libconftest.dylib*
6800 echo "int foo(void){return 1;}" > conftest.c
6801 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6802 -dynamiclib -Wl,-single_module conftest.c" >&5
6803 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6804 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6805 _lt_result=$?
6806 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6807 lt_cv_apple_cc_single_mod=yes
6808 else
6809 cat conftest.err >&5
6811 rm -rf libconftest.dylib*
6812 rm -f conftest.*
6815 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6816 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6817 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6818 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6819 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 else
6822 lt_cv_ld_exported_symbols_list=no
6823 save_LDFLAGS=$LDFLAGS
6824 echo "_main" > conftest.sym
6825 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6826 cat >conftest.$ac_ext <<_ACEOF
6827 /* confdefs.h. */
6828 _ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h. */
6834 main ()
6838 return 0;
6840 _ACEOF
6841 rm -f conftest.$ac_objext conftest$ac_exeext
6842 if { (ac_try="$ac_link"
6843 case "(($ac_try" in
6844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6845 *) ac_try_echo=$ac_try;;
6846 esac
6847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6848 (eval "$ac_link") 2>conftest.er1
6849 ac_status=$?
6850 grep -v '^ *+' conftest.er1 >conftest.err
6851 rm -f conftest.er1
6852 cat conftest.err >&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); } && {
6855 test -z "$ac_c_werror_flag" ||
6856 test ! -s conftest.err
6857 } && test -s conftest$ac_exeext &&
6858 $as_test_x conftest$ac_exeext; then
6859 lt_cv_ld_exported_symbols_list=yes
6860 else
6861 echo "$as_me: failed program was:" >&5
6862 sed 's/^/| /' conftest.$ac_ext >&5
6864 lt_cv_ld_exported_symbols_list=no
6867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6868 conftest$ac_exeext conftest.$ac_ext
6869 LDFLAGS="$save_LDFLAGS"
6872 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6873 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6874 case $host_os in
6875 rhapsody* | darwin1.[012])
6876 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6877 darwin1.*)
6878 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6879 darwin*) # darwin 5.x on
6880 # if running on 10.5 or later, the deployment target defaults
6881 # to the OS version, if on x86, and 10.4, the deployment
6882 # target defaults to 10.4. Don't you love it?
6883 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6884 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6885 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6886 10.[012]*)
6887 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6888 10.*)
6889 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6890 esac
6892 esac
6893 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6894 _lt_dar_single_mod='$single_module'
6896 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6897 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6898 else
6899 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6901 if test "$DSYMUTIL" != ":"; then
6902 _lt_dsymutil='~$DSYMUTIL $lib || :'
6903 else
6904 _lt_dsymutil=
6907 esac
6909 ac_ext=c
6910 ac_cpp='$CPP $CPPFLAGS'
6911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6914 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6915 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6916 # On Suns, sometimes $CPP names a directory.
6917 if test -n "$CPP" && test -d "$CPP"; then
6918 CPP=
6920 if test -z "$CPP"; then
6921 if test "${ac_cv_prog_CPP+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 else
6924 # Double quotes because CPP needs to be expanded
6925 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6927 ac_preproc_ok=false
6928 for ac_c_preproc_warn_flag in '' yes
6930 # Use a header file that comes with gcc, so configuring glibc
6931 # with a fresh cross-compiler works.
6932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6933 # <limits.h> exists even on freestanding compilers.
6934 # On the NeXT, cc -E runs the code through the compiler's parser,
6935 # not just through cpp. "Syntax error" is here to catch this case.
6936 cat >conftest.$ac_ext <<_ACEOF
6937 /* confdefs.h. */
6938 _ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6942 #ifdef __STDC__
6943 # include <limits.h>
6944 #else
6945 # include <assert.h>
6946 #endif
6947 Syntax error
6948 _ACEOF
6949 if { (ac_try="$ac_cpp conftest.$ac_ext"
6950 case "(($ac_try" in
6951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6953 esac
6954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6956 ac_status=$?
6957 grep -v '^ *+' conftest.er1 >conftest.err
6958 rm -f conftest.er1
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } >/dev/null && {
6962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6963 test ! -s conftest.err
6964 }; then
6966 else
6967 echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6970 # Broken: fails on valid input.
6971 continue
6974 rm -f conftest.err conftest.$ac_ext
6976 # OK, works on sane cases. Now check whether nonexistent headers
6977 # can be detected and how.
6978 cat >conftest.$ac_ext <<_ACEOF
6979 /* confdefs.h. */
6980 _ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h. */
6984 #include <ac_nonexistent.h>
6985 _ACEOF
6986 if { (ac_try="$ac_cpp conftest.$ac_ext"
6987 case "(($ac_try" in
6988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6989 *) ac_try_echo=$ac_try;;
6990 esac
6991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6993 ac_status=$?
6994 grep -v '^ *+' conftest.er1 >conftest.err
6995 rm -f conftest.er1
6996 cat conftest.err >&5
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); } >/dev/null && {
6999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7000 test ! -s conftest.err
7001 }; then
7002 # Broken: success on invalid input.
7003 continue
7004 else
7005 echo "$as_me: failed program was:" >&5
7006 sed 's/^/| /' conftest.$ac_ext >&5
7008 # Passes both tests.
7009 ac_preproc_ok=:
7010 break
7013 rm -f conftest.err conftest.$ac_ext
7015 done
7016 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7017 rm -f conftest.err conftest.$ac_ext
7018 if $ac_preproc_ok; then
7019 break
7022 done
7023 ac_cv_prog_CPP=$CPP
7026 CPP=$ac_cv_prog_CPP
7027 else
7028 ac_cv_prog_CPP=$CPP
7030 { echo "$as_me:$LINENO: result: $CPP" >&5
7031 echo "${ECHO_T}$CPP" >&6; }
7032 ac_preproc_ok=false
7033 for ac_c_preproc_warn_flag in '' yes
7035 # Use a header file that comes with gcc, so configuring glibc
7036 # with a fresh cross-compiler works.
7037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7038 # <limits.h> exists even on freestanding compilers.
7039 # On the NeXT, cc -E runs the code through the compiler's parser,
7040 # not just through cpp. "Syntax error" is here to catch this case.
7041 cat >conftest.$ac_ext <<_ACEOF
7042 /* confdefs.h. */
7043 _ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7047 #ifdef __STDC__
7048 # include <limits.h>
7049 #else
7050 # include <assert.h>
7051 #endif
7052 Syntax error
7053 _ACEOF
7054 if { (ac_try="$ac_cpp conftest.$ac_ext"
7055 case "(($ac_try" in
7056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7057 *) ac_try_echo=$ac_try;;
7058 esac
7059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7061 ac_status=$?
7062 grep -v '^ *+' conftest.er1 >conftest.err
7063 rm -f conftest.er1
7064 cat conftest.err >&5
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); } >/dev/null && {
7067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7068 test ! -s conftest.err
7069 }; then
7071 else
7072 echo "$as_me: failed program was:" >&5
7073 sed 's/^/| /' conftest.$ac_ext >&5
7075 # Broken: fails on valid input.
7076 continue
7079 rm -f conftest.err conftest.$ac_ext
7081 # OK, works on sane cases. Now check whether nonexistent headers
7082 # can be detected and how.
7083 cat >conftest.$ac_ext <<_ACEOF
7084 /* confdefs.h. */
7085 _ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7089 #include <ac_nonexistent.h>
7090 _ACEOF
7091 if { (ac_try="$ac_cpp conftest.$ac_ext"
7092 case "(($ac_try" in
7093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7094 *) ac_try_echo=$ac_try;;
7095 esac
7096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7098 ac_status=$?
7099 grep -v '^ *+' conftest.er1 >conftest.err
7100 rm -f conftest.er1
7101 cat conftest.err >&5
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); } >/dev/null && {
7104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7105 test ! -s conftest.err
7106 }; then
7107 # Broken: success on invalid input.
7108 continue
7109 else
7110 echo "$as_me: failed program was:" >&5
7111 sed 's/^/| /' conftest.$ac_ext >&5
7113 # Passes both tests.
7114 ac_preproc_ok=:
7115 break
7118 rm -f conftest.err conftest.$ac_ext
7120 done
7121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7122 rm -f conftest.err conftest.$ac_ext
7123 if $ac_preproc_ok; then
7125 else
7126 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7127 See \`config.log' for more details." >&5
7128 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7129 See \`config.log' for more details." >&2;}
7130 { (exit 1); exit 1; }; }
7133 ac_ext=c
7134 ac_cpp='$CPP $CPPFLAGS'
7135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7140 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7141 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7142 if test "${ac_cv_header_stdc+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7144 else
7145 cat >conftest.$ac_ext <<_ACEOF
7146 /* confdefs.h. */
7147 _ACEOF
7148 cat confdefs.h >>conftest.$ac_ext
7149 cat >>conftest.$ac_ext <<_ACEOF
7150 /* end confdefs.h. */
7151 #include <stdlib.h>
7152 #include <stdarg.h>
7153 #include <string.h>
7154 #include <float.h>
7157 main ()
7161 return 0;
7163 _ACEOF
7164 rm -f conftest.$ac_objext
7165 if { (ac_try="$ac_compile"
7166 case "(($ac_try" in
7167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7168 *) ac_try_echo=$ac_try;;
7169 esac
7170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7171 (eval "$ac_compile") 2>conftest.er1
7172 ac_status=$?
7173 grep -v '^ *+' conftest.er1 >conftest.err
7174 rm -f conftest.er1
7175 cat conftest.err >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } && {
7178 test -z "$ac_c_werror_flag" ||
7179 test ! -s conftest.err
7180 } && test -s conftest.$ac_objext; then
7181 ac_cv_header_stdc=yes
7182 else
7183 echo "$as_me: failed program was:" >&5
7184 sed 's/^/| /' conftest.$ac_ext >&5
7186 ac_cv_header_stdc=no
7189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7191 if test $ac_cv_header_stdc = yes; then
7192 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7193 cat >conftest.$ac_ext <<_ACEOF
7194 /* confdefs.h. */
7195 _ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7199 #include <string.h>
7201 _ACEOF
7202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7203 $EGREP "memchr" >/dev/null 2>&1; then
7205 else
7206 ac_cv_header_stdc=no
7208 rm -f -r conftest*
7212 if test $ac_cv_header_stdc = yes; then
7213 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7214 cat >conftest.$ac_ext <<_ACEOF
7215 /* confdefs.h. */
7216 _ACEOF
7217 cat confdefs.h >>conftest.$ac_ext
7218 cat >>conftest.$ac_ext <<_ACEOF
7219 /* end confdefs.h. */
7220 #include <stdlib.h>
7222 _ACEOF
7223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7224 $EGREP "free" >/dev/null 2>&1; then
7226 else
7227 ac_cv_header_stdc=no
7229 rm -f -r conftest*
7233 if test $ac_cv_header_stdc = yes; then
7234 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7235 if test "$cross_compiling" = yes; then
7237 else
7238 cat >conftest.$ac_ext <<_ACEOF
7239 /* confdefs.h. */
7240 _ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7244 #include <ctype.h>
7245 #include <stdlib.h>
7246 #if ((' ' & 0x0FF) == 0x020)
7247 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7248 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7249 #else
7250 # define ISLOWER(c) \
7251 (('a' <= (c) && (c) <= 'i') \
7252 || ('j' <= (c) && (c) <= 'r') \
7253 || ('s' <= (c) && (c) <= 'z'))
7254 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7255 #endif
7257 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7259 main ()
7261 int i;
7262 for (i = 0; i < 256; i++)
7263 if (XOR (islower (i), ISLOWER (i))
7264 || toupper (i) != TOUPPER (i))
7265 return 2;
7266 return 0;
7268 _ACEOF
7269 rm -f conftest$ac_exeext
7270 if { (ac_try="$ac_link"
7271 case "(($ac_try" in
7272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7273 *) ac_try_echo=$ac_try;;
7274 esac
7275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7276 (eval "$ac_link") 2>&5
7277 ac_status=$?
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7280 { (case "(($ac_try" in
7281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282 *) ac_try_echo=$ac_try;;
7283 esac
7284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285 (eval "$ac_try") 2>&5
7286 ac_status=$?
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); }; }; then
7290 else
7291 echo "$as_me: program exited with status $ac_status" >&5
7292 echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.$ac_ext >&5
7295 ( exit $ac_status )
7296 ac_cv_header_stdc=no
7298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7304 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7305 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7306 if test $ac_cv_header_stdc = yes; then
7308 cat >>confdefs.h <<\_ACEOF
7309 #define STDC_HEADERS 1
7310 _ACEOF
7314 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7324 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7325 inttypes.h stdint.h unistd.h
7327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333 cat >conftest.$ac_ext <<_ACEOF
7334 /* confdefs.h. */
7335 _ACEOF
7336 cat confdefs.h >>conftest.$ac_ext
7337 cat >>conftest.$ac_ext <<_ACEOF
7338 /* end confdefs.h. */
7339 $ac_includes_default
7341 #include <$ac_header>
7342 _ACEOF
7343 rm -f conftest.$ac_objext
7344 if { (ac_try="$ac_compile"
7345 case "(($ac_try" in
7346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7347 *) ac_try_echo=$ac_try;;
7348 esac
7349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7350 (eval "$ac_compile") 2>conftest.er1
7351 ac_status=$?
7352 grep -v '^ *+' conftest.er1 >conftest.err
7353 rm -f conftest.er1
7354 cat conftest.err >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } && {
7357 test -z "$ac_c_werror_flag" ||
7358 test ! -s conftest.err
7359 } && test -s conftest.$ac_objext; then
7360 eval "$as_ac_Header=yes"
7361 else
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7365 eval "$as_ac_Header=no"
7368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7370 ac_res=`eval echo '${'$as_ac_Header'}'`
7371 { echo "$as_me:$LINENO: result: $ac_res" >&5
7372 echo "${ECHO_T}$ac_res" >&6; }
7373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7374 cat >>confdefs.h <<_ACEOF
7375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7376 _ACEOF
7380 done
7384 for ac_header in dlfcn.h
7386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 else
7392 cat >conftest.$ac_ext <<_ACEOF
7393 /* confdefs.h. */
7394 _ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7398 $ac_includes_default
7400 #include <$ac_header>
7401 _ACEOF
7402 rm -f conftest.$ac_objext
7403 if { (ac_try="$ac_compile"
7404 case "(($ac_try" in
7405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7406 *) ac_try_echo=$ac_try;;
7407 esac
7408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7409 (eval "$ac_compile") 2>conftest.er1
7410 ac_status=$?
7411 grep -v '^ *+' conftest.er1 >conftest.err
7412 rm -f conftest.er1
7413 cat conftest.err >&5
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); } && {
7416 test -z "$ac_c_werror_flag" ||
7417 test ! -s conftest.err
7418 } && test -s conftest.$ac_objext; then
7419 eval "$as_ac_Header=yes"
7420 else
7421 echo "$as_me: failed program was:" >&5
7422 sed 's/^/| /' conftest.$ac_ext >&5
7424 eval "$as_ac_Header=no"
7427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429 ac_res=`eval echo '${'$as_ac_Header'}'`
7430 { echo "$as_me:$LINENO: result: $ac_res" >&5
7431 echo "${ECHO_T}$ac_res" >&6; }
7432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7433 cat >>confdefs.h <<_ACEOF
7434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7435 _ACEOF
7439 done
7443 # Set options
7447 enable_dlopen=no
7451 # Check whether --enable-shared was given.
7452 if test "${enable_shared+set}" = set; then
7453 enableval=$enable_shared; p=${PACKAGE-default}
7454 case $enableval in
7455 yes) enable_shared=yes ;;
7456 no) enable_shared=no ;;
7458 enable_shared=no
7459 # Look at the argument we got. We use all the common list separators.
7460 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7461 for pkg in $enableval; do
7462 IFS="$lt_save_ifs"
7463 if test "X$pkg" = "X$p"; then
7464 enable_shared=yes
7466 done
7467 IFS="$lt_save_ifs"
7469 esac
7470 else
7471 enable_shared=yes
7482 # Check whether --enable-static was given.
7483 if test "${enable_static+set}" = set; then
7484 enableval=$enable_static; p=${PACKAGE-default}
7485 case $enableval in
7486 yes) enable_static=yes ;;
7487 no) enable_static=no ;;
7489 enable_static=no
7490 # Look at the argument we got. We use all the common list separators.
7491 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7492 for pkg in $enableval; do
7493 IFS="$lt_save_ifs"
7494 if test "X$pkg" = "X$p"; then
7495 enable_static=yes
7497 done
7498 IFS="$lt_save_ifs"
7500 esac
7501 else
7502 enable_static=yes
7514 # Check whether --with-pic was given.
7515 if test "${with_pic+set}" = set; then
7516 withval=$with_pic; pic_mode="$withval"
7517 else
7518 pic_mode=default
7522 test -z "$pic_mode" && pic_mode=default
7530 # Check whether --enable-fast-install was given.
7531 if test "${enable_fast_install+set}" = set; then
7532 enableval=$enable_fast_install; p=${PACKAGE-default}
7533 case $enableval in
7534 yes) enable_fast_install=yes ;;
7535 no) enable_fast_install=no ;;
7537 enable_fast_install=no
7538 # Look at the argument we got. We use all the common list separators.
7539 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7540 for pkg in $enableval; do
7541 IFS="$lt_save_ifs"
7542 if test "X$pkg" = "X$p"; then
7543 enable_fast_install=yes
7545 done
7546 IFS="$lt_save_ifs"
7548 esac
7549 else
7550 enable_fast_install=yes
7563 # This can be used to rebuild libtool when needed
7564 LIBTOOL_DEPS="$ltmain"
7566 # Always use our own libtool.
7567 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7593 test -z "$LN_S" && LN_S="ln -s"
7608 if test -n "${ZSH_VERSION+set}" ; then
7609 setopt NO_GLOB_SUBST
7612 { echo "$as_me:$LINENO: checking for objdir" >&5
7613 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7614 if test "${lt_cv_objdir+set}" = set; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7616 else
7617 rm -f .libs 2>/dev/null
7618 mkdir .libs 2>/dev/null
7619 if test -d .libs; then
7620 lt_cv_objdir=.libs
7621 else
7622 # MS-DOS does not allow filenames that begin with a dot.
7623 lt_cv_objdir=_libs
7625 rmdir .libs 2>/dev/null
7627 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7628 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7629 objdir=$lt_cv_objdir
7635 cat >>confdefs.h <<_ACEOF
7636 #define LT_OBJDIR "$lt_cv_objdir/"
7637 _ACEOF
7655 case $host_os in
7656 aix3*)
7657 # AIX sometimes has problems with the GCC collect2 program. For some
7658 # reason, if we set the COLLECT_NAMES environment variable, the problems
7659 # vanish in a puff of smoke.
7660 if test "X${COLLECT_NAMES+set}" != Xset; then
7661 COLLECT_NAMES=
7662 export COLLECT_NAMES
7665 esac
7667 # Sed substitution that helps us do robust quoting. It backslashifies
7668 # metacharacters that are still active within double-quoted strings.
7669 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7671 # Same as above, but do not quote variable references.
7672 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7674 # Sed substitution to delay expansion of an escaped shell variable in a
7675 # double_quote_subst'ed string.
7676 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7678 # Sed substitution to delay expansion of an escaped single quote.
7679 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7681 # Sed substitution to avoid accidental globbing in evaled expressions
7682 no_glob_subst='s/\*/\\\*/g'
7684 # Global variables:
7685 ofile=libtool
7686 can_build_shared=yes
7688 # All known linkers require a `.a' archive for static linking (except MSVC,
7689 # which needs '.lib').
7690 libext=a
7692 with_gnu_ld="$lt_cv_prog_gnu_ld"
7694 old_CC="$CC"
7695 old_CFLAGS="$CFLAGS"
7697 # Set sane defaults for various variables
7698 test -z "$CC" && CC=cc
7699 test -z "$LTCC" && LTCC=$CC
7700 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7701 test -z "$LD" && LD=ld
7702 test -z "$ac_objext" && ac_objext=o
7704 for cc_temp in $compiler""; do
7705 case $cc_temp in
7706 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7707 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7708 \-*) ;;
7709 *) break;;
7710 esac
7711 done
7712 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7715 # Only perform the check for file, if the check method requires it
7716 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7717 case $deplibs_check_method in
7718 file_magic*)
7719 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7720 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7721 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7722 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 else
7725 case $MAGIC_CMD in
7726 [\\/*] | ?:[\\/]*)
7727 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7730 lt_save_MAGIC_CMD="$MAGIC_CMD"
7731 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7732 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7733 for ac_dir in $ac_dummy; do
7734 IFS="$lt_save_ifs"
7735 test -z "$ac_dir" && ac_dir=.
7736 if test -f $ac_dir/${ac_tool_prefix}file; then
7737 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7738 if test -n "$file_magic_test_file"; then
7739 case $deplibs_check_method in
7740 "file_magic "*)
7741 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7742 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7743 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7744 $EGREP "$file_magic_regex" > /dev/null; then
7746 else
7747 cat <<_LT_EOF 1>&2
7749 *** Warning: the command libtool uses to detect shared libraries,
7750 *** $file_magic_cmd, produces output that libtool cannot recognize.
7751 *** The result is that libtool may fail to recognize shared libraries
7752 *** as such. This will affect the creation of libtool libraries that
7753 *** depend on shared libraries, but programs linked with such libtool
7754 *** libraries will work regardless of this problem. Nevertheless, you
7755 *** may want to report the problem to your system manager and/or to
7756 *** bug-libtool@gnu.org
7758 _LT_EOF
7759 fi ;;
7760 esac
7762 break
7764 done
7765 IFS="$lt_save_ifs"
7766 MAGIC_CMD="$lt_save_MAGIC_CMD"
7768 esac
7771 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7772 if test -n "$MAGIC_CMD"; then
7773 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7774 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7775 else
7776 { echo "$as_me:$LINENO: result: no" >&5
7777 echo "${ECHO_T}no" >&6; }
7784 if test -z "$lt_cv_path_MAGIC_CMD"; then
7785 if test -n "$ac_tool_prefix"; then
7786 { echo "$as_me:$LINENO: checking for file" >&5
7787 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7788 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 else
7791 case $MAGIC_CMD in
7792 [\\/*] | ?:[\\/]*)
7793 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7796 lt_save_MAGIC_CMD="$MAGIC_CMD"
7797 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7798 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7799 for ac_dir in $ac_dummy; do
7800 IFS="$lt_save_ifs"
7801 test -z "$ac_dir" && ac_dir=.
7802 if test -f $ac_dir/file; then
7803 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7804 if test -n "$file_magic_test_file"; then
7805 case $deplibs_check_method in
7806 "file_magic "*)
7807 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7808 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7809 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7810 $EGREP "$file_magic_regex" > /dev/null; then
7812 else
7813 cat <<_LT_EOF 1>&2
7815 *** Warning: the command libtool uses to detect shared libraries,
7816 *** $file_magic_cmd, produces output that libtool cannot recognize.
7817 *** The result is that libtool may fail to recognize shared libraries
7818 *** as such. This will affect the creation of libtool libraries that
7819 *** depend on shared libraries, but programs linked with such libtool
7820 *** libraries will work regardless of this problem. Nevertheless, you
7821 *** may want to report the problem to your system manager and/or to
7822 *** bug-libtool@gnu.org
7824 _LT_EOF
7825 fi ;;
7826 esac
7828 break
7830 done
7831 IFS="$lt_save_ifs"
7832 MAGIC_CMD="$lt_save_MAGIC_CMD"
7834 esac
7837 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7838 if test -n "$MAGIC_CMD"; then
7839 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7840 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7841 else
7842 { echo "$as_me:$LINENO: result: no" >&5
7843 echo "${ECHO_T}no" >&6; }
7847 else
7848 MAGIC_CMD=:
7854 esac
7856 # Use C for the default configuration in the libtool script
7858 lt_save_CC="$CC"
7859 ac_ext=c
7860 ac_cpp='$CPP $CPPFLAGS'
7861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7866 # Source file extension for C test sources.
7867 ac_ext=c
7869 # Object file extension for compiled C test sources.
7870 objext=o
7871 objext=$objext
7873 # Code to be used in simple compile tests
7874 lt_simple_compile_test_code="int some_variable = 0;"
7876 # Code to be used in simple link tests
7877 lt_simple_link_test_code='int main(){return(0);}'
7885 # If no C compiler was specified, use CC.
7886 LTCC=${LTCC-"$CC"}
7888 # If no C compiler flags were specified, use CFLAGS.
7889 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7891 # Allow CC to be a program name with arguments.
7892 compiler=$CC
7894 # Save the default compiler, since it gets overwritten when the other
7895 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7896 compiler_DEFAULT=$CC
7898 # save warnings/boilerplate of simple test code
7899 ac_outfile=conftest.$ac_objext
7900 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7901 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7902 _lt_compiler_boilerplate=`cat conftest.err`
7903 $RM -r conftest*
7905 ac_outfile=conftest.$ac_objext
7906 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7907 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7908 _lt_linker_boilerplate=`cat conftest.err`
7909 $RM -r conftest*
7912 ## CAVEAT EMPTOR:
7913 ## There is no encapsulation within the following macros, do not change
7914 ## the running order or otherwise move them around unless you know exactly
7915 ## what you are doing...
7916 if test -n "$compiler"; then
7918 lt_prog_compiler_no_builtin_flag=
7920 if test "$GCC" = yes; then
7921 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7923 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7924 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7925 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7927 else
7928 lt_cv_prog_compiler_rtti_exceptions=no
7929 ac_outfile=conftest.$ac_objext
7930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7931 lt_compiler_flag="-fno-rtti -fno-exceptions"
7932 # Insert the option either (1) after the last *FLAGS variable, or
7933 # (2) before a word containing "conftest.", or (3) at the end.
7934 # Note that $ac_compile itself does not contain backslashes and begins
7935 # with a dollar sign (not a hyphen), so the echo should work correctly.
7936 # The option is referenced via a variable to avoid confusing sed.
7937 lt_compile=`echo "$ac_compile" | $SED \
7938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7940 -e 's:$: $lt_compiler_flag:'`
7941 (eval echo "\"\$as_me:7941: $lt_compile\"" >&5)
7942 (eval "$lt_compile" 2>conftest.err)
7943 ac_status=$?
7944 cat conftest.err >&5
7945 echo "$as_me:7945: \$? = $ac_status" >&5
7946 if (exit $ac_status) && test -s "$ac_outfile"; then
7947 # The compiler can only warn and ignore the option if not recognized
7948 # So say no if there are warnings other than the usual output.
7949 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7951 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7952 lt_cv_prog_compiler_rtti_exceptions=yes
7955 $RM -r conftest*
7958 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7959 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7961 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7962 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7963 else
7974 lt_prog_compiler_wl=
7975 lt_prog_compiler_pic=
7976 lt_prog_compiler_static=
7978 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7979 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7981 if test "$GCC" = yes; then
7982 lt_prog_compiler_wl='-Wl,'
7983 lt_prog_compiler_static='-static'
7985 case $host_os in
7986 aix*)
7987 # All AIX code is PIC.
7988 if test "$host_cpu" = ia64; then
7989 # AIX 5 now supports IA64 processor
7990 lt_prog_compiler_static='-Bstatic'
7994 amigaos*)
7995 case $host_cpu in
7996 powerpc)
7997 # see comment about AmigaOS4 .so support
7998 lt_prog_compiler_pic='-fPIC'
8000 m68k)
8001 # FIXME: we need at least 68020 code to build shared libraries, but
8002 # adding the `-m68020' flag to GCC prevents building anything better,
8003 # like `-m68040'.
8004 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8006 esac
8009 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8010 # PIC is the default for these OSes.
8013 mingw* | cygwin* | pw32* | os2*)
8014 # This hack is so that the source file can tell whether it is being
8015 # built for inclusion in a dll (and should export symbols for example).
8016 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8017 # (--disable-auto-import) libraries
8018 lt_prog_compiler_pic='-DDLL_EXPORT'
8021 darwin* | rhapsody*)
8022 # PIC is the default on this platform
8023 # Common symbols not allowed in MH_DYLIB files
8024 lt_prog_compiler_pic='-fno-common'
8027 hpux*)
8028 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8029 # not for PA HP-UX.
8030 case $host_cpu in
8031 hppa*64*|ia64*)
8032 # +Z the default
8035 lt_prog_compiler_pic='-fPIC'
8037 esac
8040 interix[3-9]*)
8041 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8042 # Instead, we relocate shared libraries at runtime.
8045 msdosdjgpp*)
8046 # Just because we use GCC doesn't mean we suddenly get shared libraries
8047 # on systems that don't support them.
8048 lt_prog_compiler_can_build_shared=no
8049 enable_shared=no
8052 *nto* | *qnx*)
8053 # QNX uses GNU C++, but need to define -shared option too, otherwise
8054 # it will coredump.
8055 lt_prog_compiler_pic='-fPIC -shared'
8058 sysv4*MP*)
8059 if test -d /usr/nec; then
8060 lt_prog_compiler_pic=-Kconform_pic
8065 lt_prog_compiler_pic='-fPIC'
8067 esac
8068 else
8069 # PORTME Check for flag to pass linker flags through the system compiler.
8070 case $host_os in
8071 aix*)
8072 lt_prog_compiler_wl='-Wl,'
8073 if test "$host_cpu" = ia64; then
8074 # AIX 5 now supports IA64 processor
8075 lt_prog_compiler_static='-Bstatic'
8076 else
8077 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8081 mingw* | cygwin* | pw32* | os2*)
8082 # This hack is so that the source file can tell whether it is being
8083 # built for inclusion in a dll (and should export symbols for example).
8084 lt_prog_compiler_pic='-DDLL_EXPORT'
8087 hpux9* | hpux10* | hpux11*)
8088 lt_prog_compiler_wl='-Wl,'
8089 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8090 # not for PA HP-UX.
8091 case $host_cpu in
8092 hppa*64*|ia64*)
8093 # +Z the default
8096 lt_prog_compiler_pic='+Z'
8098 esac
8099 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8100 lt_prog_compiler_static='${wl}-a ${wl}archive'
8103 irix5* | irix6* | nonstopux*)
8104 lt_prog_compiler_wl='-Wl,'
8105 # PIC (with -KPIC) is the default.
8106 lt_prog_compiler_static='-non_shared'
8109 linux* | k*bsd*-gnu)
8110 case $cc_basename in
8111 icc* | ecc* | ifort*)
8112 lt_prog_compiler_wl='-Wl,'
8113 lt_prog_compiler_pic='-KPIC'
8114 lt_prog_compiler_static='-static'
8116 pgcc* | pgf77* | pgf90* | pgf95*)
8117 # Portland Group compilers (*not* the Pentium gcc compiler,
8118 # which looks to be a dead project)
8119 lt_prog_compiler_wl='-Wl,'
8120 lt_prog_compiler_pic='-fpic'
8121 lt_prog_compiler_static='-Bstatic'
8123 ccc*)
8124 lt_prog_compiler_wl='-Wl,'
8125 # All Alpha code is PIC.
8126 lt_prog_compiler_static='-non_shared'
8128 xl*)
8129 # IBM XL C 8.0/Fortran 10.1 on PPC
8130 lt_prog_compiler_wl='-Wl,'
8131 lt_prog_compiler_pic='-qpic'
8132 lt_prog_compiler_static='-qstaticlink'
8135 case `$CC -V 2>&1 | sed 5q` in
8136 *Sun\ C*)
8137 # Sun C 5.9
8138 lt_prog_compiler_pic='-KPIC'
8139 lt_prog_compiler_static='-Bstatic'
8140 lt_prog_compiler_wl='-Wl,'
8142 *Sun\ F*)
8143 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8144 lt_prog_compiler_pic='-KPIC'
8145 lt_prog_compiler_static='-Bstatic'
8146 lt_prog_compiler_wl=''
8148 esac
8150 esac
8153 newsos6)
8154 lt_prog_compiler_pic='-KPIC'
8155 lt_prog_compiler_static='-Bstatic'
8158 *nto* | *qnx*)
8159 # QNX uses GNU C++, but need to define -shared option too, otherwise
8160 # it will coredump.
8161 lt_prog_compiler_pic='-fPIC -shared'
8164 osf3* | osf4* | osf5*)
8165 lt_prog_compiler_wl='-Wl,'
8166 # All OSF/1 code is PIC.
8167 lt_prog_compiler_static='-non_shared'
8170 rdos*)
8171 lt_prog_compiler_static='-non_shared'
8174 solaris*)
8175 lt_prog_compiler_pic='-KPIC'
8176 lt_prog_compiler_static='-Bstatic'
8177 case $cc_basename in
8178 f77* | f90* | f95*)
8179 lt_prog_compiler_wl='-Qoption ld ';;
8181 lt_prog_compiler_wl='-Wl,';;
8182 esac
8185 sunos4*)
8186 lt_prog_compiler_wl='-Qoption ld '
8187 lt_prog_compiler_pic='-PIC'
8188 lt_prog_compiler_static='-Bstatic'
8191 sysv4 | sysv4.2uw2* | sysv4.3*)
8192 lt_prog_compiler_wl='-Wl,'
8193 lt_prog_compiler_pic='-KPIC'
8194 lt_prog_compiler_static='-Bstatic'
8197 sysv4*MP*)
8198 if test -d /usr/nec ;then
8199 lt_prog_compiler_pic='-Kconform_pic'
8200 lt_prog_compiler_static='-Bstatic'
8204 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8205 lt_prog_compiler_wl='-Wl,'
8206 lt_prog_compiler_pic='-KPIC'
8207 lt_prog_compiler_static='-Bstatic'
8210 unicos*)
8211 lt_prog_compiler_wl='-Wl,'
8212 lt_prog_compiler_can_build_shared=no
8215 uts4*)
8216 lt_prog_compiler_pic='-pic'
8217 lt_prog_compiler_static='-Bstatic'
8221 lt_prog_compiler_can_build_shared=no
8223 esac
8226 case $host_os in
8227 # For platforms which do not support PIC, -DPIC is meaningless:
8228 *djgpp*)
8229 lt_prog_compiler_pic=
8232 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8234 esac
8235 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8236 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8244 # Check to make sure the PIC flag actually works.
8246 if test -n "$lt_prog_compiler_pic"; then
8247 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8248 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8249 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8250 echo $ECHO_N "(cached) $ECHO_C" >&6
8251 else
8252 lt_cv_prog_compiler_pic_works=no
8253 ac_outfile=conftest.$ac_objext
8254 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8255 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8256 # Insert the option either (1) after the last *FLAGS variable, or
8257 # (2) before a word containing "conftest.", or (3) at the end.
8258 # Note that $ac_compile itself does not contain backslashes and begins
8259 # with a dollar sign (not a hyphen), so the echo should work correctly.
8260 # The option is referenced via a variable to avoid confusing sed.
8261 lt_compile=`echo "$ac_compile" | $SED \
8262 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8263 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8264 -e 's:$: $lt_compiler_flag:'`
8265 (eval echo "\"\$as_me:8265: $lt_compile\"" >&5)
8266 (eval "$lt_compile" 2>conftest.err)
8267 ac_status=$?
8268 cat conftest.err >&5
8269 echo "$as_me:8269: \$? = $ac_status" >&5
8270 if (exit $ac_status) && test -s "$ac_outfile"; then
8271 # The compiler can only warn and ignore the option if not recognized
8272 # So say no if there are warnings other than the usual output.
8273 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8274 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8275 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8276 lt_cv_prog_compiler_pic_works=yes
8279 $RM -r conftest*
8282 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8283 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8285 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8286 case $lt_prog_compiler_pic in
8287 "" | " "*) ;;
8288 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8289 esac
8290 else
8291 lt_prog_compiler_pic=
8292 lt_prog_compiler_can_build_shared=no
8303 # Check to make sure the static flag actually works.
8305 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8306 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8307 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8308 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
8310 else
8311 lt_cv_prog_compiler_static_works=no
8312 save_LDFLAGS="$LDFLAGS"
8313 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8314 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8315 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8316 # The linker can only warn and ignore the option if not recognized
8317 # So say no if there are warnings
8318 if test -s conftest.err; then
8319 # Append any errors to the config.log.
8320 cat conftest.err 1>&5
8321 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8322 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8323 if diff conftest.exp conftest.er2 >/dev/null; then
8324 lt_cv_prog_compiler_static_works=yes
8326 else
8327 lt_cv_prog_compiler_static_works=yes
8330 $RM -r conftest*
8331 LDFLAGS="$save_LDFLAGS"
8334 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8335 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8337 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8339 else
8340 lt_prog_compiler_static=
8349 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8350 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8351 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 else
8354 lt_cv_prog_compiler_c_o=no
8355 $RM -r conftest 2>/dev/null
8356 mkdir conftest
8357 cd conftest
8358 mkdir out
8359 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8361 lt_compiler_flag="-o out/conftest2.$ac_objext"
8362 # Insert the option either (1) after the last *FLAGS variable, or
8363 # (2) before a word containing "conftest.", or (3) at the end.
8364 # Note that $ac_compile itself does not contain backslashes and begins
8365 # with a dollar sign (not a hyphen), so the echo should work correctly.
8366 lt_compile=`echo "$ac_compile" | $SED \
8367 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8368 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8369 -e 's:$: $lt_compiler_flag:'`
8370 (eval echo "\"\$as_me:8370: $lt_compile\"" >&5)
8371 (eval "$lt_compile" 2>out/conftest.err)
8372 ac_status=$?
8373 cat out/conftest.err >&5
8374 echo "$as_me:8374: \$? = $ac_status" >&5
8375 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8376 then
8377 # The compiler can only warn and ignore the option if not recognized
8378 # So say no if there are warnings
8379 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8380 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8381 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8382 lt_cv_prog_compiler_c_o=yes
8385 chmod u+w . 2>&5
8386 $RM -r conftest*
8387 # SGI C++ compiler will create directory out/ii_files/ for
8388 # template instantiation
8389 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8390 $RM out/* && rmdir out
8391 cd ..
8392 $RM -r conftest
8393 $RM -r conftest*
8396 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8397 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8404 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8405 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8406 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8408 else
8409 lt_cv_prog_compiler_c_o=no
8410 $RM -r conftest 2>/dev/null
8411 mkdir conftest
8412 cd conftest
8413 mkdir out
8414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8416 lt_compiler_flag="-o out/conftest2.$ac_objext"
8417 # Insert the option either (1) after the last *FLAGS variable, or
8418 # (2) before a word containing "conftest.", or (3) at the end.
8419 # Note that $ac_compile itself does not contain backslashes and begins
8420 # with a dollar sign (not a hyphen), so the echo should work correctly.
8421 lt_compile=`echo "$ac_compile" | $SED \
8422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8424 -e 's:$: $lt_compiler_flag:'`
8425 (eval echo "\"\$as_me:8425: $lt_compile\"" >&5)
8426 (eval "$lt_compile" 2>out/conftest.err)
8427 ac_status=$?
8428 cat out/conftest.err >&5
8429 echo "$as_me:8429: \$? = $ac_status" >&5
8430 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8431 then
8432 # The compiler can only warn and ignore the option if not recognized
8433 # So say no if there are warnings
8434 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8435 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8436 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8437 lt_cv_prog_compiler_c_o=yes
8440 chmod u+w . 2>&5
8441 $RM -r conftest*
8442 # SGI C++ compiler will create directory out/ii_files/ for
8443 # template instantiation
8444 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8445 $RM out/* && rmdir out
8446 cd ..
8447 $RM -r conftest
8448 $RM -r conftest*
8451 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8452 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8457 hard_links="nottested"
8458 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8459 # do not overwrite the value of need_locks provided by the user
8460 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8461 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8462 hard_links=yes
8463 $RM -r conftest*
8464 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8465 touch conftest.a
8466 ln conftest.a conftest.b 2>&5 || hard_links=no
8467 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8468 { echo "$as_me:$LINENO: result: $hard_links" >&5
8469 echo "${ECHO_T}$hard_links" >&6; }
8470 if test "$hard_links" = no; then
8471 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8472 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8473 need_locks=warn
8475 else
8476 need_locks=no
8484 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8485 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8487 runpath_var=
8488 allow_undefined_flag=
8489 always_export_symbols=no
8490 archive_cmds=
8491 archive_expsym_cmds=
8492 compiler_needs_object=no
8493 enable_shared_with_static_runtimes=no
8494 export_dynamic_flag_spec=
8495 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8496 hardcode_automatic=no
8497 hardcode_direct=no
8498 hardcode_direct_absolute=no
8499 hardcode_libdir_flag_spec=
8500 hardcode_libdir_flag_spec_ld=
8501 hardcode_libdir_separator=
8502 hardcode_minus_L=no
8503 hardcode_shlibpath_var=unsupported
8504 inherit_rpath=no
8505 link_all_deplibs=unknown
8506 module_cmds=
8507 module_expsym_cmds=
8508 old_archive_from_new_cmds=
8509 old_archive_from_expsyms_cmds=
8510 thread_safe_flag_spec=
8511 whole_archive_flag_spec=
8512 # include_expsyms should be a list of space-separated symbols to be *always*
8513 # included in the symbol list
8514 include_expsyms=
8515 # exclude_expsyms can be an extended regexp of symbols to exclude
8516 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8517 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8518 # as well as any symbol that contains `d'.
8519 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8520 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8521 # platforms (ab)use it in PIC code, but their linkers get confused if
8522 # the symbol is explicitly referenced. Since portable code cannot
8523 # rely on this symbol name, it's probably fine to never include it in
8524 # preloaded symbol tables.
8525 # Exclude shared library initialization/finalization symbols.
8526 extract_expsyms_cmds=
8528 case $host_os in
8529 cygwin* | mingw* | pw32*)
8530 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8531 # When not using gcc, we currently assume that we are using
8532 # Microsoft Visual C++.
8533 if test "$GCC" != yes; then
8534 with_gnu_ld=no
8537 interix*)
8538 # we just hope/assume this is gcc and not c89 (= MSVC++)
8539 with_gnu_ld=yes
8541 openbsd*)
8542 with_gnu_ld=no
8544 esac
8546 ld_shlibs=yes
8547 if test "$with_gnu_ld" = yes; then
8548 # If archive_cmds runs LD, not CC, wlarc should be empty
8549 wlarc='${wl}'
8551 # Set some defaults for GNU ld with shared library support. These
8552 # are reset later if shared libraries are not supported. Putting them
8553 # here allows them to be overridden if necessary.
8554 runpath_var=LD_RUN_PATH
8555 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8556 export_dynamic_flag_spec='${wl}--export-dynamic'
8557 # ancient GNU ld didn't support --whole-archive et. al.
8558 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8559 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8560 else
8561 whole_archive_flag_spec=
8563 supports_anon_versioning=no
8564 case `$LD -v 2>&1` in
8565 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8566 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8567 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8568 *\ 2.11.*) ;; # other 2.11 versions
8569 *) supports_anon_versioning=yes ;;
8570 esac
8572 # See if GNU ld supports shared libraries.
8573 case $host_os in
8574 aix[3-9]*)
8575 # On AIX/PPC, the GNU linker is very broken
8576 if test "$host_cpu" != ia64; then
8577 ld_shlibs=no
8578 cat <<_LT_EOF 1>&2
8580 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8581 *** to be unable to reliably create shared libraries on AIX.
8582 *** Therefore, libtool is disabling shared libraries support. If you
8583 *** really care for shared libraries, you may want to modify your PATH
8584 *** so that a non-GNU linker is found, and then restart.
8586 _LT_EOF
8590 amigaos*)
8591 case $host_cpu in
8592 powerpc)
8593 # see comment about AmigaOS4 .so support
8594 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8595 archive_expsym_cmds=''
8597 m68k)
8598 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)'
8599 hardcode_libdir_flag_spec='-L$libdir'
8600 hardcode_minus_L=yes
8602 esac
8605 beos*)
8606 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8607 allow_undefined_flag=unsupported
8608 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8609 # support --undefined. This deserves some investigation. FIXME
8610 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8611 else
8612 ld_shlibs=no
8616 cygwin* | mingw* | pw32*)
8617 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8618 # as there is no search path for DLLs.
8619 hardcode_libdir_flag_spec='-L$libdir'
8620 allow_undefined_flag=unsupported
8621 always_export_symbols=no
8622 enable_shared_with_static_runtimes=yes
8623 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8625 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8627 # If the export-symbols file already is a .def file (1st line
8628 # is EXPORTS), use it as is; otherwise, prepend...
8629 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8630 cp $export_symbols $output_objdir/$soname.def;
8631 else
8632 echo EXPORTS > $output_objdir/$soname.def;
8633 cat $export_symbols >> $output_objdir/$soname.def;
8635 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8636 else
8637 ld_shlibs=no
8641 interix[3-9]*)
8642 hardcode_direct=no
8643 hardcode_shlibpath_var=no
8644 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8645 export_dynamic_flag_spec='${wl}-E'
8646 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8647 # Instead, shared libraries are loaded at an image base (0x10000000 by
8648 # default) and relocated if they conflict, which is a slow very memory
8649 # consuming and fragmenting process. To avoid this, we pick a random,
8650 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8651 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8652 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8653 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'
8656 gnu* | linux* | tpf* | k*bsd*-gnu)
8657 tmp_diet=no
8658 if test "$host_os" = linux-dietlibc; then
8659 case $cc_basename in
8660 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8661 esac
8663 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8664 && test "$tmp_diet" = no
8665 then
8666 tmp_addflag=
8667 tmp_sharedflag='-shared'
8668 case $cc_basename,$host_cpu in
8669 pgcc*) # Portland Group C compiler
8670 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'
8671 tmp_addflag=' $pic_flag'
8673 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8674 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'
8675 tmp_addflag=' $pic_flag -Mnomain' ;;
8676 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8677 tmp_addflag=' -i_dynamic' ;;
8678 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8679 tmp_addflag=' -i_dynamic -nofor_main' ;;
8680 ifc* | ifort*) # Intel Fortran compiler
8681 tmp_addflag=' -nofor_main' ;;
8682 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8683 tmp_sharedflag='-qmkshrobj'
8684 tmp_addflag= ;;
8685 esac
8686 case `$CC -V 2>&1 | sed 5q` in
8687 *Sun\ C*) # Sun C 5.9
8688 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'
8689 compiler_needs_object=yes
8690 tmp_sharedflag='-G' ;;
8691 *Sun\ F*) # Sun Fortran 8.3
8692 tmp_sharedflag='-G' ;;
8693 esac
8694 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8696 if test "x$supports_anon_versioning" = xyes; then
8697 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8698 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8699 echo "local: *; };" >> $output_objdir/$libname.ver~
8700 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8703 case $cc_basename in
8704 xlf*)
8705 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8706 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8707 hardcode_libdir_flag_spec=
8708 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8709 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8710 if test "x$supports_anon_versioning" = xyes; then
8711 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8712 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8713 echo "local: *; };" >> $output_objdir/$libname.ver~
8714 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8717 esac
8718 else
8719 ld_shlibs=no
8723 netbsd*)
8724 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8725 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8726 wlarc=
8727 else
8728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8729 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8733 solaris*)
8734 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8735 ld_shlibs=no
8736 cat <<_LT_EOF 1>&2
8738 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8739 *** create shared libraries on Solaris systems. Therefore, libtool
8740 *** is disabling shared libraries support. We urge you to upgrade GNU
8741 *** binutils to release 2.9.1 or newer. Another option is to modify
8742 *** your PATH or compiler configuration so that the native linker is
8743 *** used, and then restart.
8745 _LT_EOF
8746 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8748 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8749 else
8750 ld_shlibs=no
8754 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8755 case `$LD -v 2>&1` in
8756 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8757 ld_shlibs=no
8758 cat <<_LT_EOF 1>&2
8760 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8761 *** reliably create shared libraries on SCO systems. Therefore, libtool
8762 *** is disabling shared libraries support. We urge you to upgrade GNU
8763 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8764 *** your PATH or compiler configuration so that the native linker is
8765 *** used, and then restart.
8767 _LT_EOF
8770 # For security reasons, it is highly recommended that you always
8771 # use absolute paths for naming shared libraries, and exclude the
8772 # DT_RUNPATH tag from executables and libraries. But doing so
8773 # requires that you compile everything twice, which is a pain.
8774 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8775 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8777 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8778 else
8779 ld_shlibs=no
8782 esac
8785 sunos4*)
8786 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8787 wlarc=
8788 hardcode_direct=yes
8789 hardcode_shlibpath_var=no
8793 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8795 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8796 else
8797 ld_shlibs=no
8800 esac
8802 if test "$ld_shlibs" = no; then
8803 runpath_var=
8804 hardcode_libdir_flag_spec=
8805 export_dynamic_flag_spec=
8806 whole_archive_flag_spec=
8808 else
8809 # PORTME fill in a description of your system's linker (not GNU ld)
8810 case $host_os in
8811 aix3*)
8812 allow_undefined_flag=unsupported
8813 always_export_symbols=yes
8814 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'
8815 # Note: this linker hardcodes the directories in LIBPATH if there
8816 # are no directories specified by -L.
8817 hardcode_minus_L=yes
8818 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8819 # Neither direct hardcoding nor static linking is supported with a
8820 # broken collect2.
8821 hardcode_direct=unsupported
8825 aix[4-9]*)
8826 if test "$host_cpu" = ia64; then
8827 # On IA64, the linker does run time linking by default, so we don't
8828 # have to do anything special.
8829 aix_use_runtimelinking=no
8830 exp_sym_flag='-Bexport'
8831 no_entry_flag=""
8832 else
8833 # If we're using GNU nm, then we don't want the "-C" option.
8834 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8835 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8836 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'
8837 else
8838 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'
8840 aix_use_runtimelinking=no
8842 # Test if we are trying to use run time linking or normal
8843 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8844 # need to do runtime linking.
8845 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8846 for ld_flag in $LDFLAGS; do
8847 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8848 aix_use_runtimelinking=yes
8849 break
8851 done
8853 esac
8855 exp_sym_flag='-bexport'
8856 no_entry_flag='-bnoentry'
8859 # When large executables or shared objects are built, AIX ld can
8860 # have problems creating the table of contents. If linking a library
8861 # or program results in "error TOC overflow" add -mminimal-toc to
8862 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8863 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8865 archive_cmds=''
8866 hardcode_direct=yes
8867 hardcode_direct_absolute=yes
8868 hardcode_libdir_separator=':'
8869 link_all_deplibs=yes
8870 file_list_spec='${wl}-f,'
8872 if test "$GCC" = yes; then
8873 case $host_os in aix4.[012]|aix4.[012].*)
8874 # We only want to do this on AIX 4.2 and lower, the check
8875 # below for broken collect2 doesn't work under 4.3+
8876 collect2name=`${CC} -print-prog-name=collect2`
8877 if test -f "$collect2name" &&
8878 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8879 then
8880 # We have reworked collect2
8882 else
8883 # We have old collect2
8884 hardcode_direct=unsupported
8885 # It fails to find uninstalled libraries when the uninstalled
8886 # path is not listed in the libpath. Setting hardcode_minus_L
8887 # to unsupported forces relinking
8888 hardcode_minus_L=yes
8889 hardcode_libdir_flag_spec='-L$libdir'
8890 hardcode_libdir_separator=
8893 esac
8894 shared_flag='-shared'
8895 if test "$aix_use_runtimelinking" = yes; then
8896 shared_flag="$shared_flag "'${wl}-G'
8898 else
8899 # not using gcc
8900 if test "$host_cpu" = ia64; then
8901 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8902 # chokes on -Wl,-G. The following line is correct:
8903 shared_flag='-G'
8904 else
8905 if test "$aix_use_runtimelinking" = yes; then
8906 shared_flag='${wl}-G'
8907 else
8908 shared_flag='${wl}-bM:SRE'
8913 # It seems that -bexpall does not export symbols beginning with
8914 # underscore (_), so it is better to generate a list of symbols to export.
8915 always_export_symbols=yes
8916 if test "$aix_use_runtimelinking" = yes; then
8917 # Warning - without using the other runtime loading flags (-brtl),
8918 # -berok will link without error, but may produce a broken library.
8919 allow_undefined_flag='-berok'
8920 # Determine the default libpath from the value encoded in an
8921 # empty executable.
8922 cat >conftest.$ac_ext <<_ACEOF
8923 /* confdefs.h. */
8924 _ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8930 main ()
8934 return 0;
8936 _ACEOF
8937 rm -f conftest.$ac_objext conftest$ac_exeext
8938 if { (ac_try="$ac_link"
8939 case "(($ac_try" in
8940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8941 *) ac_try_echo=$ac_try;;
8942 esac
8943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8944 (eval "$ac_link") 2>conftest.er1
8945 ac_status=$?
8946 grep -v '^ *+' conftest.er1 >conftest.err
8947 rm -f conftest.er1
8948 cat conftest.err >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } && {
8951 test -z "$ac_c_werror_flag" ||
8952 test ! -s conftest.err
8953 } && test -s conftest$ac_exeext &&
8954 $as_test_x conftest$ac_exeext; then
8956 lt_aix_libpath_sed='
8957 /Import File Strings/,/^$/ {
8958 /^0/ {
8959 s/^0 *\(.*\)$/\1/
8963 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8964 # Check for a 64-bit object if we didn't find anything.
8965 if test -z "$aix_libpath"; then
8966 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8968 else
8969 echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8976 conftest$ac_exeext conftest.$ac_ext
8977 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8979 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8980 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"
8981 else
8982 if test "$host_cpu" = ia64; then
8983 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8984 allow_undefined_flag="-z nodefs"
8985 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"
8986 else
8987 # Determine the default libpath from the value encoded in an
8988 # empty executable.
8989 cat >conftest.$ac_ext <<_ACEOF
8990 /* confdefs.h. */
8991 _ACEOF
8992 cat confdefs.h >>conftest.$ac_ext
8993 cat >>conftest.$ac_ext <<_ACEOF
8994 /* end confdefs.h. */
8997 main ()
9001 return 0;
9003 _ACEOF
9004 rm -f conftest.$ac_objext conftest$ac_exeext
9005 if { (ac_try="$ac_link"
9006 case "(($ac_try" in
9007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9008 *) ac_try_echo=$ac_try;;
9009 esac
9010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9011 (eval "$ac_link") 2>conftest.er1
9012 ac_status=$?
9013 grep -v '^ *+' conftest.er1 >conftest.err
9014 rm -f conftest.er1
9015 cat conftest.err >&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } && {
9018 test -z "$ac_c_werror_flag" ||
9019 test ! -s conftest.err
9020 } && test -s conftest$ac_exeext &&
9021 $as_test_x conftest$ac_exeext; then
9023 lt_aix_libpath_sed='
9024 /Import File Strings/,/^$/ {
9025 /^0/ {
9026 s/^0 *\(.*\)$/\1/
9030 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9031 # Check for a 64-bit object if we didn't find anything.
9032 if test -z "$aix_libpath"; then
9033 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9035 else
9036 echo "$as_me: failed program was:" >&5
9037 sed 's/^/| /' conftest.$ac_ext >&5
9042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9043 conftest$ac_exeext conftest.$ac_ext
9044 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9046 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9047 # Warning - without using the other run time loading flags,
9048 # -berok will link without error, but may produce a broken library.
9049 no_undefined_flag=' ${wl}-bernotok'
9050 allow_undefined_flag=' ${wl}-berok'
9051 # Exported symbols can be pulled into shared objects from archives
9052 whole_archive_flag_spec='$convenience'
9053 archive_cmds_need_lc=yes
9054 # This is similar to how AIX traditionally builds its shared libraries.
9055 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'
9060 amigaos*)
9061 case $host_cpu in
9062 powerpc)
9063 # see comment about AmigaOS4 .so support
9064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9065 archive_expsym_cmds=''
9067 m68k)
9068 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)'
9069 hardcode_libdir_flag_spec='-L$libdir'
9070 hardcode_minus_L=yes
9072 esac
9075 bsdi[45]*)
9076 export_dynamic_flag_spec=-rdynamic
9079 cygwin* | mingw* | pw32*)
9080 # When not using gcc, we currently assume that we are using
9081 # Microsoft Visual C++.
9082 # hardcode_libdir_flag_spec is actually meaningless, as there is
9083 # no search path for DLLs.
9084 hardcode_libdir_flag_spec=' '
9085 allow_undefined_flag=unsupported
9086 # Tell ltmain to make .lib files, not .a files.
9087 libext=lib
9088 # Tell ltmain to make .dll files, not .so files.
9089 shrext_cmds=".dll"
9090 # FIXME: Setting linknames here is a bad hack.
9091 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9092 # The linker will automatically build a .lib file if we build a DLL.
9093 old_archive_from_new_cmds='true'
9094 # FIXME: Should let the user specify the lib program.
9095 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9096 fix_srcfile_path='`cygpath -w "$srcfile"`'
9097 enable_shared_with_static_runtimes=yes
9100 darwin* | rhapsody*)
9103 archive_cmds_need_lc=no
9104 hardcode_direct=no
9105 hardcode_automatic=yes
9106 hardcode_shlibpath_var=unsupported
9107 whole_archive_flag_spec=''
9108 link_all_deplibs=yes
9109 allow_undefined_flag="$_lt_dar_allow_undefined"
9110 if test "$GCC" = "yes"; then
9111 output_verbose_link_cmd=echo
9112 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9113 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9114 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}"
9115 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}"
9117 else
9118 ld_shlibs=no
9123 dgux*)
9124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9125 hardcode_libdir_flag_spec='-L$libdir'
9126 hardcode_shlibpath_var=no
9129 freebsd1*)
9130 ld_shlibs=no
9133 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9134 # support. Future versions do this automatically, but an explicit c++rt0.o
9135 # does not break anything, and helps significantly (at the cost of a little
9136 # extra space).
9137 freebsd2.2*)
9138 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9139 hardcode_libdir_flag_spec='-R$libdir'
9140 hardcode_direct=yes
9141 hardcode_shlibpath_var=no
9144 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9145 freebsd2*)
9146 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9147 hardcode_direct=yes
9148 hardcode_minus_L=yes
9149 hardcode_shlibpath_var=no
9152 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9153 freebsd* | dragonfly*)
9154 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9155 hardcode_libdir_flag_spec='-R$libdir'
9156 hardcode_direct=yes
9157 hardcode_shlibpath_var=no
9160 hpux9*)
9161 if test "$GCC" = yes; then
9162 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'
9163 else
9164 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'
9166 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9167 hardcode_libdir_separator=:
9168 hardcode_direct=yes
9170 # hardcode_minus_L: Not really in the search PATH,
9171 # but as the default location of the library.
9172 hardcode_minus_L=yes
9173 export_dynamic_flag_spec='${wl}-E'
9176 hpux10*)
9177 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9178 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9179 else
9180 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9182 if test "$with_gnu_ld" = no; then
9183 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9184 hardcode_libdir_flag_spec_ld='+b $libdir'
9185 hardcode_libdir_separator=:
9186 hardcode_direct=yes
9187 hardcode_direct_absolute=yes
9188 export_dynamic_flag_spec='${wl}-E'
9189 # hardcode_minus_L: Not really in the search PATH,
9190 # but as the default location of the library.
9191 hardcode_minus_L=yes
9195 hpux11*)
9196 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9197 case $host_cpu in
9198 hppa*64*)
9199 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9201 ia64*)
9202 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9205 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9207 esac
9208 else
9209 case $host_cpu in
9210 hppa*64*)
9211 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9213 ia64*)
9214 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9217 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9219 esac
9221 if test "$with_gnu_ld" = no; then
9222 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9223 hardcode_libdir_separator=:
9225 case $host_cpu in
9226 hppa*64*|ia64*)
9227 hardcode_direct=no
9228 hardcode_shlibpath_var=no
9231 hardcode_direct=yes
9232 hardcode_direct_absolute=yes
9233 export_dynamic_flag_spec='${wl}-E'
9235 # hardcode_minus_L: Not really in the search PATH,
9236 # but as the default location of the library.
9237 hardcode_minus_L=yes
9239 esac
9243 irix5* | irix6* | nonstopux*)
9244 if test "$GCC" = yes; then
9245 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'
9246 # Try to use the -exported_symbol ld option, if it does not
9247 # work, assume that -exports_file does not work either and
9248 # implicitly export all symbols.
9249 save_LDFLAGS="$LDFLAGS"
9250 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9251 cat >conftest.$ac_ext <<_ACEOF
9252 int foo(void) {}
9253 _ACEOF
9254 rm -f conftest.$ac_objext conftest$ac_exeext
9255 if { (ac_try="$ac_link"
9256 case "(($ac_try" in
9257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9258 *) ac_try_echo=$ac_try;;
9259 esac
9260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9261 (eval "$ac_link") 2>conftest.er1
9262 ac_status=$?
9263 grep -v '^ *+' conftest.er1 >conftest.err
9264 rm -f conftest.er1
9265 cat conftest.err >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } && {
9268 test -z "$ac_c_werror_flag" ||
9269 test ! -s conftest.err
9270 } && test -s conftest$ac_exeext &&
9271 $as_test_x conftest$ac_exeext; then
9272 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'
9274 else
9275 echo "$as_me: failed program was:" >&5
9276 sed 's/^/| /' conftest.$ac_ext >&5
9281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9282 conftest$ac_exeext conftest.$ac_ext
9283 LDFLAGS="$save_LDFLAGS"
9284 else
9285 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'
9286 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'
9288 archive_cmds_need_lc='no'
9289 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9290 hardcode_libdir_separator=:
9291 inherit_rpath=yes
9292 link_all_deplibs=yes
9295 netbsd*)
9296 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9297 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9298 else
9299 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9301 hardcode_libdir_flag_spec='-R$libdir'
9302 hardcode_direct=yes
9303 hardcode_shlibpath_var=no
9306 newsos6)
9307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9308 hardcode_direct=yes
9309 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9310 hardcode_libdir_separator=:
9311 hardcode_shlibpath_var=no
9314 *nto* | *qnx*)
9317 openbsd*)
9318 if test -f /usr/libexec/ld.so; then
9319 hardcode_direct=yes
9320 hardcode_shlibpath_var=no
9321 hardcode_direct_absolute=yes
9322 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9323 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9324 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9325 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9326 export_dynamic_flag_spec='${wl}-E'
9327 else
9328 case $host_os in
9329 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9330 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9331 hardcode_libdir_flag_spec='-R$libdir'
9334 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9335 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9337 esac
9339 else
9340 ld_shlibs=no
9344 os2*)
9345 hardcode_libdir_flag_spec='-L$libdir'
9346 hardcode_minus_L=yes
9347 allow_undefined_flag=unsupported
9348 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'
9349 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9352 osf3*)
9353 if test "$GCC" = yes; then
9354 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9355 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'
9356 else
9357 allow_undefined_flag=' -expect_unresolved \*'
9358 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'
9360 archive_cmds_need_lc='no'
9361 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9362 hardcode_libdir_separator=:
9365 osf4* | osf5*) # as osf3* with the addition of -msym flag
9366 if test "$GCC" = yes; then
9367 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9368 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'
9369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9370 else
9371 allow_undefined_flag=' -expect_unresolved \*'
9372 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'
9373 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~
9374 $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'
9376 # Both c and cxx compiler support -rpath directly
9377 hardcode_libdir_flag_spec='-rpath $libdir'
9379 archive_cmds_need_lc='no'
9380 hardcode_libdir_separator=:
9383 solaris*)
9384 no_undefined_flag=' -z defs'
9385 if test "$GCC" = yes; then
9386 wlarc='${wl}'
9387 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9388 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9389 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9390 else
9391 case `$CC -V 2>&1` in
9392 *"Compilers 5.0"*)
9393 wlarc=''
9394 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9395 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9396 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9399 wlarc='${wl}'
9400 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9401 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9402 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9404 esac
9406 hardcode_libdir_flag_spec='-R$libdir'
9407 hardcode_shlibpath_var=no
9408 case $host_os in
9409 solaris2.[0-5] | solaris2.[0-5].*) ;;
9411 # The compiler driver will combine and reorder linker options,
9412 # but understands `-z linker_flag'. GCC discards it without `$wl',
9413 # but is careful enough not to reorder.
9414 # Supported since Solaris 2.6 (maybe 2.5.1?)
9415 if test "$GCC" = yes; then
9416 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9417 else
9418 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9421 esac
9422 link_all_deplibs=yes
9425 sunos4*)
9426 if test "x$host_vendor" = xsequent; then
9427 # Use $CC to link under sequent, because it throws in some extra .o
9428 # files that make .init and .fini sections work.
9429 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9430 else
9431 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9433 hardcode_libdir_flag_spec='-L$libdir'
9434 hardcode_direct=yes
9435 hardcode_minus_L=yes
9436 hardcode_shlibpath_var=no
9439 sysv4)
9440 case $host_vendor in
9441 sni)
9442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9443 hardcode_direct=yes # is this really true???
9445 siemens)
9446 ## LD is ld it makes a PLAMLIB
9447 ## CC just makes a GrossModule.
9448 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9449 reload_cmds='$CC -r -o $output$reload_objs'
9450 hardcode_direct=no
9452 motorola)
9453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9454 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9456 esac
9457 runpath_var='LD_RUN_PATH'
9458 hardcode_shlibpath_var=no
9461 sysv4.3*)
9462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9463 hardcode_shlibpath_var=no
9464 export_dynamic_flag_spec='-Bexport'
9467 sysv4*MP*)
9468 if test -d /usr/nec; then
9469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9470 hardcode_shlibpath_var=no
9471 runpath_var=LD_RUN_PATH
9472 hardcode_runpath_var=yes
9473 ld_shlibs=yes
9477 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9478 no_undefined_flag='${wl}-z,text'
9479 archive_cmds_need_lc=no
9480 hardcode_shlibpath_var=no
9481 runpath_var='LD_RUN_PATH'
9483 if test "$GCC" = yes; then
9484 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9485 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9486 else
9487 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9488 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9492 sysv5* | sco3.2v5* | sco5v6*)
9493 # Note: We can NOT use -z defs as we might desire, because we do not
9494 # link with -lc, and that would cause any symbols used from libc to
9495 # always be unresolved, which means just about no library would
9496 # ever link correctly. If we're not using GNU ld we use -z text
9497 # though, which does catch some bad symbols but isn't as heavy-handed
9498 # as -z defs.
9499 no_undefined_flag='${wl}-z,text'
9500 allow_undefined_flag='${wl}-z,nodefs'
9501 archive_cmds_need_lc=no
9502 hardcode_shlibpath_var=no
9503 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9504 hardcode_libdir_separator=':'
9505 link_all_deplibs=yes
9506 export_dynamic_flag_spec='${wl}-Bexport'
9507 runpath_var='LD_RUN_PATH'
9509 if test "$GCC" = yes; then
9510 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9511 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9512 else
9513 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9514 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9518 uts4*)
9519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9520 hardcode_libdir_flag_spec='-L$libdir'
9521 hardcode_shlibpath_var=no
9525 ld_shlibs=no
9527 esac
9529 if test x$host_vendor = xsni; then
9530 case $host in
9531 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9532 export_dynamic_flag_spec='${wl}-Blargedynsym'
9534 esac
9538 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9539 echo "${ECHO_T}$ld_shlibs" >&6; }
9540 test "$ld_shlibs" = no && can_build_shared=no
9542 with_gnu_ld=$with_gnu_ld
9559 # Do we need to explicitly link libc?
9561 case "x$archive_cmds_need_lc" in
9562 x|xyes)
9563 # Assume -lc should be added
9564 archive_cmds_need_lc=yes
9566 if test "$enable_shared" = yes && test "$GCC" = yes; then
9567 case $archive_cmds in
9568 *'~'*)
9569 # FIXME: we may have to deal with multi-command sequences.
9571 '$CC '*)
9572 # Test whether the compiler implicitly links with -lc since on some
9573 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9574 # to ld, don't add -lc before -lgcc.
9575 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9576 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9577 $RM -r conftest*
9578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9581 (eval $ac_compile) 2>&5
9582 ac_status=$?
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); } 2>conftest.err; then
9585 soname=conftest
9586 lib=conftest
9587 libobjs=conftest.$ac_objext
9588 deplibs=
9589 wl=$lt_prog_compiler_wl
9590 pic_flag=$lt_prog_compiler_pic
9591 compiler_flags=-v
9592 linker_flags=-v
9593 verstring=
9594 output_objdir=.
9595 libname=conftest
9596 lt_save_allow_undefined_flag=$allow_undefined_flag
9597 allow_undefined_flag=
9598 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9599 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9600 ac_status=$?
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }
9603 then
9604 archive_cmds_need_lc=no
9605 else
9606 archive_cmds_need_lc=yes
9608 allow_undefined_flag=$lt_save_allow_undefined_flag
9609 else
9610 cat conftest.err 1>&5
9612 $RM -r conftest*
9613 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9614 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9616 esac
9619 esac
9777 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9778 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9780 if test "$GCC" = yes; then
9781 case $host_os in
9782 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9783 *) lt_awk_arg="/^libraries:/" ;;
9784 esac
9785 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9786 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9787 # if the path contains ";" then we assume it to be the separator
9788 # otherwise default to the standard path separator (i.e. ":") - it is
9789 # assumed that no part of a normal pathname contains ";" but that should
9790 # okay in the real world where ";" in dirpaths is itself problematic.
9791 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9792 else
9793 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9795 # Ok, now we have the path, separated by spaces, we can step through it
9796 # and add multilib dir if necessary.
9797 lt_tmp_lt_search_path_spec=
9798 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9799 for lt_sys_path in $lt_search_path_spec; do
9800 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9801 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9802 else
9803 test -d "$lt_sys_path" && \
9804 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9806 done
9807 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9808 BEGIN {RS=" "; FS="/|\n";} {
9809 lt_foo="";
9810 lt_count=0;
9811 for (lt_i = NF; lt_i > 0; lt_i--) {
9812 if ($lt_i != "" && $lt_i != ".") {
9813 if ($lt_i == "..") {
9814 lt_count++;
9815 } else {
9816 if (lt_count == 0) {
9817 lt_foo="/" $lt_i lt_foo;
9818 } else {
9819 lt_count--;
9824 if (lt_foo != "") { lt_freq[lt_foo]++; }
9825 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9827 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9828 else
9829 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9831 library_names_spec=
9832 libname_spec='lib$name'
9833 soname_spec=
9834 shrext_cmds=".so"
9835 postinstall_cmds=
9836 postuninstall_cmds=
9837 finish_cmds=
9838 finish_eval=
9839 shlibpath_var=
9840 shlibpath_overrides_runpath=unknown
9841 version_type=none
9842 dynamic_linker="$host_os ld.so"
9843 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9844 need_lib_prefix=unknown
9845 hardcode_into_libs=no
9847 # when you set need_version to no, make sure it does not cause -set_version
9848 # flags to be left without arguments
9849 need_version=unknown
9851 case $host_os in
9852 aix3*)
9853 version_type=linux
9854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9855 shlibpath_var=LIBPATH
9857 # AIX 3 has no versioning support, so we append a major version to the name.
9858 soname_spec='${libname}${release}${shared_ext}$major'
9861 aix[4-9]*)
9862 version_type=linux
9863 need_lib_prefix=no
9864 need_version=no
9865 hardcode_into_libs=yes
9866 if test "$host_cpu" = ia64; then
9867 # AIX 5 supports IA64
9868 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9869 shlibpath_var=LD_LIBRARY_PATH
9870 else
9871 # With GCC up to 2.95.x, collect2 would create an import file
9872 # for dependence libraries. The import file would start with
9873 # the line `#! .'. This would cause the generated library to
9874 # depend on `.', always an invalid library. This was fixed in
9875 # development snapshots of GCC prior to 3.0.
9876 case $host_os in
9877 aix4 | aix4.[01] | aix4.[01].*)
9878 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9879 echo ' yes '
9880 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9882 else
9883 can_build_shared=no
9886 esac
9887 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9888 # soname into executable. Probably we can add versioning support to
9889 # collect2, so additional links can be useful in future.
9890 if test "$aix_use_runtimelinking" = yes; then
9891 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9892 # instead of lib<name>.a to let people know that these are not
9893 # typical AIX shared libraries.
9894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9895 else
9896 # We preserve .a as extension for shared libraries through AIX4.2
9897 # and later when we are not doing run time linking.
9898 library_names_spec='${libname}${release}.a $libname.a'
9899 soname_spec='${libname}${release}${shared_ext}$major'
9901 shlibpath_var=LIBPATH
9905 amigaos*)
9906 case $host_cpu in
9907 powerpc)
9908 # Since July 2007 AmigaOS4 officially supports .so libraries.
9909 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9912 m68k)
9913 library_names_spec='$libname.ixlibrary $libname.a'
9914 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9915 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'
9917 esac
9920 beos*)
9921 library_names_spec='${libname}${shared_ext}'
9922 dynamic_linker="$host_os ld.so"
9923 shlibpath_var=LIBRARY_PATH
9926 bsdi[45]*)
9927 version_type=linux
9928 need_version=no
9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9930 soname_spec='${libname}${release}${shared_ext}$major'
9931 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9932 shlibpath_var=LD_LIBRARY_PATH
9933 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9934 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9935 # the default ld.so.conf also contains /usr/contrib/lib and
9936 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9937 # libtool to hard-code these into programs
9940 cygwin* | mingw* | pw32*)
9941 version_type=windows
9942 shrext_cmds=".dll"
9943 need_version=no
9944 need_lib_prefix=no
9946 case $GCC,$host_os in
9947 yes,cygwin* | yes,mingw* | yes,pw32*)
9948 library_names_spec='$libname.dll.a'
9949 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9950 postinstall_cmds='base_file=`basename \${file}`~
9951 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9952 dldir=$destdir/`dirname \$dlpath`~
9953 test -d \$dldir || mkdir -p \$dldir~
9954 $install_prog $dir/$dlname \$dldir/$dlname~
9955 chmod a+x \$dldir/$dlname~
9956 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9957 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9959 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9960 dlpath=$dir/\$dldll~
9961 $RM \$dlpath'
9962 shlibpath_overrides_runpath=yes
9964 case $host_os in
9965 cygwin*)
9966 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9967 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9968 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9970 mingw*)
9971 # MinGW DLLs use traditional 'lib' prefix
9972 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9973 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9974 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9975 # It is most probably a Windows format PATH printed by
9976 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9977 # path with ; separators, and with drive letters. We can handle the
9978 # drive letters (cygwin fileutils understands them), so leave them,
9979 # especially as we might pass files found there to a mingw objdump,
9980 # which wouldn't understand a cygwinified path. Ahh.
9981 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9982 else
9983 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9986 pw32*)
9987 # pw32 DLLs use 'pw' prefix rather than 'lib'
9988 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9990 esac
9994 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9996 esac
9997 dynamic_linker='Win32 ld.exe'
9998 # FIXME: first we should search . and the directory the executable is in
9999 shlibpath_var=PATH
10002 darwin* | rhapsody*)
10003 dynamic_linker="$host_os dyld"
10004 version_type=darwin
10005 need_lib_prefix=no
10006 need_version=no
10007 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
10008 soname_spec='${libname}${release}${major}$shared_ext'
10009 shlibpath_overrides_runpath=yes
10010 shlibpath_var=DYLD_LIBRARY_PATH
10011 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10013 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10014 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10017 dgux*)
10018 version_type=linux
10019 need_lib_prefix=no
10020 need_version=no
10021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10022 soname_spec='${libname}${release}${shared_ext}$major'
10023 shlibpath_var=LD_LIBRARY_PATH
10026 freebsd1*)
10027 dynamic_linker=no
10030 freebsd* | dragonfly*)
10031 # DragonFly does not have aout. When/if they implement a new
10032 # versioning mechanism, adjust this.
10033 if test -x /usr/bin/objformat; then
10034 objformat=`/usr/bin/objformat`
10035 else
10036 case $host_os in
10037 freebsd[123]*) objformat=aout ;;
10038 *) objformat=elf ;;
10039 esac
10041 version_type=freebsd-$objformat
10042 case $version_type in
10043 freebsd-elf*)
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10045 need_version=no
10046 need_lib_prefix=no
10048 freebsd-*)
10049 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10050 need_version=yes
10052 esac
10053 shlibpath_var=LD_LIBRARY_PATH
10054 case $host_os in
10055 freebsd2*)
10056 shlibpath_overrides_runpath=yes
10058 freebsd3.[01]* | freebsdelf3.[01]*)
10059 shlibpath_overrides_runpath=yes
10060 hardcode_into_libs=yes
10062 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10063 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10064 shlibpath_overrides_runpath=no
10065 hardcode_into_libs=yes
10067 *) # from 4.6 on, and DragonFly
10068 shlibpath_overrides_runpath=yes
10069 hardcode_into_libs=yes
10071 esac
10074 gnu*)
10075 version_type=linux
10076 need_lib_prefix=no
10077 need_version=no
10078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10079 soname_spec='${libname}${release}${shared_ext}$major'
10080 shlibpath_var=LD_LIBRARY_PATH
10081 hardcode_into_libs=yes
10084 hpux9* | hpux10* | hpux11*)
10085 # Give a soname corresponding to the major version so that dld.sl refuses to
10086 # link against other versions.
10087 version_type=sunos
10088 need_lib_prefix=no
10089 need_version=no
10090 case $host_cpu in
10091 ia64*)
10092 shrext_cmds='.so'
10093 hardcode_into_libs=yes
10094 dynamic_linker="$host_os dld.so"
10095 shlibpath_var=LD_LIBRARY_PATH
10096 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10098 soname_spec='${libname}${release}${shared_ext}$major'
10099 if test "X$HPUX_IA64_MODE" = X32; then
10100 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10101 else
10102 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10104 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10106 hppa*64*)
10107 shrext_cmds='.sl'
10108 hardcode_into_libs=yes
10109 dynamic_linker="$host_os dld.sl"
10110 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10111 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10113 soname_spec='${libname}${release}${shared_ext}$major'
10114 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10115 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10118 shrext_cmds='.sl'
10119 dynamic_linker="$host_os dld.sl"
10120 shlibpath_var=SHLIB_PATH
10121 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10123 soname_spec='${libname}${release}${shared_ext}$major'
10125 esac
10126 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10127 postinstall_cmds='chmod 555 $lib'
10130 interix[3-9]*)
10131 version_type=linux
10132 need_lib_prefix=no
10133 need_version=no
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10135 soname_spec='${libname}${release}${shared_ext}$major'
10136 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10137 shlibpath_var=LD_LIBRARY_PATH
10138 shlibpath_overrides_runpath=no
10139 hardcode_into_libs=yes
10142 irix5* | irix6* | nonstopux*)
10143 case $host_os in
10144 nonstopux*) version_type=nonstopux ;;
10146 if test "$lt_cv_prog_gnu_ld" = yes; then
10147 version_type=linux
10148 else
10149 version_type=irix
10150 fi ;;
10151 esac
10152 need_lib_prefix=no
10153 need_version=no
10154 soname_spec='${libname}${release}${shared_ext}$major'
10155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10156 case $host_os in
10157 irix5* | nonstopux*)
10158 libsuff= shlibsuff=
10161 case $LD in # libtool.m4 will add one of these switches to LD
10162 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10163 libsuff= shlibsuff= libmagic=32-bit;;
10164 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10165 libsuff=32 shlibsuff=N32 libmagic=N32;;
10166 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10167 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10168 *) libsuff= shlibsuff= libmagic=never-match;;
10169 esac
10171 esac
10172 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10173 shlibpath_overrides_runpath=no
10174 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10175 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10176 hardcode_into_libs=yes
10179 # No shared lib support for Linux oldld, aout, or coff.
10180 linux*oldld* | linux*aout* | linux*coff*)
10181 dynamic_linker=no
10184 # This must be Linux ELF.
10185 linux* | k*bsd*-gnu)
10186 version_type=linux
10187 need_lib_prefix=no
10188 need_version=no
10189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10190 soname_spec='${libname}${release}${shared_ext}$major'
10191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10192 shlibpath_var=LD_LIBRARY_PATH
10193 shlibpath_overrides_runpath=no
10194 # Some binutils ld are patched to set DT_RUNPATH
10195 save_LDFLAGS=$LDFLAGS
10196 save_libdir=$libdir
10197 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10198 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10199 cat >conftest.$ac_ext <<_ACEOF
10200 /* confdefs.h. */
10201 _ACEOF
10202 cat confdefs.h >>conftest.$ac_ext
10203 cat >>conftest.$ac_ext <<_ACEOF
10204 /* end confdefs.h. */
10207 main ()
10211 return 0;
10213 _ACEOF
10214 rm -f conftest.$ac_objext conftest$ac_exeext
10215 if { (ac_try="$ac_link"
10216 case "(($ac_try" in
10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10219 esac
10220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221 (eval "$ac_link") 2>conftest.er1
10222 ac_status=$?
10223 grep -v '^ *+' conftest.er1 >conftest.err
10224 rm -f conftest.er1
10225 cat conftest.err >&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); } && {
10228 test -z "$ac_c_werror_flag" ||
10229 test ! -s conftest.err
10230 } && test -s conftest$ac_exeext &&
10231 $as_test_x conftest$ac_exeext; then
10232 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10233 shlibpath_overrides_runpath=yes
10236 else
10237 echo "$as_me: failed program was:" >&5
10238 sed 's/^/| /' conftest.$ac_ext >&5
10243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10244 conftest$ac_exeext conftest.$ac_ext
10245 LDFLAGS=$save_LDFLAGS
10246 libdir=$save_libdir
10248 # This implies no fast_install, which is unacceptable.
10249 # Some rework will be needed to allow for fast_install
10250 # before this can be enabled.
10251 hardcode_into_libs=yes
10253 # Append ld.so.conf contents to the search path
10254 if test -f /etc/ld.so.conf; then
10255 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' ' '`
10256 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10259 # We used to test for /lib/ld.so.1 and disable shared libraries on
10260 # powerpc, because MkLinux only supported shared libraries with the
10261 # GNU dynamic linker. Since this was broken with cross compilers,
10262 # most powerpc-linux boxes support dynamic linking these days and
10263 # people can always --disable-shared, the test was removed, and we
10264 # assume the GNU/Linux dynamic linker is in use.
10265 dynamic_linker='GNU/Linux ld.so'
10268 netbsd*)
10269 version_type=sunos
10270 need_lib_prefix=no
10271 need_version=no
10272 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10275 dynamic_linker='NetBSD (a.out) ld.so'
10276 else
10277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10278 soname_spec='${libname}${release}${shared_ext}$major'
10279 dynamic_linker='NetBSD ld.elf_so'
10281 shlibpath_var=LD_LIBRARY_PATH
10282 shlibpath_overrides_runpath=yes
10283 hardcode_into_libs=yes
10286 newsos6)
10287 version_type=linux
10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10289 shlibpath_var=LD_LIBRARY_PATH
10290 shlibpath_overrides_runpath=yes
10293 *nto* | *qnx*)
10294 version_type=qnx
10295 need_lib_prefix=no
10296 need_version=no
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10298 soname_spec='${libname}${release}${shared_ext}$major'
10299 shlibpath_var=LD_LIBRARY_PATH
10300 shlibpath_overrides_runpath=no
10301 hardcode_into_libs=yes
10302 dynamic_linker='ldqnx.so'
10305 openbsd*)
10306 version_type=sunos
10307 sys_lib_dlsearch_path_spec="/usr/lib"
10308 need_lib_prefix=no
10309 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10310 case $host_os in
10311 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10312 *) need_version=no ;;
10313 esac
10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10316 shlibpath_var=LD_LIBRARY_PATH
10317 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10318 case $host_os in
10319 openbsd2.[89] | openbsd2.[89].*)
10320 shlibpath_overrides_runpath=no
10323 shlibpath_overrides_runpath=yes
10325 esac
10326 else
10327 shlibpath_overrides_runpath=yes
10331 os2*)
10332 libname_spec='$name'
10333 shrext_cmds=".dll"
10334 need_lib_prefix=no
10335 library_names_spec='$libname${shared_ext} $libname.a'
10336 dynamic_linker='OS/2 ld.exe'
10337 shlibpath_var=LIBPATH
10340 osf3* | osf4* | osf5*)
10341 version_type=osf
10342 need_lib_prefix=no
10343 need_version=no
10344 soname_spec='${libname}${release}${shared_ext}$major'
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10346 shlibpath_var=LD_LIBRARY_PATH
10347 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10348 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10351 rdos*)
10352 dynamic_linker=no
10355 solaris*)
10356 version_type=linux
10357 need_lib_prefix=no
10358 need_version=no
10359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10360 soname_spec='${libname}${release}${shared_ext}$major'
10361 shlibpath_var=LD_LIBRARY_PATH
10362 shlibpath_overrides_runpath=yes
10363 hardcode_into_libs=yes
10364 # ldd complains unless libraries are executable
10365 postinstall_cmds='chmod +x $lib'
10368 sunos4*)
10369 version_type=sunos
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10371 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 shlibpath_overrides_runpath=yes
10374 if test "$with_gnu_ld" = yes; then
10375 need_lib_prefix=no
10377 need_version=yes
10380 sysv4 | sysv4.3*)
10381 version_type=linux
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10383 soname_spec='${libname}${release}${shared_ext}$major'
10384 shlibpath_var=LD_LIBRARY_PATH
10385 case $host_vendor in
10386 sni)
10387 shlibpath_overrides_runpath=no
10388 need_lib_prefix=no
10389 runpath_var=LD_RUN_PATH
10391 siemens)
10392 need_lib_prefix=no
10394 motorola)
10395 need_lib_prefix=no
10396 need_version=no
10397 shlibpath_overrides_runpath=no
10398 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10400 esac
10403 sysv4*MP*)
10404 if test -d /usr/nec ;then
10405 version_type=linux
10406 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10407 soname_spec='$libname${shared_ext}.$major'
10408 shlibpath_var=LD_LIBRARY_PATH
10412 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10413 version_type=freebsd-elf
10414 need_lib_prefix=no
10415 need_version=no
10416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10417 soname_spec='${libname}${release}${shared_ext}$major'
10418 shlibpath_var=LD_LIBRARY_PATH
10419 shlibpath_overrides_runpath=yes
10420 hardcode_into_libs=yes
10421 if test "$with_gnu_ld" = yes; then
10422 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10423 else
10424 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10425 case $host_os in
10426 sco3.2v5*)
10427 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10429 esac
10431 sys_lib_dlsearch_path_spec='/usr/lib'
10434 tpf*)
10435 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10436 version_type=linux
10437 need_lib_prefix=no
10438 need_version=no
10439 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440 shlibpath_var=LD_LIBRARY_PATH
10441 shlibpath_overrides_runpath=no
10442 hardcode_into_libs=yes
10445 uts4*)
10446 version_type=linux
10447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10448 soname_spec='${libname}${release}${shared_ext}$major'
10449 shlibpath_var=LD_LIBRARY_PATH
10453 dynamic_linker=no
10455 esac
10456 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10457 echo "${ECHO_T}$dynamic_linker" >&6; }
10458 test "$dynamic_linker" = no && can_build_shared=no
10460 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10461 if test "$GCC" = yes; then
10462 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10465 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10466 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10468 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10469 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10558 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10559 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10560 hardcode_action=
10561 if test -n "$hardcode_libdir_flag_spec" ||
10562 test -n "$runpath_var" ||
10563 test "X$hardcode_automatic" = "Xyes" ; then
10565 # We can hardcode non-existent directories.
10566 if test "$hardcode_direct" != no &&
10567 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10568 # have to relink, otherwise we might link with an installed library
10569 # when we should be linking with a yet-to-be-installed one
10570 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10571 test "$hardcode_minus_L" != no; then
10572 # Linking always hardcodes the temporary library directory.
10573 hardcode_action=relink
10574 else
10575 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10576 hardcode_action=immediate
10578 else
10579 # We cannot hardcode anything, or else we can only hardcode existing
10580 # directories.
10581 hardcode_action=unsupported
10583 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10584 echo "${ECHO_T}$hardcode_action" >&6; }
10586 if test "$hardcode_action" = relink ||
10587 test "$inherit_rpath" = yes; then
10588 # Fast installation is not supported
10589 enable_fast_install=no
10590 elif test "$shlibpath_overrides_runpath" = yes ||
10591 test "$enable_shared" = no; then
10592 # Fast installation is not necessary
10593 enable_fast_install=needless
10601 if test "x$enable_dlopen" != xyes; then
10602 enable_dlopen=unknown
10603 enable_dlopen_self=unknown
10604 enable_dlopen_self_static=unknown
10605 else
10606 lt_cv_dlopen=no
10607 lt_cv_dlopen_libs=
10609 case $host_os in
10610 beos*)
10611 lt_cv_dlopen="load_add_on"
10612 lt_cv_dlopen_libs=
10613 lt_cv_dlopen_self=yes
10616 mingw* | pw32*)
10617 lt_cv_dlopen="LoadLibrary"
10618 lt_cv_dlopen_libs=
10621 cygwin*)
10622 lt_cv_dlopen="dlopen"
10623 lt_cv_dlopen_libs=
10626 darwin*)
10627 # if libdl is installed we need to link against it
10628 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10629 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10630 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10632 else
10633 ac_check_lib_save_LIBS=$LIBS
10634 LIBS="-ldl $LIBS"
10635 cat >conftest.$ac_ext <<_ACEOF
10636 /* confdefs.h. */
10637 _ACEOF
10638 cat confdefs.h >>conftest.$ac_ext
10639 cat >>conftest.$ac_ext <<_ACEOF
10640 /* end confdefs.h. */
10642 /* Override any GCC internal prototype to avoid an error.
10643 Use char because int might match the return type of a GCC
10644 builtin and then its argument prototype would still apply. */
10645 #ifdef __cplusplus
10646 extern "C"
10647 #endif
10648 char dlopen ();
10650 main ()
10652 return dlopen ();
10654 return 0;
10656 _ACEOF
10657 rm -f conftest.$ac_objext conftest$ac_exeext
10658 if { (ac_try="$ac_link"
10659 case "(($ac_try" in
10660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10661 *) ac_try_echo=$ac_try;;
10662 esac
10663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10664 (eval "$ac_link") 2>conftest.er1
10665 ac_status=$?
10666 grep -v '^ *+' conftest.er1 >conftest.err
10667 rm -f conftest.er1
10668 cat conftest.err >&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); } && {
10671 test -z "$ac_c_werror_flag" ||
10672 test ! -s conftest.err
10673 } && test -s conftest$ac_exeext &&
10674 $as_test_x conftest$ac_exeext; then
10675 ac_cv_lib_dl_dlopen=yes
10676 else
10677 echo "$as_me: failed program was:" >&5
10678 sed 's/^/| /' conftest.$ac_ext >&5
10680 ac_cv_lib_dl_dlopen=no
10683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10684 conftest$ac_exeext conftest.$ac_ext
10685 LIBS=$ac_check_lib_save_LIBS
10687 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10688 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10689 if test $ac_cv_lib_dl_dlopen = yes; then
10690 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10691 else
10693 lt_cv_dlopen="dyld"
10694 lt_cv_dlopen_libs=
10695 lt_cv_dlopen_self=yes
10702 { echo "$as_me:$LINENO: checking for shl_load" >&5
10703 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10704 if test "${ac_cv_func_shl_load+set}" = set; then
10705 echo $ECHO_N "(cached) $ECHO_C" >&6
10706 else
10707 cat >conftest.$ac_ext <<_ACEOF
10708 /* confdefs.h. */
10709 _ACEOF
10710 cat confdefs.h >>conftest.$ac_ext
10711 cat >>conftest.$ac_ext <<_ACEOF
10712 /* end confdefs.h. */
10713 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10715 #define shl_load innocuous_shl_load
10717 /* System header to define __stub macros and hopefully few prototypes,
10718 which can conflict with char shl_load (); below.
10719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10720 <limits.h> exists even on freestanding compilers. */
10722 #ifdef __STDC__
10723 # include <limits.h>
10724 #else
10725 # include <assert.h>
10726 #endif
10728 #undef shl_load
10730 /* Override any GCC internal prototype to avoid an error.
10731 Use char because int might match the return type of a GCC
10732 builtin and then its argument prototype would still apply. */
10733 #ifdef __cplusplus
10734 extern "C"
10735 #endif
10736 char shl_load ();
10737 /* The GNU C library defines this for functions which it implements
10738 to always fail with ENOSYS. Some functions are actually named
10739 something starting with __ and the normal name is an alias. */
10740 #if defined __stub_shl_load || defined __stub___shl_load
10741 choke me
10742 #endif
10745 main ()
10747 return shl_load ();
10749 return 0;
10751 _ACEOF
10752 rm -f conftest.$ac_objext conftest$ac_exeext
10753 if { (ac_try="$ac_link"
10754 case "(($ac_try" in
10755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756 *) ac_try_echo=$ac_try;;
10757 esac
10758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10759 (eval "$ac_link") 2>conftest.er1
10760 ac_status=$?
10761 grep -v '^ *+' conftest.er1 >conftest.err
10762 rm -f conftest.er1
10763 cat conftest.err >&5
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); } && {
10766 test -z "$ac_c_werror_flag" ||
10767 test ! -s conftest.err
10768 } && test -s conftest$ac_exeext &&
10769 $as_test_x conftest$ac_exeext; then
10770 ac_cv_func_shl_load=yes
10771 else
10772 echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10775 ac_cv_func_shl_load=no
10778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10779 conftest$ac_exeext conftest.$ac_ext
10781 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10782 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10783 if test $ac_cv_func_shl_load = yes; then
10784 lt_cv_dlopen="shl_load"
10785 else
10786 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10787 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10788 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10790 else
10791 ac_check_lib_save_LIBS=$LIBS
10792 LIBS="-ldld $LIBS"
10793 cat >conftest.$ac_ext <<_ACEOF
10794 /* confdefs.h. */
10795 _ACEOF
10796 cat confdefs.h >>conftest.$ac_ext
10797 cat >>conftest.$ac_ext <<_ACEOF
10798 /* end confdefs.h. */
10800 /* Override any GCC internal prototype to avoid an error.
10801 Use char because int might match the return type of a GCC
10802 builtin and then its argument prototype would still apply. */
10803 #ifdef __cplusplus
10804 extern "C"
10805 #endif
10806 char shl_load ();
10808 main ()
10810 return shl_load ();
10812 return 0;
10814 _ACEOF
10815 rm -f conftest.$ac_objext conftest$ac_exeext
10816 if { (ac_try="$ac_link"
10817 case "(($ac_try" in
10818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819 *) ac_try_echo=$ac_try;;
10820 esac
10821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10822 (eval "$ac_link") 2>conftest.er1
10823 ac_status=$?
10824 grep -v '^ *+' conftest.er1 >conftest.err
10825 rm -f conftest.er1
10826 cat conftest.err >&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } && {
10829 test -z "$ac_c_werror_flag" ||
10830 test ! -s conftest.err
10831 } && test -s conftest$ac_exeext &&
10832 $as_test_x conftest$ac_exeext; then
10833 ac_cv_lib_dld_shl_load=yes
10834 else
10835 echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10838 ac_cv_lib_dld_shl_load=no
10841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10842 conftest$ac_exeext conftest.$ac_ext
10843 LIBS=$ac_check_lib_save_LIBS
10845 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10846 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10847 if test $ac_cv_lib_dld_shl_load = yes; then
10848 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10849 else
10850 { echo "$as_me:$LINENO: checking for dlopen" >&5
10851 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10852 if test "${ac_cv_func_dlopen+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
10854 else
10855 cat >conftest.$ac_ext <<_ACEOF
10856 /* confdefs.h. */
10857 _ACEOF
10858 cat confdefs.h >>conftest.$ac_ext
10859 cat >>conftest.$ac_ext <<_ACEOF
10860 /* end confdefs.h. */
10861 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10863 #define dlopen innocuous_dlopen
10865 /* System header to define __stub macros and hopefully few prototypes,
10866 which can conflict with char dlopen (); below.
10867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10868 <limits.h> exists even on freestanding compilers. */
10870 #ifdef __STDC__
10871 # include <limits.h>
10872 #else
10873 # include <assert.h>
10874 #endif
10876 #undef dlopen
10878 /* Override any GCC internal prototype to avoid an error.
10879 Use char because int might match the return type of a GCC
10880 builtin and then its argument prototype would still apply. */
10881 #ifdef __cplusplus
10882 extern "C"
10883 #endif
10884 char dlopen ();
10885 /* The GNU C library defines this for functions which it implements
10886 to always fail with ENOSYS. Some functions are actually named
10887 something starting with __ and the normal name is an alias. */
10888 #if defined __stub_dlopen || defined __stub___dlopen
10889 choke me
10890 #endif
10893 main ()
10895 return dlopen ();
10897 return 0;
10899 _ACEOF
10900 rm -f conftest.$ac_objext conftest$ac_exeext
10901 if { (ac_try="$ac_link"
10902 case "(($ac_try" in
10903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904 *) ac_try_echo=$ac_try;;
10905 esac
10906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907 (eval "$ac_link") 2>conftest.er1
10908 ac_status=$?
10909 grep -v '^ *+' conftest.er1 >conftest.err
10910 rm -f conftest.er1
10911 cat conftest.err >&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); } && {
10914 test -z "$ac_c_werror_flag" ||
10915 test ! -s conftest.err
10916 } && test -s conftest$ac_exeext &&
10917 $as_test_x conftest$ac_exeext; then
10918 ac_cv_func_dlopen=yes
10919 else
10920 echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.$ac_ext >&5
10923 ac_cv_func_dlopen=no
10926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10927 conftest$ac_exeext conftest.$ac_ext
10929 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10930 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10931 if test $ac_cv_func_dlopen = yes; then
10932 lt_cv_dlopen="dlopen"
10933 else
10934 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10935 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10936 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 else
10939 ac_check_lib_save_LIBS=$LIBS
10940 LIBS="-ldl $LIBS"
10941 cat >conftest.$ac_ext <<_ACEOF
10942 /* confdefs.h. */
10943 _ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h. */
10948 /* Override any GCC internal prototype to avoid an error.
10949 Use char because int might match the return type of a GCC
10950 builtin and then its argument prototype would still apply. */
10951 #ifdef __cplusplus
10952 extern "C"
10953 #endif
10954 char dlopen ();
10956 main ()
10958 return dlopen ();
10960 return 0;
10962 _ACEOF
10963 rm -f conftest.$ac_objext conftest$ac_exeext
10964 if { (ac_try="$ac_link"
10965 case "(($ac_try" in
10966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10967 *) ac_try_echo=$ac_try;;
10968 esac
10969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10970 (eval "$ac_link") 2>conftest.er1
10971 ac_status=$?
10972 grep -v '^ *+' conftest.er1 >conftest.err
10973 rm -f conftest.er1
10974 cat conftest.err >&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } && {
10977 test -z "$ac_c_werror_flag" ||
10978 test ! -s conftest.err
10979 } && test -s conftest$ac_exeext &&
10980 $as_test_x conftest$ac_exeext; then
10981 ac_cv_lib_dl_dlopen=yes
10982 else
10983 echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10986 ac_cv_lib_dl_dlopen=no
10989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10990 conftest$ac_exeext conftest.$ac_ext
10991 LIBS=$ac_check_lib_save_LIBS
10993 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10994 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10995 if test $ac_cv_lib_dl_dlopen = yes; then
10996 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10997 else
10998 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10999 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11000 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11001 echo $ECHO_N "(cached) $ECHO_C" >&6
11002 else
11003 ac_check_lib_save_LIBS=$LIBS
11004 LIBS="-lsvld $LIBS"
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. */
11012 /* Override any GCC internal prototype to avoid an error.
11013 Use char because int might match the return type of a GCC
11014 builtin and then its argument prototype would still apply. */
11015 #ifdef __cplusplus
11016 extern "C"
11017 #endif
11018 char dlopen ();
11020 main ()
11022 return dlopen ();
11024 return 0;
11026 _ACEOF
11027 rm -f conftest.$ac_objext conftest$ac_exeext
11028 if { (ac_try="$ac_link"
11029 case "(($ac_try" in
11030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11031 *) ac_try_echo=$ac_try;;
11032 esac
11033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11034 (eval "$ac_link") 2>conftest.er1
11035 ac_status=$?
11036 grep -v '^ *+' conftest.er1 >conftest.err
11037 rm -f conftest.er1
11038 cat conftest.err >&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); } && {
11041 test -z "$ac_c_werror_flag" ||
11042 test ! -s conftest.err
11043 } && test -s conftest$ac_exeext &&
11044 $as_test_x conftest$ac_exeext; then
11045 ac_cv_lib_svld_dlopen=yes
11046 else
11047 echo "$as_me: failed program was:" >&5
11048 sed 's/^/| /' conftest.$ac_ext >&5
11050 ac_cv_lib_svld_dlopen=no
11053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11054 conftest$ac_exeext conftest.$ac_ext
11055 LIBS=$ac_check_lib_save_LIBS
11057 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11058 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11059 if test $ac_cv_lib_svld_dlopen = yes; then
11060 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11061 else
11062 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11063 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11064 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11065 echo $ECHO_N "(cached) $ECHO_C" >&6
11066 else
11067 ac_check_lib_save_LIBS=$LIBS
11068 LIBS="-ldld $LIBS"
11069 cat >conftest.$ac_ext <<_ACEOF
11070 /* confdefs.h. */
11071 _ACEOF
11072 cat confdefs.h >>conftest.$ac_ext
11073 cat >>conftest.$ac_ext <<_ACEOF
11074 /* end confdefs.h. */
11076 /* Override any GCC internal prototype to avoid an error.
11077 Use char because int might match the return type of a GCC
11078 builtin and then its argument prototype would still apply. */
11079 #ifdef __cplusplus
11080 extern "C"
11081 #endif
11082 char dld_link ();
11084 main ()
11086 return dld_link ();
11088 return 0;
11090 _ACEOF
11091 rm -f conftest.$ac_objext conftest$ac_exeext
11092 if { (ac_try="$ac_link"
11093 case "(($ac_try" in
11094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095 *) ac_try_echo=$ac_try;;
11096 esac
11097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11098 (eval "$ac_link") 2>conftest.er1
11099 ac_status=$?
11100 grep -v '^ *+' conftest.er1 >conftest.err
11101 rm -f conftest.er1
11102 cat conftest.err >&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } && {
11105 test -z "$ac_c_werror_flag" ||
11106 test ! -s conftest.err
11107 } && test -s conftest$ac_exeext &&
11108 $as_test_x conftest$ac_exeext; then
11109 ac_cv_lib_dld_dld_link=yes
11110 else
11111 echo "$as_me: failed program was:" >&5
11112 sed 's/^/| /' conftest.$ac_ext >&5
11114 ac_cv_lib_dld_dld_link=no
11117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11118 conftest$ac_exeext conftest.$ac_ext
11119 LIBS=$ac_check_lib_save_LIBS
11121 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11122 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11123 if test $ac_cv_lib_dld_dld_link = yes; then
11124 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11143 esac
11145 if test "x$lt_cv_dlopen" != xno; then
11146 enable_dlopen=yes
11147 else
11148 enable_dlopen=no
11151 case $lt_cv_dlopen in
11152 dlopen)
11153 save_CPPFLAGS="$CPPFLAGS"
11154 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11156 save_LDFLAGS="$LDFLAGS"
11157 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11159 save_LIBS="$LIBS"
11160 LIBS="$lt_cv_dlopen_libs $LIBS"
11162 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11163 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11164 if test "${lt_cv_dlopen_self+set}" = set; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11166 else
11167 if test "$cross_compiling" = yes; then :
11168 lt_cv_dlopen_self=cross
11169 else
11170 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11171 lt_status=$lt_dlunknown
11172 cat > conftest.$ac_ext <<_LT_EOF
11173 #line 11173 "configure"
11174 #include "confdefs.h"
11176 #if HAVE_DLFCN_H
11177 #include <dlfcn.h>
11178 #endif
11180 #include <stdio.h>
11182 #ifdef RTLD_GLOBAL
11183 # define LT_DLGLOBAL RTLD_GLOBAL
11184 #else
11185 # ifdef DL_GLOBAL
11186 # define LT_DLGLOBAL DL_GLOBAL
11187 # else
11188 # define LT_DLGLOBAL 0
11189 # endif
11190 #endif
11192 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11193 find out it does not work in some platform. */
11194 #ifndef LT_DLLAZY_OR_NOW
11195 # ifdef RTLD_LAZY
11196 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11197 # else
11198 # ifdef DL_LAZY
11199 # define LT_DLLAZY_OR_NOW DL_LAZY
11200 # else
11201 # ifdef RTLD_NOW
11202 # define LT_DLLAZY_OR_NOW RTLD_NOW
11203 # else
11204 # ifdef DL_NOW
11205 # define LT_DLLAZY_OR_NOW DL_NOW
11206 # else
11207 # define LT_DLLAZY_OR_NOW 0
11208 # endif
11209 # endif
11210 # endif
11211 # endif
11212 #endif
11214 #ifdef __cplusplus
11215 extern "C" void exit (int);
11216 #endif
11218 void fnord() { int i=42;}
11219 int main ()
11221 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11222 int status = $lt_dlunknown;
11224 if (self)
11226 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11227 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11228 /* dlclose (self); */
11230 else
11231 puts (dlerror ());
11233 exit (status);
11235 _LT_EOF
11236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11237 (eval $ac_link) 2>&5
11238 ac_status=$?
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11241 (./conftest; exit; ) >&5 2>/dev/null
11242 lt_status=$?
11243 case x$lt_status in
11244 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11245 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11246 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11247 esac
11248 else :
11249 # compilation failed
11250 lt_cv_dlopen_self=no
11253 rm -fr conftest*
11257 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11258 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11260 if test "x$lt_cv_dlopen_self" = xyes; then
11261 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11262 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11263 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11264 if test "${lt_cv_dlopen_self_static+set}" = set; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11266 else
11267 if test "$cross_compiling" = yes; then :
11268 lt_cv_dlopen_self_static=cross
11269 else
11270 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11271 lt_status=$lt_dlunknown
11272 cat > conftest.$ac_ext <<_LT_EOF
11273 #line 11273 "configure"
11274 #include "confdefs.h"
11276 #if HAVE_DLFCN_H
11277 #include <dlfcn.h>
11278 #endif
11280 #include <stdio.h>
11282 #ifdef RTLD_GLOBAL
11283 # define LT_DLGLOBAL RTLD_GLOBAL
11284 #else
11285 # ifdef DL_GLOBAL
11286 # define LT_DLGLOBAL DL_GLOBAL
11287 # else
11288 # define LT_DLGLOBAL 0
11289 # endif
11290 #endif
11292 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11293 find out it does not work in some platform. */
11294 #ifndef LT_DLLAZY_OR_NOW
11295 # ifdef RTLD_LAZY
11296 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11297 # else
11298 # ifdef DL_LAZY
11299 # define LT_DLLAZY_OR_NOW DL_LAZY
11300 # else
11301 # ifdef RTLD_NOW
11302 # define LT_DLLAZY_OR_NOW RTLD_NOW
11303 # else
11304 # ifdef DL_NOW
11305 # define LT_DLLAZY_OR_NOW DL_NOW
11306 # else
11307 # define LT_DLLAZY_OR_NOW 0
11308 # endif
11309 # endif
11310 # endif
11311 # endif
11312 #endif
11314 #ifdef __cplusplus
11315 extern "C" void exit (int);
11316 #endif
11318 void fnord() { int i=42;}
11319 int main ()
11321 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11322 int status = $lt_dlunknown;
11324 if (self)
11326 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11327 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11328 /* dlclose (self); */
11330 else
11331 puts (dlerror ());
11333 exit (status);
11335 _LT_EOF
11336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11337 (eval $ac_link) 2>&5
11338 ac_status=$?
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11341 (./conftest; exit; ) >&5 2>/dev/null
11342 lt_status=$?
11343 case x$lt_status in
11344 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11345 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11346 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11347 esac
11348 else :
11349 # compilation failed
11350 lt_cv_dlopen_self_static=no
11353 rm -fr conftest*
11357 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11358 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11361 CPPFLAGS="$save_CPPFLAGS"
11362 LDFLAGS="$save_LDFLAGS"
11363 LIBS="$save_LIBS"
11365 esac
11367 case $lt_cv_dlopen_self in
11368 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11369 *) enable_dlopen_self=unknown ;;
11370 esac
11372 case $lt_cv_dlopen_self_static in
11373 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11374 *) enable_dlopen_self_static=unknown ;;
11375 esac
11394 striplib=
11395 old_striplib=
11396 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11397 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11398 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11399 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11400 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11401 { echo "$as_me:$LINENO: result: yes" >&5
11402 echo "${ECHO_T}yes" >&6; }
11403 else
11404 # FIXME - insert some real tests, host_os isn't really good enough
11405 case $host_os in
11406 darwin*)
11407 if test -n "$STRIP" ; then
11408 striplib="$STRIP -x"
11409 old_striplib="$STRIP -S"
11410 { echo "$as_me:$LINENO: result: yes" >&5
11411 echo "${ECHO_T}yes" >&6; }
11412 else
11413 { echo "$as_me:$LINENO: result: no" >&5
11414 echo "${ECHO_T}no" >&6; }
11418 { echo "$as_me:$LINENO: result: no" >&5
11419 echo "${ECHO_T}no" >&6; }
11421 esac
11435 # Report which library types will actually be built
11436 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11437 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11438 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11439 echo "${ECHO_T}$can_build_shared" >&6; }
11441 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11442 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11443 test "$can_build_shared" = "no" && enable_shared=no
11445 # On AIX, shared libraries and static libraries use the same namespace, and
11446 # are all built from PIC.
11447 case $host_os in
11448 aix3*)
11449 test "$enable_shared" = yes && enable_static=no
11450 if test -n "$RANLIB"; then
11451 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11452 postinstall_cmds='$RANLIB $lib'
11456 aix[4-9]*)
11457 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11458 test "$enable_shared" = yes && enable_static=no
11461 esac
11462 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11463 echo "${ECHO_T}$enable_shared" >&6; }
11465 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11466 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11467 # Make sure either enable_shared or enable_static is yes.
11468 test "$enable_shared" = yes || enable_static=yes
11469 { echo "$as_me:$LINENO: result: $enable_static" >&5
11470 echo "${ECHO_T}$enable_static" >&6; }
11476 ac_ext=c
11477 ac_cpp='$CPP $CPPFLAGS'
11478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11482 CC="$lt_save_CC"
11496 ac_config_commands="$ac_config_commands libtool"
11501 # Only expand once:
11507 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
11508 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
11509 if test "${ac_cv_c_bigendian+set}" = set; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11511 else
11512 # See if sys/param.h defines the BYTE_ORDER macro.
11513 cat >conftest.$ac_ext <<_ACEOF
11514 /* confdefs.h. */
11515 _ACEOF
11516 cat confdefs.h >>conftest.$ac_ext
11517 cat >>conftest.$ac_ext <<_ACEOF
11518 /* end confdefs.h. */
11519 #include <sys/types.h>
11520 #include <sys/param.h>
11523 main ()
11525 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
11526 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
11527 bogus endian macros
11528 #endif
11531 return 0;
11533 _ACEOF
11534 rm -f conftest.$ac_objext
11535 if { (ac_try="$ac_compile"
11536 case "(($ac_try" in
11537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538 *) ac_try_echo=$ac_try;;
11539 esac
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541 (eval "$ac_compile") 2>conftest.er1
11542 ac_status=$?
11543 grep -v '^ *+' conftest.er1 >conftest.err
11544 rm -f conftest.er1
11545 cat conftest.err >&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); } && {
11548 test -z "$ac_c_werror_flag" ||
11549 test ! -s conftest.err
11550 } && test -s conftest.$ac_objext; then
11551 # It does; now see whether it defined to BIG_ENDIAN or not.
11552 cat >conftest.$ac_ext <<_ACEOF
11553 /* confdefs.h. */
11554 _ACEOF
11555 cat confdefs.h >>conftest.$ac_ext
11556 cat >>conftest.$ac_ext <<_ACEOF
11557 /* end confdefs.h. */
11558 #include <sys/types.h>
11559 #include <sys/param.h>
11562 main ()
11564 #if BYTE_ORDER != BIG_ENDIAN
11565 not big endian
11566 #endif
11569 return 0;
11571 _ACEOF
11572 rm -f conftest.$ac_objext
11573 if { (ac_try="$ac_compile"
11574 case "(($ac_try" in
11575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576 *) ac_try_echo=$ac_try;;
11577 esac
11578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11579 (eval "$ac_compile") 2>conftest.er1
11580 ac_status=$?
11581 grep -v '^ *+' conftest.er1 >conftest.err
11582 rm -f conftest.er1
11583 cat conftest.err >&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); } && {
11586 test -z "$ac_c_werror_flag" ||
11587 test ! -s conftest.err
11588 } && test -s conftest.$ac_objext; then
11589 ac_cv_c_bigendian=yes
11590 else
11591 echo "$as_me: failed program was:" >&5
11592 sed 's/^/| /' conftest.$ac_ext >&5
11594 ac_cv_c_bigendian=no
11597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11598 else
11599 echo "$as_me: failed program was:" >&5
11600 sed 's/^/| /' conftest.$ac_ext >&5
11602 # It does not; compile a test program.
11603 if test "$cross_compiling" = yes; then
11604 # try to guess the endianness by grepping values into an object file
11605 ac_cv_c_bigendian=unknown
11606 cat >conftest.$ac_ext <<_ACEOF
11607 /* confdefs.h. */
11608 _ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11612 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11613 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11614 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
11615 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11616 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11617 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
11619 main ()
11621 _ascii (); _ebcdic ();
11623 return 0;
11625 _ACEOF
11626 rm -f conftest.$ac_objext
11627 if { (ac_try="$ac_compile"
11628 case "(($ac_try" in
11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630 *) ac_try_echo=$ac_try;;
11631 esac
11632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633 (eval "$ac_compile") 2>conftest.er1
11634 ac_status=$?
11635 grep -v '^ *+' conftest.er1 >conftest.err
11636 rm -f conftest.er1
11637 cat conftest.err >&5
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); } && {
11640 test -z "$ac_c_werror_flag" ||
11641 test ! -s conftest.err
11642 } && test -s conftest.$ac_objext; then
11643 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
11644 ac_cv_c_bigendian=yes
11646 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11647 if test "$ac_cv_c_bigendian" = unknown; then
11648 ac_cv_c_bigendian=no
11649 else
11650 # finding both strings is unlikely to happen, but who knows?
11651 ac_cv_c_bigendian=unknown
11654 else
11655 echo "$as_me: failed program was:" >&5
11656 sed 's/^/| /' conftest.$ac_ext >&5
11661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11662 else
11663 cat >conftest.$ac_ext <<_ACEOF
11664 /* confdefs.h. */
11665 _ACEOF
11666 cat confdefs.h >>conftest.$ac_ext
11667 cat >>conftest.$ac_ext <<_ACEOF
11668 /* end confdefs.h. */
11669 $ac_includes_default
11671 main ()
11674 /* Are we little or big endian? From Harbison&Steele. */
11675 union
11677 long int l;
11678 char c[sizeof (long int)];
11679 } u;
11680 u.l = 1;
11681 return u.c[sizeof (long int) - 1] == 1;
11684 return 0;
11686 _ACEOF
11687 rm -f conftest$ac_exeext
11688 if { (ac_try="$ac_link"
11689 case "(($ac_try" in
11690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11691 *) ac_try_echo=$ac_try;;
11692 esac
11693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11694 (eval "$ac_link") 2>&5
11695 ac_status=$?
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11698 { (case "(($ac_try" in
11699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11700 *) ac_try_echo=$ac_try;;
11701 esac
11702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11703 (eval "$ac_try") 2>&5
11704 ac_status=$?
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 ac_cv_c_bigendian=no
11708 else
11709 echo "$as_me: program exited with status $ac_status" >&5
11710 echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.$ac_ext >&5
11713 ( exit $ac_status )
11714 ac_cv_c_bigendian=yes
11716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11724 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
11725 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
11726 case $ac_cv_c_bigendian in
11727 yes)
11729 cat >>confdefs.h <<\_ACEOF
11730 #define WORDS_BIGENDIAN 1
11731 _ACEOF
11736 { { echo "$as_me:$LINENO: error: unknown endianness
11737 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
11738 echo "$as_me: error: unknown endianness
11739 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
11740 { (exit 1); exit 1; }; } ;;
11741 esac
11744 { echo "$as_me:$LINENO: checking for long" >&5
11745 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
11746 if test "${ac_cv_type_long+set}" = set; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 else
11749 cat >conftest.$ac_ext <<_ACEOF
11750 /* confdefs.h. */
11751 _ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h. */
11755 $ac_includes_default
11756 typedef long ac__type_new_;
11758 main ()
11760 if ((ac__type_new_ *) 0)
11761 return 0;
11762 if (sizeof (ac__type_new_))
11763 return 0;
11765 return 0;
11767 _ACEOF
11768 rm -f conftest.$ac_objext
11769 if { (ac_try="$ac_compile"
11770 case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11773 esac
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775 (eval "$ac_compile") 2>conftest.er1
11776 ac_status=$?
11777 grep -v '^ *+' conftest.er1 >conftest.err
11778 rm -f conftest.er1
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } && {
11782 test -z "$ac_c_werror_flag" ||
11783 test ! -s conftest.err
11784 } && test -s conftest.$ac_objext; then
11785 ac_cv_type_long=yes
11786 else
11787 echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11790 ac_cv_type_long=no
11793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11795 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
11796 echo "${ECHO_T}$ac_cv_type_long" >&6; }
11798 # The cast to long int works around a bug in the HP C Compiler
11799 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11800 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11801 # This bug is HP SR number 8606223364.
11802 { echo "$as_me:$LINENO: checking size of long" >&5
11803 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
11804 if test "${ac_cv_sizeof_long+set}" = set; then
11805 echo $ECHO_N "(cached) $ECHO_C" >&6
11806 else
11807 if test "$cross_compiling" = yes; then
11808 # Depending upon the size, compute the lo and hi bounds.
11809 cat >conftest.$ac_ext <<_ACEOF
11810 /* confdefs.h. */
11811 _ACEOF
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h. */
11815 $ac_includes_default
11816 typedef long ac__type_sizeof_;
11818 main ()
11820 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11821 test_array [0] = 0
11824 return 0;
11826 _ACEOF
11827 rm -f conftest.$ac_objext
11828 if { (ac_try="$ac_compile"
11829 case "(($ac_try" in
11830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831 *) ac_try_echo=$ac_try;;
11832 esac
11833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11834 (eval "$ac_compile") 2>conftest.er1
11835 ac_status=$?
11836 grep -v '^ *+' conftest.er1 >conftest.err
11837 rm -f conftest.er1
11838 cat conftest.err >&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } && {
11841 test -z "$ac_c_werror_flag" ||
11842 test ! -s conftest.err
11843 } && test -s conftest.$ac_objext; then
11844 ac_lo=0 ac_mid=0
11845 while :; do
11846 cat >conftest.$ac_ext <<_ACEOF
11847 /* confdefs.h. */
11848 _ACEOF
11849 cat confdefs.h >>conftest.$ac_ext
11850 cat >>conftest.$ac_ext <<_ACEOF
11851 /* end confdefs.h. */
11852 $ac_includes_default
11853 typedef long ac__type_sizeof_;
11855 main ()
11857 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11858 test_array [0] = 0
11861 return 0;
11863 _ACEOF
11864 rm -f conftest.$ac_objext
11865 if { (ac_try="$ac_compile"
11866 case "(($ac_try" in
11867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868 *) ac_try_echo=$ac_try;;
11869 esac
11870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871 (eval "$ac_compile") 2>conftest.er1
11872 ac_status=$?
11873 grep -v '^ *+' conftest.er1 >conftest.err
11874 rm -f conftest.er1
11875 cat conftest.err >&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } && {
11878 test -z "$ac_c_werror_flag" ||
11879 test ! -s conftest.err
11880 } && test -s conftest.$ac_objext; then
11881 ac_hi=$ac_mid; break
11882 else
11883 echo "$as_me: failed program was:" >&5
11884 sed 's/^/| /' conftest.$ac_ext >&5
11886 ac_lo=`expr $ac_mid + 1`
11887 if test $ac_lo -le $ac_mid; then
11888 ac_lo= ac_hi=
11889 break
11891 ac_mid=`expr 2 '*' $ac_mid + 1`
11894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11895 done
11896 else
11897 echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11900 cat >conftest.$ac_ext <<_ACEOF
11901 /* confdefs.h. */
11902 _ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h. */
11906 $ac_includes_default
11907 typedef long ac__type_sizeof_;
11909 main ()
11911 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11912 test_array [0] = 0
11915 return 0;
11917 _ACEOF
11918 rm -f conftest.$ac_objext
11919 if { (ac_try="$ac_compile"
11920 case "(($ac_try" in
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922 *) ac_try_echo=$ac_try;;
11923 esac
11924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925 (eval "$ac_compile") 2>conftest.er1
11926 ac_status=$?
11927 grep -v '^ *+' conftest.er1 >conftest.err
11928 rm -f conftest.er1
11929 cat conftest.err >&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } && {
11932 test -z "$ac_c_werror_flag" ||
11933 test ! -s conftest.err
11934 } && test -s conftest.$ac_objext; then
11935 ac_hi=-1 ac_mid=-1
11936 while :; do
11937 cat >conftest.$ac_ext <<_ACEOF
11938 /* confdefs.h. */
11939 _ACEOF
11940 cat confdefs.h >>conftest.$ac_ext
11941 cat >>conftest.$ac_ext <<_ACEOF
11942 /* end confdefs.h. */
11943 $ac_includes_default
11944 typedef long ac__type_sizeof_;
11946 main ()
11948 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11949 test_array [0] = 0
11952 return 0;
11954 _ACEOF
11955 rm -f conftest.$ac_objext
11956 if { (ac_try="$ac_compile"
11957 case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11960 esac
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_compile") 2>conftest.er1
11963 ac_status=$?
11964 grep -v '^ *+' conftest.er1 >conftest.err
11965 rm -f conftest.er1
11966 cat conftest.err >&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } && {
11969 test -z "$ac_c_werror_flag" ||
11970 test ! -s conftest.err
11971 } && test -s conftest.$ac_objext; then
11972 ac_lo=$ac_mid; break
11973 else
11974 echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.$ac_ext >&5
11977 ac_hi=`expr '(' $ac_mid ')' - 1`
11978 if test $ac_mid -le $ac_hi; then
11979 ac_lo= ac_hi=
11980 break
11982 ac_mid=`expr 2 '*' $ac_mid`
11985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11986 done
11987 else
11988 echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11991 ac_lo= ac_hi=
11994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11998 # Binary search between lo and hi bounds.
11999 while test "x$ac_lo" != "x$ac_hi"; do
12000 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12001 cat >conftest.$ac_ext <<_ACEOF
12002 /* confdefs.h. */
12003 _ACEOF
12004 cat confdefs.h >>conftest.$ac_ext
12005 cat >>conftest.$ac_ext <<_ACEOF
12006 /* end confdefs.h. */
12007 $ac_includes_default
12008 typedef long ac__type_sizeof_;
12010 main ()
12012 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12013 test_array [0] = 0
12016 return 0;
12018 _ACEOF
12019 rm -f conftest.$ac_objext
12020 if { (ac_try="$ac_compile"
12021 case "(($ac_try" in
12022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023 *) ac_try_echo=$ac_try;;
12024 esac
12025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12026 (eval "$ac_compile") 2>conftest.er1
12027 ac_status=$?
12028 grep -v '^ *+' conftest.er1 >conftest.err
12029 rm -f conftest.er1
12030 cat conftest.err >&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); } && {
12033 test -z "$ac_c_werror_flag" ||
12034 test ! -s conftest.err
12035 } && test -s conftest.$ac_objext; then
12036 ac_hi=$ac_mid
12037 else
12038 echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12041 ac_lo=`expr '(' $ac_mid ')' + 1`
12044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12045 done
12046 case $ac_lo in
12047 ?*) ac_cv_sizeof_long=$ac_lo;;
12048 '') if test "$ac_cv_type_long" = yes; then
12049 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
12050 See \`config.log' for more details." >&5
12051 echo "$as_me: error: cannot compute sizeof (long)
12052 See \`config.log' for more details." >&2;}
12053 { (exit 77); exit 77; }; }
12054 else
12055 ac_cv_sizeof_long=0
12056 fi ;;
12057 esac
12058 else
12059 cat >conftest.$ac_ext <<_ACEOF
12060 /* confdefs.h. */
12061 _ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h. */
12065 $ac_includes_default
12066 typedef long ac__type_sizeof_;
12067 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12068 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12069 #include <stdio.h>
12070 #include <stdlib.h>
12072 main ()
12075 FILE *f = fopen ("conftest.val", "w");
12076 if (! f)
12077 return 1;
12078 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12080 long int i = longval ();
12081 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12082 return 1;
12083 fprintf (f, "%ld\n", i);
12085 else
12087 unsigned long int i = ulongval ();
12088 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12089 return 1;
12090 fprintf (f, "%lu\n", i);
12092 return ferror (f) || fclose (f) != 0;
12095 return 0;
12097 _ACEOF
12098 rm -f conftest$ac_exeext
12099 if { (ac_try="$ac_link"
12100 case "(($ac_try" in
12101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102 *) ac_try_echo=$ac_try;;
12103 esac
12104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105 (eval "$ac_link") 2>&5
12106 ac_status=$?
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12109 { (case "(($ac_try" in
12110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12111 *) ac_try_echo=$ac_try;;
12112 esac
12113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12114 (eval "$ac_try") 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; }; then
12118 ac_cv_sizeof_long=`cat conftest.val`
12119 else
12120 echo "$as_me: program exited with status $ac_status" >&5
12121 echo "$as_me: failed program was:" >&5
12122 sed 's/^/| /' conftest.$ac_ext >&5
12124 ( exit $ac_status )
12125 if test "$ac_cv_type_long" = yes; then
12126 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
12127 See \`config.log' for more details." >&5
12128 echo "$as_me: error: cannot compute sizeof (long)
12129 See \`config.log' for more details." >&2;}
12130 { (exit 77); exit 77; }; }
12131 else
12132 ac_cv_sizeof_long=0
12135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12137 rm -f conftest.val
12139 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12140 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
12144 cat >>confdefs.h <<_ACEOF
12145 #define SIZEOF_LONG $ac_cv_sizeof_long
12146 _ACEOF
12149 { echo "$as_me:$LINENO: checking for long long" >&5
12150 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
12151 if test "${ac_cv_type_long_long+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12153 else
12154 cat >conftest.$ac_ext <<_ACEOF
12155 /* confdefs.h. */
12156 _ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12160 $ac_includes_default
12161 typedef long long ac__type_new_;
12163 main ()
12165 if ((ac__type_new_ *) 0)
12166 return 0;
12167 if (sizeof (ac__type_new_))
12168 return 0;
12170 return 0;
12172 _ACEOF
12173 rm -f conftest.$ac_objext
12174 if { (ac_try="$ac_compile"
12175 case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12178 esac
12179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_compile") 2>conftest.er1
12181 ac_status=$?
12182 grep -v '^ *+' conftest.er1 >conftest.err
12183 rm -f conftest.er1
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } && {
12187 test -z "$ac_c_werror_flag" ||
12188 test ! -s conftest.err
12189 } && test -s conftest.$ac_objext; then
12190 ac_cv_type_long_long=yes
12191 else
12192 echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.$ac_ext >&5
12195 ac_cv_type_long_long=no
12198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12200 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12201 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
12203 # The cast to long int works around a bug in the HP C Compiler
12204 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12205 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12206 # This bug is HP SR number 8606223364.
12207 { echo "$as_me:$LINENO: checking size of long long" >&5
12208 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
12209 if test "${ac_cv_sizeof_long_long+set}" = set; then
12210 echo $ECHO_N "(cached) $ECHO_C" >&6
12211 else
12212 if test "$cross_compiling" = yes; then
12213 # Depending upon the size, compute the lo and hi bounds.
12214 cat >conftest.$ac_ext <<_ACEOF
12215 /* confdefs.h. */
12216 _ACEOF
12217 cat confdefs.h >>conftest.$ac_ext
12218 cat >>conftest.$ac_ext <<_ACEOF
12219 /* end confdefs.h. */
12220 $ac_includes_default
12221 typedef long long ac__type_sizeof_;
12223 main ()
12225 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12226 test_array [0] = 0
12229 return 0;
12231 _ACEOF
12232 rm -f conftest.$ac_objext
12233 if { (ac_try="$ac_compile"
12234 case "(($ac_try" in
12235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12236 *) ac_try_echo=$ac_try;;
12237 esac
12238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12239 (eval "$ac_compile") 2>conftest.er1
12240 ac_status=$?
12241 grep -v '^ *+' conftest.er1 >conftest.err
12242 rm -f conftest.er1
12243 cat conftest.err >&5
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); } && {
12246 test -z "$ac_c_werror_flag" ||
12247 test ! -s conftest.err
12248 } && test -s conftest.$ac_objext; then
12249 ac_lo=0 ac_mid=0
12250 while :; do
12251 cat >conftest.$ac_ext <<_ACEOF
12252 /* confdefs.h. */
12253 _ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12257 $ac_includes_default
12258 typedef long long ac__type_sizeof_;
12260 main ()
12262 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12263 test_array [0] = 0
12266 return 0;
12268 _ACEOF
12269 rm -f conftest.$ac_objext
12270 if { (ac_try="$ac_compile"
12271 case "(($ac_try" in
12272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12273 *) ac_try_echo=$ac_try;;
12274 esac
12275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12276 (eval "$ac_compile") 2>conftest.er1
12277 ac_status=$?
12278 grep -v '^ *+' conftest.er1 >conftest.err
12279 rm -f conftest.er1
12280 cat conftest.err >&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } && {
12283 test -z "$ac_c_werror_flag" ||
12284 test ! -s conftest.err
12285 } && test -s conftest.$ac_objext; then
12286 ac_hi=$ac_mid; break
12287 else
12288 echo "$as_me: failed program was:" >&5
12289 sed 's/^/| /' conftest.$ac_ext >&5
12291 ac_lo=`expr $ac_mid + 1`
12292 if test $ac_lo -le $ac_mid; then
12293 ac_lo= ac_hi=
12294 break
12296 ac_mid=`expr 2 '*' $ac_mid + 1`
12299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12300 done
12301 else
12302 echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12305 cat >conftest.$ac_ext <<_ACEOF
12306 /* confdefs.h. */
12307 _ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h. */
12311 $ac_includes_default
12312 typedef long long ac__type_sizeof_;
12314 main ()
12316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12317 test_array [0] = 0
12320 return 0;
12322 _ACEOF
12323 rm -f conftest.$ac_objext
12324 if { (ac_try="$ac_compile"
12325 case "(($ac_try" in
12326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327 *) ac_try_echo=$ac_try;;
12328 esac
12329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330 (eval "$ac_compile") 2>conftest.er1
12331 ac_status=$?
12332 grep -v '^ *+' conftest.er1 >conftest.err
12333 rm -f conftest.er1
12334 cat conftest.err >&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } && {
12337 test -z "$ac_c_werror_flag" ||
12338 test ! -s conftest.err
12339 } && test -s conftest.$ac_objext; then
12340 ac_hi=-1 ac_mid=-1
12341 while :; do
12342 cat >conftest.$ac_ext <<_ACEOF
12343 /* confdefs.h. */
12344 _ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h. */
12348 $ac_includes_default
12349 typedef long long ac__type_sizeof_;
12351 main ()
12353 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12354 test_array [0] = 0
12357 return 0;
12359 _ACEOF
12360 rm -f conftest.$ac_objext
12361 if { (ac_try="$ac_compile"
12362 case "(($ac_try" in
12363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12364 *) ac_try_echo=$ac_try;;
12365 esac
12366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12367 (eval "$ac_compile") 2>conftest.er1
12368 ac_status=$?
12369 grep -v '^ *+' conftest.er1 >conftest.err
12370 rm -f conftest.er1
12371 cat conftest.err >&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } && {
12374 test -z "$ac_c_werror_flag" ||
12375 test ! -s conftest.err
12376 } && test -s conftest.$ac_objext; then
12377 ac_lo=$ac_mid; break
12378 else
12379 echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12382 ac_hi=`expr '(' $ac_mid ')' - 1`
12383 if test $ac_mid -le $ac_hi; then
12384 ac_lo= ac_hi=
12385 break
12387 ac_mid=`expr 2 '*' $ac_mid`
12390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12391 done
12392 else
12393 echo "$as_me: failed program was:" >&5
12394 sed 's/^/| /' conftest.$ac_ext >&5
12396 ac_lo= ac_hi=
12399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403 # Binary search between lo and hi bounds.
12404 while test "x$ac_lo" != "x$ac_hi"; do
12405 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12406 cat >conftest.$ac_ext <<_ACEOF
12407 /* confdefs.h. */
12408 _ACEOF
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h. */
12412 $ac_includes_default
12413 typedef long long ac__type_sizeof_;
12415 main ()
12417 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12418 test_array [0] = 0
12421 return 0;
12423 _ACEOF
12424 rm -f conftest.$ac_objext
12425 if { (ac_try="$ac_compile"
12426 case "(($ac_try" in
12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12429 esac
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431 (eval "$ac_compile") 2>conftest.er1
12432 ac_status=$?
12433 grep -v '^ *+' conftest.er1 >conftest.err
12434 rm -f conftest.er1
12435 cat conftest.err >&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); } && {
12438 test -z "$ac_c_werror_flag" ||
12439 test ! -s conftest.err
12440 } && test -s conftest.$ac_objext; then
12441 ac_hi=$ac_mid
12442 else
12443 echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12446 ac_lo=`expr '(' $ac_mid ')' + 1`
12449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12450 done
12451 case $ac_lo in
12452 ?*) ac_cv_sizeof_long_long=$ac_lo;;
12453 '') if test "$ac_cv_type_long_long" = yes; then
12454 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
12455 See \`config.log' for more details." >&5
12456 echo "$as_me: error: cannot compute sizeof (long long)
12457 See \`config.log' for more details." >&2;}
12458 { (exit 77); exit 77; }; }
12459 else
12460 ac_cv_sizeof_long_long=0
12461 fi ;;
12462 esac
12463 else
12464 cat >conftest.$ac_ext <<_ACEOF
12465 /* confdefs.h. */
12466 _ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h. */
12470 $ac_includes_default
12471 typedef long long ac__type_sizeof_;
12472 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12473 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12474 #include <stdio.h>
12475 #include <stdlib.h>
12477 main ()
12480 FILE *f = fopen ("conftest.val", "w");
12481 if (! f)
12482 return 1;
12483 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12485 long int i = longval ();
12486 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12487 return 1;
12488 fprintf (f, "%ld\n", i);
12490 else
12492 unsigned long int i = ulongval ();
12493 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12494 return 1;
12495 fprintf (f, "%lu\n", i);
12497 return ferror (f) || fclose (f) != 0;
12500 return 0;
12502 _ACEOF
12503 rm -f conftest$ac_exeext
12504 if { (ac_try="$ac_link"
12505 case "(($ac_try" in
12506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12507 *) ac_try_echo=$ac_try;;
12508 esac
12509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510 (eval "$ac_link") 2>&5
12511 ac_status=$?
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12514 { (case "(($ac_try" in
12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12517 esac
12518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519 (eval "$ac_try") 2>&5
12520 ac_status=$?
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; }; then
12523 ac_cv_sizeof_long_long=`cat conftest.val`
12524 else
12525 echo "$as_me: program exited with status $ac_status" >&5
12526 echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12529 ( exit $ac_status )
12530 if test "$ac_cv_type_long_long" = yes; then
12531 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
12532 See \`config.log' for more details." >&5
12533 echo "$as_me: error: cannot compute sizeof (long long)
12534 See \`config.log' for more details." >&2;}
12535 { (exit 77); exit 77; }; }
12536 else
12537 ac_cv_sizeof_long_long=0
12540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12542 rm -f conftest.val
12544 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12545 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
12549 cat >>confdefs.h <<_ACEOF
12550 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12551 _ACEOF
12556 { echo "$as_me:$LINENO: checking for socket in -lnetwork" >&5
12557 echo $ECHO_N "checking for socket in -lnetwork... $ECHO_C" >&6; }
12558 if test "${ac_cv_lib_network_socket+set}" = set; then
12559 echo $ECHO_N "(cached) $ECHO_C" >&6
12560 else
12561 ac_check_lib_save_LIBS=$LIBS
12562 LIBS="-lnetwork $LIBS"
12563 cat >conftest.$ac_ext <<_ACEOF
12564 /* confdefs.h. */
12565 _ACEOF
12566 cat confdefs.h >>conftest.$ac_ext
12567 cat >>conftest.$ac_ext <<_ACEOF
12568 /* end confdefs.h. */
12570 /* Override any GCC internal prototype to avoid an error.
12571 Use char because int might match the return type of a GCC
12572 builtin and then its argument prototype would still apply. */
12573 #ifdef __cplusplus
12574 extern "C"
12575 #endif
12576 char socket ();
12578 main ()
12580 return socket ();
12582 return 0;
12584 _ACEOF
12585 rm -f conftest.$ac_objext conftest$ac_exeext
12586 if { (ac_try="$ac_link"
12587 case "(($ac_try" in
12588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589 *) ac_try_echo=$ac_try;;
12590 esac
12591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12592 (eval "$ac_link") 2>conftest.er1
12593 ac_status=$?
12594 grep -v '^ *+' conftest.er1 >conftest.err
12595 rm -f conftest.er1
12596 cat conftest.err >&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); } && {
12599 test -z "$ac_c_werror_flag" ||
12600 test ! -s conftest.err
12601 } && test -s conftest$ac_exeext &&
12602 $as_test_x conftest$ac_exeext; then
12603 ac_cv_lib_network_socket=yes
12604 else
12605 echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12608 ac_cv_lib_network_socket=no
12611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12612 conftest$ac_exeext conftest.$ac_ext
12613 LIBS=$ac_check_lib_save_LIBS
12615 { echo "$as_me:$LINENO: result: $ac_cv_lib_network_socket" >&5
12616 echo "${ECHO_T}$ac_cv_lib_network_socket" >&6; }
12617 if test $ac_cv_lib_network_socket = yes; then
12618 cat >>confdefs.h <<_ACEOF
12619 #define HAVE_LIBNETWORK 1
12620 _ACEOF
12622 LIBS="-lnetwork $LIBS"
12626 LIBM=
12627 case $host in
12628 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
12629 # These system don't have libm, or don't need it
12631 *-ncr-sysv4.3*)
12632 { echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
12633 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6; }
12634 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
12635 echo $ECHO_N "(cached) $ECHO_C" >&6
12636 else
12637 ac_check_lib_save_LIBS=$LIBS
12638 LIBS="-lmw $LIBS"
12639 cat >conftest.$ac_ext <<_ACEOF
12640 /* confdefs.h. */
12641 _ACEOF
12642 cat confdefs.h >>conftest.$ac_ext
12643 cat >>conftest.$ac_ext <<_ACEOF
12644 /* end confdefs.h. */
12646 /* Override any GCC internal prototype to avoid an error.
12647 Use char because int might match the return type of a GCC
12648 builtin and then its argument prototype would still apply. */
12649 #ifdef __cplusplus
12650 extern "C"
12651 #endif
12652 char _mwvalidcheckl ();
12654 main ()
12656 return _mwvalidcheckl ();
12658 return 0;
12660 _ACEOF
12661 rm -f conftest.$ac_objext conftest$ac_exeext
12662 if { (ac_try="$ac_link"
12663 case "(($ac_try" in
12664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665 *) ac_try_echo=$ac_try;;
12666 esac
12667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668 (eval "$ac_link") 2>conftest.er1
12669 ac_status=$?
12670 grep -v '^ *+' conftest.er1 >conftest.err
12671 rm -f conftest.er1
12672 cat conftest.err >&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } && {
12675 test -z "$ac_c_werror_flag" ||
12676 test ! -s conftest.err
12677 } && test -s conftest$ac_exeext &&
12678 $as_test_x conftest$ac_exeext; then
12679 ac_cv_lib_mw__mwvalidcheckl=yes
12680 else
12681 echo "$as_me: failed program was:" >&5
12682 sed 's/^/| /' conftest.$ac_ext >&5
12684 ac_cv_lib_mw__mwvalidcheckl=no
12687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12688 conftest$ac_exeext conftest.$ac_ext
12689 LIBS=$ac_check_lib_save_LIBS
12691 { echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
12692 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6; }
12693 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
12694 LIBM="-lmw"
12697 { echo "$as_me:$LINENO: checking for cos in -lm" >&5
12698 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6; }
12699 if test "${ac_cv_lib_m_cos+set}" = set; then
12700 echo $ECHO_N "(cached) $ECHO_C" >&6
12701 else
12702 ac_check_lib_save_LIBS=$LIBS
12703 LIBS="-lm $LIBS"
12704 cat >conftest.$ac_ext <<_ACEOF
12705 /* confdefs.h. */
12706 _ACEOF
12707 cat confdefs.h >>conftest.$ac_ext
12708 cat >>conftest.$ac_ext <<_ACEOF
12709 /* end confdefs.h. */
12711 /* Override any GCC internal prototype to avoid an error.
12712 Use char because int might match the return type of a GCC
12713 builtin and then its argument prototype would still apply. */
12714 #ifdef __cplusplus
12715 extern "C"
12716 #endif
12717 char cos ();
12719 main ()
12721 return cos ();
12723 return 0;
12725 _ACEOF
12726 rm -f conftest.$ac_objext conftest$ac_exeext
12727 if { (ac_try="$ac_link"
12728 case "(($ac_try" in
12729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12730 *) ac_try_echo=$ac_try;;
12731 esac
12732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12733 (eval "$ac_link") 2>conftest.er1
12734 ac_status=$?
12735 grep -v '^ *+' conftest.er1 >conftest.err
12736 rm -f conftest.er1
12737 cat conftest.err >&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); } && {
12740 test -z "$ac_c_werror_flag" ||
12741 test ! -s conftest.err
12742 } && test -s conftest$ac_exeext &&
12743 $as_test_x conftest$ac_exeext; then
12744 ac_cv_lib_m_cos=yes
12745 else
12746 echo "$as_me: failed program was:" >&5
12747 sed 's/^/| /' conftest.$ac_ext >&5
12749 ac_cv_lib_m_cos=no
12752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12753 conftest$ac_exeext conftest.$ac_ext
12754 LIBS=$ac_check_lib_save_LIBS
12756 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
12757 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6; }
12758 if test $ac_cv_lib_m_cos = yes; then
12759 LIBM="$LIBM -lm"
12764 { echo "$as_me:$LINENO: checking for cos in -lm" >&5
12765 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6; }
12766 if test "${ac_cv_lib_m_cos+set}" = set; then
12767 echo $ECHO_N "(cached) $ECHO_C" >&6
12768 else
12769 ac_check_lib_save_LIBS=$LIBS
12770 LIBS="-lm $LIBS"
12771 cat >conftest.$ac_ext <<_ACEOF
12772 /* confdefs.h. */
12773 _ACEOF
12774 cat confdefs.h >>conftest.$ac_ext
12775 cat >>conftest.$ac_ext <<_ACEOF
12776 /* end confdefs.h. */
12778 /* Override any GCC internal prototype to avoid an error.
12779 Use char because int might match the return type of a GCC
12780 builtin and then its argument prototype would still apply. */
12781 #ifdef __cplusplus
12782 extern "C"
12783 #endif
12784 char cos ();
12786 main ()
12788 return cos ();
12790 return 0;
12792 _ACEOF
12793 rm -f conftest.$ac_objext conftest$ac_exeext
12794 if { (ac_try="$ac_link"
12795 case "(($ac_try" in
12796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12797 *) ac_try_echo=$ac_try;;
12798 esac
12799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12800 (eval "$ac_link") 2>conftest.er1
12801 ac_status=$?
12802 grep -v '^ *+' conftest.er1 >conftest.err
12803 rm -f conftest.er1
12804 cat conftest.err >&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } && {
12807 test -z "$ac_c_werror_flag" ||
12808 test ! -s conftest.err
12809 } && test -s conftest$ac_exeext &&
12810 $as_test_x conftest$ac_exeext; then
12811 ac_cv_lib_m_cos=yes
12812 else
12813 echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.$ac_ext >&5
12816 ac_cv_lib_m_cos=no
12819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12820 conftest$ac_exeext conftest.$ac_ext
12821 LIBS=$ac_check_lib_save_LIBS
12823 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
12824 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6; }
12825 if test $ac_cv_lib_m_cos = yes; then
12826 LIBM="-lm"
12830 esac
12835 for ac_header in errno.h
12837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12842 echo $ECHO_N "(cached) $ECHO_C" >&6
12844 ac_res=`eval echo '${'$as_ac_Header'}'`
12845 { echo "$as_me:$LINENO: result: $ac_res" >&5
12846 echo "${ECHO_T}$ac_res" >&6; }
12847 else
12848 # Is the header compilable?
12849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12851 cat >conftest.$ac_ext <<_ACEOF
12852 /* confdefs.h. */
12853 _ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h. */
12857 $ac_includes_default
12858 #include <$ac_header>
12859 _ACEOF
12860 rm -f conftest.$ac_objext
12861 if { (ac_try="$ac_compile"
12862 case "(($ac_try" in
12863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12864 *) ac_try_echo=$ac_try;;
12865 esac
12866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12867 (eval "$ac_compile") 2>conftest.er1
12868 ac_status=$?
12869 grep -v '^ *+' conftest.er1 >conftest.err
12870 rm -f conftest.er1
12871 cat conftest.err >&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); } && {
12874 test -z "$ac_c_werror_flag" ||
12875 test ! -s conftest.err
12876 } && test -s conftest.$ac_objext; then
12877 ac_header_compiler=yes
12878 else
12879 echo "$as_me: failed program was:" >&5
12880 sed 's/^/| /' conftest.$ac_ext >&5
12882 ac_header_compiler=no
12885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12887 echo "${ECHO_T}$ac_header_compiler" >&6; }
12889 # Is the header present?
12890 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12892 cat >conftest.$ac_ext <<_ACEOF
12893 /* confdefs.h. */
12894 _ACEOF
12895 cat confdefs.h >>conftest.$ac_ext
12896 cat >>conftest.$ac_ext <<_ACEOF
12897 /* end confdefs.h. */
12898 #include <$ac_header>
12899 _ACEOF
12900 if { (ac_try="$ac_cpp conftest.$ac_ext"
12901 case "(($ac_try" in
12902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903 *) ac_try_echo=$ac_try;;
12904 esac
12905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12907 ac_status=$?
12908 grep -v '^ *+' conftest.er1 >conftest.err
12909 rm -f conftest.er1
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } >/dev/null && {
12913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12914 test ! -s conftest.err
12915 }; then
12916 ac_header_preproc=yes
12917 else
12918 echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.$ac_ext >&5
12921 ac_header_preproc=no
12924 rm -f conftest.err conftest.$ac_ext
12925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12926 echo "${ECHO_T}$ac_header_preproc" >&6; }
12928 # So? What about this header?
12929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12930 yes:no: )
12931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12935 ac_header_preproc=yes
12937 no:yes:* )
12938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12945 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12952 esac
12953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12956 echo $ECHO_N "(cached) $ECHO_C" >&6
12957 else
12958 eval "$as_ac_Header=\$ac_header_preproc"
12960 ac_res=`eval echo '${'$as_ac_Header'}'`
12961 { echo "$as_me:$LINENO: result: $ac_res" >&5
12962 echo "${ECHO_T}$ac_res" >&6; }
12965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12966 cat >>confdefs.h <<_ACEOF
12967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12968 _ACEOF
12972 done
12975 OPTIMIZE_CFLAGS="-Os -fomit-frame-pointer"
12976 OPTIMIZE_FAST_CFLAGS="-O3 -fomit-frame-pointer"
12977 OPTIMIZE_HUGE_CFLAGS="-funroll-loops -DTFM_SMALL_SET"
12978 DEBUG_CFLAGS="-g -DDEBUG -DDEBUG_CYASSL"
12981 # DEBUG
12982 # Check whether --enable-debug was given.
12983 if test "${enable_debug+set}" = set; then
12984 enableval=$enable_debug; ENABLED_DEBUG=$enableval
12985 else
12986 ENABLED_DEBUG=no
12990 if test "$ENABLED_DEBUG" = "yes"
12991 then
12992 # Full debug. Very slow in some cases
12993 CFLAGS="$DEBUG_CFLAGS $CFLAGS"
12994 else
12995 # Optimized version. No debug
12996 CFLAGS="$CFLAGS -DNDEBUG"
13000 # SMALL BUILD
13001 # Check whether --enable-small was given.
13002 if test "${enable_small+set}" = set; then
13003 enableval=$enable_small; ENABLED_SMALL=$enableval
13004 else
13005 ENABLED_SMALL=no
13009 if test "$ENABLED_SMALL" = "yes"
13010 then
13011 # make small no tls build with smallest cipher
13012 # if you only want server or client you can define NO_CYASSL_SERVER or
13013 # NO_CYASSL_CLIENT but then some of the examples and testsuite won't build
13014 # note that TLS needs HMAC
13015 CFLAGS="-DNO_TLS -DNO_HMAC -DNO_AES -DNO_DES3 -DNO_SHA256 -DNO_ERROR_STRINGS -DNO_HC128 -DNO_RABBIT -DNO_PSK -DNO_DSA -DNO_DH $CFLAGS"
13019 # SINGLE THREADED
13020 # Check whether --enable-singleThreaded was given.
13021 if test "${enable_singleThreaded+set}" = set; then
13022 enableval=$enable_singleThreaded; ENABLED_SINGLETHREADED=$enableval
13023 else
13024 ENABLED_SINGLETHREADED=no
13028 if test "$ENABLED_SINGLETHREADED" = "yes"
13029 then
13030 CFLAGS="-DSINGLE_THREADED $CFLAGS"
13034 # DTLS
13035 # Check whether --enable-dtls was given.
13036 if test "${enable_dtls+set}" = set; then
13037 enableval=$enable_dtls; ENABLED_DTLS=$enableval
13038 else
13039 ENABLED_DTLS=no
13043 if test "$ENABLED_DTLS" = "yes"
13044 then
13045 CFLAGS="-DCYASSL_DTLS $CFLAGS"
13049 # OPENSSL Extra Compatibility
13050 # Check whether --enable-opensslExtra was given.
13051 if test "${enable_opensslExtra+set}" = set; then
13052 enableval=$enable_opensslExtra; ENABLED_OPENSSLEXTRA=$enableval
13053 else
13054 ENABLED_OPENSSLEXTRA=no
13058 if test "$ENABLED_OPENSSLEXTRA" = "yes"
13059 then
13060 CFLAGS="-DOPENSSL_EXTRA $CFLAGS"
13064 # IPv6 Test Apps
13065 # Check whether --enable-ipv6 was given.
13066 if test "${enable_ipv6+set}" = set; then
13067 enableval=$enable_ipv6; ENABLED_IPV6=$enableval
13068 else
13069 ENABLED_IPV6=no
13074 if test "$ENABLED_IPV6" = "yes"
13075 then
13076 CFLAGS="$CFLAGS -DTEST_IPV6"
13080 # fastmath
13081 # Check whether --enable-fastmath was given.
13082 if test "${enable_fastmath+set}" = set; then
13083 enableval=$enable_fastmath; ENABLED_FASTMATH=$enableval
13084 else
13085 ENABLED_FASTMATH=no
13090 if test "$ENABLED_FASTMATH" = "yes"
13091 then
13092 CFLAGS="$CFLAGS -DUSE_FAST_MATH"
13096 # fast HUGE math
13097 # Check whether --enable-fasthugemath was given.
13098 if test "${enable_fasthugemath+set}" = set; then
13099 enableval=$enable_fasthugemath; ENABLED_FASTHUGEMATH=$enableval
13100 else
13101 ENABLED_FASTHUGEMATH=no
13106 if test "$ENABLED_FASTHUGEMATH" = "yes"
13107 then
13108 ENABLED_FASTMATH="yes"
13109 CFLAGS="$CFLAGS -DUSE_FAST_MATH"
13112 if test "x$ENABLED_FASTMATH" = "xyes"; then
13113 BUILD_FASTMATH_TRUE=
13114 BUILD_FASTMATH_FALSE='#'
13115 else
13116 BUILD_FASTMATH_TRUE='#'
13117 BUILD_FASTMATH_FALSE=
13122 # big cache
13123 # Check whether --enable-bigcache was given.
13124 if test "${enable_bigcache+set}" = set; then
13125 enableval=$enable_bigcache; ENABLED_BIGCACHE=$enableval
13126 else
13127 ENABLED_BIGCACHE=no
13132 if test "$ENABLED_BIGCACHE" = "yes"
13133 then
13134 CFLAGS="$CFLAGS -DBIG_SESSION_CACHE"
13138 # HUGE cache
13139 # Check whether --enable-hugecache was given.
13140 if test "${enable_hugecache+set}" = set; then
13141 enableval=$enable_hugecache; ENABLED_HUGECACHE=$enableval
13142 else
13143 ENABLED_HUGECACHE=no
13148 if test "$ENABLED_HUGECACHE" = "yes"
13149 then
13150 CFLAGS="$CFLAGS -DHUGE_SESSION_CACHE"
13154 # SNIFFER
13155 # Check whether --enable-sniffer was given.
13156 if test "${enable_sniffer+set}" = set; then
13157 enableval=$enable_sniffer; ENABLED_SNIFFER=$enableval
13158 else
13159 ENABLED_SNIFFER=no
13164 if test "$ENABLED_SNIFFER" = "yes"
13165 then
13166 CFLAGS="$CFLAGS -DCYASSL_SNIFFER -DOPENSSL_EXTRA"
13169 if test "x$ENABLED_SNIFFER" = "xyes"; then
13170 BUILD_SNIFFER_TRUE=
13171 BUILD_SNIFFER_FALSE='#'
13172 else
13173 BUILD_SNIFFER_TRUE='#'
13174 BUILD_SNIFFER_FALSE=
13178 # AES-NI
13179 # Check whether --enable-aesni was given.
13180 if test "${enable_aesni+set}" = set; then
13181 enableval=$enable_aesni; ENABLED_AESNI=$enableval
13182 else
13183 ENABLED_AESNI=no
13188 if test "$ENABLED_AESNI" = "yes"
13189 then
13190 CFLAGS="$CFLAGS -DCYASSL_AESNI"
13191 if test "$GCC" = "yes"
13192 then
13193 # GCC needs these flags, icc doesn't
13194 CFLAGS="$CFLAGS -maes -msse4"
13198 if test "x$ENABLED_AESNI" = "xyes"; then
13199 BUILD_AESNI_TRUE=
13200 BUILD_AESNI_FALSE='#'
13201 else
13202 BUILD_AESNI_TRUE='#'
13203 BUILD_AESNI_FALSE=
13208 # RIPEMD
13209 # Check whether --enable-ripemd was given.
13210 if test "${enable_ripemd+set}" = set; then
13211 enableval=$enable_ripemd; ENABLED_RIPEMD=$enableval
13212 else
13213 ENABLED_RIPEMD=no
13218 if test "$ENABLED_RIPEMD" = "yes"
13219 then
13220 CFLAGS="$CFLAGS -DCYASSL_RIPEMD"
13223 if test "x$ENABLED_RIPEMD" = "xyes"; then
13224 BUILD_RIPEMD_TRUE=
13225 BUILD_RIPEMD_FALSE='#'
13226 else
13227 BUILD_RIPEMD_TRUE='#'
13228 BUILD_RIPEMD_FALSE=
13233 # SHA512
13234 # Check whether --enable-sha512 was given.
13235 if test "${enable_sha512+set}" = set; then
13236 enableval=$enable_sha512; ENABLED_SHA512=$enableval
13237 else
13238 ENABLED_SHA512=no
13243 if test "$ENABLED_SHA512" = "yes"
13244 then
13245 CFLAGS="$CFLAGS -DCYASSL_SHA512"
13248 if test "x$ENABLED_SHA512" = "xyes"; then
13249 BUILD_SHA512_TRUE=
13250 BUILD_SHA512_FALSE='#'
13251 else
13252 BUILD_SHA512_TRUE='#'
13253 BUILD_SHA512_FALSE=
13258 # SESSION CERTS
13259 # Check whether --enable-sessioncerts was given.
13260 if test "${enable_sessioncerts+set}" = set; then
13261 enableval=$enable_sessioncerts; ENABLED_SESSIONCERTS=$enableval
13262 else
13263 ENABLED_SESSIONCERTS=no
13268 if test "$ENABLED_SESSIONCERTS" = "yes"
13269 then
13270 CFLAGS="$CFLAGS -DSESSION_CERTS"
13274 # KEY GENERATION
13275 # Check whether --enable-keygen was given.
13276 if test "${enable_keygen+set}" = set; then
13277 enableval=$enable_keygen; ENABLED_KEYGEN=$enableval
13278 else
13279 ENABLED_KEYGEN=no
13284 if test "$ENABLED_KEYGEN" = "yes"
13285 then
13286 CFLAGS="$CFLAGS -DCYASSL_KEY_GEN"
13290 # CERT GENERATION
13291 # Check whether --enable-certgen was given.
13292 if test "${enable_certgen+set}" = set; then
13293 enableval=$enable_certgen; ENABLED_CERTGEN=$enableval
13294 else
13295 ENABLED_CERTGEN=no
13300 if test "$ENABLED_CERTGEN" = "yes"
13301 then
13302 CFLAGS="$CFLAGS -DCYASSL_CERT_GEN"
13306 # HC128
13307 # Check whether --enable-hc128 was given.
13308 if test "${enable_hc128+set}" = set; then
13309 enableval=$enable_hc128; ENABLED_HC128=$enableval
13310 else
13311 ENABLED_HC128=no
13316 if test "$ENABLED_HC128" = "no"
13317 then
13318 CFLAGS="$CFLAGS -DNO_HC128"
13321 if test "x$ENABLED_HC128" = "xyes"; then
13322 BUILD_HC128_TRUE=
13323 BUILD_HC128_FALSE='#'
13324 else
13325 BUILD_HC128_TRUE='#'
13326 BUILD_HC128_FALSE=
13331 # PSK
13332 # Check whether --enable-psk was given.
13333 if test "${enable_psk+set}" = set; then
13334 enableval=$enable_psk; ENABLED_PSK=$enableval
13335 else
13336 ENABLED_PSK=no
13341 if test "$ENABLED_PSK" = "no"
13342 then
13343 CFLAGS="$CFLAGS -DNO_PSK"
13347 # Web Server Build
13348 # Check whether --enable-webServer was given.
13349 if test "${enable_webServer+set}" = set; then
13350 enableval=$enable_webServer; ENABLED_WEBSERVER=$enableval
13351 else
13352 ENABLED_WEBSERVER=no
13357 if test "$ENABLED_WEBSERVER" = "yes"
13358 then
13359 CFLAGS="$CFLAGS -DHAVE_WEBSERVER"
13363 # ECC
13364 # Check whether --enable-ecc was given.
13365 if test "${enable_ecc+set}" = set; then
13366 enableval=$enable_ecc; ENABLED_ECC=$enableval
13367 else
13368 ENABLED_ECC=no
13373 if test "$ENABLED_ECC" = "yes"
13374 then
13375 CFLAGS="$CFLAGS -DHAVE_ECC"
13378 if test "x$ENABLED_ECC" = "xyes"; then
13379 BUILD_ECC_TRUE=
13380 BUILD_ECC_FALSE='#'
13381 else
13382 BUILD_ECC_TRUE='#'
13383 BUILD_ECC_FALSE=
13388 # NTRU
13389 ntruHome=`pwd`/NTRU_algorithm
13390 ntruInclude=$ntruHome/cryptolib
13391 ntruLib=$ntruHome
13392 # Check whether --enable-ntru was given.
13393 if test "${enable_ntru+set}" = set; then
13394 enableval=$enable_ntru; ENABLED_NTRU=$enableval
13395 else
13396 ENABLED_NTRU=no
13401 if test "$ENABLED_NTRU" = "yes"
13402 then
13403 CFLAGS="$CFLAGS -DHAVE_NTRU -I$ntruInclude"
13404 LDFLAGS="$LDFLAGS -L$ntruLib"
13405 LIBS="$LIBS -lntru_encrypt"
13408 if test "x$ENABLED_NTRU" = "xyes"; then
13409 BUILD_NTRU_TRUE=
13410 BUILD_NTRU_FALSE='#'
13411 else
13412 BUILD_NTRU_TRUE='#'
13413 BUILD_NTRU_FALSE=
13418 # LIBZ
13419 trylibzdir=""
13421 # Check whether --with-libz was given.
13422 if test "${with_libz+set}" = set; then
13423 withval=$with_libz;
13424 { echo "$as_me:$LINENO: checking for libz" >&5
13425 echo $ECHO_N "checking for libz... $ECHO_C" >&6; }
13426 if test "x$withval" == "xno" ; then
13427 { echo "$as_me:$LINENO: result: no" >&5
13428 echo "${ECHO_T}no" >&6; }
13429 else
13430 CPPFLAGS="$CPPFLAGS -DHAVE_LIBZ"
13431 LIBS="$LIBS -lz"
13433 cat >conftest.$ac_ext <<_ACEOF
13434 /* confdefs.h. */
13435 _ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h. */
13439 #include <zlib.h>
13441 main ()
13443 deflateInit(NULL, 8);
13445 return 0;
13447 _ACEOF
13448 rm -f conftest.$ac_objext conftest$ac_exeext
13449 if { (ac_try="$ac_link"
13450 case "(($ac_try" in
13451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13452 *) ac_try_echo=$ac_try;;
13453 esac
13454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13455 (eval "$ac_link") 2>conftest.er1
13456 ac_status=$?
13457 grep -v '^ *+' conftest.er1 >conftest.err
13458 rm -f conftest.er1
13459 cat conftest.err >&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); } && {
13462 test -z "$ac_c_werror_flag" ||
13463 test ! -s conftest.err
13464 } && test -s conftest$ac_exeext &&
13465 $as_test_x conftest$ac_exeext; then
13466 libz_linked=yes
13467 else
13468 echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.$ac_ext >&5
13471 libz_linked=no
13474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13475 conftest$ac_exeext conftest.$ac_ext
13477 if test "x$libz_linked" == "xno" ; then
13478 if test "x$withval" != "xno" ; then
13479 trylibzdir=$withval
13481 if test "x$withval" == "xyes" ; then
13482 trylibzdir="/usr"
13485 LDFLAGS="$LDFLAGS -L$trylibzdir/lib"
13486 CPPFLAGS="$CPPFLAGS -I$trylibzdir/include"
13488 cat >conftest.$ac_ext <<_ACEOF
13489 /* confdefs.h. */
13490 _ACEOF
13491 cat confdefs.h >>conftest.$ac_ext
13492 cat >>conftest.$ac_ext <<_ACEOF
13493 /* end confdefs.h. */
13494 #include <zlib.h>
13496 main ()
13498 deflateInit(NULL, 8);
13500 return 0;
13502 _ACEOF
13503 rm -f conftest.$ac_objext conftest$ac_exeext
13504 if { (ac_try="$ac_link"
13505 case "(($ac_try" in
13506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13507 *) ac_try_echo=$ac_try;;
13508 esac
13509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13510 (eval "$ac_link") 2>conftest.er1
13511 ac_status=$?
13512 grep -v '^ *+' conftest.er1 >conftest.err
13513 rm -f conftest.er1
13514 cat conftest.err >&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); } && {
13517 test -z "$ac_c_werror_flag" ||
13518 test ! -s conftest.err
13519 } && test -s conftest$ac_exeext &&
13520 $as_test_x conftest$ac_exeext; then
13521 libz_linked=yes
13522 else
13523 echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.$ac_ext >&5
13526 libz_linked=no
13529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13530 conftest$ac_exeext conftest.$ac_ext
13532 if test "x$libz_linked" == "xno" ; then
13533 { { echo "$as_me:$LINENO: error: libz isn't found.
13534 If it's already installed, specify its path using --with-libz=/dir/" >&5
13535 echo "$as_me: error: libz isn't found.
13536 If it's already installed, specify its path using --with-libz=/dir/" >&2;}
13537 { (exit 1); exit 1; }; }
13539 { echo "$as_me:$LINENO: result: yes" >&5
13540 echo "${ECHO_T}yes" >&6; }
13541 else
13542 { echo "$as_me:$LINENO: result: yes" >&5
13543 echo "${ECHO_T}yes" >&6; }
13553 # OPTIMIZE FLAGS
13554 if test "$GCC" = "yes"
13555 then
13556 CFLAGS="$CFLAGS -Wall -Wno-unused"
13557 if test "$ENABLED_DEBUG" = "no"
13558 then
13559 if test "$ENABLED_FASTMATH" = "yes"
13560 then
13561 CFLAGS="$CFLAGS $OPTIMIZE_FAST_CFLAGS"
13562 if test "$ENABLED_FASTHUGEMATH" = "yes"
13563 then
13564 CFLAGS="$CFLAGS $OPTIMIZE_HUGE_CFLAGS"
13566 else
13567 CFLAGS="$CFLAGS $OPTIMIZE_CFLAGS"
13578 ac_ext=c
13579 ac_cpp='$CPP $CPPFLAGS'
13580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13584 acx_pthread_ok=no
13586 # We used to check for pthread.h first, but this fails if pthread.h
13587 # requires special compiler flags (e.g. on True64 or Sequent).
13588 # It gets checked for in the link test anyway.
13590 # First of all, check if the user has set any of the PTHREAD_LIBS,
13591 # etcetera environment variables, and if threads linking works using
13592 # them:
13593 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
13594 save_CFLAGS="$CFLAGS"
13595 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13596 save_LIBS="$LIBS"
13597 LIBS="$PTHREAD_LIBS $LIBS"
13598 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
13599 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
13600 cat >conftest.$ac_ext <<_ACEOF
13601 /* confdefs.h. */
13602 _ACEOF
13603 cat confdefs.h >>conftest.$ac_ext
13604 cat >>conftest.$ac_ext <<_ACEOF
13605 /* end confdefs.h. */
13607 /* Override any GCC internal prototype to avoid an error.
13608 Use char because int might match the return type of a GCC
13609 builtin and then its argument prototype would still apply. */
13610 #ifdef __cplusplus
13611 extern "C"
13612 #endif
13613 char pthread_join ();
13615 main ()
13617 return pthread_join ();
13619 return 0;
13621 _ACEOF
13622 rm -f conftest.$ac_objext conftest$ac_exeext
13623 if { (ac_try="$ac_link"
13624 case "(($ac_try" in
13625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13626 *) ac_try_echo=$ac_try;;
13627 esac
13628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13629 (eval "$ac_link") 2>conftest.er1
13630 ac_status=$?
13631 grep -v '^ *+' conftest.er1 >conftest.err
13632 rm -f conftest.er1
13633 cat conftest.err >&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); } && {
13636 test -z "$ac_c_werror_flag" ||
13637 test ! -s conftest.err
13638 } && test -s conftest$ac_exeext &&
13639 $as_test_x conftest$ac_exeext; then
13640 acx_pthread_ok=yes
13641 else
13642 echo "$as_me: failed program was:" >&5
13643 sed 's/^/| /' conftest.$ac_ext >&5
13648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13649 conftest$ac_exeext conftest.$ac_ext
13650 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
13651 echo "${ECHO_T}$acx_pthread_ok" >&6; }
13652 if test x"$acx_pthread_ok" = xno; then
13653 PTHREAD_LIBS=""
13654 PTHREAD_CFLAGS=""
13656 LIBS="$save_LIBS"
13657 CFLAGS="$save_CFLAGS"
13660 # We must check for the threads library under a number of different
13661 # names; the ordering is very important because some systems
13662 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13663 # libraries is broken (non-POSIX).
13665 # Create a list of thread flags to try. Items starting with a "-" are
13666 # C compiler flags, and other items are library names, except for "none"
13667 # which indicates that we try without any flags at all, and "pthread-config"
13668 # which is a program returning the flags for the Pth emulation library.
13670 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13672 # The ordering *is* (sometimes) important. Some notes on the
13673 # individual items follow:
13675 # pthreads: AIX (must check this before -lpthread)
13676 # none: in case threads are in libc; should be tried before -Kthread and
13677 # other compiler flags to prevent continual compiler warnings
13678 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13679 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13680 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13681 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
13682 # -pthreads: Solaris/gcc
13683 # -mthreads: Mingw32/gcc, Lynx/gcc
13684 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13685 # doesn't hurt to check since this sometimes defines pthreads too;
13686 # also defines -D_REENTRANT)
13687 # ... -mt is also the pthreads flag for HP/aCC
13688 # pthread: Linux, etcetera
13689 # --thread-safe: KAI C++
13690 # pthread-config: use pthread-config program (for GNU Pth library)
13692 case "${host_cpu}-${host_os}" in
13693 *solaris*)
13695 # On Solaris (at least, for some versions), libc contains stubbed
13696 # (non-functional) versions of the pthreads routines, so link-based
13697 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
13698 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
13699 # a function called by this macro, so we could check for that, but
13700 # who knows whether they'll stub that too in a future libc.) So,
13701 # we'll just look for -pthreads and -lpthread first:
13703 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
13705 esac
13707 if test x"$acx_pthread_ok" = xno; then
13708 for flag in $acx_pthread_flags; do
13710 case $flag in
13711 none)
13712 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
13713 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
13717 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
13718 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
13719 PTHREAD_CFLAGS="$flag"
13722 pthread-config)
13723 # Extract the first word of "pthread-config", so it can be a program name with args.
13724 set dummy pthread-config; ac_word=$2
13725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13727 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
13728 echo $ECHO_N "(cached) $ECHO_C" >&6
13729 else
13730 if test -n "$acx_pthread_config"; then
13731 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
13732 else
13733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13734 for as_dir in $PATH
13736 IFS=$as_save_IFS
13737 test -z "$as_dir" && as_dir=.
13738 for ac_exec_ext in '' $ac_executable_extensions; do
13739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13740 ac_cv_prog_acx_pthread_config="yes"
13741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13742 break 2
13744 done
13745 done
13746 IFS=$as_save_IFS
13748 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
13751 acx_pthread_config=$ac_cv_prog_acx_pthread_config
13752 if test -n "$acx_pthread_config"; then
13753 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
13754 echo "${ECHO_T}$acx_pthread_config" >&6; }
13755 else
13756 { echo "$as_me:$LINENO: result: no" >&5
13757 echo "${ECHO_T}no" >&6; }
13761 if test x"$acx_pthread_config" = xno; then continue; fi
13762 PTHREAD_CFLAGS="`pthread-config --cflags`"
13763 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
13767 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
13768 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
13769 PTHREAD_LIBS="-l$flag"
13771 esac
13773 save_LIBS="$LIBS"
13774 save_CFLAGS="$CFLAGS"
13775 LIBS="$PTHREAD_LIBS $LIBS"
13776 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13778 # Check for various functions. We must include pthread.h,
13779 # since some functions may be macros. (On the Sequent, we
13780 # need a special flag -Kthread to make this header compile.)
13781 # We check for pthread_join because it is in -lpthread on IRIX
13782 # while pthread_create is in libc. We check for pthread_attr_init
13783 # due to DEC craziness with -lpthreads. We check for
13784 # pthread_cleanup_push because it is one of the few pthread
13785 # functions on Solaris that doesn't have a non-functional libc stub.
13786 # We try pthread_create on general principles.
13787 cat >conftest.$ac_ext <<_ACEOF
13788 /* confdefs.h. */
13789 _ACEOF
13790 cat confdefs.h >>conftest.$ac_ext
13791 cat >>conftest.$ac_ext <<_ACEOF
13792 /* end confdefs.h. */
13793 #include <pthread.h>
13795 main ()
13797 pthread_t th; pthread_join(th, 0);
13798 pthread_attr_init(0); pthread_cleanup_push(0, 0);
13799 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
13801 return 0;
13803 _ACEOF
13804 rm -f conftest.$ac_objext conftest$ac_exeext
13805 if { (ac_try="$ac_link"
13806 case "(($ac_try" in
13807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13808 *) ac_try_echo=$ac_try;;
13809 esac
13810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13811 (eval "$ac_link") 2>conftest.er1
13812 ac_status=$?
13813 grep -v '^ *+' conftest.er1 >conftest.err
13814 rm -f conftest.er1
13815 cat conftest.err >&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); } && {
13818 test -z "$ac_c_werror_flag" ||
13819 test ! -s conftest.err
13820 } && test -s conftest$ac_exeext &&
13821 $as_test_x conftest$ac_exeext; then
13822 acx_pthread_ok=yes
13823 else
13824 echo "$as_me: failed program was:" >&5
13825 sed 's/^/| /' conftest.$ac_ext >&5
13830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13831 conftest$ac_exeext conftest.$ac_ext
13833 LIBS="$save_LIBS"
13834 CFLAGS="$save_CFLAGS"
13836 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
13837 echo "${ECHO_T}$acx_pthread_ok" >&6; }
13838 if test "x$acx_pthread_ok" = xyes; then
13839 break;
13842 PTHREAD_LIBS=""
13843 PTHREAD_CFLAGS=""
13844 done
13847 # Various other checks:
13848 if test "x$acx_pthread_ok" = xyes; then
13849 save_LIBS="$LIBS"
13850 LIBS="$PTHREAD_LIBS $LIBS"
13851 save_CFLAGS="$CFLAGS"
13852 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13854 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
13855 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
13856 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
13857 attr_name=unknown
13858 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
13859 cat >conftest.$ac_ext <<_ACEOF
13860 /* confdefs.h. */
13861 _ACEOF
13862 cat confdefs.h >>conftest.$ac_ext
13863 cat >>conftest.$ac_ext <<_ACEOF
13864 /* end confdefs.h. */
13865 #include <pthread.h>
13867 main ()
13869 int attr=$attr; return attr;
13871 return 0;
13873 _ACEOF
13874 rm -f conftest.$ac_objext conftest$ac_exeext
13875 if { (ac_try="$ac_link"
13876 case "(($ac_try" in
13877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13878 *) ac_try_echo=$ac_try;;
13879 esac
13880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13881 (eval "$ac_link") 2>conftest.er1
13882 ac_status=$?
13883 grep -v '^ *+' conftest.er1 >conftest.err
13884 rm -f conftest.er1
13885 cat conftest.err >&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); } && {
13888 test -z "$ac_c_werror_flag" ||
13889 test ! -s conftest.err
13890 } && test -s conftest$ac_exeext &&
13891 $as_test_x conftest$ac_exeext; then
13892 attr_name=$attr; break
13893 else
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13901 conftest$ac_exeext conftest.$ac_ext
13902 done
13903 { echo "$as_me:$LINENO: result: $attr_name" >&5
13904 echo "${ECHO_T}$attr_name" >&6; }
13905 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
13907 cat >>confdefs.h <<_ACEOF
13908 #define PTHREAD_CREATE_JOINABLE $attr_name
13909 _ACEOF
13913 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
13914 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
13915 flag=no
13916 case "${host_cpu}-${host_os}" in
13917 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
13918 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
13919 esac
13920 { echo "$as_me:$LINENO: result: ${flag}" >&5
13921 echo "${ECHO_T}${flag}" >&6; }
13922 if test "x$flag" != xno; then
13923 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
13926 LIBS="$save_LIBS"
13927 CFLAGS="$save_CFLAGS"
13929 # More AIX lossage: must compile with xlc_r or cc_r
13930 if test x"$GCC" != xyes; then
13931 for ac_prog in xlc_r cc_r
13933 # Extract the first word of "$ac_prog", so it can be a program name with args.
13934 set dummy $ac_prog; ac_word=$2
13935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13937 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
13938 echo $ECHO_N "(cached) $ECHO_C" >&6
13939 else
13940 if test -n "$PTHREAD_CC"; then
13941 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
13942 else
13943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13944 for as_dir in $PATH
13946 IFS=$as_save_IFS
13947 test -z "$as_dir" && as_dir=.
13948 for ac_exec_ext in '' $ac_executable_extensions; do
13949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13950 ac_cv_prog_PTHREAD_CC="$ac_prog"
13951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13952 break 2
13954 done
13955 done
13956 IFS=$as_save_IFS
13960 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
13961 if test -n "$PTHREAD_CC"; then
13962 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
13963 echo "${ECHO_T}$PTHREAD_CC" >&6; }
13964 else
13965 { echo "$as_me:$LINENO: result: no" >&5
13966 echo "${ECHO_T}no" >&6; }
13970 test -n "$PTHREAD_CC" && break
13971 done
13972 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
13974 else
13975 PTHREAD_CC=$CC
13977 else
13978 PTHREAD_CC="$CC"
13985 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
13986 if test x"$acx_pthread_ok" = xyes; then
13988 cat >>confdefs.h <<\_ACEOF
13989 #define HAVE_PTHREAD 1
13990 _ACEOF
13993 else
13994 acx_pthread_ok=no
13997 ac_ext=c
13998 ac_cpp='$CPP $CPPFLAGS'
13999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14005 LIBS="$PTHREAD_LIBS $LIBM $LIBS"
14006 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14009 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
14010 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
14011 if test "${ac_cv_search_gethostbyname+set}" = set; then
14012 echo $ECHO_N "(cached) $ECHO_C" >&6
14013 else
14014 ac_func_search_save_LIBS=$LIBS
14015 cat >conftest.$ac_ext <<_ACEOF
14016 /* confdefs.h. */
14017 _ACEOF
14018 cat confdefs.h >>conftest.$ac_ext
14019 cat >>conftest.$ac_ext <<_ACEOF
14020 /* end confdefs.h. */
14022 /* Override any GCC internal prototype to avoid an error.
14023 Use char because int might match the return type of a GCC
14024 builtin and then its argument prototype would still apply. */
14025 #ifdef __cplusplus
14026 extern "C"
14027 #endif
14028 char gethostbyname ();
14030 main ()
14032 return gethostbyname ();
14034 return 0;
14036 _ACEOF
14037 for ac_lib in '' nsl; do
14038 if test -z "$ac_lib"; then
14039 ac_res="none required"
14040 else
14041 ac_res=-l$ac_lib
14042 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14044 rm -f conftest.$ac_objext conftest$ac_exeext
14045 if { (ac_try="$ac_link"
14046 case "(($ac_try" in
14047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14048 *) ac_try_echo=$ac_try;;
14049 esac
14050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14051 (eval "$ac_link") 2>conftest.er1
14052 ac_status=$?
14053 grep -v '^ *+' conftest.er1 >conftest.err
14054 rm -f conftest.er1
14055 cat conftest.err >&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); } && {
14058 test -z "$ac_c_werror_flag" ||
14059 test ! -s conftest.err
14060 } && test -s conftest$ac_exeext &&
14061 $as_test_x conftest$ac_exeext; then
14062 ac_cv_search_gethostbyname=$ac_res
14063 else
14064 echo "$as_me: failed program was:" >&5
14065 sed 's/^/| /' conftest.$ac_ext >&5
14070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14071 conftest$ac_exeext
14072 if test "${ac_cv_search_gethostbyname+set}" = set; then
14073 break
14075 done
14076 if test "${ac_cv_search_gethostbyname+set}" = set; then
14078 else
14079 ac_cv_search_gethostbyname=no
14081 rm conftest.$ac_ext
14082 LIBS=$ac_func_search_save_LIBS
14084 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
14085 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
14086 ac_res=$ac_cv_search_gethostbyname
14087 if test "$ac_res" != no; then
14088 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14092 { echo "$as_me:$LINENO: checking for library containing socket" >&5
14093 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
14094 if test "${ac_cv_search_socket+set}" = set; then
14095 echo $ECHO_N "(cached) $ECHO_C" >&6
14096 else
14097 ac_func_search_save_LIBS=$LIBS
14098 cat >conftest.$ac_ext <<_ACEOF
14099 /* confdefs.h. */
14100 _ACEOF
14101 cat confdefs.h >>conftest.$ac_ext
14102 cat >>conftest.$ac_ext <<_ACEOF
14103 /* end confdefs.h. */
14105 /* Override any GCC internal prototype to avoid an error.
14106 Use char because int might match the return type of a GCC
14107 builtin and then its argument prototype would still apply. */
14108 #ifdef __cplusplus
14109 extern "C"
14110 #endif
14111 char socket ();
14113 main ()
14115 return socket ();
14117 return 0;
14119 _ACEOF
14120 for ac_lib in '' socket; do
14121 if test -z "$ac_lib"; then
14122 ac_res="none required"
14123 else
14124 ac_res=-l$ac_lib
14125 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14127 rm -f conftest.$ac_objext conftest$ac_exeext
14128 if { (ac_try="$ac_link"
14129 case "(($ac_try" in
14130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14131 *) ac_try_echo=$ac_try;;
14132 esac
14133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14134 (eval "$ac_link") 2>conftest.er1
14135 ac_status=$?
14136 grep -v '^ *+' conftest.er1 >conftest.err
14137 rm -f conftest.er1
14138 cat conftest.err >&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } && {
14141 test -z "$ac_c_werror_flag" ||
14142 test ! -s conftest.err
14143 } && test -s conftest$ac_exeext &&
14144 $as_test_x conftest$ac_exeext; then
14145 ac_cv_search_socket=$ac_res
14146 else
14147 echo "$as_me: failed program was:" >&5
14148 sed 's/^/| /' conftest.$ac_ext >&5
14153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14154 conftest$ac_exeext
14155 if test "${ac_cv_search_socket+set}" = set; then
14156 break
14158 done
14159 if test "${ac_cv_search_socket+set}" = set; then
14161 else
14162 ac_cv_search_socket=no
14164 rm conftest.$ac_ext
14165 LIBS=$ac_func_search_save_LIBS
14167 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
14168 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
14169 ac_res=$ac_cv_search_socket
14170 if test "$ac_res" != no; then
14171 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14173 else
14175 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14176 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14177 if test "${ac_cv_lib_socket_socket+set}" = set; then
14178 echo $ECHO_N "(cached) $ECHO_C" >&6
14179 else
14180 ac_check_lib_save_LIBS=$LIBS
14181 LIBS="-lsocket -lnsl $LIBS"
14182 cat >conftest.$ac_ext <<_ACEOF
14183 /* confdefs.h. */
14184 _ACEOF
14185 cat confdefs.h >>conftest.$ac_ext
14186 cat >>conftest.$ac_ext <<_ACEOF
14187 /* end confdefs.h. */
14189 /* Override any GCC internal prototype to avoid an error.
14190 Use char because int might match the return type of a GCC
14191 builtin and then its argument prototype would still apply. */
14192 #ifdef __cplusplus
14193 extern "C"
14194 #endif
14195 char socket ();
14197 main ()
14199 return socket ();
14201 return 0;
14203 _ACEOF
14204 rm -f conftest.$ac_objext conftest$ac_exeext
14205 if { (ac_try="$ac_link"
14206 case "(($ac_try" in
14207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208 *) ac_try_echo=$ac_try;;
14209 esac
14210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211 (eval "$ac_link") 2>conftest.er1
14212 ac_status=$?
14213 grep -v '^ *+' conftest.er1 >conftest.err
14214 rm -f conftest.er1
14215 cat conftest.err >&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); } && {
14218 test -z "$ac_c_werror_flag" ||
14219 test ! -s conftest.err
14220 } && test -s conftest$ac_exeext &&
14221 $as_test_x conftest$ac_exeext; then
14222 ac_cv_lib_socket_socket=yes
14223 else
14224 echo "$as_me: failed program was:" >&5
14225 sed 's/^/| /' conftest.$ac_ext >&5
14227 ac_cv_lib_socket_socket=no
14230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14231 conftest$ac_exeext conftest.$ac_ext
14232 LIBS=$ac_check_lib_save_LIBS
14234 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14235 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14236 if test $ac_cv_lib_socket_socket = yes; then
14237 LIBS="-lsocket -lnsl $LIBS"
14249 # FINAL
14250 ac_config_files="$ac_config_files Makefile ctaocrypt/Makefile ctaocrypt/src/Makefile ctaocrypt/test/Makefile ctaocrypt/benchmark/Makefile src/Makefile examples/Makefile examples/client/Makefile examples/server/Makefile examples/echoclient/Makefile examples/echoserver/Makefile testsuite/Makefile sslSniffer/Makefile sslSniffer/sslSnifferTest/Makefile"
14252 cat >confcache <<\_ACEOF
14253 # This file is a shell script that caches the results of configure
14254 # tests run on this system so they can be shared between configure
14255 # scripts and configure runs, see configure's option --config-cache.
14256 # It is not useful on other systems. If it contains results you don't
14257 # want to keep, you may remove or edit it.
14259 # config.status only pays attention to the cache file if you give it
14260 # the --recheck option to rerun configure.
14262 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14263 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14264 # following values.
14266 _ACEOF
14268 # The following way of writing the cache mishandles newlines in values,
14269 # but we know of no workaround that is simple, portable, and efficient.
14270 # So, we kill variables containing newlines.
14271 # Ultrix sh set writes to stderr and can't be redirected directly,
14272 # and sets the high bit in the cache file unless we assign to the vars.
14274 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14275 eval ac_val=\$$ac_var
14276 case $ac_val in #(
14277 *${as_nl}*)
14278 case $ac_var in #(
14279 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14280 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14281 esac
14282 case $ac_var in #(
14283 _ | IFS | as_nl) ;; #(
14284 *) $as_unset $ac_var ;;
14285 esac ;;
14286 esac
14287 done
14289 (set) 2>&1 |
14290 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14291 *${as_nl}ac_space=\ *)
14292 # `set' does not quote correctly, so add quotes (double-quote
14293 # substitution turns \\\\ into \\, and sed turns \\ into \).
14294 sed -n \
14295 "s/'/'\\\\''/g;
14296 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14297 ;; #(
14299 # `set' quotes correctly as required by POSIX, so do not add quotes.
14300 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14302 esac |
14303 sort
14305 sed '
14306 /^ac_cv_env_/b end
14307 t clear
14308 :clear
14309 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14310 t end
14311 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14312 :end' >>confcache
14313 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14314 if test -w "$cache_file"; then
14315 test "x$cache_file" != "x/dev/null" &&
14316 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14317 echo "$as_me: updating cache $cache_file" >&6;}
14318 cat confcache >$cache_file
14319 else
14320 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14321 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14324 rm -f confcache
14326 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14327 # Let make expand exec_prefix.
14328 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14330 DEFS=-DHAVE_CONFIG_H
14332 ac_libobjs=
14333 ac_ltlibobjs=
14334 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14335 # 1. Remove the extension, and $U if already installed.
14336 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14337 ac_i=`echo "$ac_i" | sed "$ac_script"`
14338 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14339 # will be set to the directory where LIBOBJS objects are built.
14340 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14341 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14342 done
14343 LIBOBJS=$ac_libobjs
14345 LTLIBOBJS=$ac_ltlibobjs
14348 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14349 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14350 Usually this means the macro was only invoked conditionally." >&5
14351 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14352 Usually this means the macro was only invoked conditionally." >&2;}
14353 { (exit 1); exit 1; }; }
14355 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14356 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14357 Usually this means the macro was only invoked conditionally." >&5
14358 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14359 Usually this means the macro was only invoked conditionally." >&2;}
14360 { (exit 1); exit 1; }; }
14362 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14363 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
14364 Usually this means the macro was only invoked conditionally." >&5
14365 echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
14366 Usually this means the macro was only invoked conditionally." >&2;}
14367 { (exit 1); exit 1; }; }
14369 if test -z "${BUILD_FASTMATH_TRUE}" && test -z "${BUILD_FASTMATH_FALSE}"; then
14370 { { echo "$as_me:$LINENO: error: conditional \"BUILD_FASTMATH\" was never defined.
14371 Usually this means the macro was only invoked conditionally." >&5
14372 echo "$as_me: error: conditional \"BUILD_FASTMATH\" was never defined.
14373 Usually this means the macro was only invoked conditionally." >&2;}
14374 { (exit 1); exit 1; }; }
14376 if test -z "${BUILD_SNIFFER_TRUE}" && test -z "${BUILD_SNIFFER_FALSE}"; then
14377 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SNIFFER\" was never defined.
14378 Usually this means the macro was only invoked conditionally." >&5
14379 echo "$as_me: error: conditional \"BUILD_SNIFFER\" was never defined.
14380 Usually this means the macro was only invoked conditionally." >&2;}
14381 { (exit 1); exit 1; }; }
14383 if test -z "${BUILD_AESNI_TRUE}" && test -z "${BUILD_AESNI_FALSE}"; then
14384 { { echo "$as_me:$LINENO: error: conditional \"BUILD_AESNI\" was never defined.
14385 Usually this means the macro was only invoked conditionally." >&5
14386 echo "$as_me: error: conditional \"BUILD_AESNI\" was never defined.
14387 Usually this means the macro was only invoked conditionally." >&2;}
14388 { (exit 1); exit 1; }; }
14390 if test -z "${BUILD_RIPEMD_TRUE}" && test -z "${BUILD_RIPEMD_FALSE}"; then
14391 { { echo "$as_me:$LINENO: error: conditional \"BUILD_RIPEMD\" was never defined.
14392 Usually this means the macro was only invoked conditionally." >&5
14393 echo "$as_me: error: conditional \"BUILD_RIPEMD\" was never defined.
14394 Usually this means the macro was only invoked conditionally." >&2;}
14395 { (exit 1); exit 1; }; }
14397 if test -z "${BUILD_SHA512_TRUE}" && test -z "${BUILD_SHA512_FALSE}"; then
14398 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SHA512\" was never defined.
14399 Usually this means the macro was only invoked conditionally." >&5
14400 echo "$as_me: error: conditional \"BUILD_SHA512\" was never defined.
14401 Usually this means the macro was only invoked conditionally." >&2;}
14402 { (exit 1); exit 1; }; }
14404 if test -z "${BUILD_HC128_TRUE}" && test -z "${BUILD_HC128_FALSE}"; then
14405 { { echo "$as_me:$LINENO: error: conditional \"BUILD_HC128\" was never defined.
14406 Usually this means the macro was only invoked conditionally." >&5
14407 echo "$as_me: error: conditional \"BUILD_HC128\" was never defined.
14408 Usually this means the macro was only invoked conditionally." >&2;}
14409 { (exit 1); exit 1; }; }
14411 if test -z "${BUILD_ECC_TRUE}" && test -z "${BUILD_ECC_FALSE}"; then
14412 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECC\" was never defined.
14413 Usually this means the macro was only invoked conditionally." >&5
14414 echo "$as_me: error: conditional \"BUILD_ECC\" was never defined.
14415 Usually this means the macro was only invoked conditionally." >&2;}
14416 { (exit 1); exit 1; }; }
14418 if test -z "${BUILD_NTRU_TRUE}" && test -z "${BUILD_NTRU_FALSE}"; then
14419 { { echo "$as_me:$LINENO: error: conditional \"BUILD_NTRU\" was never defined.
14420 Usually this means the macro was only invoked conditionally." >&5
14421 echo "$as_me: error: conditional \"BUILD_NTRU\" was never defined.
14422 Usually this means the macro was only invoked conditionally." >&2;}
14423 { (exit 1); exit 1; }; }
14426 : ${CONFIG_STATUS=./config.status}
14427 ac_clean_files_save=$ac_clean_files
14428 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14429 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14430 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14431 cat >$CONFIG_STATUS <<_ACEOF
14432 #! $SHELL
14433 # Generated by $as_me.
14434 # Run this file to recreate the current configuration.
14435 # Compiler output produced by configure, useful for debugging
14436 # configure, is in config.log if it exists.
14438 debug=false
14439 ac_cs_recheck=false
14440 ac_cs_silent=false
14441 SHELL=\${CONFIG_SHELL-$SHELL}
14442 _ACEOF
14444 cat >>$CONFIG_STATUS <<\_ACEOF
14445 ## --------------------- ##
14446 ## M4sh Initialization. ##
14447 ## --------------------- ##
14449 # Be more Bourne compatible
14450 DUALCASE=1; export DUALCASE # for MKS sh
14451 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14452 emulate sh
14453 NULLCMD=:
14454 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14455 # is contrary to our usage. Disable this feature.
14456 alias -g '${1+"$@"}'='"$@"'
14457 setopt NO_GLOB_SUBST
14458 else
14459 case `(set -o) 2>/dev/null` in
14460 *posix*) set -o posix ;;
14461 esac
14468 # PATH needs CR
14469 # Avoid depending upon Character Ranges.
14470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14473 as_cr_digits='0123456789'
14474 as_cr_alnum=$as_cr_Letters$as_cr_digits
14476 # The user is always right.
14477 if test "${PATH_SEPARATOR+set}" != set; then
14478 echo "#! /bin/sh" >conf$$.sh
14479 echo "exit 0" >>conf$$.sh
14480 chmod +x conf$$.sh
14481 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14482 PATH_SEPARATOR=';'
14483 else
14484 PATH_SEPARATOR=:
14486 rm -f conf$$.sh
14489 # Support unset when possible.
14490 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14491 as_unset=unset
14492 else
14493 as_unset=false
14497 # IFS
14498 # We need space, tab and new line, in precisely that order. Quoting is
14499 # there to prevent editors from complaining about space-tab.
14500 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14501 # splitting by setting IFS to empty value.)
14502 as_nl='
14504 IFS=" "" $as_nl"
14506 # Find who we are. Look in the path if we contain no directory separator.
14507 case $0 in
14508 *[\\/]* ) as_myself=$0 ;;
14509 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14510 for as_dir in $PATH
14512 IFS=$as_save_IFS
14513 test -z "$as_dir" && as_dir=.
14514 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14515 done
14516 IFS=$as_save_IFS
14519 esac
14520 # We did not find ourselves, most probably we were run as `sh COMMAND'
14521 # in which case we are not to be found in the path.
14522 if test "x$as_myself" = x; then
14523 as_myself=$0
14525 if test ! -f "$as_myself"; then
14526 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14527 { (exit 1); exit 1; }
14530 # Work around bugs in pre-3.0 UWIN ksh.
14531 for as_var in ENV MAIL MAILPATH
14532 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14533 done
14534 PS1='$ '
14535 PS2='> '
14536 PS4='+ '
14538 # NLS nuisances.
14539 for as_var in \
14540 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14541 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14542 LC_TELEPHONE LC_TIME
14544 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14545 eval $as_var=C; export $as_var
14546 else
14547 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14549 done
14551 # Required to use basename.
14552 if expr a : '\(a\)' >/dev/null 2>&1 &&
14553 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14554 as_expr=expr
14555 else
14556 as_expr=false
14559 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14560 as_basename=basename
14561 else
14562 as_basename=false
14566 # Name of the executable.
14567 as_me=`$as_basename -- "$0" ||
14568 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14569 X"$0" : 'X\(//\)$' \| \
14570 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14571 echo X/"$0" |
14572 sed '/^.*\/\([^/][^/]*\)\/*$/{
14573 s//\1/
14576 /^X\/\(\/\/\)$/{
14577 s//\1/
14580 /^X\/\(\/\).*/{
14581 s//\1/
14584 s/.*/./; q'`
14586 # CDPATH.
14587 $as_unset CDPATH
14591 as_lineno_1=$LINENO
14592 as_lineno_2=$LINENO
14593 test "x$as_lineno_1" != "x$as_lineno_2" &&
14594 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14596 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14597 # uniformly replaced by the line number. The first 'sed' inserts a
14598 # line-number line after each line using $LINENO; the second 'sed'
14599 # does the real work. The second script uses 'N' to pair each
14600 # line-number line with the line containing $LINENO, and appends
14601 # trailing '-' during substitution so that $LINENO is not a special
14602 # case at line end.
14603 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14604 # scripts with optimization help from Paolo Bonzini. Blame Lee
14605 # E. McMahon (1931-1989) for sed's syntax. :-)
14606 sed -n '
14608 /[$]LINENO/=
14609 ' <$as_myself |
14610 sed '
14611 s/[$]LINENO.*/&-/
14612 t lineno
14614 :lineno
14616 :loop
14617 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14618 t loop
14619 s/-\n.*//
14620 ' >$as_me.lineno &&
14621 chmod +x "$as_me.lineno" ||
14622 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14623 { (exit 1); exit 1; }; }
14625 # Don't try to exec as it changes $[0], causing all sort of problems
14626 # (the dirname of $[0] is not the place where we might find the
14627 # original and so on. Autoconf is especially sensitive to this).
14628 . "./$as_me.lineno"
14629 # Exit status is that of the last command.
14630 exit
14634 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14635 as_dirname=dirname
14636 else
14637 as_dirname=false
14640 ECHO_C= ECHO_N= ECHO_T=
14641 case `echo -n x` in
14642 -n*)
14643 case `echo 'x\c'` in
14644 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14645 *) ECHO_C='\c';;
14646 esac;;
14648 ECHO_N='-n';;
14649 esac
14651 if expr a : '\(a\)' >/dev/null 2>&1 &&
14652 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14653 as_expr=expr
14654 else
14655 as_expr=false
14658 rm -f conf$$ conf$$.exe conf$$.file
14659 if test -d conf$$.dir; then
14660 rm -f conf$$.dir/conf$$.file
14661 else
14662 rm -f conf$$.dir
14663 mkdir conf$$.dir
14665 echo >conf$$.file
14666 if ln -s conf$$.file conf$$ 2>/dev/null; then
14667 as_ln_s='ln -s'
14668 # ... but there are two gotchas:
14669 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14670 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14671 # In both cases, we have to default to `cp -p'.
14672 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14673 as_ln_s='cp -p'
14674 elif ln conf$$.file conf$$ 2>/dev/null; then
14675 as_ln_s=ln
14676 else
14677 as_ln_s='cp -p'
14679 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14680 rmdir conf$$.dir 2>/dev/null
14682 if mkdir -p . 2>/dev/null; then
14683 as_mkdir_p=:
14684 else
14685 test -d ./-p && rmdir ./-p
14686 as_mkdir_p=false
14689 if test -x / >/dev/null 2>&1; then
14690 as_test_x='test -x'
14691 else
14692 if ls -dL / >/dev/null 2>&1; then
14693 as_ls_L_option=L
14694 else
14695 as_ls_L_option=
14697 as_test_x='
14698 eval sh -c '\''
14699 if test -d "$1"; then
14700 test -d "$1/.";
14701 else
14702 case $1 in
14703 -*)set "./$1";;
14704 esac;
14705 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14706 ???[sx]*):;;*)false;;esac;fi
14707 '\'' sh
14710 as_executable_p=$as_test_x
14712 # Sed expression to map a string onto a valid CPP name.
14713 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14715 # Sed expression to map a string onto a valid variable name.
14716 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14719 exec 6>&1
14721 # Save the log message, to keep $[0] and so on meaningful, and to
14722 # report actual input values of CONFIG_FILES etc. instead of their
14723 # values after options handling.
14724 ac_log="
14725 This file was extended by $as_me, which was
14726 generated by GNU Autoconf 2.61. Invocation command line was
14728 CONFIG_FILES = $CONFIG_FILES
14729 CONFIG_HEADERS = $CONFIG_HEADERS
14730 CONFIG_LINKS = $CONFIG_LINKS
14731 CONFIG_COMMANDS = $CONFIG_COMMANDS
14732 $ $0 $@
14734 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14737 _ACEOF
14739 cat >>$CONFIG_STATUS <<_ACEOF
14740 # Files that config.status was made for.
14741 config_files="$ac_config_files"
14742 config_headers="$ac_config_headers"
14743 config_commands="$ac_config_commands"
14745 _ACEOF
14747 cat >>$CONFIG_STATUS <<\_ACEOF
14748 ac_cs_usage="\
14749 \`$as_me' instantiates files from templates according to the
14750 current configuration.
14752 Usage: $0 [OPTIONS] [FILE]...
14754 -h, --help print this help, then exit
14755 -V, --version print version number and configuration settings, then exit
14756 -q, --quiet do not print progress messages
14757 -d, --debug don't remove temporary files
14758 --recheck update $as_me by reconfiguring in the same conditions
14759 --file=FILE[:TEMPLATE]
14760 instantiate the configuration file FILE
14761 --header=FILE[:TEMPLATE]
14762 instantiate the configuration header FILE
14764 Configuration files:
14765 $config_files
14767 Configuration headers:
14768 $config_headers
14770 Configuration commands:
14771 $config_commands
14773 Report bugs to <bug-autoconf@gnu.org>."
14775 _ACEOF
14776 cat >>$CONFIG_STATUS <<_ACEOF
14777 ac_cs_version="\\
14778 config.status
14779 configured by $0, generated by GNU Autoconf 2.61,
14780 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14782 Copyright (C) 2006 Free Software Foundation, Inc.
14783 This config.status script is free software; the Free Software Foundation
14784 gives unlimited permission to copy, distribute and modify it."
14786 ac_pwd='$ac_pwd'
14787 srcdir='$srcdir'
14788 INSTALL='$INSTALL'
14789 MKDIR_P='$MKDIR_P'
14790 _ACEOF
14792 cat >>$CONFIG_STATUS <<\_ACEOF
14793 # If no file are specified by the user, then we need to provide default
14794 # value. By we need to know if files were specified by the user.
14795 ac_need_defaults=:
14796 while test $# != 0
14798 case $1 in
14799 --*=*)
14800 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14801 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14802 ac_shift=:
14805 ac_option=$1
14806 ac_optarg=$2
14807 ac_shift=shift
14809 esac
14811 case $ac_option in
14812 # Handling of the options.
14813 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14814 ac_cs_recheck=: ;;
14815 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14816 echo "$ac_cs_version"; exit ;;
14817 --debug | --debu | --deb | --de | --d | -d )
14818 debug=: ;;
14819 --file | --fil | --fi | --f )
14820 $ac_shift
14821 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14822 ac_need_defaults=false;;
14823 --header | --heade | --head | --hea )
14824 $ac_shift
14825 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14826 ac_need_defaults=false;;
14827 --he | --h)
14828 # Conflict between --help and --header
14829 { echo "$as_me: error: ambiguous option: $1
14830 Try \`$0 --help' for more information." >&2
14831 { (exit 1); exit 1; }; };;
14832 --help | --hel | -h )
14833 echo "$ac_cs_usage"; exit ;;
14834 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14835 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14836 ac_cs_silent=: ;;
14838 # This is an error.
14839 -*) { echo "$as_me: error: unrecognized option: $1
14840 Try \`$0 --help' for more information." >&2
14841 { (exit 1); exit 1; }; } ;;
14843 *) ac_config_targets="$ac_config_targets $1"
14844 ac_need_defaults=false ;;
14846 esac
14847 shift
14848 done
14850 ac_configure_extra_args=
14852 if $ac_cs_silent; then
14853 exec 6>/dev/null
14854 ac_configure_extra_args="$ac_configure_extra_args --silent"
14857 _ACEOF
14858 cat >>$CONFIG_STATUS <<_ACEOF
14859 if \$ac_cs_recheck; then
14860 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14861 CONFIG_SHELL=$SHELL
14862 export CONFIG_SHELL
14863 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14866 _ACEOF
14867 cat >>$CONFIG_STATUS <<\_ACEOF
14868 exec 5>>config.log
14870 echo
14871 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14872 ## Running $as_me. ##
14873 _ASBOX
14874 echo "$ac_log"
14875 } >&5
14877 _ACEOF
14878 cat >>$CONFIG_STATUS <<_ACEOF
14880 # INIT-COMMANDS
14882 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14885 # The HP-UX ksh and POSIX shell print the target directory to stdout
14886 # if CDPATH is set.
14887 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14889 sed_quote_subst='$sed_quote_subst'
14890 double_quote_subst='$double_quote_subst'
14891 delay_variable_subst='$delay_variable_subst'
14892 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
14893 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14894 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14895 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14896 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14897 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14898 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14899 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14900 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14901 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14902 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14903 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14904 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14905 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14906 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14907 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14908 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14909 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14910 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14911 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14912 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14913 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14914 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14915 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14916 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14917 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14918 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14919 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14920 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14921 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14922 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14923 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14924 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14925 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14926 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14927 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14928 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14929 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14930 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14931 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14932 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14933 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14934 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14935 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14936 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14937 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14938 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"`'
14939 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"`'
14940 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14941 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14942 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14943 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14944 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14945 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14946 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14947 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14948 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14949 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14950 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14951 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14952 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14953 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14954 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14955 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14956 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14957 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14958 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14959 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14960 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14961 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14962 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14963 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14964 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14965 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14966 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14967 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14968 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14969 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14970 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14971 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14972 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14973 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14974 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14975 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14976 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14977 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14978 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14979 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14980 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14981 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14982 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14983 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14984 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14985 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14986 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14987 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14988 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14989 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14990 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14991 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14992 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14993 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14994 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14995 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14996 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14997 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14998 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14999 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15000 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15001 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15002 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15003 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15004 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15005 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15006 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15007 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15008 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15009 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15010 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15011 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15013 LTCC='$LTCC'
15014 LTCFLAGS='$LTCFLAGS'
15015 compiler='$compiler_DEFAULT'
15017 # Quote evaled strings.
15018 for var in SED \
15019 GREP \
15020 EGREP \
15021 FGREP \
15022 LD \
15023 NM \
15024 LN_S \
15025 lt_SP2NL \
15026 lt_NL2SP \
15027 reload_flag \
15028 deplibs_check_method \
15029 file_magic_cmd \
15030 AR \
15031 AR_FLAGS \
15032 STRIP \
15033 RANLIB \
15034 CC \
15035 CFLAGS \
15036 compiler \
15037 lt_cv_sys_global_symbol_pipe \
15038 lt_cv_sys_global_symbol_to_cdecl \
15039 lt_cv_sys_global_symbol_to_c_name_address \
15040 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15041 SHELL \
15042 ECHO \
15043 lt_prog_compiler_no_builtin_flag \
15044 lt_prog_compiler_wl \
15045 lt_prog_compiler_pic \
15046 lt_prog_compiler_static \
15047 lt_cv_prog_compiler_c_o \
15048 need_locks \
15049 DSYMUTIL \
15050 NMEDIT \
15051 LIPO \
15052 OTOOL \
15053 OTOOL64 \
15054 shrext_cmds \
15055 export_dynamic_flag_spec \
15056 whole_archive_flag_spec \
15057 compiler_needs_object \
15058 with_gnu_ld \
15059 allow_undefined_flag \
15060 no_undefined_flag \
15061 hardcode_libdir_flag_spec \
15062 hardcode_libdir_flag_spec_ld \
15063 hardcode_libdir_separator \
15064 fix_srcfile_path \
15065 exclude_expsyms \
15066 include_expsyms \
15067 file_list_spec \
15068 variables_saved_for_relink \
15069 libname_spec \
15070 library_names_spec \
15071 soname_spec \
15072 finish_eval \
15073 old_striplib \
15074 striplib; do
15075 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15076 *[\\\\\\\`\\"\\\$]*)
15077 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15080 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15082 esac
15083 done
15085 # Double-quote double-evaled strings.
15086 for var in reload_cmds \
15087 old_postinstall_cmds \
15088 old_postuninstall_cmds \
15089 old_archive_cmds \
15090 extract_expsyms_cmds \
15091 old_archive_from_new_cmds \
15092 old_archive_from_expsyms_cmds \
15093 archive_cmds \
15094 archive_expsym_cmds \
15095 module_cmds \
15096 module_expsym_cmds \
15097 export_symbols_cmds \
15098 prelink_cmds \
15099 postinstall_cmds \
15100 postuninstall_cmds \
15101 finish_cmds \
15102 sys_lib_search_path_spec \
15103 sys_lib_dlsearch_path_spec; do
15104 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15105 *[\\\\\\\`\\"\\\$]*)
15106 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15109 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15111 esac
15112 done
15114 # Fix-up fallback echo if it was mangled by the above quoting rules.
15115 case \$lt_ECHO in
15116 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15118 esac
15120 ac_aux_dir='$ac_aux_dir'
15121 xsi_shell='$xsi_shell'
15122 lt_shell_append='$lt_shell_append'
15124 # See if we are running on zsh, and set the options which allow our
15125 # commands through without removal of \ escapes INIT.
15126 if test -n "\${ZSH_VERSION+set}" ; then
15127 setopt NO_GLOB_SUBST
15131 PACKAGE='$PACKAGE'
15132 VERSION='$VERSION'
15133 TIMESTAMP='$TIMESTAMP'
15134 RM='$RM'
15135 ofile='$ofile'
15140 _ACEOF
15142 cat >>$CONFIG_STATUS <<\_ACEOF
15144 # Handling of arguments.
15145 for ac_config_target in $ac_config_targets
15147 case $ac_config_target in
15148 "ctaocrypt/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS ctaocrypt/include/config.h" ;;
15149 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15150 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15151 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15152 "ctaocrypt/Makefile") CONFIG_FILES="$CONFIG_FILES ctaocrypt/Makefile" ;;
15153 "ctaocrypt/src/Makefile") CONFIG_FILES="$CONFIG_FILES ctaocrypt/src/Makefile" ;;
15154 "ctaocrypt/test/Makefile") CONFIG_FILES="$CONFIG_FILES ctaocrypt/test/Makefile" ;;
15155 "ctaocrypt/benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES ctaocrypt/benchmark/Makefile" ;;
15156 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15157 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
15158 "examples/client/Makefile") CONFIG_FILES="$CONFIG_FILES examples/client/Makefile" ;;
15159 "examples/server/Makefile") CONFIG_FILES="$CONFIG_FILES examples/server/Makefile" ;;
15160 "examples/echoclient/Makefile") CONFIG_FILES="$CONFIG_FILES examples/echoclient/Makefile" ;;
15161 "examples/echoserver/Makefile") CONFIG_FILES="$CONFIG_FILES examples/echoserver/Makefile" ;;
15162 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15163 "sslSniffer/Makefile") CONFIG_FILES="$CONFIG_FILES sslSniffer/Makefile" ;;
15164 "sslSniffer/sslSnifferTest/Makefile") CONFIG_FILES="$CONFIG_FILES sslSniffer/sslSnifferTest/Makefile" ;;
15166 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15167 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15168 { (exit 1); exit 1; }; };;
15169 esac
15170 done
15173 # If the user did not use the arguments to specify the items to instantiate,
15174 # then the envvar interface is used. Set only those that are not.
15175 # We use the long form for the default assignment because of an extremely
15176 # bizarre bug on SunOS 4.1.3.
15177 if $ac_need_defaults; then
15178 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15179 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15180 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15183 # Have a temporary directory for convenience. Make it in the build tree
15184 # simply because there is no reason against having it here, and in addition,
15185 # creating and moving files from /tmp can sometimes cause problems.
15186 # Hook for its removal unless debugging.
15187 # Note that there is a small window in which the directory will not be cleaned:
15188 # after its creation but before its name has been assigned to `$tmp'.
15189 $debug ||
15191 tmp=
15192 trap 'exit_status=$?
15193 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15195 trap '{ (exit 1); exit 1; }' 1 2 13 15
15197 # Create a (secure) tmp directory for tmp files.
15200 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15201 test -n "$tmp" && test -d "$tmp"
15202 } ||
15204 tmp=./conf$$-$RANDOM
15205 (umask 077 && mkdir "$tmp")
15206 } ||
15208 echo "$me: cannot create a temporary directory in ." >&2
15209 { (exit 1); exit 1; }
15213 # Set up the sed scripts for CONFIG_FILES section.
15216 # No need to generate the scripts if there are no CONFIG_FILES.
15217 # This happens for instance when ./config.status config.h
15218 if test -n "$CONFIG_FILES"; then
15220 _ACEOF
15224 ac_delim='%!_!# '
15225 for ac_last_try in false false false false false :; do
15226 cat >conf$$subs.sed <<_ACEOF
15227 SHELL!$SHELL$ac_delim
15228 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15229 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15230 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15231 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15232 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15233 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15234 exec_prefix!$exec_prefix$ac_delim
15235 prefix!$prefix$ac_delim
15236 program_transform_name!$program_transform_name$ac_delim
15237 bindir!$bindir$ac_delim
15238 sbindir!$sbindir$ac_delim
15239 libexecdir!$libexecdir$ac_delim
15240 datarootdir!$datarootdir$ac_delim
15241 datadir!$datadir$ac_delim
15242 sysconfdir!$sysconfdir$ac_delim
15243 sharedstatedir!$sharedstatedir$ac_delim
15244 localstatedir!$localstatedir$ac_delim
15245 includedir!$includedir$ac_delim
15246 oldincludedir!$oldincludedir$ac_delim
15247 docdir!$docdir$ac_delim
15248 infodir!$infodir$ac_delim
15249 htmldir!$htmldir$ac_delim
15250 dvidir!$dvidir$ac_delim
15251 pdfdir!$pdfdir$ac_delim
15252 psdir!$psdir$ac_delim
15253 libdir!$libdir$ac_delim
15254 localedir!$localedir$ac_delim
15255 mandir!$mandir$ac_delim
15256 DEFS!$DEFS$ac_delim
15257 ECHO_C!$ECHO_C$ac_delim
15258 ECHO_N!$ECHO_N$ac_delim
15259 ECHO_T!$ECHO_T$ac_delim
15260 LIBS!$LIBS$ac_delim
15261 build_alias!$build_alias$ac_delim
15262 host_alias!$host_alias$ac_delim
15263 target_alias!$target_alias$ac_delim
15264 build!$build$ac_delim
15265 build_cpu!$build_cpu$ac_delim
15266 build_vendor!$build_vendor$ac_delim
15267 build_os!$build_os$ac_delim
15268 host!$host$ac_delim
15269 host_cpu!$host_cpu$ac_delim
15270 host_vendor!$host_vendor$ac_delim
15271 host_os!$host_os$ac_delim
15272 target!$target$ac_delim
15273 target_cpu!$target_cpu$ac_delim
15274 target_vendor!$target_vendor$ac_delim
15275 target_os!$target_os$ac_delim
15276 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15277 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15278 INSTALL_DATA!$INSTALL_DATA$ac_delim
15279 am__isrc!$am__isrc$ac_delim
15280 CYGPATH_W!$CYGPATH_W$ac_delim
15281 PACKAGE!$PACKAGE$ac_delim
15282 VERSION!$VERSION$ac_delim
15283 ACLOCAL!$ACLOCAL$ac_delim
15284 AUTOCONF!$AUTOCONF$ac_delim
15285 AUTOMAKE!$AUTOMAKE$ac_delim
15286 AUTOHEADER!$AUTOHEADER$ac_delim
15287 MAKEINFO!$MAKEINFO$ac_delim
15288 install_sh!$install_sh$ac_delim
15289 STRIP!$STRIP$ac_delim
15290 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
15291 mkdir_p!$mkdir_p$ac_delim
15292 AWK!$AWK$ac_delim
15293 SET_MAKE!$SET_MAKE$ac_delim
15294 am__leading_dot!$am__leading_dot$ac_delim
15295 AMTAR!$AMTAR$ac_delim
15296 am__tar!$am__tar$ac_delim
15297 am__untar!$am__untar$ac_delim
15298 CC!$CC$ac_delim
15299 CFLAGS!$CFLAGS$ac_delim
15300 LDFLAGS!$LDFLAGS$ac_delim
15301 CPPFLAGS!$CPPFLAGS$ac_delim
15302 ac_ct_CC!$ac_ct_CC$ac_delim
15303 EXEEXT!$EXEEXT$ac_delim
15304 OBJEXT!$OBJEXT$ac_delim
15305 DEPDIR!$DEPDIR$ac_delim
15306 am__include!$am__include$ac_delim
15307 am__quote!$am__quote$ac_delim
15308 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
15309 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
15310 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
15311 CCDEPMODE!$CCDEPMODE$ac_delim
15312 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
15313 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
15314 CCAS!$CCAS$ac_delim
15315 CCASFLAGS!$CCASFLAGS$ac_delim
15316 CCASDEPMODE!$CCASDEPMODE$ac_delim
15317 am__fastdepCCAS_TRUE!$am__fastdepCCAS_TRUE$ac_delim
15318 am__fastdepCCAS_FALSE!$am__fastdepCCAS_FALSE$ac_delim
15319 AS!$AS$ac_delim
15320 DLLTOOL!$DLLTOOL$ac_delim
15321 OBJDUMP!$OBJDUMP$ac_delim
15322 LIBTOOL!$LIBTOOL$ac_delim
15323 SED!$SED$ac_delim
15324 _ACEOF
15326 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
15327 break
15328 elif $ac_last_try; then
15329 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15330 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15331 { (exit 1); exit 1; }; }
15332 else
15333 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15335 done
15337 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15338 if test -n "$ac_eof"; then
15339 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15340 ac_eof=`expr $ac_eof + 1`
15343 cat >>$CONFIG_STATUS <<_ACEOF
15344 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15345 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15346 _ACEOF
15347 sed '
15348 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15349 s/^/s,@/; s/!/@,|#_!!_#|/
15352 s/'"$ac_delim"'$/,g/; t
15353 s/$/\\/; p
15354 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15355 ' >>$CONFIG_STATUS <conf$$subs.sed
15356 rm -f conf$$subs.sed
15357 cat >>$CONFIG_STATUS <<_ACEOF
15358 CEOF$ac_eof
15359 _ACEOF
15362 ac_delim='%!_!# '
15363 for ac_last_try in false false false false false :; do
15364 cat >conf$$subs.sed <<_ACEOF
15365 GREP!$GREP$ac_delim
15366 EGREP!$EGREP$ac_delim
15367 FGREP!$FGREP$ac_delim
15368 LD!$LD$ac_delim
15369 DUMPBIN!$DUMPBIN$ac_delim
15370 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
15371 NM!$NM$ac_delim
15372 LN_S!$LN_S$ac_delim
15373 AR!$AR$ac_delim
15374 RANLIB!$RANLIB$ac_delim
15375 lt_ECHO!$lt_ECHO$ac_delim
15376 DSYMUTIL!$DSYMUTIL$ac_delim
15377 NMEDIT!$NMEDIT$ac_delim
15378 LIPO!$LIPO$ac_delim
15379 OTOOL!$OTOOL$ac_delim
15380 OTOOL64!$OTOOL64$ac_delim
15381 CPP!$CPP$ac_delim
15382 LIBM!$LIBM$ac_delim
15383 BUILD_FASTMATH_TRUE!$BUILD_FASTMATH_TRUE$ac_delim
15384 BUILD_FASTMATH_FALSE!$BUILD_FASTMATH_FALSE$ac_delim
15385 BUILD_SNIFFER_TRUE!$BUILD_SNIFFER_TRUE$ac_delim
15386 BUILD_SNIFFER_FALSE!$BUILD_SNIFFER_FALSE$ac_delim
15387 BUILD_AESNI_TRUE!$BUILD_AESNI_TRUE$ac_delim
15388 BUILD_AESNI_FALSE!$BUILD_AESNI_FALSE$ac_delim
15389 BUILD_RIPEMD_TRUE!$BUILD_RIPEMD_TRUE$ac_delim
15390 BUILD_RIPEMD_FALSE!$BUILD_RIPEMD_FALSE$ac_delim
15391 BUILD_SHA512_TRUE!$BUILD_SHA512_TRUE$ac_delim
15392 BUILD_SHA512_FALSE!$BUILD_SHA512_FALSE$ac_delim
15393 BUILD_HC128_TRUE!$BUILD_HC128_TRUE$ac_delim
15394 BUILD_HC128_FALSE!$BUILD_HC128_FALSE$ac_delim
15395 BUILD_ECC_TRUE!$BUILD_ECC_TRUE$ac_delim
15396 BUILD_ECC_FALSE!$BUILD_ECC_FALSE$ac_delim
15397 BUILD_NTRU_TRUE!$BUILD_NTRU_TRUE$ac_delim
15398 BUILD_NTRU_FALSE!$BUILD_NTRU_FALSE$ac_delim
15399 acx_pthread_config!$acx_pthread_config$ac_delim
15400 PTHREAD_CC!$PTHREAD_CC$ac_delim
15401 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
15402 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
15403 LIBOBJS!$LIBOBJS$ac_delim
15404 LTLIBOBJS!$LTLIBOBJS$ac_delim
15405 _ACEOF
15407 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 40; then
15408 break
15409 elif $ac_last_try; then
15410 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15411 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15412 { (exit 1); exit 1; }; }
15413 else
15414 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15416 done
15418 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15419 if test -n "$ac_eof"; then
15420 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15421 ac_eof=`expr $ac_eof + 1`
15424 cat >>$CONFIG_STATUS <<_ACEOF
15425 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
15426 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15427 _ACEOF
15428 sed '
15429 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15430 s/^/s,@/; s/!/@,|#_!!_#|/
15433 s/'"$ac_delim"'$/,g/; t
15434 s/$/\\/; p
15435 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15436 ' >>$CONFIG_STATUS <conf$$subs.sed
15437 rm -f conf$$subs.sed
15438 cat >>$CONFIG_STATUS <<_ACEOF
15439 :end
15440 s/|#_!!_#|//g
15441 CEOF$ac_eof
15442 _ACEOF
15445 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15446 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15447 # trailing colons and then remove the whole line if VPATH becomes empty
15448 # (actually we leave an empty line to preserve line numbers).
15449 if test "x$srcdir" = x.; then
15450 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15451 s/:*\$(srcdir):*/:/
15452 s/:*\${srcdir}:*/:/
15453 s/:*@srcdir@:*/:/
15454 s/^\([^=]*=[ ]*\):*/\1/
15455 s/:*$//
15456 s/^[^=]*=[ ]*$//
15460 cat >>$CONFIG_STATUS <<\_ACEOF
15461 fi # test -n "$CONFIG_FILES"
15464 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
15466 case $ac_tag in
15467 :[FHLC]) ac_mode=$ac_tag; continue;;
15468 esac
15469 case $ac_mode$ac_tag in
15470 :[FHL]*:*);;
15471 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
15472 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
15473 { (exit 1); exit 1; }; };;
15474 :[FH]-) ac_tag=-:-;;
15475 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15476 esac
15477 ac_save_IFS=$IFS
15478 IFS=:
15479 set x $ac_tag
15480 IFS=$ac_save_IFS
15481 shift
15482 ac_file=$1
15483 shift
15485 case $ac_mode in
15486 :L) ac_source=$1;;
15487 :[FH])
15488 ac_file_inputs=
15489 for ac_f
15491 case $ac_f in
15492 -) ac_f="$tmp/stdin";;
15493 *) # Look for the file first in the build tree, then in the source tree
15494 # (if the path is not absolute). The absolute path cannot be DOS-style,
15495 # because $ac_f cannot contain `:'.
15496 test -f "$ac_f" ||
15497 case $ac_f in
15498 [\\/$]*) false;;
15499 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15500 esac ||
15501 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15502 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15503 { (exit 1); exit 1; }; };;
15504 esac
15505 ac_file_inputs="$ac_file_inputs $ac_f"
15506 done
15508 # Let's still pretend it is `configure' which instantiates (i.e., don't
15509 # use $as_me), people would be surprised to read:
15510 # /* config.h. Generated by config.status. */
15511 configure_input="Generated from "`IFS=:
15512 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15513 if test x"$ac_file" != x-; then
15514 configure_input="$ac_file. $configure_input"
15515 { echo "$as_me:$LINENO: creating $ac_file" >&5
15516 echo "$as_me: creating $ac_file" >&6;}
15519 case $ac_tag in
15520 *:-:* | *:-) cat >"$tmp/stdin";;
15521 esac
15523 esac
15525 ac_dir=`$as_dirname -- "$ac_file" ||
15526 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15527 X"$ac_file" : 'X\(//\)[^/]' \| \
15528 X"$ac_file" : 'X\(//\)$' \| \
15529 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15530 echo X"$ac_file" |
15531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15532 s//\1/
15535 /^X\(\/\/\)[^/].*/{
15536 s//\1/
15539 /^X\(\/\/\)$/{
15540 s//\1/
15543 /^X\(\/\).*/{
15544 s//\1/
15547 s/.*/./; q'`
15548 { as_dir="$ac_dir"
15549 case $as_dir in #(
15550 -*) as_dir=./$as_dir;;
15551 esac
15552 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15553 as_dirs=
15554 while :; do
15555 case $as_dir in #(
15556 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15557 *) as_qdir=$as_dir;;
15558 esac
15559 as_dirs="'$as_qdir' $as_dirs"
15560 as_dir=`$as_dirname -- "$as_dir" ||
15561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15562 X"$as_dir" : 'X\(//\)[^/]' \| \
15563 X"$as_dir" : 'X\(//\)$' \| \
15564 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15565 echo X"$as_dir" |
15566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15567 s//\1/
15570 /^X\(\/\/\)[^/].*/{
15571 s//\1/
15574 /^X\(\/\/\)$/{
15575 s//\1/
15578 /^X\(\/\).*/{
15579 s//\1/
15582 s/.*/./; q'`
15583 test -d "$as_dir" && break
15584 done
15585 test -z "$as_dirs" || eval "mkdir $as_dirs"
15586 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15587 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15588 { (exit 1); exit 1; }; }; }
15589 ac_builddir=.
15591 case "$ac_dir" in
15592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15594 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15595 # A ".." for each directory in $ac_dir_suffix.
15596 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15597 case $ac_top_builddir_sub in
15598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15600 esac ;;
15601 esac
15602 ac_abs_top_builddir=$ac_pwd
15603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15604 # for backward compatibility:
15605 ac_top_builddir=$ac_top_build_prefix
15607 case $srcdir in
15608 .) # We are building in place.
15609 ac_srcdir=.
15610 ac_top_srcdir=$ac_top_builddir_sub
15611 ac_abs_top_srcdir=$ac_pwd ;;
15612 [\\/]* | ?:[\\/]* ) # Absolute name.
15613 ac_srcdir=$srcdir$ac_dir_suffix;
15614 ac_top_srcdir=$srcdir
15615 ac_abs_top_srcdir=$srcdir ;;
15616 *) # Relative name.
15617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15618 ac_top_srcdir=$ac_top_build_prefix$srcdir
15619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15620 esac
15621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15624 case $ac_mode in
15627 # CONFIG_FILE
15630 case $INSTALL in
15631 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15632 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15633 esac
15634 ac_MKDIR_P=$MKDIR_P
15635 case $MKDIR_P in
15636 [\\/$]* | ?:[\\/]* ) ;;
15637 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15638 esac
15639 _ACEOF
15641 cat >>$CONFIG_STATUS <<\_ACEOF
15642 # If the template does not know about datarootdir, expand it.
15643 # FIXME: This hack should be removed a few years after 2.60.
15644 ac_datarootdir_hack=; ac_datarootdir_seen=
15646 case `sed -n '/datarootdir/ {
15650 /@datadir@/p
15651 /@docdir@/p
15652 /@infodir@/p
15653 /@localedir@/p
15654 /@mandir@/p
15655 ' $ac_file_inputs` in
15656 *datarootdir*) ac_datarootdir_seen=yes;;
15657 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15658 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15659 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15660 _ACEOF
15661 cat >>$CONFIG_STATUS <<_ACEOF
15662 ac_datarootdir_hack='
15663 s&@datadir@&$datadir&g
15664 s&@docdir@&$docdir&g
15665 s&@infodir@&$infodir&g
15666 s&@localedir@&$localedir&g
15667 s&@mandir@&$mandir&g
15668 s&\\\${datarootdir}&$datarootdir&g' ;;
15669 esac
15670 _ACEOF
15672 # Neutralize VPATH when `$srcdir' = `.'.
15673 # Shell code in configure.ac might set extrasub.
15674 # FIXME: do we really want to maintain this feature?
15675 cat >>$CONFIG_STATUS <<_ACEOF
15676 sed "$ac_vpsub
15677 $extrasub
15678 _ACEOF
15679 cat >>$CONFIG_STATUS <<\_ACEOF
15681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15682 s&@configure_input@&$configure_input&;t t
15683 s&@top_builddir@&$ac_top_builddir_sub&;t t
15684 s&@srcdir@&$ac_srcdir&;t t
15685 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15686 s&@top_srcdir@&$ac_top_srcdir&;t t
15687 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15688 s&@builddir@&$ac_builddir&;t t
15689 s&@abs_builddir@&$ac_abs_builddir&;t t
15690 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15691 s&@INSTALL@&$ac_INSTALL&;t t
15692 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15693 $ac_datarootdir_hack
15694 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
15696 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15697 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15698 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15699 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15700 which seems to be undefined. Please make sure it is defined." >&5
15701 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15702 which seems to be undefined. Please make sure it is defined." >&2;}
15704 rm -f "$tmp/stdin"
15705 case $ac_file in
15706 -) cat "$tmp/out"; rm -f "$tmp/out";;
15707 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15708 esac
15712 # CONFIG_HEADER
15714 _ACEOF
15716 # Transform confdefs.h into a sed script `conftest.defines', that
15717 # substitutes the proper values into config.h.in to produce config.h.
15718 rm -f conftest.defines conftest.tail
15719 # First, append a space to every undef/define line, to ease matching.
15720 echo 's/$/ /' >conftest.defines
15721 # Then, protect against being on the right side of a sed subst, or in
15722 # an unquoted here document, in config.status. If some macros were
15723 # called several times there might be several #defines for the same
15724 # symbol, which is useless. But do not sort them, since the last
15725 # AC_DEFINE must be honored.
15726 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15727 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15728 # NAME is the cpp macro being defined, VALUE is the value it is being given.
15729 # PARAMS is the parameter list in the macro definition--in most cases, it's
15730 # just an empty string.
15731 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
15732 ac_dB='\\)[ (].*,\\1define\\2'
15733 ac_dC=' '
15734 ac_dD=' ,'
15736 uniq confdefs.h |
15737 sed -n '
15738 t rset
15739 :rset
15740 s/^[ ]*#[ ]*define[ ][ ]*//
15741 t ok
15744 s/[\\&,]/\\&/g
15745 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15746 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15747 ' >>conftest.defines
15749 # Remove the space that was appended to ease matching.
15750 # Then replace #undef with comments. This is necessary, for
15751 # example, in the case of _POSIX_SOURCE, which is predefined and required
15752 # on some systems where configure will not decide to define it.
15753 # (The regexp can be short, since the line contains either #define or #undef.)
15754 echo 's/ $//
15755 s,^[ #]*u.*,/* & */,' >>conftest.defines
15757 # Break up conftest.defines:
15758 ac_max_sed_lines=50
15760 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15761 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15762 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15763 # et cetera.
15764 ac_in='$ac_file_inputs'
15765 ac_out='"$tmp/out1"'
15766 ac_nxt='"$tmp/out2"'
15768 while :
15770 # Write a here document:
15771 cat >>$CONFIG_STATUS <<_ACEOF
15772 # First, check the format of the line:
15773 cat >"\$tmp/defines.sed" <<\\CEOF
15774 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
15775 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
15777 :def
15778 _ACEOF
15779 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
15780 echo 'CEOF
15781 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15782 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
15783 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
15784 grep . conftest.tail >/dev/null || break
15785 rm -f conftest.defines
15786 mv conftest.tail conftest.defines
15787 done
15788 rm -f conftest.defines conftest.tail
15790 echo "ac_result=$ac_in" >>$CONFIG_STATUS
15791 cat >>$CONFIG_STATUS <<\_ACEOF
15792 if test x"$ac_file" != x-; then
15793 echo "/* $configure_input */" >"$tmp/config.h"
15794 cat "$ac_result" >>"$tmp/config.h"
15795 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
15796 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15797 echo "$as_me: $ac_file is unchanged" >&6;}
15798 else
15799 rm -f $ac_file
15800 mv "$tmp/config.h" $ac_file
15802 else
15803 echo "/* $configure_input */"
15804 cat "$ac_result"
15806 rm -f "$tmp/out12"
15807 # Compute $ac_file's index in $config_headers.
15808 _am_stamp_count=1
15809 for _am_header in $config_headers :; do
15810 case $_am_header in
15811 $ac_file | $ac_file:* )
15812 break ;;
15814 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15815 esac
15816 done
15817 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
15818 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15819 X$ac_file : 'X\(//\)[^/]' \| \
15820 X$ac_file : 'X\(//\)$' \| \
15821 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
15822 echo X$ac_file |
15823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15824 s//\1/
15827 /^X\(\/\/\)[^/].*/{
15828 s//\1/
15831 /^X\(\/\/\)$/{
15832 s//\1/
15835 /^X\(\/\).*/{
15836 s//\1/
15839 s/.*/./; q'`/stamp-h$_am_stamp_count
15842 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
15843 echo "$as_me: executing $ac_file commands" >&6;}
15845 esac
15848 case $ac_file$ac_mode in
15849 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15850 # Strip MF so we end up with the name of the file.
15851 mf=`echo "$mf" | sed -e 's/:.*$//'`
15852 # Check whether this is an Automake generated Makefile or not.
15853 # We used to match only the files named `Makefile.in', but
15854 # some people rename them; so instead we look at the file content.
15855 # Grep'ing the first line is not enough: some people post-process
15856 # each Makefile.in and add a new line on top of each file to say so.
15857 # Grep'ing the whole file is not good either: AIX grep has a line
15858 # limit of 2048, but all sed's we know have understand at least 4000.
15859 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
15860 dirpart=`$as_dirname -- "$mf" ||
15861 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15862 X"$mf" : 'X\(//\)[^/]' \| \
15863 X"$mf" : 'X\(//\)$' \| \
15864 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15865 echo X"$mf" |
15866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15867 s//\1/
15870 /^X\(\/\/\)[^/].*/{
15871 s//\1/
15874 /^X\(\/\/\)$/{
15875 s//\1/
15878 /^X\(\/\).*/{
15879 s//\1/
15882 s/.*/./; q'`
15883 else
15884 continue
15886 # Extract the definition of DEPDIR, am__include, and am__quote
15887 # from the Makefile without running `make'.
15888 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15889 test -z "$DEPDIR" && continue
15890 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15891 test -z "am__include" && continue
15892 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15893 # When using ansi2knr, U may be empty or an underscore; expand it
15894 U=`sed -n 's/^U = //p' < "$mf"`
15895 # Find all dependency output files, they are included files with
15896 # $(DEPDIR) in their names. We invoke sed twice because it is the
15897 # simplest approach to changing $(DEPDIR) to its actual value in the
15898 # expansion.
15899 for file in `sed -n "
15900 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15901 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15902 # Make sure the directory exists.
15903 test -f "$dirpart/$file" && continue
15904 fdir=`$as_dirname -- "$file" ||
15905 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15906 X"$file" : 'X\(//\)[^/]' \| \
15907 X"$file" : 'X\(//\)$' \| \
15908 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15909 echo X"$file" |
15910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15911 s//\1/
15914 /^X\(\/\/\)[^/].*/{
15915 s//\1/
15918 /^X\(\/\/\)$/{
15919 s//\1/
15922 /^X\(\/\).*/{
15923 s//\1/
15926 s/.*/./; q'`
15927 { as_dir=$dirpart/$fdir
15928 case $as_dir in #(
15929 -*) as_dir=./$as_dir;;
15930 esac
15931 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15932 as_dirs=
15933 while :; do
15934 case $as_dir in #(
15935 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15936 *) as_qdir=$as_dir;;
15937 esac
15938 as_dirs="'$as_qdir' $as_dirs"
15939 as_dir=`$as_dirname -- "$as_dir" ||
15940 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15941 X"$as_dir" : 'X\(//\)[^/]' \| \
15942 X"$as_dir" : 'X\(//\)$' \| \
15943 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15944 echo X"$as_dir" |
15945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15946 s//\1/
15949 /^X\(\/\/\)[^/].*/{
15950 s//\1/
15953 /^X\(\/\/\)$/{
15954 s//\1/
15957 /^X\(\/\).*/{
15958 s//\1/
15961 s/.*/./; q'`
15962 test -d "$as_dir" && break
15963 done
15964 test -z "$as_dirs" || eval "mkdir $as_dirs"
15965 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15966 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15967 { (exit 1); exit 1; }; }; }
15968 # echo "creating $dirpart/$file"
15969 echo '# dummy' > "$dirpart/$file"
15970 done
15971 done
15973 "libtool":C)
15975 # See if we are running on zsh, and set the options which allow our
15976 # commands through without removal of \ escapes.
15977 if test -n "${ZSH_VERSION+set}" ; then
15978 setopt NO_GLOB_SUBST
15981 cfgfile="${ofile}T"
15982 trap "$RM -f \"$cfgfile\"; exit 1" 1 2 15
15983 $RM -f "$cfgfile"
15985 cat <<_LT_EOF >> "$cfgfile"
15986 #! $SHELL
15988 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15989 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15990 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15991 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15993 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15994 # 2006, 2007, 2008 Free Software Foundation, Inc.
15995 # Written by Gordon Matzigkeit, 1996
15997 # This file is part of GNU Libtool.
15999 # GNU Libtool is free software; you can redistribute it and/or
16000 # modify it under the terms of the GNU General Public License as
16001 # published by the Free Software Foundation; either version 2 of
16002 # the License, or (at your option) any later version.
16004 # As a special exception to the GNU General Public License,
16005 # if you distribute this file as part of a program or library that
16006 # is built using GNU Libtool, you may include this file under the
16007 # same distribution terms that you use for the rest of that program.
16009 # GNU Libtool is distributed in the hope that it will be useful,
16010 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16011 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16012 # GNU General Public License for more details.
16014 # You should have received a copy of the GNU General Public License
16015 # along with GNU Libtool; see the file COPYING. If not, a copy
16016 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16017 # obtained by writing to the Free Software Foundation, Inc.,
16018 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16021 # The names of the tagged configurations supported by this script.
16022 available_tags=""
16024 # ### BEGIN LIBTOOL CONFIG
16026 # Assembler program.
16027 AS=$AS
16029 # DLL creation program.
16030 DLLTOOL=$DLLTOOL
16032 # Object dumper program.
16033 OBJDUMP=$OBJDUMP
16035 # Which release of libtool.m4 was used?
16036 macro_version=$macro_version
16037 macro_revision=$macro_revision
16039 # Whether or not to build shared libraries.
16040 build_libtool_libs=$enable_shared
16042 # Whether or not to build static libraries.
16043 build_old_libs=$enable_static
16045 # What type of objects to build.
16046 pic_mode=$pic_mode
16048 # Whether or not to optimize for fast installation.
16049 fast_install=$enable_fast_install
16051 # The host system.
16052 host_alias=$host_alias
16053 host=$host
16054 host_os=$host_os
16056 # The build system.
16057 build_alias=$build_alias
16058 build=$build
16059 build_os=$build_os
16061 # A sed program that does not truncate output.
16062 SED=$lt_SED
16064 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16065 Xsed="\$SED -e 1s/^X//"
16067 # A grep program that handles long lines.
16068 GREP=$lt_GREP
16070 # An ERE matcher.
16071 EGREP=$lt_EGREP
16073 # A literal string matcher.
16074 FGREP=$lt_FGREP
16076 # A BSD- or MS-compatible name lister.
16077 NM=$lt_NM
16079 # Whether we need soft or hard links.
16080 LN_S=$lt_LN_S
16082 # What is the maximum length of a command?
16083 max_cmd_len=$max_cmd_len
16085 # Object file suffix (normally "o").
16086 objext=$ac_objext
16088 # Executable file suffix (normally "").
16089 exeext=$exeext
16091 # whether the shell understands "unset".
16092 lt_unset=$lt_unset
16094 # turn spaces into newlines.
16095 SP2NL=$lt_lt_SP2NL
16097 # turn newlines into spaces.
16098 NL2SP=$lt_lt_NL2SP
16100 # How to create reloadable object files.
16101 reload_flag=$lt_reload_flag
16102 reload_cmds=$lt_reload_cmds
16104 # Method to check whether dependent libraries are shared objects.
16105 deplibs_check_method=$lt_deplibs_check_method
16107 # Command to use when deplibs_check_method == "file_magic".
16108 file_magic_cmd=$lt_file_magic_cmd
16110 # The archiver.
16111 AR=$lt_AR
16112 AR_FLAGS=$lt_AR_FLAGS
16114 # A symbol stripping program.
16115 STRIP=$lt_STRIP
16117 # Commands used to install an old-style archive.
16118 RANLIB=$lt_RANLIB
16119 old_postinstall_cmds=$lt_old_postinstall_cmds
16120 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16122 # A C compiler.
16123 LTCC=$lt_CC
16125 # LTCC compiler flags.
16126 LTCFLAGS=$lt_CFLAGS
16128 # Take the output of nm and produce a listing of raw symbols and C names.
16129 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16131 # Transform the output of nm in a proper C declaration.
16132 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16134 # Transform the output of nm in a C name address pair.
16135 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16137 # Transform the output of nm in a C name address pair when lib prefix is needed.
16138 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16140 # The name of the directory that contains temporary libtool files.
16141 objdir=$objdir
16143 # Shell to use when invoking shell scripts.
16144 SHELL=$lt_SHELL
16146 # An echo program that does not interpret backslashes.
16147 ECHO=$lt_ECHO
16149 # Used to examine libraries when file_magic_cmd begins with "file".
16150 MAGIC_CMD=$MAGIC_CMD
16152 # Must we lock files when doing compilation?
16153 need_locks=$lt_need_locks
16155 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16156 DSYMUTIL=$lt_DSYMUTIL
16158 # Tool to change global to local symbols on Mac OS X.
16159 NMEDIT=$lt_NMEDIT
16161 # Tool to manipulate fat objects and archives on Mac OS X.
16162 LIPO=$lt_LIPO
16164 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16165 OTOOL=$lt_OTOOL
16167 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16168 OTOOL64=$lt_OTOOL64
16170 # Old archive suffix (normally "a").
16171 libext=$libext
16173 # Shared library suffix (normally ".so").
16174 shrext_cmds=$lt_shrext_cmds
16176 # The commands to extract the exported symbol list from a shared archive.
16177 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16179 # Variables whose values should be saved in libtool wrapper scripts and
16180 # restored at link time.
16181 variables_saved_for_relink=$lt_variables_saved_for_relink
16183 # Do we need the "lib" prefix for modules?
16184 need_lib_prefix=$need_lib_prefix
16186 # Do we need a version for libraries?
16187 need_version=$need_version
16189 # Library versioning type.
16190 version_type=$version_type
16192 # Shared library runtime path variable.
16193 runpath_var=$runpath_var
16195 # Shared library path variable.
16196 shlibpath_var=$shlibpath_var
16198 # Is shlibpath searched before the hard-coded library search path?
16199 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16201 # Format of library name prefix.
16202 libname_spec=$lt_libname_spec
16204 # List of archive names. First name is the real one, the rest are links.
16205 # The last name is the one that the linker finds with -lNAME
16206 library_names_spec=$lt_library_names_spec
16208 # The coded name of the library, if different from the real name.
16209 soname_spec=$lt_soname_spec
16211 # Command to use after installation of a shared archive.
16212 postinstall_cmds=$lt_postinstall_cmds
16214 # Command to use after uninstallation of a shared archive.
16215 postuninstall_cmds=$lt_postuninstall_cmds
16217 # Commands used to finish a libtool library installation in a directory.
16218 finish_cmds=$lt_finish_cmds
16220 # As "finish_cmds", except a single script fragment to be evaled but
16221 # not shown.
16222 finish_eval=$lt_finish_eval
16224 # Whether we should hardcode library paths into libraries.
16225 hardcode_into_libs=$hardcode_into_libs
16227 # Compile-time system search path for libraries.
16228 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16230 # Run-time system search path for libraries.
16231 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16233 # Whether dlopen is supported.
16234 dlopen_support=$enable_dlopen
16236 # Whether dlopen of programs is supported.
16237 dlopen_self=$enable_dlopen_self
16239 # Whether dlopen of statically linked programs is supported.
16240 dlopen_self_static=$enable_dlopen_self_static
16242 # Commands to strip libraries.
16243 old_striplib=$lt_old_striplib
16244 striplib=$lt_striplib
16247 # The linker used to build libraries.
16248 LD=$lt_LD
16250 # Commands used to build an old-style archive.
16251 old_archive_cmds=$lt_old_archive_cmds
16253 # A language specific compiler.
16254 CC=$lt_compiler
16256 # Is the compiler the GNU compiler?
16257 with_gcc=$GCC
16259 # Compiler flag to turn off builtin functions.
16260 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16262 # How to pass a linker flag through the compiler.
16263 wl=$lt_lt_prog_compiler_wl
16265 # Additional compiler flags for building library objects.
16266 pic_flag=$lt_lt_prog_compiler_pic
16268 # Compiler flag to prevent dynamic linking.
16269 link_static_flag=$lt_lt_prog_compiler_static
16271 # Does compiler simultaneously support -c and -o options?
16272 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16274 # Whether or not to add -lc for building shared libraries.
16275 build_libtool_need_lc=$archive_cmds_need_lc
16277 # Whether or not to disallow shared libs when runtime libs are static.
16278 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16280 # Compiler flag to allow reflexive dlopens.
16281 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16283 # Compiler flag to generate shared objects directly from archives.
16284 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16286 # Whether the compiler copes with passing no objects directly.
16287 compiler_needs_object=$lt_compiler_needs_object
16289 # Create an old-style archive from a shared archive.
16290 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16292 # Create a temporary old-style archive to link instead of a shared archive.
16293 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16295 # Commands used to build a shared archive.
16296 archive_cmds=$lt_archive_cmds
16297 archive_expsym_cmds=$lt_archive_expsym_cmds
16299 # Commands used to build a loadable module if different from building
16300 # a shared archive.
16301 module_cmds=$lt_module_cmds
16302 module_expsym_cmds=$lt_module_expsym_cmds
16304 # Whether we are building with GNU ld or not.
16305 with_gnu_ld=$lt_with_gnu_ld
16307 # Flag that allows shared libraries with undefined symbols to be built.
16308 allow_undefined_flag=$lt_allow_undefined_flag
16310 # Flag that enforces no undefined symbols.
16311 no_undefined_flag=$lt_no_undefined_flag
16313 # Flag to hardcode \$libdir into a binary during linking.
16314 # This must work even if \$libdir does not exist
16315 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16317 # If ld is used when linking, flag to hardcode \$libdir into a binary
16318 # during linking. This must work even if \$libdir does not exist.
16319 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16321 # Whether we need a single "-rpath" flag with a separated argument.
16322 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16324 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16325 # DIR into the resulting binary.
16326 hardcode_direct=$hardcode_direct
16328 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16329 # DIR into the resulting binary and the resulting library dependency is
16330 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16331 # library is relocated.
16332 hardcode_direct_absolute=$hardcode_direct_absolute
16334 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16335 # into the resulting binary.
16336 hardcode_minus_L=$hardcode_minus_L
16338 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16339 # into the resulting binary.
16340 hardcode_shlibpath_var=$hardcode_shlibpath_var
16342 # Set to "yes" if building a shared library automatically hardcodes DIR
16343 # into the library and all subsequent libraries and executables linked
16344 # against it.
16345 hardcode_automatic=$hardcode_automatic
16347 # Set to yes if linker adds runtime paths of dependent libraries
16348 # to runtime path list.
16349 inherit_rpath=$inherit_rpath
16351 # Whether libtool must link a program against all its dependency libraries.
16352 link_all_deplibs=$link_all_deplibs
16354 # Fix the shell variable \$srcfile for the compiler.
16355 fix_srcfile_path=$lt_fix_srcfile_path
16357 # Set to "yes" if exported symbols are required.
16358 always_export_symbols=$always_export_symbols
16360 # The commands to list exported symbols.
16361 export_symbols_cmds=$lt_export_symbols_cmds
16363 # Symbols that should not be listed in the preloaded symbols.
16364 exclude_expsyms=$lt_exclude_expsyms
16366 # Symbols that must always be exported.
16367 include_expsyms=$lt_include_expsyms
16369 # Commands necessary for linking programs (against libraries) with templates.
16370 prelink_cmds=$lt_prelink_cmds
16372 # Specify filename containing input files.
16373 file_list_spec=$lt_file_list_spec
16375 # How to hardcode a shared library path into an executable.
16376 hardcode_action=$hardcode_action
16378 # ### END LIBTOOL CONFIG
16380 _LT_EOF
16382 case $host_os in
16383 aix3*)
16384 cat <<\_LT_EOF >> "$cfgfile"
16385 # AIX sometimes has problems with the GCC collect2 program. For some
16386 # reason, if we set the COLLECT_NAMES environment variable, the problems
16387 # vanish in a puff of smoke.
16388 if test "X${COLLECT_NAMES+set}" != Xset; then
16389 COLLECT_NAMES=
16390 export COLLECT_NAMES
16392 _LT_EOF
16394 esac
16397 ltmain="$ac_aux_dir/ltmain.sh"
16400 # We use sed instead of cat because bash on DJGPP gets confused if
16401 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16402 # text mode, it properly converts lines to CR/LF. This bash problem
16403 # is reportedly fixed, but why not run on old versions too?
16404 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16405 || (rm -f "$cfgfile"; exit 1)
16407 case $xsi_shell in
16408 yes)
16409 cat << \_LT_EOF >> "$cfgfile"
16411 # func_dirname file append nondir_replacement
16412 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16413 # otherwise set result to NONDIR_REPLACEMENT.
16414 func_dirname ()
16416 case ${1} in
16417 */*) func_dirname_result="${1%/*}${2}" ;;
16418 * ) func_dirname_result="${3}" ;;
16419 esac
16422 # func_basename file
16423 func_basename ()
16425 func_basename_result="${1##*/}"
16428 # func_dirname_and_basename file append nondir_replacement
16429 # perform func_basename and func_dirname in a single function
16430 # call:
16431 # dirname: Compute the dirname of FILE. If nonempty,
16432 # add APPEND to the result, otherwise set result
16433 # to NONDIR_REPLACEMENT.
16434 # value returned in "$func_dirname_result"
16435 # basename: Compute filename of FILE.
16436 # value retuned in "$func_basename_result"
16437 # Implementation must be kept synchronized with func_dirname
16438 # and func_basename. For efficiency, we do not delegate to
16439 # those functions but instead duplicate the functionality here.
16440 func_dirname_and_basename ()
16442 case ${1} in
16443 */*) func_dirname_result="${1%/*}${2}" ;;
16444 * ) func_dirname_result="${3}" ;;
16445 esac
16446 func_basename_result="${1##*/}"
16449 # func_stripname prefix suffix name
16450 # strip PREFIX and SUFFIX off of NAME.
16451 # PREFIX and SUFFIX must not contain globbing or regex special
16452 # characters, hashes, percent signs, but SUFFIX may contain a leading
16453 # dot (in which case that matches only a dot).
16454 func_stripname ()
16456 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16457 # positional parameters, so assign one to ordinary parameter first.
16458 func_stripname_result=${3}
16459 func_stripname_result=${func_stripname_result#"${1}"}
16460 func_stripname_result=${func_stripname_result%"${2}"}
16463 # func_opt_split
16464 func_opt_split ()
16466 func_opt_split_opt=${1%%=*}
16467 func_opt_split_arg=${1#*=}
16470 # func_lo2o object
16471 func_lo2o ()
16473 case ${1} in
16474 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16475 *) func_lo2o_result=${1} ;;
16476 esac
16479 # func_xform libobj-or-source
16480 func_xform ()
16482 func_xform_result=${1%.*}.lo
16485 # func_arith arithmetic-term...
16486 func_arith ()
16488 func_arith_result=$(( $* ))
16491 # func_len string
16492 # STRING may not start with a hyphen.
16493 func_len ()
16495 func_len_result=${#1}
16498 _LT_EOF
16500 *) # Bourne compatible functions.
16501 cat << \_LT_EOF >> "$cfgfile"
16503 # func_dirname file append nondir_replacement
16504 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16505 # otherwise set result to NONDIR_REPLACEMENT.
16506 func_dirname ()
16508 # Extract subdirectory from the argument.
16509 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16510 if test "X$func_dirname_result" = "X${1}"; then
16511 func_dirname_result="${3}"
16512 else
16513 func_dirname_result="$func_dirname_result${2}"
16517 # func_basename file
16518 func_basename ()
16520 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16524 # func_stripname prefix suffix name
16525 # strip PREFIX and SUFFIX off of NAME.
16526 # PREFIX and SUFFIX must not contain globbing or regex special
16527 # characters, hashes, percent signs, but SUFFIX may contain a leading
16528 # dot (in which case that matches only a dot).
16529 # func_strip_suffix prefix name
16530 func_stripname ()
16532 case ${2} in
16533 .*) func_stripname_result=`$ECHO "X${3}" \
16534 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16535 *) func_stripname_result=`$ECHO "X${3}" \
16536 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16537 esac
16540 # sed scripts:
16541 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16542 my_sed_long_arg='1s/^-[^=]*=//'
16544 # func_opt_split
16545 func_opt_split ()
16547 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16548 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16551 # func_lo2o object
16552 func_lo2o ()
16554 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16557 # func_xform libobj-or-source
16558 func_xform ()
16560 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16563 # func_arith arithmetic-term...
16564 func_arith ()
16566 func_arith_result=`expr "$@"`
16569 # func_len string
16570 # STRING may not start with a hyphen.
16571 func_len ()
16573 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16576 _LT_EOF
16577 esac
16579 case $lt_shell_append in
16580 yes)
16581 cat << \_LT_EOF >> "$cfgfile"
16583 # func_append var value
16584 # Append VALUE to the end of shell variable VAR.
16585 func_append ()
16587 eval "$1+=\$2"
16589 _LT_EOF
16592 cat << \_LT_EOF >> "$cfgfile"
16594 # func_append var value
16595 # Append VALUE to the end of shell variable VAR.
16596 func_append ()
16598 eval "$1=\$$1\$2"
16601 _LT_EOF
16603 esac
16606 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16607 || (rm -f "$cfgfile"; exit 1)
16609 mv -f "$cfgfile" "$ofile" ||
16610 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16611 chmod +x "$ofile"
16615 esac
16616 done # for ac_tag
16619 { (exit 0); exit 0; }
16620 _ACEOF
16621 chmod +x $CONFIG_STATUS
16622 ac_clean_files=$ac_clean_files_save
16625 # configure is writing to config.log, and then calls config.status.
16626 # config.status does its own redirection, appending to config.log.
16627 # Unfortunately, on DOS this fails, as config.log is still kept open
16628 # by configure, so config.status won't be able to write to it; its
16629 # output is simply discarded. So we exec the FD to /dev/null,
16630 # effectively closing config.log, so it can be properly (re)opened and
16631 # appended to by config.status. When coming back to configure, we
16632 # need to make the FD available again.
16633 if test "$no_create" != yes; then
16634 ac_cs_success=:
16635 ac_config_status_args=
16636 test "$silent" = yes &&
16637 ac_config_status_args="$ac_config_status_args --quiet"
16638 exec 5>/dev/null
16639 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16640 exec 5>>config.log
16641 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16642 # would make configure fail if this is the last instruction.
16643 $ac_cs_success || { (exit 1); exit 1; }