2 # Copyright (C) 2004-2010 Internet Systems Consortium, Inc. ("ISC")
3 # Copyright (C) 1996-2003 Internet Software Consortium.
5 # Permission to use, copy, modify, and/or distribute this software for any
6 # purpose with or without fee is hereby granted, provided that the above
7 # copyright notice and this permission notice appear in all copies.
9 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 # PERFORMANCE OF THIS SOFTWARE.
17 # $Id: configure,v 1.473.22.4 2010/05/26 23:47:44 marka Exp $
19 # Portions Copyright (C) 1996-2001 Nominum, Inc.
21 # Permission to use, copy, modify, and distribute this software for any
22 # purpose with or without fee is hereby granted, provided that the above
23 # copyright notice and this permission notice appear in all copies.
25 # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
26 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
27 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
28 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
29 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
30 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
31 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
32 # From configure.in Revision: 1.489.22.5 .
33 # Guess values for system-dependent variables and create Makefiles.
34 # Generated by GNU Autoconf 2.62.
36 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
37 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
38 # This configure script is free software; the Free Software Foundation
39 # gives unlimited permission to copy, distribute and modify it.
40 ## --------------------- ##
41 ## M4sh Initialization. ##
42 ## --------------------- ##
44 # Be more Bourne compatible
45 DUALCASE=1; export DUALCASE # for MKS sh
46 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
49 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
50 # is contrary to our usage. Disable this feature.
51 alias -g '${1+"$@"}'='"$@"'
54 case `(set -o) 2>/dev/null` in
55 *posix*) set -o posix ;;
64 # Avoid depending upon Character Ranges.
65 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
66 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
67 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
68 as_cr_digits='0123456789'
69 as_cr_alnum=$as_cr_Letters$as_cr_digits
74 # Printing a long string crashes Solaris 7 /usr/bin/printf.
75 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
76 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
77 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
78 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
82 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
83 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
84 as_echo_n='/usr/ucb/echo -n'
86 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
91 expr "X$arg" : "X\\(.*\\)$as_nl";
92 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
94 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
97 as_echo_n='sh -c $as_echo_n_body as_echo'
100 as_echo='sh -c $as_echo_body as_echo'
103 # The user is always right.
104 if test "${PATH_SEPARATOR+set}" != set; then
106 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
107 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
112 # Support unset when possible.
113 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
121 # We need space, tab and new line, in precisely that order. Quoting is
122 # there to prevent editors from complaining about space-tab.
123 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
124 # splitting by setting IFS to empty value.)
127 # Find who we are. Look in the path if we contain no directory separator.
129 *[\\/]* ) as_myself=$0 ;;
130 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 test -z "$as_dir" && as_dir=.
135 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
141 # We did not find ourselves, most probably we were run as `sh COMMAND'
142 # in which case we are not to be found in the path.
143 if test "x$as_myself" = x; then
146 if test ! -f "$as_myself"; then
147 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
148 { (exit 1); exit 1; }
151 # Work around bugs in pre-3.0 UWIN ksh.
152 for as_var in ENV MAIL MAILPATH
153 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
165 # Required to use basename.
166 if expr a : '\(a\)' >/dev/null 2>&1 &&
167 test "X`expr 00001 : '.*\(...\)'`" = X001; then
173 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
180 # Name of the executable.
181 as_me=`$as_basename -- "$0" ||
182 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
183 X"$0" : 'X\(//\)$' \| \
184 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
186 sed '/^.*\/\([^/][^/]*\)\/*$/{
204 if test "x$CONFIG_SHELL" = x; then
205 if (eval ":") 2>/dev/null; then
211 if test $as_have_required = yes && (eval ":
221 as_func_ret_success () {
224 as_func_ret_failure () {
229 if as_func_success; then
233 echo as_func_success failed.
236 if as_func_failure; then
238 echo as_func_failure succeeded.
241 if as_func_ret_success; then
245 echo as_func_ret_success failed.
248 if as_func_ret_failure; then
250 echo as_func_ret_failure succeeded.
253 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
257 echo positional parameters were not saved.
260 test \$exitcode = 0) || { (exit 1); exit 1; }
265 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
266 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
267 ") 2> /dev/null; then
271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
272 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
275 test -z "$as_dir" && as_dir=.
278 for as_base in sh bash ksh sh5; do
279 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
286 for as_shell in $as_candidate_shells $SHELL; do
287 # Try only shells that exist, to save several forks.
288 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
289 { ("$as_shell") 2> /dev/null <<\_ASEOF
290 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
293 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
294 # is contrary to our usage. Disable this feature.
295 alias -g '${1+"$@"}'='"$@"'
298 case `(set -o) 2>/dev/null` in
299 *posix*) set -o posix ;;
308 CONFIG_SHELL=$as_shell
310 if { "$as_shell" 2> /dev/null <<\_ASEOF
311 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
314 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
315 # is contrary to our usage. Disable this feature.
316 alias -g '${1+"$@"}'='"$@"'
319 case `(set -o) 2>/dev/null` in
320 *posix*) set -o posix ;;
336 as_func_ret_success () {
339 as_func_ret_failure () {
344 if as_func_success; then
348 echo as_func_success failed.
351 if as_func_failure; then
353 echo as_func_failure succeeded.
356 if as_func_ret_success; then
360 echo as_func_ret_success failed.
363 if as_func_ret_failure; then
365 echo as_func_ret_failure succeeded.
368 if ( set x; as_func_ret_success y && test x = "$1" ); then
372 echo positional parameters were not saved.
375 test $exitcode = 0) || { (exit 1); exit 1; }
380 test "x$as_lineno_1" != "x$as_lineno_2" &&
381 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
392 if test "x$CONFIG_SHELL" != x; then
393 for as_var in BASH_ENV ENV
394 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
397 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
401 if test $as_have_required = no; then
402 echo This script requires a shell more modern than all the
403 echo shells that I found on your system. Please install a
404 echo modern shell, or manually run the script under such a
405 echo shell if you do have one.
406 { (exit 1); exit 1; }
416 (eval "as_func_return () {
425 as_func_ret_success () {
428 as_func_ret_failure () {
433 if as_func_success; then
437 echo as_func_success failed.
440 if as_func_failure; then
442 echo as_func_failure succeeded.
445 if as_func_ret_success; then
449 echo as_func_ret_success failed.
452 if as_func_ret_failure; then
454 echo as_func_ret_failure succeeded.
457 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
461 echo positional parameters were not saved.
464 test \$exitcode = 0") || {
465 echo No shell found that supports shell functions.
466 echo Please tell bug-autoconf@gnu.org about your system,
467 echo including any error possibly output before this message.
468 echo This can help us improve future autoconf versions.
469 echo Configuration will now proceed without shell functions.
476 test "x$as_lineno_1" != "x$as_lineno_2" &&
477 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
479 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
480 # uniformly replaced by the line number. The first 'sed' inserts a
481 # line-number line after each line using $LINENO; the second 'sed'
482 # does the real work. The second script uses 'N' to pair each
483 # line-number line with the line containing $LINENO, and appends
484 # trailing '-' during substitution so that $LINENO is not a special
486 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
487 # scripts with optimization help from Paolo Bonzini. Blame Lee
488 # E. McMahon (1931-1989) for sed's syntax. :-)
500 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
504 chmod +x "$as_me.lineno" ||
505 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
506 { (exit 1); exit 1; }; }
508 # Don't try to exec as it changes $[0], causing all sort of problems
509 # (the dirname of $[0] is not the place where we might find the
510 # original and so on. Autoconf is especially sensitive to this).
512 # Exit status is that of the last command.
517 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
523 ECHO_C= ECHO_N= ECHO_T=
527 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 if expr a : '\(a\)' >/dev/null 2>&1 &&
534 test "X`expr 00001 : '.*\(...\)'`" = X001; then
540 rm -f conf$$ conf$$.exe conf$$.file
541 if test -d conf$$.dir; then
542 rm -f conf$$.dir/conf$$.file
545 mkdir conf$$.dir 2>/dev/null
547 if (echo >conf$$.file) 2>/dev/null; then
548 if ln -s conf$$.file conf$$ 2>/dev/null; then
550 # ... but there are two gotchas:
551 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
552 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
553 # In both cases, we have to default to `cp -p'.
554 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
556 elif ln conf$$.file conf$$ 2>/dev/null; then
564 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
565 rmdir conf$$.dir 2>/dev/null
567 if mkdir -p . 2>/dev/null; then
570 test -d ./-p && rmdir ./-p
574 if test -x / >/dev/null 2>&1; then
577 if ls -dL / >/dev/null 2>&1; then
584 if test -d "$1"; then
590 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
591 ???[sx]*):;;*)false;;esac;fi
595 as_executable_p=$as_test_x
597 # Sed expression to map a string onto a valid CPP name.
598 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
600 # Sed expression to map a string onto a valid variable name.
601 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
606 # Check that we are running under the correct shell.
607 SHELL=${CONFIG_SHELL-/bin/sh}
611 # Remove one level of quotation (which was required for Make).
612 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
617 if test "X$1" = X--no-reexec; then
618 # Discard the --no-reexec flag, and continue.
620 elif test "X$1" = X--fallback-echo; then
621 # Avoid inline document here, it may be left over
623 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
624 # Yippee, $echo works!
627 # Restart under the correct shell.
628 exec $SHELL "$0" --no-reexec ${1+"$@"}
631 if test "X$1" = X--fallback-echo; then
632 # used as fallback echo
640 # The HP-UX ksh and POSIX shell print the target directory to stdout
642 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
644 if test -z "$ECHO"; then
645 if test "X${echo_test_string+set}" != Xset; then
646 # find a string as large as possible, as long as the shell can cope with it
647 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
648 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
649 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
650 echo_test_string=`eval $cmd` &&
651 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
658 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
659 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
660 test "X$echo_testing_string" = "X$echo_test_string"; then
663 # The Solaris, AIX, and Digital Unix default echo programs unquote
664 # backslashes. This makes it impossible to quote backslashes using
665 # echo "$something" | sed 's/\\/\\\\/g'
667 # So, first we look for a working echo in the user's PATH.
669 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
670 for dir in $PATH /usr/ucb; do
672 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
673 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
674 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
675 test "X$echo_testing_string" = "X$echo_test_string"; then
682 if test "X$echo" = Xecho; then
683 # We didn't find a better echo, so look for alternatives.
684 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
685 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
686 test "X$echo_testing_string" = "X$echo_test_string"; then
687 # This shell has a builtin print -r that does the trick.
689 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
690 test "X$CONFIG_SHELL" != X/bin/ksh; then
691 # If we have ksh, try running configure again with it.
692 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
693 export ORIGINAL_CONFIG_SHELL
694 CONFIG_SHELL=/bin/ksh
696 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
700 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
701 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
702 test "X$echo_testing_string" = "X$echo_test_string"; then
705 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
706 test "X$echo_testing_string" = 'X\t' &&
707 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
708 test "X$echo_testing_string" = "X$echo_test_string"; then
709 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
711 SHELL="$CONFIG_SHELL"
713 echo="$CONFIG_SHELL $0 --fallback-echo"
714 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
715 test "X$echo_testing_string" = 'X\t' &&
716 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
717 test "X$echo_testing_string" = "X$echo_test_string"; then
718 echo="$CONFIG_SHELL $0 --fallback-echo"
720 # maybe with a smaller string...
723 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
724 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
731 if test "$prev" != 'sed 50q "$0"'; then
732 echo_test_string=`eval $prev`
733 export echo_test_string
734 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
736 # Oops. We lost completely, so just stick with echo.
745 # Copy echo and quote the copy suitably for passing to libtool from
746 # the Makefile, instead of quoting the original, which is used later.
748 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
749 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
755 tagnames=${tagnames+${tagnames},}CXX
757 tagnames=${tagnames+${tagnames},}F77
759 exec 7<&0 </dev/null 6>&1
762 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
763 # so uname gets run too.
764 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
769 ac_default_prefix=/usr/local
771 ac_config_libobj_dir=.
777 SHELL=${CONFIG_SHELL-/bin/sh}
779 # Identity of this package.
786 ac_unique_file="lib/dns/name.c"
787 # Factoring default headers for most tests.
788 ac_includes_default="\
790 #ifdef HAVE_SYS_TYPES_H
791 # include <sys/types.h>
793 #ifdef HAVE_SYS_STAT_H
794 # include <sys/stat.h>
800 # ifdef HAVE_STDLIB_H
805 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
810 #ifdef HAVE_STRINGS_H
811 # include <strings.h>
813 #ifdef HAVE_INTTYPES_H
814 # include <inttypes.h>
832 program_transform_name
907 ISC_PLATFORM_HAVELONGLONG
908 ISC_PLATFORM_NORETURN_PRE
909 ISC_PLATFORM_NORETURN_POST
910 ISC_PLATFORM_HAVELIFCONF
911 ISC_PLATFORM_HAVEKQUEUE
912 ISC_PLATFORM_HAVEEPOLL
913 ISC_PLATFORM_HAVEDEVPOLL
914 ISC_PLATFORM_NEEDSYSSELECTH
915 LWRES_PLATFORM_NEEDSYSSELECTH
918 ISC_PLATFORM_OPENSSLHASH
923 ISC_PLATFORM_HAVEGSSAPI
924 ISC_PLATFORM_GSSAPIHEADER
930 ISC_PLATFORM_USETHREADS
935 IRIX_DNSSEC_WARNINGS_HACK
938 ISC_PLATFORM_USEBACKTRACE
948 LIBTOOL_ALLOW_UNDEFINED
954 ISC_PLATFORM_HAVEIPV6
955 LWRES_PLATFORM_HAVEIPV6
956 ISC_PLATFORM_NEEDNETINETIN6H
957 LWRES_PLATFORM_NEEDNETINETIN6H
958 ISC_PLATFORM_NEEDNETINET6IN6H
959 LWRES_PLATFORM_NEEDNETINET6IN6H
960 ISC_PLATFORM_HAVEINADDR6
961 LWRES_PLATFORM_HAVEINADDR6
962 ISC_PLATFORM_NEEDIN6ADDRANY
963 LWRES_PLATFORM_NEEDIN6ADDRANY
964 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK
965 LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK
966 ISC_PLATFORM_HAVEIN6PKTINFO
967 ISC_PLATFORM_FIXIN6ISADDR
972 LWRES_HAVE_SIN6_SCOPE_ID
973 ISC_PLATFORM_HAVESCOPEID
974 ISC_PLATFORM_HAVEIF_LADDRREQ
975 ISC_PLATFORM_HAVEIF_LADDRCONF
976 ISC_PLATFORM_NEEDNTOP
977 ISC_PLATFORM_NEEDPTON
978 ISC_PLATFORM_HAVESALEN
979 LWRES_PLATFORM_HAVESALEN
980 ISC_PLATFORM_MSGHDRFLAVOR
981 ISC_PLATFORM_NEEDPORTT
982 ISC_LWRES_NEEDADDRINFO
984 ISC_LWRES_NEEDRRSETINFO
985 ISC_LWRES_SETHOSTENTINT
986 ISC_LWRES_ENDHOSTENTINT
987 ISC_LWRES_GETNETBYADDRINADDR
988 ISC_LWRES_SETNETENTINT
989 ISC_LWRES_ENDNETENTINT
990 ISC_LWRES_GETHOSTBYADDRVOID
992 ISC_LWRES_GETIPNODEPROTO
993 ISC_LWRES_GETADDRINFOPROTO
994 ISC_LWRES_GETNAMEINFOPROTO
995 ISC_IRS_GETNAMEINFOSOCKLEN
996 ISC_PLATFORM_NEEDSTRSEP
997 ISC_PLATFORM_NEEDMEMMOVE
998 ISC_PLATFORM_NEEDSTRTOUL
999 LWRES_PLATFORM_NEEDSTRTOUL
1001 ISC_PLATFORM_NEEDSTRLCPY
1002 ISC_PLATFORM_NEEDSTRLCAT
1003 ISC_PLATFORM_NEEDSPRINTF
1004 LWRES_PLATFORM_NEEDSPRINTF
1005 ISC_PLATFORM_NEEDVSNPRINTF
1006 LWRES_PLATFORM_NEEDVSNPRINTF
1012 ISC_PLATFORM_QUADFORMAT
1013 LWRES_PLATFORM_QUADFORMAT
1014 ISC_PLATFORM_HAVESYSUNH
1015 ISC_PLATFORM_RLIMITTYPE
1016 ISC_PLATFORM_USEDECLSPEC
1017 LWRES_PLATFORM_USEDECLSPEC
1018 IRS_PLATFORM_USEDECLSPEC
1019 ISC_PLATFORM_BRACEPTHREADONCEINIT
1020 ISC_PLATFORM_HAVESTRINGSH
1021 ISC_PLATFORM_HAVEIFNAMETOINDEX
1022 ISC_PLATFORM_HAVEXADD
1023 ISC_PLATFORM_HAVEXADDQ
1024 ISC_PLATFORM_HAVECMPXCHG
1025 ISC_PLATFORM_HAVEATOMICSTORE
1026 ISC_PLATFORM_USEGCCASM
1027 ISC_PLATFORM_USEOSFASM
1028 ISC_PLATFORM_USESTDASM
1029 ISC_PLATFORM_USEMACASM
1037 XSLT_DOCBOOK_STYLE_HTML
1038 XSLT_DOCBOOK_STYLE_XHTML
1039 XSLT_DOCBOOK_STYLE_MAN
1040 XSLT_DOCBOOK_CHUNK_HTML
1041 XSLT_DOCBOOK_CHUNK_XHTML
1042 XSLT_DOCBOOK_CHUNKTOC_HTML
1043 XSLT_DOCBOOK_CHUNKTOC_XHTML
1044 XSLT_DOCBOOK_MAKETOC_HTML
1045 XSLT_DOCBOOK_MAKETOC_XHTML
1047 XSLT_DB2LATEX_ADMONITIONS
1050 BIND9_ISC_BUILDINCLUDE
1051 BIND9_ISCCC_BUILDINCLUDE
1052 BIND9_ISCCFG_BUILDINCLUDE
1053 BIND9_DNS_BUILDINCLUDE
1054 BIND9_LWRES_BUILDINCLUDE
1055 BIND9_BIND9_BUILDINCLUDE
1071 ac_subst_files='BIND9_MAKE_INCLUDES
1082 enable_option_checking
1095 enable_openssl_version_check
1110 with_export_includedir
1134 ac_precious_vars='build_alias
1151 # Initialize some variables set by options.
1153 ac_init_version=false
1154 ac_unrecognized_opts=
1155 ac_unrecognized_sep=
1156 # The variables have the same names as the options, with
1157 # dashes changed to underlines.
1158 cache_file=/dev/null
1165 program_transform_name=s,x,x,
1173 # Installation directory options.
1174 # These are left unexpanded so users can "make install exec_prefix=/foo"
1175 # and all the variables that are supposed to be based on exec_prefix
1176 # by default will actually change.
1177 # Use braces instead of parens because sh, perl, etc. also accept them.
1178 # (The list follows the same order as the GNU Coding Standards.)
1179 bindir='${exec_prefix}/bin'
1180 sbindir='${exec_prefix}/sbin'
1181 libexecdir='${exec_prefix}/libexec'
1182 datarootdir='${prefix}/share'
1183 datadir='${datarootdir}'
1184 sysconfdir='${prefix}/etc'
1185 sharedstatedir='${prefix}/com'
1186 localstatedir='${prefix}/var'
1187 includedir='${prefix}/include'
1188 oldincludedir='/usr/include'
1189 docdir='${datarootdir}/doc/${PACKAGE}'
1190 infodir='${datarootdir}/info'
1195 libdir='${exec_prefix}/lib'
1196 localedir='${datarootdir}/locale'
1197 mandir='${datarootdir}/man'
1203 # If the previous option needs an argument, assign it.
1204 if test -n "$ac_prev"; then
1205 eval $ac_prev=\$ac_option
1211 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1215 # Accept the important Cygnus configure options, so we can diagnose typos.
1217 case $ac_dashdash$ac_option in
1221 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1223 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1224 bindir=$ac_optarg ;;
1226 -build | --build | --buil | --bui | --bu)
1227 ac_prev=build_alias ;;
1228 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1229 build_alias=$ac_optarg ;;
1231 -cache-file | --cache-file | --cache-fil | --cache-fi \
1232 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1233 ac_prev=cache_file ;;
1234 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1235 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1236 cache_file=$ac_optarg ;;
1238 --config-cache | -C)
1239 cache_file=config.cache ;;
1241 -datadir | --datadir | --datadi | --datad)
1243 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1244 datadir=$ac_optarg ;;
1246 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1247 | --dataroo | --dataro | --datar)
1248 ac_prev=datarootdir ;;
1249 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1250 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1251 datarootdir=$ac_optarg ;;
1253 -disable-* | --disable-*)
1254 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1258 { (exit 1); exit 1; }; }
1259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1263 "enable_$ac_useropt"
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1268 eval enable_$ac_useropt=no ;;
1270 -docdir | --docdir | --docdi | --doc | --do)
1272 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1273 docdir=$ac_optarg ;;
1275 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1277 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1278 dvidir=$ac_optarg ;;
1280 -enable-* | --enable-*)
1281 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1285 { (exit 1); exit 1; }; }
1286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1290 "enable_$ac_useropt"
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1295 eval enable_$ac_useropt=\$ac_optarg ;;
1297 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1298 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1299 | --exec | --exe | --ex)
1300 ac_prev=exec_prefix ;;
1301 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1302 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1303 | --exec=* | --exe=* | --ex=*)
1304 exec_prefix=$ac_optarg ;;
1306 -gas | --gas | --ga | --g)
1307 # Obsolete; use --with-gas.
1310 -help | --help | --hel | --he | -h)
1311 ac_init_help=long ;;
1312 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1313 ac_init_help=recursive ;;
1314 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1315 ac_init_help=short ;;
1317 -host | --host | --hos | --ho)
1318 ac_prev=host_alias ;;
1319 -host=* | --host=* | --hos=* | --ho=*)
1320 host_alias=$ac_optarg ;;
1322 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1324 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1326 htmldir=$ac_optarg ;;
1328 -includedir | --includedir | --includedi | --included | --include \
1329 | --includ | --inclu | --incl | --inc)
1330 ac_prev=includedir ;;
1331 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1332 | --includ=* | --inclu=* | --incl=* | --inc=*)
1333 includedir=$ac_optarg ;;
1335 -infodir | --infodir | --infodi | --infod | --info | --inf)
1337 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1338 infodir=$ac_optarg ;;
1340 -libdir | --libdir | --libdi | --libd)
1342 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1343 libdir=$ac_optarg ;;
1345 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1346 | --libexe | --libex | --libe)
1347 ac_prev=libexecdir ;;
1348 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1349 | --libexe=* | --libex=* | --libe=*)
1350 libexecdir=$ac_optarg ;;
1352 -localedir | --localedir | --localedi | --localed | --locale)
1353 ac_prev=localedir ;;
1354 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1355 localedir=$ac_optarg ;;
1357 -localstatedir | --localstatedir | --localstatedi | --localstated \
1358 | --localstate | --localstat | --localsta | --localst | --locals)
1359 ac_prev=localstatedir ;;
1360 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1361 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1362 localstatedir=$ac_optarg ;;
1364 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1366 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1367 mandir=$ac_optarg ;;
1369 -nfp | --nfp | --nf)
1370 # Obsolete; use --without-fp.
1373 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1374 | --no-cr | --no-c | -n)
1377 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1378 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1381 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1382 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1383 | --oldin | --oldi | --old | --ol | --o)
1384 ac_prev=oldincludedir ;;
1385 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1386 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1387 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1388 oldincludedir=$ac_optarg ;;
1390 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1392 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1393 prefix=$ac_optarg ;;
1395 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1396 | --program-pre | --program-pr | --program-p)
1397 ac_prev=program_prefix ;;
1398 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1399 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1400 program_prefix=$ac_optarg ;;
1402 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1403 | --program-suf | --program-su | --program-s)
1404 ac_prev=program_suffix ;;
1405 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1406 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1407 program_suffix=$ac_optarg ;;
1409 -program-transform-name | --program-transform-name \
1410 | --program-transform-nam | --program-transform-na \
1411 | --program-transform-n | --program-transform- \
1412 | --program-transform | --program-transfor \
1413 | --program-transfo | --program-transf \
1414 | --program-trans | --program-tran \
1415 | --progr-tra | --program-tr | --program-t)
1416 ac_prev=program_transform_name ;;
1417 -program-transform-name=* | --program-transform-name=* \
1418 | --program-transform-nam=* | --program-transform-na=* \
1419 | --program-transform-n=* | --program-transform-=* \
1420 | --program-transform=* | --program-transfor=* \
1421 | --program-transfo=* | --program-transf=* \
1422 | --program-trans=* | --program-tran=* \
1423 | --progr-tra=* | --program-tr=* | --program-t=*)
1424 program_transform_name=$ac_optarg ;;
1426 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1428 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1429 pdfdir=$ac_optarg ;;
1431 -psdir | --psdir | --psdi | --psd | --ps)
1433 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1436 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1437 | -silent | --silent | --silen | --sile | --sil)
1440 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1442 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1444 sbindir=$ac_optarg ;;
1446 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1447 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1448 | --sharedst | --shareds | --shared | --share | --shar \
1450 ac_prev=sharedstatedir ;;
1451 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1452 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1453 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1455 sharedstatedir=$ac_optarg ;;
1457 -site | --site | --sit)
1459 -site=* | --site=* | --sit=*)
1462 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1464 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1465 srcdir=$ac_optarg ;;
1467 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1468 | --syscon | --sysco | --sysc | --sys | --sy)
1469 ac_prev=sysconfdir ;;
1470 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1471 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1472 sysconfdir=$ac_optarg ;;
1474 -target | --target | --targe | --targ | --tar | --ta | --t)
1475 ac_prev=target_alias ;;
1476 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1477 target_alias=$ac_optarg ;;
1479 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1482 -version | --version | --versio | --versi | --vers | -V)
1483 ac_init_version=: ;;
1486 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1487 # Reject names that are not valid shell variable names.
1488 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1489 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1490 { (exit 1); exit 1; }; }
1491 ac_useropt_orig=$ac_useropt
1492 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1493 case $ac_user_opts in
1497 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1498 ac_unrecognized_sep=', ';;
1500 eval with_$ac_useropt=\$ac_optarg ;;
1502 -without-* | --without-*)
1503 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1504 # Reject names that are not valid shell variable names.
1505 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1506 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1507 { (exit 1); exit 1; }; }
1508 ac_useropt_orig=$ac_useropt
1509 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1510 case $ac_user_opts in
1514 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1515 ac_unrecognized_sep=', ';;
1517 eval with_$ac_useropt=no ;;
1520 # Obsolete; use --with-x.
1523 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1524 | --x-incl | --x-inc | --x-in | --x-i)
1525 ac_prev=x_includes ;;
1526 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1527 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1528 x_includes=$ac_optarg ;;
1530 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1531 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1532 ac_prev=x_libraries ;;
1533 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1534 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1535 x_libraries=$ac_optarg ;;
1537 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1538 Try \`$0 --help' for more information." >&2
1539 { (exit 1); exit 1; }; }
1543 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1544 # Reject names that are not valid shell variable names.
1545 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1546 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1547 { (exit 1); exit 1; }; }
1548 eval $ac_envvar=\$ac_optarg
1549 export $ac_envvar ;;
1552 # FIXME: should be removed in autoconf 3.0.
1553 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1554 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1555 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1556 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1562 if test -n "$ac_prev"; then
1563 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1564 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1565 { (exit 1); exit 1; }; }
1568 if test -n "$ac_unrecognized_opts"; then
1569 case $enable_option_checking in
1571 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1572 { (exit 1); exit 1; }; } ;;
1573 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1577 # Check all directory arguments for consistency.
1578 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1579 datadir sysconfdir sharedstatedir localstatedir includedir \
1580 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1581 libdir localedir mandir
1583 eval ac_val=\$$ac_var
1584 # Remove trailing slashes.
1587 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1588 eval $ac_var=\$ac_val;;
1590 # Be sure to have absolute directory names.
1592 [\\/$]* | ?:[\\/]* ) continue;;
1593 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1595 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1596 { (exit 1); exit 1; }; }
1599 # There might be people who depend on the old broken behavior: `$host'
1600 # used to hold the argument of --host etc.
1601 # FIXME: To remove some day.
1604 target=$target_alias
1606 # FIXME: To remove some day.
1607 if test "x$host_alias" != x; then
1608 if test "x$build_alias" = x; then
1609 cross_compiling=maybe
1610 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1611 If a cross compiler is detected then cross compile mode will be used." >&2
1612 elif test "x$build_alias" != "x$host_alias"; then
1618 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1620 test "$silent" = yes && exec 6>/dev/null
1623 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1624 ac_ls_di=`ls -di .` &&
1625 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1626 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1627 { (exit 1); exit 1; }; }
1628 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1629 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1630 { (exit 1); exit 1; }; }
1633 # Find the source files, if location was not specified.
1634 if test -z "$srcdir"; then
1635 ac_srcdir_defaulted=yes
1636 # Try the directory containing this script, then the parent directory.
1637 ac_confdir=`$as_dirname -- "$as_myself" ||
1638 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1639 X"$as_myself" : 'X\(//\)[^/]' \| \
1640 X"$as_myself" : 'X\(//\)$' \| \
1641 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1642 $as_echo X"$as_myself" |
1643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1661 if test ! -r "$srcdir/$ac_unique_file"; then
1665 ac_srcdir_defaulted=no
1667 if test ! -r "$srcdir/$ac_unique_file"; then
1668 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1669 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1670 { (exit 1); exit 1; }; }
1672 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1674 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1675 { (exit 1); exit 1; }; }
1677 # When building in place, set srcdir=.
1678 if test "$ac_abs_confdir" = "$ac_pwd"; then
1681 # Remove unnecessary trailing slashes from srcdir.
1682 # Double slashes in file names in object file debugging info
1683 # mess up M-x gdb in Emacs.
1685 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1687 for ac_var in $ac_precious_vars; do
1688 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1689 eval ac_env_${ac_var}_value=\$${ac_var}
1690 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1691 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1695 # Report the --help message.
1697 if test "$ac_init_help" = "long"; then
1698 # Omit some internal or obsolete options to make the list less imposing.
1699 # This message is too long to be a string in the A/UX 3.1 sh.
1701 \`configure' configures this package to adapt to many kinds of systems.
1703 Usage: $0 [OPTION]... [VAR=VALUE]...
1705 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1706 VAR=VALUE. See below for descriptions of some of the useful variables.
1708 Defaults for the options are specified in brackets.
1711 -h, --help display this help and exit
1712 --help=short display options specific to this package
1713 --help=recursive display the short help of all the included packages
1714 -V, --version display version information and exit
1715 -q, --quiet, --silent do not print \`checking...' messages
1716 --cache-file=FILE cache test results in FILE [disabled]
1717 -C, --config-cache alias for \`--cache-file=config.cache'
1718 -n, --no-create do not create output files
1719 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1721 Installation directories:
1722 --prefix=PREFIX install architecture-independent files in PREFIX
1723 [$ac_default_prefix]
1724 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1727 By default, \`make install' will install all the files in
1728 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1729 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1730 for instance \`--prefix=\$HOME'.
1732 For better control, use the options below.
1734 Fine tuning of the installation directories:
1735 --bindir=DIR user executables [EPREFIX/bin]
1736 --sbindir=DIR system admin executables [EPREFIX/sbin]
1737 --libexecdir=DIR program executables [EPREFIX/libexec]
1738 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1739 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1740 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1741 --libdir=DIR object code libraries [EPREFIX/lib]
1742 --includedir=DIR C header files [PREFIX/include]
1743 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1744 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1745 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1746 --infodir=DIR info documentation [DATAROOTDIR/info]
1747 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1748 --mandir=DIR man documentation [DATAROOTDIR/man]
1749 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1750 --htmldir=DIR html documentation [DOCDIR]
1751 --dvidir=DIR dvi documentation [DOCDIR]
1752 --pdfdir=DIR pdf documentation [DOCDIR]
1753 --psdir=DIR ps documentation [DOCDIR]
1759 --build=BUILD configure for building on BUILD [guessed]
1760 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1764 if test -n "$ac_init_help"; then
1769 --disable-option-checking ignore unrecognized --enable/--with options
1770 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1771 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1772 --enable-shared[=PKGS] build shared libraries [default=yes]
1773 --enable-static[=PKGS] build static libraries [default=yes]
1774 --enable-fast-install[=PKGS]
1775 optimize for fast installation [default=yes]
1776 --disable-libtool-lock avoid locking (might break parallel builds)
1777 --enable-libbind deprecated
1778 --enable-kqueue use BSD kqueue when available [default=yes]
1779 --enable-epoll use Linux epoll when available [default=auto]
1780 --enable-devpoll use /dev/poll when available [default=yes]
1781 --enable-openssl-version-check
1782 Check OpenSSL Version [default=yes]
1783 --enable-openssl-hash use OpenSSL for hash functions [default=no]
1784 --enable-threads enable multithreading
1785 --enable-largefile 64-bit file support
1786 --enable-backtrace log stack backtrace on abort [default=yes]
1787 --enable-symtable use internal symbol table for backtrace
1788 [all|minimal(default)|none]
1789 --enable-exportlib build exportable library (GNU make required)
1791 --enable-ipv6 use IPv6 default=autodetect
1792 --enable-getifaddrs Enable the use of getifaddrs() [yes|no].
1793 --disable-isc-spnego use SPNEGO from GSSAPI library
1794 --disable-chroot disable chroot
1795 --disable-linux-caps disable linux capabilities
1796 --enable-atomic enable machine specific atomic operations
1797 [default=autodetect]
1798 --enable-fixed-rrset enable fixed rrset ordering
1800 --enable-filter-aaaa enable filtering of AAAA records over IPv4
1804 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1805 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1806 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1807 --with-pic try to use only PIC/non-PIC objects [default=use
1809 --with-tags[=TAGS] include additional configurations [automatic]
1810 --with-openssl=PATH Build with OpenSSL yes|no|path.
1811 (Required for DNSSEC)
1812 --with-pkcs11=PATH Build with PKCS11 support yes|no|path
1813 (PATH is for the PKCS11 provider)
1814 --with-gssapi=PATH Specify path for system-supplied GSSAPI
1815 --with-randomdev=PATH Specify path for random device
1816 --with-ptl2 on NetBSD, use the ptl2 thread library (experimental)
1817 --with-libxml2=PATH Build with libxml2 library yes|no|path
1818 --with-purify=PATH use Rational purify
1819 --with-libtool use GNU libtool
1820 --with-export-libdir=PATH
1821 installation directory for the export library
1823 --with-export-includedir=PATH
1824 installation directory for the header files of the
1825 export library [PREFIX/include/bind9]
1826 --with-kame=PATH use Kame IPv6 default path /usr/local/v6
1827 --with-docbook-xsl=PATH Specify path for Docbook-XSL stylesheets
1828 --with-idn=MPREFIX enable IDN support using idnkit default PREFIX
1829 --with-libiconv=IPREFIX GNU libiconv are in IPREFIX default PREFIX
1830 --with-iconv=LIBSPEC specify iconv library default -liconv
1831 --with-idnlib=ARG specify libidnkit
1832 --with-dlz-postgres=PATH Build with Postgres DLZ driver yes|no|path.
1833 (Required to use Postgres with DLZ)
1834 --with-dlz-mysql=PATH Build with MySQL DLZ driver yes|no|path.
1835 (Required to use MySQL with DLZ)
1836 --with-dlz-bdb=PATH Build with Berkeley DB DLZ driver yes|no|path.
1837 (Required to use Berkeley DB with DLZ)
1838 --with-dlz-filesystem=PATH Build with filesystem DLZ driver yes|no.
1839 (Required to use file system driver with DLZ)
1840 --with-dlz-ldap=PATH Build with LDAP DLZ driver yes|no|path.
1841 (Required to use LDAP with DLZ)
1842 --with-dlz-odbc=PATH Build with ODBC DLZ driver yes|no|path.
1843 (Required to use ODBC with DLZ)
1844 --with-dlz-stub=PATH Build with stub DLZ driver yes|no.
1845 (Required to use stub driver with DLZ)
1846 --with-make-clean Run "make clean" at end of configure [yes|no].
1848 Some influential environment variables:
1849 CC C compiler command
1850 CFLAGS C compiler flags
1851 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1852 nonstandard directory <lib dir>
1853 LIBS libraries to pass to the linker, e.g. -l<library>
1854 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1855 you have headers in a nonstandard directory <include dir>
1857 CXX C++ compiler command
1858 CXXFLAGS C++ compiler flags
1859 CXXCPP C++ preprocessor
1860 F77 Fortran 77 compiler command
1861 FFLAGS Fortran 77 compiler flags
1863 Use these variables to override the choices made by `configure' or to help
1864 it to find libraries and programs with nonstandard names/locations.
1870 if test "$ac_init_help" = "recursive"; then
1871 # If there are subdirs, report their specific --help.
1872 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1873 test -d "$ac_dir" ||
1874 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1879 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1881 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1882 # A ".." for each directory in $ac_dir_suffix.
1883 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1884 case $ac_top_builddir_sub in
1885 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1886 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1889 ac_abs_top_builddir=$ac_pwd
1890 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1891 # for backward compatibility:
1892 ac_top_builddir=$ac_top_build_prefix
1895 .) # We are building in place.
1897 ac_top_srcdir=$ac_top_builddir_sub
1898 ac_abs_top_srcdir=$ac_pwd ;;
1899 [\\/]* | ?:[\\/]* ) # Absolute name.
1900 ac_srcdir=$srcdir$ac_dir_suffix;
1901 ac_top_srcdir=$srcdir
1902 ac_abs_top_srcdir=$srcdir ;;
1904 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1905 ac_top_srcdir=$ac_top_build_prefix$srcdir
1906 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1908 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1910 cd "$ac_dir" || { ac_status=$?; continue; }
1911 # Check for guested configure.
1912 if test -f "$ac_srcdir/configure.gnu"; then
1914 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1915 elif test -f "$ac_srcdir/configure"; then
1917 $SHELL "$ac_srcdir/configure" --help=recursive
1919 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1921 cd "$ac_pwd" || { ac_status=$?; break; }
1925 test -n "$ac_init_help" && exit $ac_status
1926 if $ac_init_version; then
1929 generated by GNU Autoconf 2.62
1931 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1932 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1933 This configure script is free software; the Free Software Foundation
1934 gives unlimited permission to copy, distribute and modify it.
1938 cat >config.log <<_ACEOF
1939 This file contains any messages produced by compilers while
1940 running configure, to aid debugging if configure makes a mistake.
1942 It was created by $as_me, which was
1943 generated by GNU Autoconf 2.62. Invocation command line was
1955 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1956 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1957 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1958 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1959 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1961 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1962 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1964 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1965 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1966 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1967 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1968 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1969 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1970 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 test -z "$as_dir" && as_dir=.
1979 $as_echo "PATH: $as_dir"
1995 # Keep a trace of the command line.
1996 # Strip out --no-create and --no-recursion so they do not pile up.
1997 # Strip out --silent because we don't want to record it for future runs.
1998 # Also quote any args containing shell meta-characters.
1999 # Make two passes to allow for proper duplicate-argument suppression.
2003 ac_must_keep_next=false
2009 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2011 | -silent | --silent | --silen | --sile | --sil)
2014 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2017 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2019 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2020 if test $ac_must_keep_next = true; then
2021 ac_must_keep_next=false # Got value, back to normal.
2024 *=* | --config-cache | -C | -disable-* | --disable-* \
2025 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2026 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2027 | -with-* | --with-* | -without-* | --without-* | --x)
2028 case "$ac_configure_args0 " in
2029 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2032 -* ) ac_must_keep_next=true ;;
2035 ac_configure_args="$ac_configure_args '$ac_arg'"
2040 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2041 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2043 # When interrupted or exit'd, cleanup temporary files, and complete
2044 # config.log. We remove comments because anyway the quotes in there
2045 # would cause problems or look ugly.
2046 # WARNING: Use '\'' to represent an apostrophe within the trap.
2047 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2048 trap 'exit_status=$?
2049 # Save into config.log some information that might help in debugging.
2054 ## ---------------- ##
2055 ## Cache variables. ##
2056 ## ---------------- ##
2059 # The following way of writing the cache mishandles newlines in values,
2061 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2062 eval ac_val=\$$ac_var
2066 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2067 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2070 _ | IFS | as_nl) ;; #(
2071 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2072 *) $as_unset $ac_var ;;
2077 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2078 *${as_nl}ac_space=\ *)
2080 "s/'\''/'\''\\\\'\'''\''/g;
2081 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2084 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2092 ## ----------------- ##
2093 ## Output variables. ##
2094 ## ----------------- ##
2097 for ac_var in $ac_subst_vars
2099 eval ac_val=\$$ac_var
2101 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2103 $as_echo "$ac_var='\''$ac_val'\''"
2107 if test -n "$ac_subst_files"; then
2109 ## ------------------- ##
2110 ## File substitutions. ##
2111 ## ------------------- ##
2114 for ac_var in $ac_subst_files
2116 eval ac_val=\$$ac_var
2118 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2120 $as_echo "$ac_var='\''$ac_val'\''"
2125 if test -s confdefs.h; then
2135 test "$ac_signal" != 0 &&
2136 $as_echo "$as_me: caught signal $ac_signal"
2137 $as_echo "$as_me: exit $exit_status"
2139 rm -f core *.core core.conftest.* &&
2140 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2143 for ac_signal in 1 2 13 15; do
2144 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2148 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2149 rm -f -r conftest* confdefs.h
2151 # Predefined preprocessor variables.
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_NAME "$PACKAGE_NAME"
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_STRING "$PACKAGE_STRING"
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2178 # Let the site file select an alternate cache file if it wants to.
2179 # Prefer an explicitly selected file to automatically selected ones.
2182 if test -n "$CONFIG_SITE"; then
2183 ac_site_file1=$CONFIG_SITE
2184 elif test "x$prefix" != xNONE; then
2185 ac_site_file1=$prefix/share/config.site
2186 ac_site_file2=$prefix/etc/config.site
2188 ac_site_file1=$ac_default_prefix/share/config.site
2189 ac_site_file2=$ac_default_prefix/etc/config.site
2191 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2193 test "x$ac_site_file" = xNONE && continue
2194 if test -r "$ac_site_file"; then
2195 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2196 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2197 sed 's/^/| /' "$ac_site_file" >&5
2202 if test -r "$cache_file"; then
2203 # Some versions of bash will fail to source /dev/null (special
2204 # files actually), so we avoid doing that.
2205 if test -f "$cache_file"; then
2206 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2207 $as_echo "$as_me: loading cache $cache_file" >&6;}
2209 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2210 *) . "./$cache_file";;
2214 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2215 $as_echo "$as_me: creating cache $cache_file" >&6;}
2219 # Check that the precious variables saved in the cache have kept the same
2221 ac_cache_corrupted=false
2222 for ac_var in $ac_precious_vars; do
2223 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2224 eval ac_new_set=\$ac_env_${ac_var}_set
2225 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2226 eval ac_new_val=\$ac_env_${ac_var}_value
2227 case $ac_old_set,$ac_new_set in
2229 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2230 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2231 ac_cache_corrupted=: ;;
2233 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2234 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2235 ac_cache_corrupted=: ;;
2238 if test "x$ac_old_val" != "x$ac_new_val"; then
2239 # differences in whitespace do not lead to failure.
2240 ac_old_val_w=`echo x $ac_old_val`
2241 ac_new_val_w=`echo x $ac_new_val`
2242 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2243 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2244 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2245 ac_cache_corrupted=:
2247 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2248 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2249 eval $ac_var=\$ac_old_val
2251 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2252 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2253 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2254 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2257 # Pass precious variables to config.status.
2258 if test "$ac_new_set" = set; then
2260 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2261 *) ac_arg=$ac_var=$ac_new_val ;;
2263 case " $ac_configure_args " in
2264 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2265 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2269 if $ac_cache_corrupted; then
2270 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2271 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2272 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2273 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2274 { (exit 1); exit 1; }; }
2294 ac_cpp='$CPP $CPPFLAGS'
2295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2302 ac_config_headers="$ac_config_headers config.h"
2306 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2307 if test -f "$ac_dir/install-sh"; then
2309 ac_install_sh="$ac_aux_dir/install-sh -c"
2311 elif test -f "$ac_dir/install.sh"; then
2313 ac_install_sh="$ac_aux_dir/install.sh -c"
2315 elif test -f "$ac_dir/shtool"; then
2317 ac_install_sh="$ac_aux_dir/shtool install -c"
2321 if test -z "$ac_aux_dir"; then
2322 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2323 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2324 { (exit 1); exit 1; }; }
2327 # These three variables are undocumented and unsupported,
2328 # and are intended to be withdrawn in a future Autoconf release.
2329 # They can cause serious problems if a builder's source tree is in a directory
2330 # whose full name contains unusual characters.
2331 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2332 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2333 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2336 # Make sure we can run config.sub.
2337 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2338 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2339 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2340 { (exit 1); exit 1; }; }
2342 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2343 $as_echo_n "checking build system type... " >&6; }
2344 if test "${ac_cv_build+set}" = set; then
2345 $as_echo_n "(cached) " >&6
2347 ac_build_alias=$build_alias
2348 test "x$ac_build_alias" = x &&
2349 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2350 test "x$ac_build_alias" = x &&
2351 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2352 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2353 { (exit 1); exit 1; }; }
2354 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2355 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2356 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2357 { (exit 1); exit 1; }; }
2360 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2361 $as_echo "$ac_cv_build" >&6; }
2362 case $ac_cv_build in
2364 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2365 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2366 { (exit 1); exit 1; }; };;
2369 ac_save_IFS=$IFS; IFS='-'
2375 # Remember, the first character of IFS is used to create $*,
2376 # except with old shells:
2379 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2382 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2383 $as_echo_n "checking host system type... " >&6; }
2384 if test "${ac_cv_host+set}" = set; then
2385 $as_echo_n "(cached) " >&6
2387 if test "x$host_alias" = x; then
2388 ac_cv_host=$ac_cv_build
2390 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2391 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2392 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2393 { (exit 1); exit 1; }; }
2397 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2398 $as_echo "$ac_cv_host" >&6; }
2401 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2402 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2403 { (exit 1); exit 1; }; };;
2406 ac_save_IFS=$IFS; IFS='-'
2412 # Remember, the first character of IFS is used to create $*,
2413 # except with old shells:
2416 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2420 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2421 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2423 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2424 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2425 $as_echo_n "(cached) " >&6
2427 cat >conftest.make <<\_ACEOF
2430 @echo '@@@%%%=$(MAKE)=@@@%%%'
2432 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2433 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2435 eval ac_cv_prog_make_${ac_make}_set=yes;;
2437 eval ac_cv_prog_make_${ac_make}_set=no;;
2441 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2442 { $as_echo "$as_me:$LINENO: result: yes" >&5
2443 $as_echo "yes" >&6; }
2446 { $as_echo "$as_me:$LINENO: result: no" >&5
2447 $as_echo "no" >&6; }
2448 SET_MAKE="MAKE=${MAKE-make}"
2453 # GNU libtool support
2457 # Just set the maximum command line length for sunos as it otherwise
2458 # takes a exceptionally long time to work it out. Required for libtool.
2460 lt_cv_sys_max_cmd_len=4096;
2464 # Check whether --enable-shared was given.
2465 if test "${enable_shared+set}" = set; then
2466 enableval=$enable_shared; p=${PACKAGE-default}
2468 yes) enable_shared=yes ;;
2469 no) enable_shared=no ;;
2472 # Look at the argument we got. We use all the common list separators.
2473 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2474 for pkg in $enableval; do
2476 if test "X$pkg" = "X$p"; then
2488 # Check whether --enable-static was given.
2489 if test "${enable_static+set}" = set; then
2490 enableval=$enable_static; p=${PACKAGE-default}
2492 yes) enable_static=yes ;;
2493 no) enable_static=no ;;
2496 # Look at the argument we got. We use all the common list separators.
2497 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2498 for pkg in $enableval; do
2500 if test "X$pkg" = "X$p"; then
2512 # Check whether --enable-fast-install was given.
2513 if test "${enable_fast_install+set}" = set; then
2514 enableval=$enable_fast_install; p=${PACKAGE-default}
2516 yes) enable_fast_install=yes ;;
2517 no) enable_fast_install=no ;;
2519 enable_fast_install=no
2520 # Look at the argument we got. We use all the common list separators.
2521 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2522 for pkg in $enableval; do
2524 if test "X$pkg" = "X$p"; then
2525 enable_fast_install=yes
2532 enable_fast_install=yes
2537 ac_cpp='$CPP $CPPFLAGS'
2538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2541 if test -n "$ac_tool_prefix"; then
2542 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2543 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2544 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2545 $as_echo_n "checking for $ac_word... " >&6; }
2546 if test "${ac_cv_prog_CC+set}" = set; then
2547 $as_echo_n "(cached) " >&6
2549 if test -n "$CC"; then
2550 ac_cv_prog_CC="$CC" # Let the user override the test.
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
2558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2559 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2560 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 if test -n "$CC"; then
2571 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2572 $as_echo "$CC" >&6; }
2574 { $as_echo "$as_me:$LINENO: result: no" >&5
2575 $as_echo "no" >&6; }
2580 if test -z "$ac_cv_prog_CC"; then
2582 # Extract the first word of "gcc", so it can be a program name with args.
2583 set dummy gcc; ac_word=$2
2584 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2585 $as_echo_n "checking for $ac_word... " >&6; }
2586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2587 $as_echo_n "(cached) " >&6
2589 if test -n "$ac_ct_CC"; then
2590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2599 ac_cv_prog_ac_ct_CC="gcc"
2600 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2610 if test -n "$ac_ct_CC"; then
2611 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2612 $as_echo "$ac_ct_CC" >&6; }
2614 { $as_echo "$as_me:$LINENO: result: no" >&5
2615 $as_echo "no" >&6; }
2618 if test "x$ac_ct_CC" = x; then
2621 case $cross_compiling:$ac_tool_warned in
2623 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2624 whose name does not start with the host triplet. If you think this
2625 configuration is useful to you, please write to autoconf@gnu.org." >&5
2626 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2627 whose name does not start with the host triplet. If you think this
2628 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2629 ac_tool_warned=yes ;;
2637 if test -z "$CC"; then
2638 if test -n "$ac_tool_prefix"; then
2639 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2640 set dummy ${ac_tool_prefix}cc; ac_word=$2
2641 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2642 $as_echo_n "checking for $ac_word... " >&6; }
2643 if test "${ac_cv_prog_CC+set}" = set; then
2644 $as_echo_n "(cached) " >&6
2646 if test -n "$CC"; then
2647 ac_cv_prog_CC="$CC" # Let the user override the test.
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2656 ac_cv_prog_CC="${ac_tool_prefix}cc"
2657 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 if test -n "$CC"; then
2668 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2669 $as_echo "$CC" >&6; }
2671 { $as_echo "$as_me:$LINENO: result: no" >&5
2672 $as_echo "no" >&6; }
2678 if test -z "$CC"; then
2679 # Extract the first word of "cc", so it can be a program name with args.
2680 set dummy cc; ac_word=$2
2681 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2682 $as_echo_n "checking for $ac_word... " >&6; }
2683 if test "${ac_cv_prog_CC+set}" = set; then
2684 $as_echo_n "(cached) " >&6
2686 if test -n "$CC"; then
2687 ac_cv_prog_CC="$CC" # Let the user override the test.
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2698 ac_prog_rejected=yes
2702 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 if test $ac_prog_rejected = yes; then
2710 # We found a bogon in the path, so make sure we never use it.
2711 set dummy $ac_cv_prog_CC
2713 if test $# != 0; then
2714 # We chose a different compiler from the bogus one.
2715 # However, it has the same basename, so the bogon will be chosen
2716 # first if we set CC to just the basename; use the full file name.
2718 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2724 if test -n "$CC"; then
2725 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2726 $as_echo "$CC" >&6; }
2728 { $as_echo "$as_me:$LINENO: result: no" >&5
2729 $as_echo "no" >&6; }
2734 if test -z "$CC"; then
2735 if test -n "$ac_tool_prefix"; then
2736 for ac_prog in cl.exe
2738 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2739 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2740 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2741 $as_echo_n "checking for $ac_word... " >&6; }
2742 if test "${ac_cv_prog_CC+set}" = set; then
2743 $as_echo_n "(cached) " >&6
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC="$CC" # Let the user override the test.
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2756 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 if test -n "$CC"; then
2767 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2768 $as_echo "$CC" >&6; }
2770 { $as_echo "$as_me:$LINENO: result: no" >&5
2771 $as_echo "no" >&6; }
2775 test -n "$CC" && break
2778 if test -z "$CC"; then
2780 for ac_prog in cl.exe
2782 # Extract the first word of "$ac_prog", so it can be a program name with args.
2783 set dummy $ac_prog; ac_word=$2
2784 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2787 $as_echo_n "(cached) " >&6
2789 if test -n "$ac_ct_CC"; then
2790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799 ac_cv_prog_ac_ct_CC="$ac_prog"
2800 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2810 if test -n "$ac_ct_CC"; then
2811 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2812 $as_echo "$ac_ct_CC" >&6; }
2814 { $as_echo "$as_me:$LINENO: result: no" >&5
2815 $as_echo "no" >&6; }
2819 test -n "$ac_ct_CC" && break
2822 if test "x$ac_ct_CC" = x; then
2825 case $cross_compiling:$ac_tool_warned in
2827 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2828 whose name does not start with the host triplet. If you think this
2829 configuration is useful to you, please write to autoconf@gnu.org." >&5
2830 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2831 whose name does not start with the host triplet. If you think this
2832 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2833 ac_tool_warned=yes ;;
2842 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2843 See \`config.log' for more details." >&5
2844 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2845 See \`config.log' for more details." >&2;}
2846 { (exit 1); exit 1; }; }
2848 # Provide some information about the compiler.
2849 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2852 { (ac_try="$ac_compiler --version >&5"
2854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855 *) ac_try_echo=$ac_try;;
2857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2858 $as_echo "$ac_try_echo") >&5
2859 (eval "$ac_compiler --version >&5") 2>&5
2861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }
2863 { (ac_try="$ac_compiler -v >&5"
2865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866 *) ac_try_echo=$ac_try;;
2868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2869 $as_echo "$ac_try_echo") >&5
2870 (eval "$ac_compiler -v >&5") 2>&5
2872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }
2874 { (ac_try="$ac_compiler -V >&5"
2876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877 *) ac_try_echo=$ac_try;;
2879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2880 $as_echo "$ac_try_echo") >&5
2881 (eval "$ac_compiler -V >&5") 2>&5
2883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }
2886 cat >conftest.$ac_ext <<_ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2901 ac_clean_files_save=$ac_clean_files
2902 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2903 # Try to create an executable without -o first, disregard a.out.
2904 # It will help us diagnose broken compilers, and finding out an intuition
2906 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2907 $as_echo_n "checking for C compiler default output file name... " >&6; }
2908 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2910 # The possible output files:
2911 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2914 for ac_file in $ac_files
2917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2918 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2923 if { (ac_try="$ac_link_default"
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2929 $as_echo "$ac_try_echo") >&5
2930 (eval "$ac_link_default") 2>&5
2932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; then
2934 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2935 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2936 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2937 # so that the user can short-circuit this test for compilers unknown to
2939 for ac_file in $ac_files ''
2941 test -f "$ac_file" || continue
2943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2946 # We found the default executable, but exeext='' is most
2950 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2952 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2954 # We set ac_cv_exeext here because the later test for it is not
2955 # safe: cross compilers may not add the suffix if given an `-o'
2956 # argument, so we may need to know it at that point already.
2957 # Even if this section looks crufty: it has the advantage of
2964 test "$ac_cv_exeext" = no && ac_cv_exeext=
2970 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2971 $as_echo "$ac_file" >&6; }
2972 if test -z "$ac_file"; then
2973 $as_echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2976 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2977 See \`config.log' for more details." >&5
2978 $as_echo "$as_me: error: C compiler cannot create executables
2979 See \`config.log' for more details." >&2;}
2980 { (exit 77); exit 77; }; }
2983 ac_exeext=$ac_cv_exeext
2985 # Check that the compiler produces executables we can run. If not, either
2986 # the compiler is broken, or we cross compile.
2987 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2988 $as_echo_n "checking whether the C compiler works... " >&6; }
2989 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2990 # If not cross compiling, check that we can run a simple program.
2991 if test "$cross_compiling" != yes; then
2992 if { ac_try='./$ac_file'
2993 { (case "(($ac_try" in
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2998 $as_echo "$ac_try_echo") >&5
2999 (eval "$ac_try") 2>&5
3001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3005 if test "$cross_compiling" = maybe; then
3008 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3009 If you meant to cross compile, use \`--host'.
3010 See \`config.log' for more details." >&5
3011 $as_echo "$as_me: error: cannot run C compiled programs.
3012 If you meant to cross compile, use \`--host'.
3013 See \`config.log' for more details." >&2;}
3014 { (exit 1); exit 1; }; }
3018 { $as_echo "$as_me:$LINENO: result: yes" >&5
3019 $as_echo "yes" >&6; }
3021 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3022 ac_clean_files=$ac_clean_files_save
3023 # Check that the compiler produces executables we can run. If not, either
3024 # the compiler is broken, or we cross compile.
3025 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3026 $as_echo_n "checking whether we are cross compiling... " >&6; }
3027 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3028 $as_echo "$cross_compiling" >&6; }
3030 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3031 $as_echo_n "checking for suffix of executables... " >&6; }
3032 if { (ac_try="$ac_link"
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3038 $as_echo "$ac_try_echo") >&5
3039 (eval "$ac_link") 2>&5
3041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; then
3043 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3044 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3045 # work properly (i.e., refer to `conftest.exe'), while it won't with
3047 for ac_file in conftest.exe conftest conftest.*; do
3048 test -f "$ac_file" || continue
3050 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3051 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3057 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3058 See \`config.log' for more details." >&5
3059 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3060 See \`config.log' for more details." >&2;}
3061 { (exit 1); exit 1; }; }
3064 rm -f conftest$ac_cv_exeext
3065 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3066 $as_echo "$ac_cv_exeext" >&6; }
3068 rm -f conftest.$ac_ext
3069 EXEEXT=$ac_cv_exeext
3071 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3072 $as_echo_n "checking for suffix of object files... " >&6; }
3073 if test "${ac_cv_objext+set}" = set; then
3074 $as_echo_n "(cached) " >&6
3076 cat >conftest.$ac_ext <<_ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3091 rm -f conftest.o conftest.obj
3092 if { (ac_try="$ac_compile"
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3098 $as_echo "$ac_try_echo") >&5
3099 (eval "$ac_compile") 2>&5
3101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; then
3103 for ac_file in conftest.o conftest.obj conftest.*; do
3104 test -f "$ac_file" || continue;
3106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3107 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3112 $as_echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3115 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3116 See \`config.log' for more details." >&5
3117 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3118 See \`config.log' for more details." >&2;}
3119 { (exit 1); exit 1; }; }
3122 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3124 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3125 $as_echo "$ac_cv_objext" >&6; }
3126 OBJEXT=$ac_cv_objext
3128 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3129 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3130 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3131 $as_echo_n "(cached) " >&6
3133 cat >conftest.$ac_ext <<_ACEOF
3136 cat confdefs.h >>conftest.$ac_ext
3137 cat >>conftest.$ac_ext <<_ACEOF
3138 /* end confdefs.h. */
3151 rm -f conftest.$ac_objext
3152 if { (ac_try="$ac_compile"
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3158 $as_echo "$ac_try_echo") >&5
3159 (eval "$ac_compile") 2>conftest.er1
3161 grep -v '^ *+' conftest.er1 >conftest.err
3163 cat conftest.err >&5
3164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); } && {
3166 test -z "$ac_c_werror_flag" ||
3167 test ! -s conftest.err
3168 } && test -s conftest.$ac_objext; then
3171 $as_echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3181 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3182 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3183 if test $ac_compiler_gnu = yes; then
3188 ac_test_CFLAGS=${CFLAGS+set}
3189 ac_save_CFLAGS=$CFLAGS
3190 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3191 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3192 if test "${ac_cv_prog_cc_g+set}" = set; then
3193 $as_echo_n "(cached) " >&6
3195 ac_save_c_werror_flag=$ac_c_werror_flag
3196 ac_c_werror_flag=yes
3199 cat >conftest.$ac_ext <<_ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3214 rm -f conftest.$ac_objext
3215 if { (ac_try="$ac_compile"
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3221 $as_echo "$ac_try_echo") >&5
3222 (eval "$ac_compile") 2>conftest.er1
3224 grep -v '^ *+' conftest.er1 >conftest.err
3226 cat conftest.err >&5
3227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } && {
3229 test -z "$ac_c_werror_flag" ||
3230 test ! -s conftest.err
3231 } && test -s conftest.$ac_objext; then
3234 $as_echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3238 cat >conftest.$ac_ext <<_ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h. */
3253 rm -f conftest.$ac_objext
3254 if { (ac_try="$ac_compile"
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3260 $as_echo "$ac_try_echo") >&5
3261 (eval "$ac_compile") 2>conftest.er1
3263 grep -v '^ *+' conftest.er1 >conftest.err
3265 cat conftest.err >&5
3266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } && {
3268 test -z "$ac_c_werror_flag" ||
3269 test ! -s conftest.err
3270 } && test -s conftest.$ac_objext; then
3273 $as_echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3276 ac_c_werror_flag=$ac_save_c_werror_flag
3278 cat >conftest.$ac_ext <<_ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h. */
3293 rm -f conftest.$ac_objext
3294 if { (ac_try="$ac_compile"
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3300 $as_echo "$ac_try_echo") >&5
3301 (eval "$ac_compile") 2>conftest.er1
3303 grep -v '^ *+' conftest.er1 >conftest.err
3305 cat conftest.err >&5
3306 $as_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
3313 $as_echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3326 ac_c_werror_flag=$ac_save_c_werror_flag
3328 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3329 $as_echo "$ac_cv_prog_cc_g" >&6; }
3330 if test "$ac_test_CFLAGS" = set; then
3331 CFLAGS=$ac_save_CFLAGS
3332 elif test $ac_cv_prog_cc_g = yes; then
3333 if test "$GCC" = yes; then
3339 if test "$GCC" = yes; then
3345 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3346 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3347 if test "${ac_cv_prog_cc_c89+set}" = set; then
3348 $as_echo_n "(cached) " >&6
3350 ac_cv_prog_cc_c89=no
3352 cat >conftest.$ac_ext <<_ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h. */
3360 #include <sys/types.h>
3361 #include <sys/stat.h>
3362 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3363 struct buf { int x; };
3364 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3365 static char *e (p, i)
3371 static char *f (char * (*g) (char **, int), char **p, ...)
3376 s = g (p, va_arg (v,int));
3381 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3382 function prototypes and stuff, but not '\xHH' hex character constants.
3383 These don't provoke an error unfortunately, instead are silently treated
3384 as 'x'. The following induces an error, until -std is added to get
3385 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3386 array size at least. It's necessary to write '\x00'==0 to get something
3387 that's true only with -std. */
3388 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3390 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3391 inside strings and character constants. */
3393 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3395 int test (int i, double x);
3396 struct s1 {int (*f) (int a);};
3397 struct s2 {int (*f) (double a);};
3398 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3404 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3409 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3410 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3412 CC="$ac_save_CC $ac_arg"
3413 rm -f conftest.$ac_objext
3414 if { (ac_try="$ac_compile"
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3420 $as_echo "$ac_try_echo") >&5
3421 (eval "$ac_compile") 2>conftest.er1
3423 grep -v '^ *+' conftest.er1 >conftest.err
3425 cat conftest.err >&5
3426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } && {
3428 test -z "$ac_c_werror_flag" ||
3429 test ! -s conftest.err
3430 } && test -s conftest.$ac_objext; then
3431 ac_cv_prog_cc_c89=$ac_arg
3433 $as_echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3439 rm -f core conftest.err conftest.$ac_objext
3440 test "x$ac_cv_prog_cc_c89" != "xno" && break
3442 rm -f conftest.$ac_ext
3447 case "x$ac_cv_prog_cc_c89" in
3449 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3450 $as_echo "none needed" >&6; } ;;
3452 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3453 $as_echo "unsupported" >&6; } ;;
3455 CC="$CC $ac_cv_prog_cc_c89"
3456 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3457 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3462 ac_cpp='$CPP $CPPFLAGS'
3463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3468 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3469 if test "${lt_cv_path_SED+set}" = set; then
3470 $as_echo_n "(cached) " >&6
3472 # Loop through the user's path and test for sed and gsed.
3473 # Then use that list of sed's as ones to test for truncation.
3474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 test -z "$as_dir" && as_dir=.
3479 for lt_ac_prog in sed gsed; do
3480 for ac_exec_ext in '' $ac_executable_extensions; do
3481 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3482 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3490 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3491 # along with /bin/sed that truncates output.
3492 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3493 test ! -f $lt_ac_sed && continue
3494 cat /dev/null > conftest.in
3496 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3497 # Check for GNU sed and select it if it is found.
3498 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3499 lt_cv_path_SED=$lt_ac_sed
3503 cat conftest.in conftest.in >conftest.tmp
3504 mv conftest.tmp conftest.in
3505 cp conftest.in conftest.nl
3507 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3508 cmp -s conftest.out conftest.nl || break
3509 # 10000 chars as input seems more than enough
3510 test $lt_ac_count -gt 10 && break
3511 lt_ac_count=`expr $lt_ac_count + 1`
3512 if test $lt_ac_count -gt $lt_ac_max; then
3513 lt_ac_max=$lt_ac_count
3514 lt_cv_path_SED=$lt_ac_sed
3523 { $as_echo "$as_me:$LINENO: result: $SED" >&5
3524 $as_echo "$SED" >&6; }
3526 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3527 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3528 if test "${ac_cv_path_GREP+set}" = set; then
3529 $as_echo_n "(cached) " >&6
3531 if test -z "$GREP"; then
3532 ac_path_GREP_found=false
3533 # Loop through the user's path and test for each of PROGNAME-LIST
3534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3538 test -z "$as_dir" && as_dir=.
3539 for ac_prog in grep ggrep; do
3540 for ac_exec_ext in '' $ac_executable_extensions; do
3541 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3542 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3543 # Check for GNU ac_path_GREP and select it if it is found.
3544 # Check for GNU $ac_path_GREP
3545 case `"$ac_path_GREP" --version 2>&1` in
3547 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3550 $as_echo_n 0123456789 >"conftest.in"
3553 cat "conftest.in" "conftest.in" >"conftest.tmp"
3554 mv "conftest.tmp" "conftest.in"
3555 cp "conftest.in" "conftest.nl"
3556 $as_echo 'GREP' >> "conftest.nl"
3557 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3558 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3559 ac_count=`expr $ac_count + 1`
3560 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3561 # Best one so far, save it but keep looking for a better one
3562 ac_cv_path_GREP="$ac_path_GREP"
3563 ac_path_GREP_max=$ac_count
3565 # 10*(2^10) chars as input seems more than enough
3566 test $ac_count -gt 10 && break
3568 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3571 $ac_path_GREP_found && break 3
3576 if test -z "$ac_cv_path_GREP"; then
3577 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3578 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3579 { (exit 1); exit 1; }; }
3582 ac_cv_path_GREP=$GREP
3586 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3587 $as_echo "$ac_cv_path_GREP" >&6; }
3588 GREP="$ac_cv_path_GREP"
3591 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3592 $as_echo_n "checking for egrep... " >&6; }
3593 if test "${ac_cv_path_EGREP+set}" = set; then
3594 $as_echo_n "(cached) " >&6
3596 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3597 then ac_cv_path_EGREP="$GREP -E"
3599 if test -z "$EGREP"; then
3600 ac_path_EGREP_found=false
3601 # Loop through the user's path and test for each of PROGNAME-LIST
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3606 test -z "$as_dir" && as_dir=.
3607 for ac_prog in egrep; do
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3610 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3611 # Check for GNU ac_path_EGREP and select it if it is found.
3612 # Check for GNU $ac_path_EGREP
3613 case `"$ac_path_EGREP" --version 2>&1` in
3615 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3618 $as_echo_n 0123456789 >"conftest.in"
3621 cat "conftest.in" "conftest.in" >"conftest.tmp"
3622 mv "conftest.tmp" "conftest.in"
3623 cp "conftest.in" "conftest.nl"
3624 $as_echo 'EGREP' >> "conftest.nl"
3625 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3626 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3627 ac_count=`expr $ac_count + 1`
3628 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3629 # Best one so far, save it but keep looking for a better one
3630 ac_cv_path_EGREP="$ac_path_EGREP"
3631 ac_path_EGREP_max=$ac_count
3633 # 10*(2^10) chars as input seems more than enough
3634 test $ac_count -gt 10 && break
3636 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3639 $ac_path_EGREP_found && break 3
3644 if test -z "$ac_cv_path_EGREP"; then
3645 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3646 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3647 { (exit 1); exit 1; }; }
3650 ac_cv_path_EGREP=$EGREP
3655 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3656 $as_echo "$ac_cv_path_EGREP" >&6; }
3657 EGREP="$ac_cv_path_EGREP"
3661 # Check whether --with-gnu-ld was given.
3662 if test "${with_gnu_ld+set}" = set; then
3663 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3669 if test "$GCC" = yes; then
3670 # Check if gcc -print-prog-name=ld gives a path.
3671 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3672 $as_echo_n "checking for ld used by $CC... " >&6; }
3675 # gcc leaves a trailing carriage return which upsets mingw
3676 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3678 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3681 # Accept absolute paths.
3683 re_direlt='/[^/][^/]*/\.\./'
3684 # Canonicalize the pathname of ld
3685 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3686 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3687 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3689 test -z "$LD" && LD="$ac_prog"
3692 # If it fails, then pretend we aren't using GCC.
3696 # If it is relative, then search for the first ld in PATH.
3700 elif test "$with_gnu_ld" = yes; then
3701 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3702 $as_echo_n "checking for GNU ld... " >&6; }
3704 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3705 $as_echo_n "checking for non-GNU ld... " >&6; }
3707 if test "${lt_cv_path_LD+set}" = set; then
3708 $as_echo_n "(cached) " >&6
3710 if test -z "$LD"; then
3711 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3712 for ac_dir in $PATH; do
3714 test -z "$ac_dir" && ac_dir=.
3715 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3716 lt_cv_path_LD="$ac_dir/$ac_prog"
3717 # Check to see if the program is GNU ld. I'd rather use --version,
3718 # but apparently some variants of GNU ld only accept -v.
3719 # Break only if it was the GNU/non-GNU ld that we prefer.
3720 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3721 *GNU* | *'with BFD'*)
3722 test "$with_gnu_ld" != no && break
3725 test "$with_gnu_ld" != yes && break
3732 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3737 if test -n "$LD"; then
3738 { $as_echo "$as_me:$LINENO: result: $LD" >&5
3739 $as_echo "$LD" >&6; }
3741 { $as_echo "$as_me:$LINENO: result: no" >&5
3742 $as_echo "no" >&6; }
3744 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3745 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3746 { (exit 1); exit 1; }; }
3747 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3748 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3749 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3750 $as_echo_n "(cached) " >&6
3752 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3753 case `$LD -v 2>&1 </dev/null` in
3754 *GNU* | *'with BFD'*)
3755 lt_cv_prog_gnu_ld=yes
3758 lt_cv_prog_gnu_ld=no
3762 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3763 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3764 with_gnu_ld=$lt_cv_prog_gnu_ld
3767 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3768 $as_echo_n "checking for $LD option to reload object files... " >&6; }
3769 if test "${lt_cv_ld_reload_flag+set}" = set; then
3770 $as_echo_n "(cached) " >&6
3772 lt_cv_ld_reload_flag='-r'
3774 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3775 $as_echo "$lt_cv_ld_reload_flag" >&6; }
3776 reload_flag=$lt_cv_ld_reload_flag
3777 case $reload_flag in
3779 *) reload_flag=" $reload_flag" ;;
3781 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3784 if test "$GCC" = yes; then
3785 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3787 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3792 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3793 $as_echo_n "checking for BSD-compatible nm... " >&6; }
3794 if test "${lt_cv_path_NM+set}" = set; then
3795 $as_echo_n "(cached) " >&6
3797 if test -n "$NM"; then
3798 # Let the user override the test.
3801 lt_nm_to_check="${ac_tool_prefix}nm"
3802 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3803 lt_nm_to_check="$lt_nm_to_check nm"
3805 for lt_tmp_nm in $lt_nm_to_check; do
3806 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3807 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3809 test -z "$ac_dir" && ac_dir=.
3810 tmp_nm="$ac_dir/$lt_tmp_nm"
3811 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3812 # Check to see if the nm accepts a BSD-compat flag.
3813 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3814 # nm: unknown option "B" ignored
3815 # Tru64's nm complains that /dev/null is an invalid object file
3816 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3817 */dev/null* | *'Invalid file or object type'*)
3818 lt_cv_path_NM="$tmp_nm -B"
3822 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3824 lt_cv_path_NM="$tmp_nm -p"
3828 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3829 continue # so that we can try to find one that supports BSD flags
3838 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3841 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3842 $as_echo "$lt_cv_path_NM" >&6; }
3845 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3846 $as_echo_n "checking whether ln -s works... " >&6; }
3848 if test "$LN_S" = "ln -s"; then
3849 { $as_echo "$as_me:$LINENO: result: yes" >&5
3850 $as_echo "yes" >&6; }
3852 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3853 $as_echo "no, using $LN_S" >&6; }
3856 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3857 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
3858 if test "${lt_cv_deplibs_check_method+set}" = set; then
3859 $as_echo_n "(cached) " >&6
3861 lt_cv_file_magic_cmd='$MAGIC_CMD'
3862 lt_cv_file_magic_test_file=
3863 lt_cv_deplibs_check_method='unknown'
3864 # Need to set the preceding variable on all platforms that support
3865 # interlibrary dependencies.
3866 # 'none' -- dependencies not supported.
3867 # `unknown' -- same as none, but documents that we really don't know.
3868 # 'pass_all' -- all dependencies passed with no checks.
3869 # 'test_compile' -- check by making test program.
3870 # 'file_magic [[regex]]' -- check by looking for files in library path
3871 # which responds to the $file_magic_cmd with a given extended regex.
3872 # If you have `file' or equivalent on your system and you're not sure
3873 # whether `pass_all' will *always* work, you probably want this one.
3877 lt_cv_deplibs_check_method=pass_all
3881 lt_cv_deplibs_check_method=pass_all
3885 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3886 lt_cv_file_magic_cmd='/usr/bin/file -L'
3887 lt_cv_file_magic_test_file=/shlib/libc.so
3891 # func_win32_libid is a shell function defined in ltmain.sh
3892 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3893 lt_cv_file_magic_cmd='func_win32_libid'
3897 # Base MSYS/MinGW do not provide the 'file' command needed by
3898 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3899 # unless we find 'file', for example because we are cross-compiling.
3900 if ( file / ) >/dev/null 2>&1; then
3901 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3902 lt_cv_file_magic_cmd='func_win32_libid'
3904 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3905 lt_cv_file_magic_cmd='$OBJDUMP -f'
3909 darwin* | rhapsody*)
3910 lt_cv_deplibs_check_method=pass_all
3913 freebsd* | dragonfly*)
3914 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3917 # Not sure whether the presence of OpenBSD here was a mistake.
3918 # Let's accept both of them until this is cleared up.
3919 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3920 lt_cv_file_magic_cmd=/usr/bin/file
3921 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3925 lt_cv_deplibs_check_method=pass_all
3930 lt_cv_deplibs_check_method=pass_all
3933 hpux10.20* | hpux11*)
3934 lt_cv_file_magic_cmd=/usr/bin/file
3937 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3938 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3941 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]'
3942 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3945 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3946 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3952 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3953 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3956 irix5* | irix6* | nonstopux*)
3958 *-32|*"-32 ") libmagic=32-bit;;
3959 *-n32|*"-n32 ") libmagic=N32;;
3960 *-64|*"-64 ") libmagic=64-bit;;
3961 *) libmagic=never-match;;
3963 lt_cv_deplibs_check_method=pass_all
3966 # This must be Linux ELF.
3967 linux* | k*bsd*-gnu)
3968 lt_cv_deplibs_check_method=pass_all
3972 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3973 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3980 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3981 lt_cv_file_magic_cmd=/usr/bin/file
3982 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3986 lt_cv_deplibs_check_method=unknown
3990 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3991 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3993 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3997 osf3* | osf4* | osf5*)
3998 lt_cv_deplibs_check_method=pass_all
4002 lt_cv_deplibs_check_method=pass_all
4006 lt_cv_deplibs_check_method=pass_all
4010 case $host_vendor in
4012 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]'
4013 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4016 lt_cv_deplibs_check_method=pass_all
4019 lt_cv_file_magic_cmd='/bin/file'
4020 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4023 lt_cv_file_magic_cmd='/bin/file'
4024 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4025 lt_cv_file_magic_test_file=/lib/libc.so
4028 lt_cv_deplibs_check_method=pass_all
4031 lt_cv_deplibs_check_method=pass_all
4036 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4037 lt_cv_deplibs_check_method=pass_all
4042 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4043 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4044 file_magic_cmd=$lt_cv_file_magic_cmd
4045 deplibs_check_method=$lt_cv_deplibs_check_method
4046 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4051 # If no C compiler was specified, use CC.
4054 # If no C compiler flags were specified, use CFLAGS.
4055 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4057 # Allow CC to be a program name with arguments.
4061 # Check whether --enable-libtool-lock was given.
4062 if test "${enable_libtool_lock+set}" = set; then
4063 enableval=$enable_libtool_lock;
4066 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4068 # Some flags need to be propagated to the compiler or linker for good
4072 # Find out which ABI we are using.
4073 echo 'int i;' > conftest.$ac_ext
4074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4075 (eval $ac_compile) 2>&5
4077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; then
4079 case `/usr/bin/file conftest.$ac_objext` in
4091 # Find out which ABI we are using.
4092 echo '#line 4092 "configure"' > conftest.$ac_ext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094 (eval $ac_compile) 2>&5
4096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; then
4098 if test "$lt_cv_prog_gnu_ld" = yes; then
4099 case `/usr/bin/file conftest.$ac_objext` in
4101 LD="${LD-ld} -melf32bsmip"
4104 LD="${LD-ld} -melf32bmipn32"
4107 LD="${LD-ld} -melf64bmip"
4111 case `/usr/bin/file conftest.$ac_objext` in
4127 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4128 s390*-*linux*|sparc*-*linux*)
4129 # Find out which ABI we are using.
4130 echo 'int i;' > conftest.$ac_ext
4131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4132 (eval $ac_compile) 2>&5
4134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; then
4136 case `/usr/bin/file conftest.o` in
4139 x86_64-*kfreebsd*-gnu)
4140 LD="${LD-ld} -m elf_i386_fbsd"
4143 LD="${LD-ld} -m elf_i386"
4145 ppc64-*linux*|powerpc64-*linux*)
4146 LD="${LD-ld} -m elf32ppclinux"
4149 LD="${LD-ld} -m elf_s390"
4152 LD="${LD-ld} -m elf32_sparc"
4158 x86_64-*kfreebsd*-gnu)
4159 LD="${LD-ld} -m elf_x86_64_fbsd"
4162 LD="${LD-ld} -m elf_x86_64"
4164 ppc*-*linux*|powerpc*-*linux*)
4165 LD="${LD-ld} -m elf64ppc"
4168 LD="${LD-ld} -m elf64_s390"
4171 LD="${LD-ld} -m elf64_sparc"
4181 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4182 SAVE_CFLAGS="$CFLAGS"
4183 CFLAGS="$CFLAGS -belf"
4184 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4185 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4186 if test "${lt_cv_cc_needs_belf+set}" = set; then
4187 $as_echo_n "(cached) " >&6
4190 ac_cpp='$CPP $CPPFLAGS'
4191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4195 cat >conftest.$ac_ext <<_ACEOF
4198 cat confdefs.h >>conftest.$ac_ext
4199 cat >>conftest.$ac_ext <<_ACEOF
4200 /* end confdefs.h. */
4210 rm -f conftest.$ac_objext conftest$ac_exeext
4211 if { (ac_try="$ac_link"
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4217 $as_echo "$ac_try_echo") >&5
4218 (eval "$ac_link") 2>conftest.er1
4220 grep -v '^ *+' conftest.er1 >conftest.err
4222 cat conftest.err >&5
4223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } && {
4225 test -z "$ac_c_werror_flag" ||
4226 test ! -s conftest.err
4227 } && test -s conftest$ac_exeext && {
4228 test "$cross_compiling" = yes ||
4229 $as_test_x conftest$ac_exeext
4231 lt_cv_cc_needs_belf=yes
4233 $as_echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4236 lt_cv_cc_needs_belf=no
4239 rm -rf conftest.dSYM
4240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4241 conftest$ac_exeext conftest.$ac_ext
4243 ac_cpp='$CPP $CPPFLAGS'
4244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4250 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4251 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4252 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4253 CFLAGS="$SAVE_CFLAGS"
4257 # Find out which ABI we are using.
4258 echo 'int i;' > conftest.$ac_ext
4259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4260 (eval $ac_compile) 2>&5
4262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; then
4264 case `/usr/bin/file conftest.o` in
4266 case $lt_cv_prog_gnu_ld in
4267 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4269 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4283 need_locks="$enable_libtool_lock"
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4291 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4292 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4293 # On Suns, sometimes $CPP names a directory.
4294 if test -n "$CPP" && test -d "$CPP"; then
4297 if test -z "$CPP"; then
4298 if test "${ac_cv_prog_CPP+set}" = set; then
4299 $as_echo_n "(cached) " >&6
4301 # Double quotes because CPP needs to be expanded
4302 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4305 for ac_c_preproc_warn_flag in '' yes
4307 # Use a header file that comes with gcc, so configuring glibc
4308 # with a fresh cross-compiler works.
4309 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4310 # <limits.h> exists even on freestanding compilers.
4311 # On the NeXT, cc -E runs the code through the compiler's parser,
4312 # not just through cpp. "Syntax error" is here to catch this case.
4313 cat >conftest.$ac_ext <<_ACEOF
4316 cat confdefs.h >>conftest.$ac_ext
4317 cat >>conftest.$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4320 # include <limits.h>
4322 # include <assert.h>
4326 if { (ac_try="$ac_cpp conftest.$ac_ext"
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4332 $as_echo "$ac_try_echo") >&5
4333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4335 grep -v '^ *+' conftest.er1 >conftest.err
4337 cat conftest.err >&5
4338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); } >/dev/null && {
4340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4341 test ! -s conftest.err
4345 $as_echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4348 # Broken: fails on valid input.
4352 rm -f conftest.err conftest.$ac_ext
4354 # OK, works on sane cases. Now check whether nonexistent headers
4355 # can be detected and how.
4356 cat >conftest.$ac_ext <<_ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h. */
4362 #include <ac_nonexistent.h>
4364 if { (ac_try="$ac_cpp conftest.$ac_ext"
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4370 $as_echo "$ac_try_echo") >&5
4371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4373 grep -v '^ *+' conftest.er1 >conftest.err
4375 cat conftest.err >&5
4376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } >/dev/null && {
4378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4379 test ! -s conftest.err
4381 # Broken: success on invalid input.
4384 $as_echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4387 # Passes both tests.
4392 rm -f conftest.err conftest.$ac_ext
4395 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4396 rm -f conftest.err conftest.$ac_ext
4397 if $ac_preproc_ok; then
4409 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4410 $as_echo "$CPP" >&6; }
4412 for ac_c_preproc_warn_flag in '' yes
4414 # Use a header file that comes with gcc, so configuring glibc
4415 # with a fresh cross-compiler works.
4416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4417 # <limits.h> exists even on freestanding compilers.
4418 # On the NeXT, cc -E runs the code through the compiler's parser,
4419 # not just through cpp. "Syntax error" is here to catch this case.
4420 cat >conftest.$ac_ext <<_ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4427 # include <limits.h>
4429 # include <assert.h>
4433 if { (ac_try="$ac_cpp conftest.$ac_ext"
4435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436 *) ac_try_echo=$ac_try;;
4438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4439 $as_echo "$ac_try_echo") >&5
4440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4442 grep -v '^ *+' conftest.er1 >conftest.err
4444 cat conftest.err >&5
4445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } >/dev/null && {
4447 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4448 test ! -s conftest.err
4452 $as_echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.$ac_ext >&5
4455 # Broken: fails on valid input.
4459 rm -f conftest.err conftest.$ac_ext
4461 # OK, works on sane cases. Now check whether nonexistent headers
4462 # can be detected and how.
4463 cat >conftest.$ac_ext <<_ACEOF
4466 cat confdefs.h >>conftest.$ac_ext
4467 cat >>conftest.$ac_ext <<_ACEOF
4468 /* end confdefs.h. */
4469 #include <ac_nonexistent.h>
4471 if { (ac_try="$ac_cpp conftest.$ac_ext"
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4477 $as_echo "$ac_try_echo") >&5
4478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4480 grep -v '^ *+' conftest.er1 >conftest.err
4482 cat conftest.err >&5
4483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } >/dev/null && {
4485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4486 test ! -s conftest.err
4488 # Broken: success on invalid input.
4491 $as_echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4494 # Passes both tests.
4499 rm -f conftest.err conftest.$ac_ext
4502 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4503 rm -f conftest.err conftest.$ac_ext
4504 if $ac_preproc_ok; then
4507 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4508 See \`config.log' for more details." >&5
4509 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4510 See \`config.log' for more details." >&2;}
4511 { (exit 1); exit 1; }; }
4515 ac_cpp='$CPP $CPPFLAGS'
4516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4521 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4522 $as_echo_n "checking for ANSI C header files... " >&6; }
4523 if test "${ac_cv_header_stdc+set}" = set; then
4524 $as_echo_n "(cached) " >&6
4526 cat >conftest.$ac_ext <<_ACEOF
4529 cat confdefs.h >>conftest.$ac_ext
4530 cat >>conftest.$ac_ext <<_ACEOF
4531 /* end confdefs.h. */
4545 rm -f conftest.$ac_objext
4546 if { (ac_try="$ac_compile"
4548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4552 $as_echo "$ac_try_echo") >&5
4553 (eval "$ac_compile") 2>conftest.er1
4555 grep -v '^ *+' conftest.er1 >conftest.err
4557 cat conftest.err >&5
4558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } && {
4560 test -z "$ac_c_werror_flag" ||
4561 test ! -s conftest.err
4562 } && test -s conftest.$ac_objext; then
4563 ac_cv_header_stdc=yes
4565 $as_echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4568 ac_cv_header_stdc=no
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 if test $ac_cv_header_stdc = yes; then
4574 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4575 cat >conftest.$ac_ext <<_ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h. */
4584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4585 $EGREP "memchr" >/dev/null 2>&1; then
4588 ac_cv_header_stdc=no
4594 if test $ac_cv_header_stdc = yes; then
4595 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4596 cat >conftest.$ac_ext <<_ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4606 $EGREP "free" >/dev/null 2>&1; then
4609 ac_cv_header_stdc=no
4615 if test $ac_cv_header_stdc = yes; then
4616 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4617 if test "$cross_compiling" = yes; then
4620 cat >conftest.$ac_ext <<_ACEOF
4623 cat confdefs.h >>conftest.$ac_ext
4624 cat >>conftest.$ac_ext <<_ACEOF
4625 /* end confdefs.h. */
4628 #if ((' ' & 0x0FF) == 0x020)
4629 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4630 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4632 # define ISLOWER(c) \
4633 (('a' <= (c) && (c) <= 'i') \
4634 || ('j' <= (c) && (c) <= 'r') \
4635 || ('s' <= (c) && (c) <= 'z'))
4636 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4639 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4644 for (i = 0; i < 256; i++)
4645 if (XOR (islower (i), ISLOWER (i))
4646 || toupper (i) != TOUPPER (i))
4651 rm -f conftest$ac_exeext
4652 if { (ac_try="$ac_link"
4654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655 *) ac_try_echo=$ac_try;;
4657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4658 $as_echo "$ac_try_echo") >&5
4659 (eval "$ac_link") 2>&5
4661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4663 { (case "(($ac_try" in
4664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665 *) ac_try_echo=$ac_try;;
4667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4668 $as_echo "$ac_try_echo") >&5
4669 (eval "$ac_try") 2>&5
4671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4675 $as_echo "$as_me: program exited with status $ac_status" >&5
4676 $as_echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4680 ac_cv_header_stdc=no
4682 rm -rf conftest.dSYM
4683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4689 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4690 $as_echo "$ac_cv_header_stdc" >&6; }
4691 if test $ac_cv_header_stdc = yes; then
4693 cat >>confdefs.h <<\_ACEOF
4694 #define STDC_HEADERS 1
4699 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4709 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4710 inttypes.h stdint.h unistd.h
4712 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4713 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4714 $as_echo_n "checking for $ac_header... " >&6; }
4715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4716 $as_echo_n "(cached) " >&6
4718 cat >conftest.$ac_ext <<_ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h. */
4724 $ac_includes_default
4726 #include <$ac_header>
4728 rm -f conftest.$ac_objext
4729 if { (ac_try="$ac_compile"
4731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4732 *) ac_try_echo=$ac_try;;
4734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4735 $as_echo "$ac_try_echo") >&5
4736 (eval "$ac_compile") 2>conftest.er1
4738 grep -v '^ *+' conftest.er1 >conftest.err
4740 cat conftest.err >&5
4741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); } && {
4743 test -z "$ac_c_werror_flag" ||
4744 test ! -s conftest.err
4745 } && test -s conftest.$ac_objext; then
4746 eval "$as_ac_Header=yes"
4748 $as_echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4751 eval "$as_ac_Header=no"
4754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756 ac_res=`eval 'as_val=${'$as_ac_Header'}
4757 $as_echo "$as_val"'`
4758 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4759 $as_echo "$ac_res" >&6; }
4760 if test `eval 'as_val=${'$as_ac_Header'}
4761 $as_echo "$as_val"'` = yes; then
4762 cat >>confdefs.h <<_ACEOF
4763 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4772 for ac_header in dlfcn.h
4774 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4776 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4777 $as_echo_n "checking for $ac_header... " >&6; }
4778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4779 $as_echo_n "(cached) " >&6
4781 ac_res=`eval 'as_val=${'$as_ac_Header'}
4782 $as_echo "$as_val"'`
4783 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4784 $as_echo "$ac_res" >&6; }
4786 # Is the header compilable?
4787 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4788 $as_echo_n "checking $ac_header usability... " >&6; }
4789 cat >conftest.$ac_ext <<_ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h. */
4795 $ac_includes_default
4796 #include <$ac_header>
4798 rm -f conftest.$ac_objext
4799 if { (ac_try="$ac_compile"
4801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4802 *) ac_try_echo=$ac_try;;
4804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4805 $as_echo "$ac_try_echo") >&5
4806 (eval "$ac_compile") 2>conftest.er1
4808 grep -v '^ *+' conftest.er1 >conftest.err
4810 cat conftest.err >&5
4811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } && {
4813 test -z "$ac_c_werror_flag" ||
4814 test ! -s conftest.err
4815 } && test -s conftest.$ac_objext; then
4816 ac_header_compiler=yes
4818 $as_echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.$ac_ext >&5
4821 ac_header_compiler=no
4824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4826 $as_echo "$ac_header_compiler" >&6; }
4828 # Is the header present?
4829 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4830 $as_echo_n "checking $ac_header presence... " >&6; }
4831 cat >conftest.$ac_ext <<_ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4837 #include <$ac_header>
4839 if { (ac_try="$ac_cpp conftest.$ac_ext"
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4845 $as_echo "$ac_try_echo") >&5
4846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4848 grep -v '^ *+' conftest.er1 >conftest.err
4850 cat conftest.err >&5
4851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } >/dev/null && {
4853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4854 test ! -s conftest.err
4856 ac_header_preproc=yes
4858 $as_echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4861 ac_header_preproc=no
4864 rm -f conftest.err conftest.$ac_ext
4865 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4866 $as_echo "$ac_header_preproc" >&6; }
4868 # So? What about this header?
4869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4872 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4874 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4875 ac_header_preproc=yes
4878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4879 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4881 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4883 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4885 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4887 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4889 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4893 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4894 $as_echo_n "checking for $ac_header... " >&6; }
4895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4896 $as_echo_n "(cached) " >&6
4898 eval "$as_ac_Header=\$ac_header_preproc"
4900 ac_res=`eval 'as_val=${'$as_ac_Header'}
4901 $as_echo "$as_val"'`
4902 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4903 $as_echo "$ac_res" >&6; }
4906 if test `eval 'as_val=${'$as_ac_Header'}
4907 $as_echo "$as_val"'` = yes; then
4908 cat >>confdefs.h <<_ACEOF
4909 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4917 ac_cpp='$CXXCPP $CPPFLAGS'
4918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4921 if test -z "$CXX"; then
4922 if test -n "$CCC"; then
4925 if test -n "$ac_tool_prefix"; then
4926 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4928 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4929 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4930 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4931 $as_echo_n "checking for $ac_word... " >&6; }
4932 if test "${ac_cv_prog_CXX+set}" = set; then
4933 $as_echo_n "(cached) " >&6
4935 if test -n "$CXX"; then
4936 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 test -z "$as_dir" && as_dir=.
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4945 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4946 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 if test -n "$CXX"; then
4957 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4958 $as_echo "$CXX" >&6; }
4960 { $as_echo "$as_me:$LINENO: result: no" >&5
4961 $as_echo "no" >&6; }
4965 test -n "$CXX" && break
4968 if test -z "$CXX"; then
4970 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4972 # Extract the first word of "$ac_prog", so it can be a program name with args.
4973 set dummy $ac_prog; ac_word=$2
4974 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4975 $as_echo_n "checking for $ac_word... " >&6; }
4976 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4977 $as_echo_n "(cached) " >&6
4979 if test -n "$ac_ct_CXX"; then
4980 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 test -z "$as_dir" && as_dir=.
4987 for ac_exec_ext in '' $ac_executable_extensions; do
4988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4989 ac_cv_prog_ac_ct_CXX="$ac_prog"
4990 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5000 if test -n "$ac_ct_CXX"; then
5001 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5002 $as_echo "$ac_ct_CXX" >&6; }
5004 { $as_echo "$as_me:$LINENO: result: no" >&5
5005 $as_echo "no" >&6; }
5009 test -n "$ac_ct_CXX" && break
5012 if test "x$ac_ct_CXX" = x; then
5015 case $cross_compiling:$ac_tool_warned in
5017 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5018 whose name does not start with the host triplet. If you think this
5019 configuration is useful to you, please write to autoconf@gnu.org." >&5
5020 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5021 whose name does not start with the host triplet. If you think this
5022 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5023 ac_tool_warned=yes ;;
5031 # Provide some information about the compiler.
5032 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5035 { (ac_try="$ac_compiler --version >&5"
5037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038 *) ac_try_echo=$ac_try;;
5040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5041 $as_echo "$ac_try_echo") >&5
5042 (eval "$ac_compiler --version >&5") 2>&5
5044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }
5046 { (ac_try="$ac_compiler -v >&5"
5048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5052 $as_echo "$ac_try_echo") >&5
5053 (eval "$ac_compiler -v >&5") 2>&5
5055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); }
5057 { (ac_try="$ac_compiler -V >&5"
5059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5060 *) ac_try_echo=$ac_try;;
5062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5063 $as_echo "$ac_try_echo") >&5
5064 (eval "$ac_compiler -V >&5") 2>&5
5066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }
5069 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5070 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5071 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5072 $as_echo_n "(cached) " >&6
5074 cat >conftest.$ac_ext <<_ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5092 rm -f conftest.$ac_objext
5093 if { (ac_try="$ac_compile"
5095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5096 *) ac_try_echo=$ac_try;;
5098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5099 $as_echo "$ac_try_echo") >&5
5100 (eval "$ac_compile") 2>conftest.er1
5102 grep -v '^ *+' conftest.er1 >conftest.err
5104 cat conftest.err >&5
5105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } && {
5107 test -z "$ac_cxx_werror_flag" ||
5108 test ! -s conftest.err
5109 } && test -s conftest.$ac_objext; then
5112 $as_echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5119 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5122 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5123 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5124 if test $ac_compiler_gnu = yes; then
5129 ac_test_CXXFLAGS=${CXXFLAGS+set}
5130 ac_save_CXXFLAGS=$CXXFLAGS
5131 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5132 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5133 if test "${ac_cv_prog_cxx_g+set}" = set; then
5134 $as_echo_n "(cached) " >&6
5136 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5137 ac_cxx_werror_flag=yes
5140 cat >conftest.$ac_ext <<_ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5155 rm -f conftest.$ac_objext
5156 if { (ac_try="$ac_compile"
5158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5159 *) ac_try_echo=$ac_try;;
5161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5162 $as_echo "$ac_try_echo") >&5
5163 (eval "$ac_compile") 2>conftest.er1
5165 grep -v '^ *+' conftest.er1 >conftest.err
5167 cat conftest.err >&5
5168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); } && {
5170 test -z "$ac_cxx_werror_flag" ||
5171 test ! -s conftest.err
5172 } && test -s conftest.$ac_objext; then
5173 ac_cv_prog_cxx_g=yes
5175 $as_echo "$as_me: failed program was:" >&5
5176 sed 's/^/| /' conftest.$ac_ext >&5
5179 cat >conftest.$ac_ext <<_ACEOF
5182 cat confdefs.h >>conftest.$ac_ext
5183 cat >>conftest.$ac_ext <<_ACEOF
5184 /* end confdefs.h. */
5194 rm -f conftest.$ac_objext
5195 if { (ac_try="$ac_compile"
5197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5198 *) ac_try_echo=$ac_try;;
5200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5201 $as_echo "$ac_try_echo") >&5
5202 (eval "$ac_compile") 2>conftest.er1
5204 grep -v '^ *+' conftest.er1 >conftest.err
5206 cat conftest.err >&5
5207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); } && {
5209 test -z "$ac_cxx_werror_flag" ||
5210 test ! -s conftest.err
5211 } && test -s conftest.$ac_objext; then
5214 $as_echo "$as_me: failed program was:" >&5
5215 sed 's/^/| /' conftest.$ac_ext >&5
5217 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5219 cat >conftest.$ac_ext <<_ACEOF
5222 cat confdefs.h >>conftest.$ac_ext
5223 cat >>conftest.$ac_ext <<_ACEOF
5224 /* end confdefs.h. */
5234 rm -f conftest.$ac_objext
5235 if { (ac_try="$ac_compile"
5237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5238 *) ac_try_echo=$ac_try;;
5240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5241 $as_echo "$ac_try_echo") >&5
5242 (eval "$ac_compile") 2>conftest.er1
5244 grep -v '^ *+' conftest.er1 >conftest.err
5246 cat conftest.err >&5
5247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } && {
5249 test -z "$ac_cxx_werror_flag" ||
5250 test ! -s conftest.err
5251 } && test -s conftest.$ac_objext; then
5252 ac_cv_prog_cxx_g=yes
5254 $as_echo "$as_me: failed program was:" >&5
5255 sed 's/^/| /' conftest.$ac_ext >&5
5260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5267 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5269 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5270 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5271 if test "$ac_test_CXXFLAGS" = set; then
5272 CXXFLAGS=$ac_save_CXXFLAGS
5273 elif test $ac_cv_prog_cxx_g = yes; then
5274 if test "$GXX" = yes; then
5280 if test "$GXX" = yes; then
5287 ac_cpp='$CXXCPP $CPPFLAGS'
5288 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5289 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5290 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5294 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5295 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5296 (test "X$CXX" != "Xg++"))) ; then
5298 ac_cpp='$CXXCPP $CPPFLAGS'
5299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5302 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5303 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5304 if test -z "$CXXCPP"; then
5305 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5306 $as_echo_n "(cached) " >&6
5308 # Double quotes because CXXCPP needs to be expanded
5309 for CXXCPP in "$CXX -E" "/lib/cpp"
5312 for ac_cxx_preproc_warn_flag in '' yes
5314 # Use a header file that comes with gcc, so configuring glibc
5315 # with a fresh cross-compiler works.
5316 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5317 # <limits.h> exists even on freestanding compilers.
5318 # On the NeXT, cc -E runs the code through the compiler's parser,
5319 # not just through cpp. "Syntax error" is here to catch this case.
5320 cat >conftest.$ac_ext <<_ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h. */
5327 # include <limits.h>
5329 # include <assert.h>
5333 if { (ac_try="$ac_cpp conftest.$ac_ext"
5335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336 *) ac_try_echo=$ac_try;;
5338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5339 $as_echo "$ac_try_echo") >&5
5340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5342 grep -v '^ *+' conftest.er1 >conftest.err
5344 cat conftest.err >&5
5345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } >/dev/null && {
5347 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5348 test ! -s conftest.err
5352 $as_echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5355 # Broken: fails on valid input.
5359 rm -f conftest.err conftest.$ac_ext
5361 # OK, works on sane cases. Now check whether nonexistent headers
5362 # can be detected and how.
5363 cat >conftest.$ac_ext <<_ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5369 #include <ac_nonexistent.h>
5371 if { (ac_try="$ac_cpp conftest.$ac_ext"
5373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374 *) ac_try_echo=$ac_try;;
5376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5377 $as_echo "$ac_try_echo") >&5
5378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5380 grep -v '^ *+' conftest.er1 >conftest.err
5382 cat conftest.err >&5
5383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } >/dev/null && {
5385 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5386 test ! -s conftest.err
5388 # Broken: success on invalid input.
5391 $as_echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5394 # Passes both tests.
5399 rm -f conftest.err conftest.$ac_ext
5402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5403 rm -f conftest.err conftest.$ac_ext
5404 if $ac_preproc_ok; then
5409 ac_cv_prog_CXXCPP=$CXXCPP
5412 CXXCPP=$ac_cv_prog_CXXCPP
5414 ac_cv_prog_CXXCPP=$CXXCPP
5416 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5417 $as_echo "$CXXCPP" >&6; }
5419 for ac_cxx_preproc_warn_flag in '' yes
5421 # Use a header file that comes with gcc, so configuring glibc
5422 # with a fresh cross-compiler works.
5423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5424 # <limits.h> exists even on freestanding compilers.
5425 # On the NeXT, cc -E runs the code through the compiler's parser,
5426 # not just through cpp. "Syntax error" is here to catch this case.
5427 cat >conftest.$ac_ext <<_ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5434 # include <limits.h>
5436 # include <assert.h>
5440 if { (ac_try="$ac_cpp conftest.$ac_ext"
5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5446 $as_echo "$ac_try_echo") >&5
5447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5449 grep -v '^ *+' conftest.er1 >conftest.err
5451 cat conftest.err >&5
5452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } >/dev/null && {
5454 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5455 test ! -s conftest.err
5459 $as_echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5462 # Broken: fails on valid input.
5466 rm -f conftest.err conftest.$ac_ext
5468 # OK, works on sane cases. Now check whether nonexistent headers
5469 # can be detected and how.
5470 cat >conftest.$ac_ext <<_ACEOF
5473 cat confdefs.h >>conftest.$ac_ext
5474 cat >>conftest.$ac_ext <<_ACEOF
5475 /* end confdefs.h. */
5476 #include <ac_nonexistent.h>
5478 if { (ac_try="$ac_cpp conftest.$ac_ext"
5480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5481 *) ac_try_echo=$ac_try;;
5483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5484 $as_echo "$ac_try_echo") >&5
5485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5487 grep -v '^ *+' conftest.er1 >conftest.err
5489 cat conftest.err >&5
5490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } >/dev/null && {
5492 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5493 test ! -s conftest.err
5495 # Broken: success on invalid input.
5498 $as_echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5501 # Passes both tests.
5506 rm -f conftest.err conftest.$ac_ext
5509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5510 rm -f conftest.err conftest.$ac_ext
5511 if $ac_preproc_ok; then
5514 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5515 See \`config.log' for more details." >&5
5516 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5517 See \`config.log' for more details." >&2;}
5518 { (exit 1); exit 1; }; }
5522 ac_cpp='$CXXCPP $CPPFLAGS'
5523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5531 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5532 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5533 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5534 if test -n "$ac_tool_prefix"; then
5535 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if test "${ac_cv_prog_F77+set}" = set; then
5542 $as_echo_n "(cached) " >&6
5544 if test -n "$F77"; then
5545 ac_cv_prog_F77="$F77" # Let the user override the test.
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5554 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5555 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 if test -n "$F77"; then
5566 { $as_echo "$as_me:$LINENO: result: $F77" >&5
5567 $as_echo "$F77" >&6; }
5569 { $as_echo "$as_me:$LINENO: result: no" >&5
5570 $as_echo "no" >&6; }
5574 test -n "$F77" && break
5577 if test -z "$F77"; then
5579 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5581 # Extract the first word of "$ac_prog", so it can be a program name with args.
5582 set dummy $ac_prog; ac_word=$2
5583 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5586 $as_echo_n "(cached) " >&6
5588 if test -n "$ac_ct_F77"; then
5589 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 test -z "$as_dir" && as_dir=.
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5598 ac_cv_prog_ac_ct_F77="$ac_prog"
5599 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5609 if test -n "$ac_ct_F77"; then
5610 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5611 $as_echo "$ac_ct_F77" >&6; }
5613 { $as_echo "$as_me:$LINENO: result: no" >&5
5614 $as_echo "no" >&6; }
5618 test -n "$ac_ct_F77" && break
5621 if test "x$ac_ct_F77" = x; then
5624 case $cross_compiling:$ac_tool_warned in
5626 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5627 whose name does not start with the host triplet. If you think this
5628 configuration is useful to you, please write to autoconf@gnu.org." >&5
5629 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5630 whose name does not start with the host triplet. If you think this
5631 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5632 ac_tool_warned=yes ;;
5639 # Provide some information about the compiler.
5640 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5643 { (ac_try="$ac_compiler --version >&5"
5645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646 *) ac_try_echo=$ac_try;;
5648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5649 $as_echo "$ac_try_echo") >&5
5650 (eval "$ac_compiler --version >&5") 2>&5
5652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }
5654 { (ac_try="$ac_compiler -v >&5"
5656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657 *) ac_try_echo=$ac_try;;
5659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5660 $as_echo "$ac_try_echo") >&5
5661 (eval "$ac_compiler -v >&5") 2>&5
5663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }
5665 { (ac_try="$ac_compiler -V >&5"
5667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668 *) ac_try_echo=$ac_try;;
5670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5671 $as_echo "$ac_try_echo") >&5
5672 (eval "$ac_compiler -V >&5") 2>&5
5674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }
5678 # If we don't use `.F' as extension, the preprocessor is not run on the
5679 # input file. (Note that this only needs to work for GNU compilers.)
5682 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5683 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5684 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5685 $as_echo_n "(cached) " >&6
5687 cat >conftest.$ac_ext <<_ACEOF
5695 rm -f conftest.$ac_objext
5696 if { (ac_try="$ac_compile"
5698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5699 *) ac_try_echo=$ac_try;;
5701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5702 $as_echo "$ac_try_echo") >&5
5703 (eval "$ac_compile") 2>conftest.er1
5705 grep -v '^ *+' conftest.er1 >conftest.err
5707 cat conftest.err >&5
5708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } && {
5710 test -z "$ac_f77_werror_flag" ||
5711 test ! -s conftest.err
5712 } && test -s conftest.$ac_objext; then
5715 $as_echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5725 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5726 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5728 ac_test_FFLAGS=${FFLAGS+set}
5729 ac_save_FFLAGS=$FFLAGS
5731 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5732 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
5733 if test "${ac_cv_prog_f77_g+set}" = set; then
5734 $as_echo_n "(cached) " >&6
5737 cat >conftest.$ac_ext <<_ACEOF
5742 rm -f conftest.$ac_objext
5743 if { (ac_try="$ac_compile"
5745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5746 *) ac_try_echo=$ac_try;;
5748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5749 $as_echo "$ac_try_echo") >&5
5750 (eval "$ac_compile") 2>conftest.er1
5752 grep -v '^ *+' conftest.er1 >conftest.err
5754 cat conftest.err >&5
5755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); } && {
5757 test -z "$ac_f77_werror_flag" ||
5758 test ! -s conftest.err
5759 } && test -s conftest.$ac_objext; then
5760 ac_cv_prog_f77_g=yes
5762 $as_echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.$ac_ext >&5
5768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5771 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5772 $as_echo "$ac_cv_prog_f77_g" >&6; }
5773 if test "$ac_test_FFLAGS" = set; then
5774 FFLAGS=$ac_save_FFLAGS
5775 elif test $ac_cv_prog_f77_g = yes; then
5776 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5782 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5789 if test $ac_compiler_gnu = yes; then
5795 ac_cpp='$CPP $CPPFLAGS'
5796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5802 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5803 # find the maximum length of command line arguments
5804 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5805 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5806 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5807 $as_echo_n "(cached) " >&6
5814 # On DJGPP, this test can blow up pretty badly due to problems in libc
5815 # (any single argument exceeding 2000 bytes causes a buffer overrun
5816 # during glob expansion). Even if it were fixed, the result of this
5817 # check would be larger than it should be.
5818 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5822 # Under GNU Hurd, this test is not required because there is
5823 # no limit to the length of command line arguments.
5824 # Libtool will interpret -1 as no limit whatsoever
5825 lt_cv_sys_max_cmd_len=-1;
5829 # On Win9x/ME, this test blows up -- it succeeds, but takes
5830 # about 5 minutes as the teststring grows exponentially.
5831 # Worse, since 9x/ME are not pre-emptively multitasking,
5832 # you end up with a "frozen" computer, even though with patience
5833 # the test eventually succeeds (with a max line length of 256k).
5834 # Instead, let's just punt: use the minimum linelength reported by
5835 # all of the supported platforms: 8192 (on NT/2K/XP).
5836 lt_cv_sys_max_cmd_len=8192;
5840 # On AmigaOS with pdksh, this test takes hours, literally.
5841 # So we just punt and use a minimum line length of 8192.
5842 lt_cv_sys_max_cmd_len=8192;
5845 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5846 # This has been around since 386BSD, at least. Likely further.
5847 if test -x /sbin/sysctl; then
5848 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5849 elif test -x /usr/sbin/sysctl; then
5850 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5852 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5854 # And add a safety zone
5855 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5860 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5861 lt_cv_sys_max_cmd_len=196608
5865 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5866 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5867 # nice to cause kernel panics so lets avoid the loop below.
5868 # First set a reasonable default.
5869 lt_cv_sys_max_cmd_len=16384
5871 if test -x /sbin/sysconfig; then
5872 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5873 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5878 lt_cv_sys_max_cmd_len=102400
5880 sysv5* | sco5v6* | sysv4.2uw2*)
5881 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5882 if test -n "$kargmax"; then
5883 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5885 lt_cv_sys_max_cmd_len=32768
5889 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5890 if test -n "$lt_cv_sys_max_cmd_len"; then
5891 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5894 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5895 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5896 = "XX$teststring") >/dev/null 2>&1 &&
5897 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5898 lt_cv_sys_max_cmd_len=$new_result &&
5899 test $i != 17 # 1/2 MB should be enough
5902 teststring=$teststring$teststring
5905 # Add a significant safety factor because C++ compilers can tack on massive
5906 # amounts of additional arguments before passing them to the linker.
5907 # It appears as though 1/2 is a usable value.
5908 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5915 if test -n $lt_cv_sys_max_cmd_len ; then
5916 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5917 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5919 { $as_echo "$as_me:$LINENO: result: none" >&5
5920 $as_echo "none" >&6; }
5927 # Check for command to grab the raw symbol name followed by C symbol from nm.
5928 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5929 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5930 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5931 $as_echo_n "(cached) " >&6
5934 # These are sane defaults that work on at least a few old systems.
5935 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5937 # Character class describing NM global symbol codes.
5938 symcode='[BCDEGRST]'
5940 # Regexp to match symbols that can be accessed directly from C.
5941 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5943 # Transform an extracted symbol line into a proper C declaration
5944 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5946 # Transform an extracted symbol line into symbol name and symbol address
5947 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5949 # Define system-specific variables.
5954 cygwin* | mingw* | pw32*)
5955 symcode='[ABCDGISTW]'
5957 hpux*) # Its linker distinguishes data from code symbols
5958 if test "$host_cpu" = ia64; then
5959 symcode='[ABCDEGRST]'
5961 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5962 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5964 linux* | k*bsd*-gnu)
5965 if test "$host_cpu" = ia64; then
5966 symcode='[ABCDGIRSTW]'
5967 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5968 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5972 symcode='[BCDEGRST]'
5975 symcode='[BCDEGQRST]'
5986 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5994 # Handle CRLF in mingw tool chain
5998 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6002 # If we're using GNU nm, then use its standard symbol codes.
6003 case `$NM -V 2>&1` in
6004 *GNU* | *'with BFD'*)
6005 symcode='[ABCDGIRSTW]' ;;
6008 # Try without a prefix undercore, then with it.
6009 for ac_symprfx in "" "_"; do
6011 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6012 symxfrm="\\1 $ac_symprfx\\2 \\2"
6014 # Write the raw and C identifiers.
6015 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6017 # Check to see that the pipe works correctly.
6021 cat > conftest.$ac_ext <<EOF
6026 void nm_test_func(){}
6030 int main(){nm_test_var='a';nm_test_func();return(0);}
6033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6034 (eval $ac_compile) 2>&5
6036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }; then
6038 # Now try to grab the symbols.
6040 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6041 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } && test -s "$nlist"; then
6045 # Try sorting and uniquifying the output.
6046 if sort "$nlist" | uniq > "$nlist"T; then
6047 mv -f "$nlist"T "$nlist"
6052 # Make sure that we snagged all the symbols we need.
6053 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6054 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6055 cat <<EOF > conftest.$ac_ext
6061 # Now generate the symbol file.
6062 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6064 cat <<EOF >> conftest.$ac_ext
6065 #if defined (__STDC__) && __STDC__
6066 # define lt_ptr_t void *
6068 # define lt_ptr_t char *
6072 /* The mapping between symbol names and symbols. */
6077 lt_preloaded_symbols[] =
6080 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6081 cat <<\EOF >> conftest.$ac_ext
6089 # Now try linking the two files.
6090 mv conftest.$ac_objext conftstm.$ac_objext
6091 lt_save_LIBS="$LIBS"
6092 lt_save_CFLAGS="$CFLAGS"
6093 LIBS="conftstm.$ac_objext"
6094 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6096 (eval $ac_link) 2>&5
6098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6102 LIBS="$lt_save_LIBS"
6103 CFLAGS="$lt_save_CFLAGS"
6105 echo "cannot find nm_test_func in $nlist" >&5
6108 echo "cannot find nm_test_var in $nlist" >&5
6111 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6114 echo "$progname: failed program was:" >&5
6115 cat conftest.$ac_ext >&5
6117 rm -rf conftest* conftst*
6119 # Do not use the global_symbol_pipe unless it works.
6120 if test "$pipe_works" = yes; then
6123 lt_cv_sys_global_symbol_pipe=
6129 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6130 lt_cv_sys_global_symbol_to_cdecl=
6132 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6133 { $as_echo "$as_me:$LINENO: result: failed" >&5
6134 $as_echo "failed" >&6; }
6136 { $as_echo "$as_me:$LINENO: result: ok" >&5
6137 $as_echo "ok" >&6; }
6140 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6141 $as_echo_n "checking for objdir... " >&6; }
6142 if test "${lt_cv_objdir+set}" = set; then
6143 $as_echo_n "(cached) " >&6
6145 rm -f .libs 2>/dev/null
6146 mkdir .libs 2>/dev/null
6147 if test -d .libs; then
6150 # MS-DOS does not allow filenames that begin with a dot.
6153 rmdir .libs 2>/dev/null
6155 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6156 $as_echo "$lt_cv_objdir" >&6; }
6157 objdir=$lt_cv_objdir
6165 # AIX sometimes has problems with the GCC collect2 program. For some
6166 # reason, if we set the COLLECT_NAMES environment variable, the problems
6167 # vanish in a puff of smoke.
6168 if test "X${COLLECT_NAMES+set}" != Xset; then
6170 export COLLECT_NAMES
6175 # Sed substitution that helps us do robust quoting. It backslashifies
6176 # metacharacters that are still active within double-quoted strings.
6177 Xsed='sed -e 1s/^X//'
6178 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6180 # Same as above, but do not quote variable references.
6181 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6183 # Sed substitution to delay expansion of an escaped shell variable in a
6184 # double_quote_subst'ed string.
6185 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6187 # Sed substitution to avoid accidental globbing in evaled expressions
6188 no_glob_subst='s/\*/\\\*/g'
6194 default_ofile=libtool
6195 can_build_shared=yes
6197 # All known linkers require a `.a' archive for static linking (except MSVC,
6198 # which needs '.lib').
6200 ltmain="$ac_aux_dir/ltmain.sh"
6201 ofile="$default_ofile"
6202 with_gnu_ld="$lt_cv_prog_gnu_ld"
6204 if test -n "$ac_tool_prefix"; then
6205 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6206 set dummy ${ac_tool_prefix}ar; ac_word=$2
6207 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6208 $as_echo_n "checking for $ac_word... " >&6; }
6209 if test "${ac_cv_prog_AR+set}" = set; then
6210 $as_echo_n "(cached) " >&6
6212 if test -n "$AR"; then
6213 ac_cv_prog_AR="$AR" # Let the user override the test.
6215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219 test -z "$as_dir" && as_dir=.
6220 for ac_exec_ext in '' $ac_executable_extensions; do
6221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6222 ac_cv_prog_AR="${ac_tool_prefix}ar"
6223 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6233 if test -n "$AR"; then
6234 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6235 $as_echo "$AR" >&6; }
6237 { $as_echo "$as_me:$LINENO: result: no" >&5
6238 $as_echo "no" >&6; }
6243 if test -z "$ac_cv_prog_AR"; then
6245 # Extract the first word of "ar", so it can be a program name with args.
6246 set dummy ar; ac_word=$2
6247 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6248 $as_echo_n "checking for $ac_word... " >&6; }
6249 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6250 $as_echo_n "(cached) " >&6
6252 if test -n "$ac_ct_AR"; then
6253 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 test -z "$as_dir" && as_dir=.
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262 ac_cv_prog_ac_ct_AR="ar"
6263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6273 if test -n "$ac_ct_AR"; then
6274 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6275 $as_echo "$ac_ct_AR" >&6; }
6277 { $as_echo "$as_me:$LINENO: result: no" >&5
6278 $as_echo "no" >&6; }
6281 if test "x$ac_ct_AR" = x; then
6284 case $cross_compiling:$ac_tool_warned in
6286 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6287 whose name does not start with the host triplet. If you think this
6288 configuration is useful to you, please write to autoconf@gnu.org." >&5
6289 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6290 whose name does not start with the host triplet. If you think this
6291 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6292 ac_tool_warned=yes ;;
6300 if test -n "$ac_tool_prefix"; then
6301 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6302 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6303 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6304 $as_echo_n "checking for $ac_word... " >&6; }
6305 if test "${ac_cv_prog_RANLIB+set}" = set; then
6306 $as_echo_n "(cached) " >&6
6308 if test -n "$RANLIB"; then
6309 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6318 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6319 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 RANLIB=$ac_cv_prog_RANLIB
6329 if test -n "$RANLIB"; then
6330 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6331 $as_echo "$RANLIB" >&6; }
6333 { $as_echo "$as_me:$LINENO: result: no" >&5
6334 $as_echo "no" >&6; }
6339 if test -z "$ac_cv_prog_RANLIB"; then
6340 ac_ct_RANLIB=$RANLIB
6341 # Extract the first word of "ranlib", so it can be a program name with args.
6342 set dummy ranlib; ac_word=$2
6343 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6344 $as_echo_n "checking for $ac_word... " >&6; }
6345 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6346 $as_echo_n "(cached) " >&6
6348 if test -n "$ac_ct_RANLIB"; then
6349 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 test -z "$as_dir" && as_dir=.
6356 for ac_exec_ext in '' $ac_executable_extensions; do
6357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6358 ac_cv_prog_ac_ct_RANLIB="ranlib"
6359 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6369 if test -n "$ac_ct_RANLIB"; then
6370 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6371 $as_echo "$ac_ct_RANLIB" >&6; }
6373 { $as_echo "$as_me:$LINENO: result: no" >&5
6374 $as_echo "no" >&6; }
6377 if test "x$ac_ct_RANLIB" = x; then
6380 case $cross_compiling:$ac_tool_warned in
6382 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6383 whose name does not start with the host triplet. If you think this
6384 configuration is useful to you, please write to autoconf@gnu.org." >&5
6385 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6386 whose name does not start with the host triplet. If you think this
6387 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6388 ac_tool_warned=yes ;;
6390 RANLIB=$ac_ct_RANLIB
6393 RANLIB="$ac_cv_prog_RANLIB"
6396 if test -n "$ac_tool_prefix"; then
6397 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6398 set dummy ${ac_tool_prefix}strip; ac_word=$2
6399 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if test "${ac_cv_prog_STRIP+set}" = set; then
6402 $as_echo_n "(cached) " >&6
6404 if test -n "$STRIP"; then
6405 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6414 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6415 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 STRIP=$ac_cv_prog_STRIP
6425 if test -n "$STRIP"; then
6426 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6427 $as_echo "$STRIP" >&6; }
6429 { $as_echo "$as_me:$LINENO: result: no" >&5
6430 $as_echo "no" >&6; }
6435 if test -z "$ac_cv_prog_STRIP"; then
6437 # Extract the first word of "strip", so it can be a program name with args.
6438 set dummy strip; ac_word=$2
6439 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6440 $as_echo_n "checking for $ac_word... " >&6; }
6441 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6442 $as_echo_n "(cached) " >&6
6444 if test -n "$ac_ct_STRIP"; then
6445 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 test -z "$as_dir" && as_dir=.
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6454 ac_cv_prog_ac_ct_STRIP="strip"
6455 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6465 if test -n "$ac_ct_STRIP"; then
6466 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6467 $as_echo "$ac_ct_STRIP" >&6; }
6469 { $as_echo "$as_me:$LINENO: result: no" >&5
6470 $as_echo "no" >&6; }
6473 if test "x$ac_ct_STRIP" = x; then
6476 case $cross_compiling:$ac_tool_warned in
6478 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6479 whose name does not start with the host triplet. If you think this
6480 configuration is useful to you, please write to autoconf@gnu.org." >&5
6481 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6482 whose name does not start with the host triplet. If you think this
6483 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6484 ac_tool_warned=yes ;;
6489 STRIP="$ac_cv_prog_STRIP"
6494 old_CFLAGS="$CFLAGS"
6496 # Set sane defaults for various variables
6497 test -z "$AR" && AR=ar
6498 test -z "$AR_FLAGS" && AR_FLAGS=cru
6499 test -z "$AS" && AS=as
6500 test -z "$CC" && CC=cc
6501 test -z "$LTCC" && LTCC=$CC
6502 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6503 test -z "$DLLTOOL" && DLLTOOL=dlltool
6504 test -z "$LD" && LD=ld
6505 test -z "$LN_S" && LN_S="ln -s"
6506 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6507 test -z "$NM" && NM=nm
6508 test -z "$SED" && SED=sed
6509 test -z "$OBJDUMP" && OBJDUMP=objdump
6510 test -z "$RANLIB" && RANLIB=:
6511 test -z "$STRIP" && STRIP=:
6512 test -z "$ac_objext" && ac_objext=o
6514 # Determine commands to create old-style static archives.
6515 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6516 old_postinstall_cmds='chmod 644 $oldlib'
6517 old_postuninstall_cmds=
6519 if test -n "$RANLIB"; then
6522 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6525 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6528 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6531 for cc_temp in $compiler""; do
6533 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6534 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6539 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6542 # Only perform the check for file, if the check method requires it
6543 case $deplibs_check_method in
6545 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6546 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6547 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6548 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6549 $as_echo_n "(cached) " >&6
6553 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6556 lt_save_MAGIC_CMD="$MAGIC_CMD"
6557 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6558 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6559 for ac_dir in $ac_dummy; do
6561 test -z "$ac_dir" && ac_dir=.
6562 if test -f $ac_dir/${ac_tool_prefix}file; then
6563 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6564 if test -n "$file_magic_test_file"; then
6565 case $deplibs_check_method in
6567 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6568 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6569 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6570 $EGREP "$file_magic_regex" > /dev/null; then
6575 *** Warning: the command libtool uses to detect shared libraries,
6576 *** $file_magic_cmd, produces output that libtool cannot recognize.
6577 *** The result is that libtool may fail to recognize shared libraries
6578 *** as such. This will affect the creation of libtool libraries that
6579 *** depend on shared libraries, but programs linked with such libtool
6580 *** libraries will work regardless of this problem. Nevertheless, you
6581 *** may want to report the problem to your system manager and/or to
6582 *** bug-libtool@gnu.org
6592 MAGIC_CMD="$lt_save_MAGIC_CMD"
6597 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6598 if test -n "$MAGIC_CMD"; then
6599 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6600 $as_echo "$MAGIC_CMD" >&6; }
6602 { $as_echo "$as_me:$LINENO: result: no" >&5
6603 $as_echo "no" >&6; }
6606 if test -z "$lt_cv_path_MAGIC_CMD"; then
6607 if test -n "$ac_tool_prefix"; then
6608 { $as_echo "$as_me:$LINENO: checking for file" >&5
6609 $as_echo_n "checking for file... " >&6; }
6610 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6611 $as_echo_n "(cached) " >&6
6615 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6618 lt_save_MAGIC_CMD="$MAGIC_CMD"
6619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6620 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6621 for ac_dir in $ac_dummy; do
6623 test -z "$ac_dir" && ac_dir=.
6624 if test -f $ac_dir/file; then
6625 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6626 if test -n "$file_magic_test_file"; then
6627 case $deplibs_check_method in
6629 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6631 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6632 $EGREP "$file_magic_regex" > /dev/null; then
6637 *** Warning: the command libtool uses to detect shared libraries,
6638 *** $file_magic_cmd, produces output that libtool cannot recognize.
6639 *** The result is that libtool may fail to recognize shared libraries
6640 *** as such. This will affect the creation of libtool libraries that
6641 *** depend on shared libraries, but programs linked with such libtool
6642 *** libraries will work regardless of this problem. Nevertheless, you
6643 *** may want to report the problem to your system manager and/or to
6644 *** bug-libtool@gnu.org
6654 MAGIC_CMD="$lt_save_MAGIC_CMD"
6659 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6660 if test -n "$MAGIC_CMD"; then
6661 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6662 $as_echo "$MAGIC_CMD" >&6; }
6664 { $as_echo "$as_me:$LINENO: result: no" >&5
6665 $as_echo "no" >&6; }
6679 rhapsody* | darwin*)
6680 if test -n "$ac_tool_prefix"; then
6681 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6682 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6683 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6684 $as_echo_n "checking for $ac_word... " >&6; }
6685 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6686 $as_echo_n "(cached) " >&6
6688 if test -n "$DSYMUTIL"; then
6689 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 test -z "$as_dir" && as_dir=.
6696 for ac_exec_ext in '' $ac_executable_extensions; do
6697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6698 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6699 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6709 if test -n "$DSYMUTIL"; then
6710 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6711 $as_echo "$DSYMUTIL" >&6; }
6713 { $as_echo "$as_me:$LINENO: result: no" >&5
6714 $as_echo "no" >&6; }
6719 if test -z "$ac_cv_prog_DSYMUTIL"; then
6720 ac_ct_DSYMUTIL=$DSYMUTIL
6721 # Extract the first word of "dsymutil", so it can be a program name with args.
6722 set dummy dsymutil; ac_word=$2
6723 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6724 $as_echo_n "checking for $ac_word... " >&6; }
6725 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6726 $as_echo_n "(cached) " >&6
6728 if test -n "$ac_ct_DSYMUTIL"; then
6729 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6738 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6739 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6749 if test -n "$ac_ct_DSYMUTIL"; then
6750 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6751 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6753 { $as_echo "$as_me:$LINENO: result: no" >&5
6754 $as_echo "no" >&6; }
6757 if test "x$ac_ct_DSYMUTIL" = x; then
6760 case $cross_compiling:$ac_tool_warned in
6762 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6763 whose name does not start with the host triplet. If you think this
6764 configuration is useful to you, please write to autoconf@gnu.org." >&5
6765 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6766 whose name does not start with the host triplet. If you think this
6767 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6768 ac_tool_warned=yes ;;
6770 DSYMUTIL=$ac_ct_DSYMUTIL
6773 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6776 if test -n "$ac_tool_prefix"; then
6777 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6778 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6779 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6780 $as_echo_n "checking for $ac_word... " >&6; }
6781 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6782 $as_echo_n "(cached) " >&6
6784 if test -n "$NMEDIT"; then
6785 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6795 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 NMEDIT=$ac_cv_prog_NMEDIT
6805 if test -n "$NMEDIT"; then
6806 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6807 $as_echo "$NMEDIT" >&6; }
6809 { $as_echo "$as_me:$LINENO: result: no" >&5
6810 $as_echo "no" >&6; }
6815 if test -z "$ac_cv_prog_NMEDIT"; then
6816 ac_ct_NMEDIT=$NMEDIT
6817 # Extract the first word of "nmedit", so it can be a program name with args.
6818 set dummy nmedit; ac_word=$2
6819 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6820 $as_echo_n "checking for $ac_word... " >&6; }
6821 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6822 $as_echo_n "(cached) " >&6
6824 if test -n "$ac_ct_NMEDIT"; then
6825 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6835 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6844 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6845 if test -n "$ac_ct_NMEDIT"; then
6846 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6847 $as_echo "$ac_ct_NMEDIT" >&6; }
6849 { $as_echo "$as_me:$LINENO: result: no" >&5
6850 $as_echo "no" >&6; }
6853 if test "x$ac_ct_NMEDIT" = x; then
6856 case $cross_compiling:$ac_tool_warned in
6858 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6859 whose name does not start with the host triplet. If you think this
6860 configuration is useful to you, please write to autoconf@gnu.org." >&5
6861 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6862 whose name does not start with the host triplet. If you think this
6863 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6864 ac_tool_warned=yes ;;
6866 NMEDIT=$ac_ct_NMEDIT
6869 NMEDIT="$ac_cv_prog_NMEDIT"
6873 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6874 $as_echo_n "checking for -single_module linker flag... " >&6; }
6875 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6876 $as_echo_n "(cached) " >&6
6878 lt_cv_apple_cc_single_mod=no
6879 if test -z "${LT_MULTI_MODULE}"; then
6880 # By default we will add the -single_module flag. You can override
6881 # by either setting the environment variable LT_MULTI_MODULE
6882 # non-empty at configure time, or by adding -multi_module to the
6884 echo "int foo(void){return 1;}" > conftest.c
6885 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6886 -dynamiclib ${wl}-single_module conftest.c
6887 if test -f libconftest.dylib; then
6888 lt_cv_apple_cc_single_mod=yes
6889 rm -rf libconftest.dylib*
6894 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6895 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6896 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6897 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6898 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6899 $as_echo_n "(cached) " >&6
6901 lt_cv_ld_exported_symbols_list=no
6902 save_LDFLAGS=$LDFLAGS
6903 echo "_main" > conftest.sym
6904 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6905 cat >conftest.$ac_ext <<_ACEOF
6908 cat confdefs.h >>conftest.$ac_ext
6909 cat >>conftest.$ac_ext <<_ACEOF
6910 /* end confdefs.h. */
6920 rm -f conftest.$ac_objext conftest$ac_exeext
6921 if { (ac_try="$ac_link"
6923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6924 *) ac_try_echo=$ac_try;;
6926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6927 $as_echo "$ac_try_echo") >&5
6928 (eval "$ac_link") 2>conftest.er1
6930 grep -v '^ *+' conftest.er1 >conftest.err
6932 cat conftest.err >&5
6933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); } && {
6935 test -z "$ac_c_werror_flag" ||
6936 test ! -s conftest.err
6937 } && test -s conftest$ac_exeext && {
6938 test "$cross_compiling" = yes ||
6939 $as_test_x conftest$ac_exeext
6941 lt_cv_ld_exported_symbols_list=yes
6943 $as_echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.$ac_ext >&5
6946 lt_cv_ld_exported_symbols_list=no
6949 rm -rf conftest.dSYM
6950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6951 conftest$ac_exeext conftest.$ac_ext
6952 LDFLAGS="$save_LDFLAGS"
6955 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6956 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6958 rhapsody* | darwin1.[0123])
6959 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6961 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6963 # if running on 10.5 or later, the deployment target defaults
6964 # to the OS version, if on x86, and 10.4, the deployment
6965 # target defaults to 10.4. Don't you love it?
6966 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6967 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6968 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6970 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6972 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6976 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6977 _lt_dar_single_mod='$single_module'
6979 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6980 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6982 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
6984 if test "$DSYMUTIL" != ":"; then
6985 _lt_dsymutil="~$DSYMUTIL \$lib || :"
6996 # Check whether --enable-libtool-lock was given.
6997 if test "${enable_libtool_lock+set}" = set; then
6998 enableval=$enable_libtool_lock;
7001 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7004 # Check whether --with-pic was given.
7005 if test "${with_pic+set}" = set; then
7006 withval=$with_pic; pic_mode="$withval"
7011 test -z "$pic_mode" && pic_mode=default
7013 # Use C for the default configuration in the libtool script
7017 ac_cpp='$CPP $CPPFLAGS'
7018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7023 # Source file extension for C test sources.
7026 # Object file extension for compiled C test sources.
7030 # Code to be used in simple compile tests
7031 lt_simple_compile_test_code="int some_variable = 0;"
7033 # Code to be used in simple link tests
7034 lt_simple_link_test_code='int main(){return(0);}'
7037 # If no C compiler was specified, use CC.
7040 # If no C compiler flags were specified, use CFLAGS.
7041 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7043 # Allow CC to be a program name with arguments.
7047 # save warnings/boilerplate of simple test code
7048 ac_outfile=conftest.$ac_objext
7049 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7050 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7051 _lt_compiler_boilerplate=`cat conftest.err`
7054 ac_outfile=conftest.$ac_objext
7055 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7056 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7057 _lt_linker_boilerplate=`cat conftest.err`
7062 ## There is no encapsulation within the following macros, do not change
7063 ## the running order or otherwise move them around unless you know exactly
7064 ## what you are doing...
7066 lt_prog_compiler_no_builtin_flag=
7068 if test "$GCC" = yes; then
7069 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7072 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7073 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7074 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7075 $as_echo_n "(cached) " >&6
7077 lt_cv_prog_compiler_rtti_exceptions=no
7078 ac_outfile=conftest.$ac_objext
7079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7080 lt_compiler_flag="-fno-rtti -fno-exceptions"
7081 # Insert the option either (1) after the last *FLAGS variable, or
7082 # (2) before a word containing "conftest.", or (3) at the end.
7083 # Note that $ac_compile itself does not contain backslashes and begins
7084 # with a dollar sign (not a hyphen), so the echo should work correctly.
7085 # The option is referenced via a variable to avoid confusing sed.
7086 lt_compile=`echo "$ac_compile" | $SED \
7087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7089 -e 's:$: $lt_compiler_flag:'`
7090 (eval echo "\"\$as_me:7090: $lt_compile\"" >&5)
7091 (eval "$lt_compile" 2>conftest.err)
7093 cat conftest.err >&5
7094 echo "$as_me:7094: \$? = $ac_status" >&5
7095 if (exit $ac_status) && test -s "$ac_outfile"; then
7096 # The compiler can only warn and ignore the option if not recognized
7097 # So say no if there are warnings other than the usual output.
7098 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7099 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7100 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7101 lt_cv_prog_compiler_rtti_exceptions=yes
7107 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7108 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7110 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7111 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7118 lt_prog_compiler_wl=
7119 lt_prog_compiler_pic=
7120 lt_prog_compiler_static=
7122 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7123 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7125 if test "$GCC" = yes; then
7126 lt_prog_compiler_wl='-Wl,'
7127 lt_prog_compiler_static='-static'
7131 # All AIX code is PIC.
7132 if test "$host_cpu" = ia64; then
7133 # AIX 5 now supports IA64 processor
7134 lt_prog_compiler_static='-Bstatic'
7139 # FIXME: we need at least 68020 code to build shared libraries, but
7140 # adding the `-m68020' flag to GCC prevents building anything better,
7142 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7145 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7146 # PIC is the default for these OSes.
7149 mingw* | cygwin* | pw32* | os2*)
7150 # This hack is so that the source file can tell whether it is being
7151 # built for inclusion in a dll (and should export symbols for example).
7152 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7153 # (--disable-auto-import) libraries
7154 lt_prog_compiler_pic='-DDLL_EXPORT'
7157 darwin* | rhapsody*)
7158 # PIC is the default on this platform
7159 # Common symbols not allowed in MH_DYLIB files
7160 lt_prog_compiler_pic='-fno-common'
7164 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7165 # Instead, we relocate shared libraries at runtime.
7169 # Just because we use GCC doesn't mean we suddenly get shared libraries
7170 # on systems that don't support them.
7171 lt_prog_compiler_can_build_shared=no
7176 if test -d /usr/nec; then
7177 lt_prog_compiler_pic=-Kconform_pic
7182 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7189 lt_prog_compiler_pic='-fPIC'
7195 lt_prog_compiler_pic='-fPIC'
7199 # PORTME Check for flag to pass linker flags through the system compiler.
7202 lt_prog_compiler_wl='-Wl,'
7203 if test "$host_cpu" = ia64; then
7204 # AIX 5 now supports IA64 processor
7205 lt_prog_compiler_static='-Bstatic'
7207 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7211 # PIC is the default on this platform
7212 # Common symbols not allowed in MH_DYLIB files
7213 case $cc_basename in
7215 lt_prog_compiler_pic='-qnocommon'
7216 lt_prog_compiler_wl='-Wl,'
7221 mingw* | cygwin* | pw32* | os2*)
7222 # This hack is so that the source file can tell whether it is being
7223 # built for inclusion in a dll (and should export symbols for example).
7224 lt_prog_compiler_pic='-DDLL_EXPORT'
7227 hpux9* | hpux10* | hpux11*)
7228 lt_prog_compiler_wl='-Wl,'
7229 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7236 lt_prog_compiler_pic='+Z'
7239 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7240 lt_prog_compiler_static='${wl}-a ${wl}archive'
7243 irix5* | irix6* | nonstopux*)
7244 lt_prog_compiler_wl='-Wl,'
7245 # PIC (with -KPIC) is the default.
7246 lt_prog_compiler_static='-non_shared'
7250 lt_prog_compiler_pic='-KPIC'
7251 lt_prog_compiler_static='-Bstatic'
7254 linux* | k*bsd*-gnu)
7255 case $cc_basename in
7257 lt_prog_compiler_wl='-Wl,'
7258 lt_prog_compiler_pic='-KPIC'
7259 lt_prog_compiler_static='-static'
7261 pgcc* | pgf77* | pgf90* | pgf95*)
7262 # Portland Group compilers (*not* the Pentium gcc compiler,
7263 # which looks to be a dead project)
7264 lt_prog_compiler_wl='-Wl,'
7265 lt_prog_compiler_pic='-fpic'
7266 lt_prog_compiler_static='-Bstatic'
7269 lt_prog_compiler_wl='-Wl,'
7270 # All Alpha code is PIC.
7271 lt_prog_compiler_static='-non_shared'
7274 case `$CC -V 2>&1 | sed 5q` in
7277 lt_prog_compiler_pic='-KPIC'
7278 lt_prog_compiler_static='-Bstatic'
7279 lt_prog_compiler_wl='-Wl,'
7282 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7283 lt_prog_compiler_pic='-KPIC'
7284 lt_prog_compiler_static='-Bstatic'
7285 lt_prog_compiler_wl=''
7292 osf3* | osf4* | osf5*)
7293 lt_prog_compiler_wl='-Wl,'
7294 # All OSF/1 code is PIC.
7295 lt_prog_compiler_static='-non_shared'
7299 lt_prog_compiler_static='-non_shared'
7303 lt_prog_compiler_pic='-KPIC'
7304 lt_prog_compiler_static='-Bstatic'
7305 case $cc_basename in
7307 lt_prog_compiler_wl='-Qoption ld ';;
7309 lt_prog_compiler_wl='-Wl,';;
7314 lt_prog_compiler_wl='-Qoption ld '
7315 lt_prog_compiler_pic='-PIC'
7316 lt_prog_compiler_static='-Bstatic'
7319 sysv4 | sysv4.2uw2* | sysv4.3*)
7320 lt_prog_compiler_wl='-Wl,'
7321 lt_prog_compiler_pic='-KPIC'
7322 lt_prog_compiler_static='-Bstatic'
7326 if test -d /usr/nec ;then
7327 lt_prog_compiler_pic='-Kconform_pic'
7328 lt_prog_compiler_static='-Bstatic'
7332 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7333 lt_prog_compiler_wl='-Wl,'
7334 lt_prog_compiler_pic='-KPIC'
7335 lt_prog_compiler_static='-Bstatic'
7339 lt_prog_compiler_wl='-Wl,'
7340 lt_prog_compiler_can_build_shared=no
7344 lt_prog_compiler_pic='-pic'
7345 lt_prog_compiler_static='-Bstatic'
7349 lt_prog_compiler_can_build_shared=no
7354 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7355 $as_echo "$lt_prog_compiler_pic" >&6; }
7358 # Check to make sure the PIC flag actually works.
7360 if test -n "$lt_prog_compiler_pic"; then
7362 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7363 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7364 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7365 $as_echo_n "(cached) " >&6
7367 lt_cv_prog_compiler_pic_works=no
7368 ac_outfile=conftest.$ac_objext
7369 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7370 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7371 # Insert the option either (1) after the last *FLAGS variable, or
7372 # (2) before a word containing "conftest.", or (3) at the end.
7373 # Note that $ac_compile itself does not contain backslashes and begins
7374 # with a dollar sign (not a hyphen), so the echo should work correctly.
7375 # The option is referenced via a variable to avoid confusing sed.
7376 lt_compile=`echo "$ac_compile" | $SED \
7377 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7378 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7379 -e 's:$: $lt_compiler_flag:'`
7380 (eval echo "\"\$as_me:7380: $lt_compile\"" >&5)
7381 (eval "$lt_compile" 2>conftest.err)
7383 cat conftest.err >&5
7384 echo "$as_me:7384: \$? = $ac_status" >&5
7385 if (exit $ac_status) && test -s "$ac_outfile"; then
7386 # The compiler can only warn and ignore the option if not recognized
7387 # So say no if there are warnings other than the usual output.
7388 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7389 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7390 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7391 lt_cv_prog_compiler_pic_works=yes
7397 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7398 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7400 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7401 case $lt_prog_compiler_pic in
7403 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7406 lt_prog_compiler_pic=
7407 lt_prog_compiler_can_build_shared=no
7412 # For platforms which do not support PIC, -DPIC is meaningless:
7414 lt_prog_compiler_pic=
7417 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7422 # Check to make sure the static flag actually works.
7424 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7425 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7426 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7427 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7428 $as_echo_n "(cached) " >&6
7430 lt_cv_prog_compiler_static_works=no
7431 save_LDFLAGS="$LDFLAGS"
7432 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7433 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7434 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7435 # The linker can only warn and ignore the option if not recognized
7436 # So say no if there are warnings
7437 if test -s conftest.err; then
7438 # Append any errors to the config.log.
7439 cat conftest.err 1>&5
7440 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7442 if diff conftest.exp conftest.er2 >/dev/null; then
7443 lt_cv_prog_compiler_static_works=yes
7446 lt_cv_prog_compiler_static_works=yes
7450 LDFLAGS="$save_LDFLAGS"
7453 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7454 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7456 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7459 lt_prog_compiler_static=
7463 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7464 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7465 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7466 $as_echo_n "(cached) " >&6
7468 lt_cv_prog_compiler_c_o=no
7469 $rm -r conftest 2>/dev/null
7473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7475 lt_compiler_flag="-o out/conftest2.$ac_objext"
7476 # Insert the option either (1) after the last *FLAGS variable, or
7477 # (2) before a word containing "conftest.", or (3) at the end.
7478 # Note that $ac_compile itself does not contain backslashes and begins
7479 # with a dollar sign (not a hyphen), so the echo should work correctly.
7480 lt_compile=`echo "$ac_compile" | $SED \
7481 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7483 -e 's:$: $lt_compiler_flag:'`
7484 (eval echo "\"\$as_me:7484: $lt_compile\"" >&5)
7485 (eval "$lt_compile" 2>out/conftest.err)
7487 cat out/conftest.err >&5
7488 echo "$as_me:7488: \$? = $ac_status" >&5
7489 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7491 # The compiler can only warn and ignore the option if not recognized
7492 # So say no if there are warnings
7493 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7494 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7495 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7496 lt_cv_prog_compiler_c_o=yes
7501 # SGI C++ compiler will create directory out/ii_files/ for
7502 # template instantiation
7503 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7504 $rm out/* && rmdir out
7510 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7511 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7514 hard_links="nottested"
7515 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7516 # do not overwrite the value of need_locks provided by the user
7517 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7518 $as_echo_n "checking if we can lock with hard links... " >&6; }
7521 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7523 ln conftest.a conftest.b 2>&5 || hard_links=no
7524 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7525 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7526 $as_echo "$hard_links" >&6; }
7527 if test "$hard_links" = no; then
7528 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7529 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7536 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7537 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7540 allow_undefined_flag=
7541 enable_shared_with_static_runtimes=no
7543 archive_expsym_cmds=
7544 old_archive_From_new_cmds=
7545 old_archive_from_expsyms_cmds=
7546 export_dynamic_flag_spec=
7547 whole_archive_flag_spec=
7548 thread_safe_flag_spec=
7549 hardcode_libdir_flag_spec=
7550 hardcode_libdir_flag_spec_ld=
7551 hardcode_libdir_separator=
7554 hardcode_shlibpath_var=unsupported
7555 link_all_deplibs=unknown
7556 hardcode_automatic=no
7559 always_export_symbols=no
7560 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7561 # include_expsyms should be a list of space-separated symbols to be *always*
7562 # included in the symbol list
7564 # exclude_expsyms can be an extended regexp of symbols to exclude
7565 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7566 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7567 # as well as any symbol that contains `d'.
7568 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7569 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7570 # platforms (ab)use it in PIC code, but their linkers get confused if
7571 # the symbol is explicitly referenced. Since portable code cannot
7572 # rely on this symbol name, it's probably fine to never include it in
7573 # preloaded symbol tables.
7574 # Exclude shared library initialization/finalization symbols.
7575 extract_expsyms_cmds=
7576 # Just being paranoid about ensuring that cc_basename is set.
7577 for cc_temp in $compiler""; do
7579 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7580 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7585 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7588 cygwin* | mingw* | pw32*)
7589 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7590 # When not using gcc, we currently assume that we are using
7591 # Microsoft Visual C++.
7592 if test "$GCC" != yes; then
7597 # we just hope/assume this is gcc and not c89 (= MSVC++)
7606 if test "$with_gnu_ld" = yes; then
7607 # If archive_cmds runs LD, not CC, wlarc should be empty
7610 # Set some defaults for GNU ld with shared library support. These
7611 # are reset later if shared libraries are not supported. Putting them
7612 # here allows them to be overridden if necessary.
7613 runpath_var=LD_RUN_PATH
7614 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7615 export_dynamic_flag_spec='${wl}--export-dynamic'
7616 # ancient GNU ld didn't support --whole-archive et. al.
7617 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7618 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7620 whole_archive_flag_spec=
7622 supports_anon_versioning=no
7623 case `$LD -v 2>/dev/null` in
7624 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7625 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7626 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7627 *\ 2.11.*) ;; # other 2.11 versions
7628 *) supports_anon_versioning=yes ;;
7631 # See if GNU ld supports shared libraries.
7634 # On AIX/PPC, the GNU linker is very broken
7635 if test "$host_cpu" != ia64; then
7639 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7640 *** to be unable to reliably create shared libraries on AIX.
7641 *** Therefore, libtool is disabling shared libraries support. If you
7642 *** really care for shared libraries, you may want to modify your PATH
7643 *** so that a non-GNU linker is found, and then restart.
7650 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)'
7651 hardcode_libdir_flag_spec='-L$libdir'
7652 hardcode_minus_L=yes
7654 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7655 # that the semantics of dynamic libraries on AmigaOS, at least up
7656 # to version 4, is to share data among multiple programs linked
7657 # with the same dynamic library. Since this doesn't match the
7658 # behavior of shared libraries on other platforms, we can't use
7664 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7665 allow_undefined_flag=unsupported
7666 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7667 # support --undefined. This deserves some investigation. FIXME
7668 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7674 cygwin* | mingw* | pw32*)
7675 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7676 # as there is no search path for DLLs.
7677 hardcode_libdir_flag_spec='-L$libdir'
7678 allow_undefined_flag=unsupported
7679 always_export_symbols=no
7680 enable_shared_with_static_runtimes=yes
7681 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7683 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7685 # If the export-symbols file already is a .def file (1st line
7686 # is EXPORTS), use it as is; otherwise, prepend...
7687 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7688 cp $export_symbols $output_objdir/$soname.def;
7690 echo EXPORTS > $output_objdir/$soname.def;
7691 cat $export_symbols >> $output_objdir/$soname.def;
7693 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7701 hardcode_shlibpath_var=no
7702 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7703 export_dynamic_flag_spec='${wl}-E'
7704 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7705 # Instead, shared libraries are loaded at an image base (0x10000000 by
7706 # default) and relocated if they conflict, which is a slow very memory
7707 # consuming and fragmenting process. To avoid this, we pick a random,
7708 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7709 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7710 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7711 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'
7714 gnu* | linux* | k*bsd*-gnu)
7715 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7717 case $cc_basename,$host_cpu in
7718 pgcc*) # Portland Group C compiler
7719 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'
7720 tmp_addflag=' $pic_flag'
7722 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7723 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'
7724 tmp_addflag=' $pic_flag -Mnomain' ;;
7725 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7726 tmp_addflag=' -i_dynamic' ;;
7727 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7728 tmp_addflag=' -i_dynamic -nofor_main' ;;
7729 ifc* | ifort*) # Intel Fortran compiler
7730 tmp_addflag=' -nofor_main' ;;
7732 case `$CC -V 2>&1 | sed 5q` in
7733 *Sun\ C*) # Sun C 5.9
7734 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'
7735 tmp_sharedflag='-G' ;;
7736 *Sun\ F*) # Sun Fortran 8.3
7737 tmp_sharedflag='-G' ;;
7739 tmp_sharedflag='-shared' ;;
7741 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7743 if test $supports_anon_versioning = yes; then
7744 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7745 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7746 $echo "local: *; };" >> $output_objdir/$libname.ver~
7747 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7755 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7756 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7760 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7765 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7769 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7770 *** create shared libraries on Solaris systems. Therefore, libtool
7771 *** is disabling shared libraries support. We urge you to upgrade GNU
7772 *** binutils to release 2.9.1 or newer. Another option is to modify
7773 *** your PATH or compiler configuration so that the native linker is
7774 *** used, and then restart.
7777 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7778 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7779 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7785 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7786 case `$LD -v 2>&1` in
7787 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7791 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7792 *** reliably create shared libraries on SCO systems. Therefore, libtool
7793 *** is disabling shared libraries support. We urge you to upgrade GNU
7794 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7795 *** your PATH or compiler configuration so that the native linker is
7796 *** used, and then restart.
7801 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7802 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7803 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7804 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7813 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7816 hardcode_shlibpath_var=no
7820 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7821 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7822 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7829 if test "$ld_shlibs" = no; then
7831 hardcode_libdir_flag_spec=
7832 export_dynamic_flag_spec=
7833 whole_archive_flag_spec=
7836 # PORTME fill in a description of your system's linker (not GNU ld)
7839 allow_undefined_flag=unsupported
7840 always_export_symbols=yes
7841 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'
7842 # Note: this linker hardcodes the directories in LIBPATH if there
7843 # are no directories specified by -L.
7844 hardcode_minus_L=yes
7845 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7846 # Neither direct hardcoding nor static linking is supported with a
7848 hardcode_direct=unsupported
7853 if test "$host_cpu" = ia64; then
7854 # On IA64, the linker does run time linking by default, so we don't
7855 # have to do anything special.
7856 aix_use_runtimelinking=no
7857 exp_sym_flag='-Bexport'
7860 # If we're using GNU nm, then we don't want the "-C" option.
7861 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7862 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7863 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'
7865 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'
7867 aix_use_runtimelinking=no
7869 # Test if we are trying to use run time linking or normal
7870 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7871 # need to do runtime linking.
7872 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7873 for ld_flag in $LDFLAGS; do
7874 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7875 aix_use_runtimelinking=yes
7882 exp_sym_flag='-bexport'
7883 no_entry_flag='-bnoentry'
7886 # When large executables or shared objects are built, AIX ld can
7887 # have problems creating the table of contents. If linking a library
7888 # or program results in "error TOC overflow" add -mminimal-toc to
7889 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7890 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7894 hardcode_libdir_separator=':'
7895 link_all_deplibs=yes
7897 if test "$GCC" = yes; then
7898 case $host_os in aix4.[012]|aix4.[012].*)
7899 # We only want to do this on AIX 4.2 and lower, the check
7900 # below for broken collect2 doesn't work under 4.3+
7901 collect2name=`${CC} -print-prog-name=collect2`
7902 if test -f "$collect2name" && \
7903 strings "$collect2name" | grep resolve_lib_name >/dev/null
7905 # We have reworked collect2
7908 # We have old collect2
7909 hardcode_direct=unsupported
7910 # It fails to find uninstalled libraries when the uninstalled
7911 # path is not listed in the libpath. Setting hardcode_minus_L
7912 # to unsupported forces relinking
7913 hardcode_minus_L=yes
7914 hardcode_libdir_flag_spec='-L$libdir'
7915 hardcode_libdir_separator=
7919 shared_flag='-shared'
7920 if test "$aix_use_runtimelinking" = yes; then
7921 shared_flag="$shared_flag "'${wl}-G'
7925 if test "$host_cpu" = ia64; then
7926 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7927 # chokes on -Wl,-G. The following line is correct:
7930 if test "$aix_use_runtimelinking" = yes; then
7931 shared_flag='${wl}-G'
7933 shared_flag='${wl}-bM:SRE'
7938 # It seems that -bexpall does not export symbols beginning with
7939 # underscore (_), so it is better to generate a list of symbols to export.
7940 always_export_symbols=yes
7941 if test "$aix_use_runtimelinking" = yes; then
7942 # Warning - without using the other runtime loading flags (-brtl),
7943 # -berok will link without error, but may produce a broken library.
7944 allow_undefined_flag='-berok'
7945 # Determine the default libpath from the value encoded in an empty executable.
7946 cat >conftest.$ac_ext <<_ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h. */
7961 rm -f conftest.$ac_objext conftest$ac_exeext
7962 if { (ac_try="$ac_link"
7964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965 *) ac_try_echo=$ac_try;;
7967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7968 $as_echo "$ac_try_echo") >&5
7969 (eval "$ac_link") 2>conftest.er1
7971 grep -v '^ *+' conftest.er1 >conftest.err
7973 cat conftest.err >&5
7974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } && {
7976 test -z "$ac_c_werror_flag" ||
7977 test ! -s conftest.err
7978 } && test -s conftest$ac_exeext && {
7979 test "$cross_compiling" = yes ||
7980 $as_test_x conftest$ac_exeext
7983 lt_aix_libpath_sed='
7984 /Import File Strings/,/^$/ {
7990 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7991 # Check for a 64-bit object if we didn't find anything.
7992 if test -z "$aix_libpath"; then
7993 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7996 $as_echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
8002 rm -rf conftest.dSYM
8003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8004 conftest$ac_exeext conftest.$ac_ext
8005 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8007 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8008 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8010 if test "$host_cpu" = ia64; then
8011 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8012 allow_undefined_flag="-z nodefs"
8013 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"
8015 # Determine the default libpath from the value encoded in an empty executable.
8016 cat >conftest.$ac_ext <<_ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8031 rm -f conftest.$ac_objext conftest$ac_exeext
8032 if { (ac_try="$ac_link"
8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8038 $as_echo "$ac_try_echo") >&5
8039 (eval "$ac_link") 2>conftest.er1
8041 grep -v '^ *+' conftest.er1 >conftest.err
8043 cat conftest.err >&5
8044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } && {
8046 test -z "$ac_c_werror_flag" ||
8047 test ! -s conftest.err
8048 } && test -s conftest$ac_exeext && {
8049 test "$cross_compiling" = yes ||
8050 $as_test_x conftest$ac_exeext
8053 lt_aix_libpath_sed='
8054 /Import File Strings/,/^$/ {
8060 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8061 # Check for a 64-bit object if we didn't find anything.
8062 if test -z "$aix_libpath"; then
8063 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8066 $as_echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8072 rm -rf conftest.dSYM
8073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8074 conftest$ac_exeext conftest.$ac_ext
8075 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8077 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8078 # Warning - without using the other run time loading flags,
8079 # -berok will link without error, but may produce a broken library.
8080 no_undefined_flag=' ${wl}-bernotok'
8081 allow_undefined_flag=' ${wl}-berok'
8082 # Exported symbols can be pulled into shared objects from archives
8083 whole_archive_flag_spec='$convenience'
8084 archive_cmds_need_lc=yes
8085 # This is similar to how AIX traditionally builds its shared libraries.
8086 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'
8092 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)'
8093 hardcode_libdir_flag_spec='-L$libdir'
8094 hardcode_minus_L=yes
8095 # see comment about different semantics on the GNU ld section
8100 export_dynamic_flag_spec=-rdynamic
8103 cygwin* | mingw* | pw32*)
8104 # When not using gcc, we currently assume that we are using
8105 # Microsoft Visual C++.
8106 # hardcode_libdir_flag_spec is actually meaningless, as there is
8107 # no search path for DLLs.
8108 hardcode_libdir_flag_spec=' '
8109 allow_undefined_flag=unsupported
8110 # Tell ltmain to make .lib files, not .a files.
8112 # Tell ltmain to make .dll files, not .so files.
8114 # FIXME: Setting linknames here is a bad hack.
8115 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8116 # The linker will automatically build a .lib file if we build a DLL.
8117 old_archive_From_new_cmds='true'
8118 # FIXME: Should let the user specify the lib program.
8119 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8120 fix_srcfile_path='`cygpath -w "$srcfile"`'
8121 enable_shared_with_static_runtimes=yes
8124 darwin* | rhapsody*)
8126 rhapsody* | darwin1.[012])
8127 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8130 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8131 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8133 case ${MACOSX_DEPLOYMENT_TARGET} in
8135 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8138 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8144 archive_cmds_need_lc=no
8146 hardcode_automatic=yes
8147 hardcode_shlibpath_var=unsupported
8148 whole_archive_flag_spec=''
8149 link_all_deplibs=yes
8150 if test "$GCC" = yes ; then
8151 output_verbose_link_cmd='echo'
8152 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8153 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8154 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}"
8155 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}"
8157 case $cc_basename in
8159 output_verbose_link_cmd='echo'
8160 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8161 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8162 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8163 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8164 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8174 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8175 hardcode_libdir_flag_spec='-L$libdir'
8176 hardcode_shlibpath_var=no
8183 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8184 # support. Future versions do this automatically, but an explicit c++rt0.o
8185 # does not break anything, and helps significantly (at the cost of a little
8188 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8189 hardcode_libdir_flag_spec='-R$libdir'
8191 hardcode_shlibpath_var=no
8194 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8196 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8198 hardcode_minus_L=yes
8199 hardcode_shlibpath_var=no
8202 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8203 freebsd* | dragonfly*)
8204 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8205 hardcode_libdir_flag_spec='-R$libdir'
8207 hardcode_shlibpath_var=no
8211 if test "$GCC" = yes; then
8212 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'
8214 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'
8216 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8217 hardcode_libdir_separator=:
8220 # hardcode_minus_L: Not really in the search PATH,
8221 # but as the default location of the library.
8222 hardcode_minus_L=yes
8223 export_dynamic_flag_spec='${wl}-E'
8227 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8228 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8230 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8232 if test "$with_gnu_ld" = no; then
8233 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8234 hardcode_libdir_separator=:
8237 export_dynamic_flag_spec='${wl}-E'
8239 # hardcode_minus_L: Not really in the search PATH,
8240 # but as the default location of the library.
8241 hardcode_minus_L=yes
8246 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8249 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8252 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8255 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8261 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8264 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8267 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8271 if test "$with_gnu_ld" = no; then
8272 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8273 hardcode_libdir_separator=:
8277 hardcode_libdir_flag_spec_ld='+b $libdir'
8279 hardcode_shlibpath_var=no
8283 export_dynamic_flag_spec='${wl}-E'
8285 # hardcode_minus_L: Not really in the search PATH,
8286 # but as the default location of the library.
8287 hardcode_minus_L=yes
8293 irix5* | irix6* | nonstopux*)
8294 if test "$GCC" = yes; then
8295 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8297 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8298 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8301 hardcode_libdir_separator=:
8302 link_all_deplibs=yes
8306 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8307 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8309 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8311 hardcode_libdir_flag_spec='-R$libdir'
8313 hardcode_shlibpath_var=no
8317 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8319 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8320 hardcode_libdir_separator=:
8321 hardcode_shlibpath_var=no
8325 if test -f /usr/libexec/ld.so; then
8327 hardcode_shlibpath_var=no
8328 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8329 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8330 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8331 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8332 export_dynamic_flag_spec='${wl}-E'
8335 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8336 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8337 hardcode_libdir_flag_spec='-R$libdir'
8340 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8341 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8351 hardcode_libdir_flag_spec='-L$libdir'
8352 hardcode_minus_L=yes
8353 allow_undefined_flag=unsupported
8354 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'
8355 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8359 if test "$GCC" = yes; then
8360 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8361 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8363 allow_undefined_flag=' -expect_unresolved \*'
8364 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8366 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8367 hardcode_libdir_separator=:
8370 osf4* | osf5*) # as osf3* with the addition of -msym flag
8371 if test "$GCC" = yes; then
8372 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8373 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8374 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8376 allow_undefined_flag=' -expect_unresolved \*'
8377 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8378 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8379 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8381 # Both c and cxx compiler support -rpath directly
8382 hardcode_libdir_flag_spec='-rpath $libdir'
8384 hardcode_libdir_separator=:
8388 no_undefined_flag=' -z text'
8389 if test "$GCC" = yes; then
8391 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8392 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8393 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8396 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8397 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8398 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8400 hardcode_libdir_flag_spec='-R$libdir'
8401 hardcode_shlibpath_var=no
8403 solaris2.[0-5] | solaris2.[0-5].*) ;;
8405 # The compiler driver will combine and reorder linker options,
8406 # but understands `-z linker_flag'. GCC discards it without `$wl',
8407 # but is careful enough not to reorder.
8408 # Supported since Solaris 2.6 (maybe 2.5.1?)
8409 if test "$GCC" = yes; then
8410 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8412 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8416 link_all_deplibs=yes
8420 if test "x$host_vendor" = xsequent; then
8421 # Use $CC to link under sequent, because it throws in some extra .o
8422 # files that make .init and .fini sections work.
8423 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8425 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8427 hardcode_libdir_flag_spec='-L$libdir'
8429 hardcode_minus_L=yes
8430 hardcode_shlibpath_var=no
8434 case $host_vendor in
8436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8437 hardcode_direct=yes # is this really true???
8440 ## LD is ld it makes a PLAMLIB
8441 ## CC just makes a GrossModule.
8442 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8443 reload_cmds='$CC -r -o $output$reload_objs'
8447 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8448 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8451 runpath_var='LD_RUN_PATH'
8452 hardcode_shlibpath_var=no
8456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8457 hardcode_shlibpath_var=no
8458 export_dynamic_flag_spec='-Bexport'
8462 if test -d /usr/nec; then
8463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8464 hardcode_shlibpath_var=no
8465 runpath_var=LD_RUN_PATH
8466 hardcode_runpath_var=yes
8471 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8472 no_undefined_flag='${wl}-z,text'
8473 archive_cmds_need_lc=no
8474 hardcode_shlibpath_var=no
8475 runpath_var='LD_RUN_PATH'
8477 if test "$GCC" = yes; then
8478 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8479 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8481 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8482 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8486 sysv5* | sco3.2v5* | sco5v6*)
8487 # Note: We can NOT use -z defs as we might desire, because we do not
8488 # link with -lc, and that would cause any symbols used from libc to
8489 # always be unresolved, which means just about no library would
8490 # ever link correctly. If we're not using GNU ld we use -z text
8491 # though, which does catch some bad symbols but isn't as heavy-handed
8493 no_undefined_flag='${wl}-z,text'
8494 allow_undefined_flag='${wl}-z,nodefs'
8495 archive_cmds_need_lc=no
8496 hardcode_shlibpath_var=no
8497 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8498 hardcode_libdir_separator=':'
8499 link_all_deplibs=yes
8500 export_dynamic_flag_spec='${wl}-Bexport'
8501 runpath_var='LD_RUN_PATH'
8503 if test "$GCC" = yes; then
8504 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8505 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8507 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8508 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8514 hardcode_libdir_flag_spec='-L$libdir'
8515 hardcode_shlibpath_var=no
8524 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8525 $as_echo "$ld_shlibs" >&6; }
8526 test "$ld_shlibs" = no && can_build_shared=no
8529 # Do we need to explicitly link libc?
8531 case "x$archive_cmds_need_lc" in
8533 # Assume -lc should be added
8534 archive_cmds_need_lc=yes
8536 if test "$enable_shared" = yes && test "$GCC" = yes; then
8537 case $archive_cmds in
8539 # FIXME: we may have to deal with multi-command sequences.
8542 # Test whether the compiler implicitly links with -lc since on some
8543 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8544 # to ld, don't add -lc before -lgcc.
8545 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8546 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8548 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8551 (eval $ac_compile) 2>&5
8553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); } 2>conftest.err; then
8557 libobjs=conftest.$ac_objext
8559 wl=$lt_prog_compiler_wl
8560 pic_flag=$lt_prog_compiler_pic
8566 lt_save_allow_undefined_flag=$allow_undefined_flag
8567 allow_undefined_flag=
8568 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8569 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }
8574 archive_cmds_need_lc=no
8576 archive_cmds_need_lc=yes
8578 allow_undefined_flag=$lt_save_allow_undefined_flag
8580 cat conftest.err 1>&5
8583 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8584 $as_echo "$archive_cmds_need_lc" >&6; }
8591 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8592 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8594 libname_spec='lib$name'
8602 shlibpath_overrides_runpath=unknown
8604 dynamic_linker="$host_os ld.so"
8605 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8607 if test "$GCC" = yes; then
8609 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8610 *) lt_awk_arg="/^libraries:/" ;;
8612 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8613 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8614 # if the path contains ";" then we assume it to be the separator
8615 # otherwise default to the standard path separator (i.e. ":") - it is
8616 # assumed that no part of a normal pathname contains ";" but that should
8617 # okay in the real world where ";" in dirpaths is itself problematic.
8618 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8620 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8622 # Ok, now we have the path, separated by spaces, we can step through it
8623 # and add multilib dir if necessary.
8624 lt_tmp_lt_search_path_spec=
8625 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8626 for lt_sys_path in $lt_search_path_spec; do
8627 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8628 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8630 test -d "$lt_sys_path" && \
8631 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8634 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8635 BEGIN {RS=" "; FS="/|\n";} {
8638 for (lt_i = NF; lt_i > 0; lt_i--) {
8639 if ($lt_i != "" && $lt_i != ".") {
8640 if ($lt_i == "..") {
8643 if (lt_count == 0) {
8644 lt_foo="/" $lt_i lt_foo;
8651 if (lt_foo != "") { lt_freq[lt_foo]++; }
8652 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8654 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8656 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8658 need_lib_prefix=unknown
8659 hardcode_into_libs=no
8661 # when you set need_version to no, make sure it does not cause -set_version
8662 # flags to be left without arguments
8663 need_version=unknown
8668 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8669 shlibpath_var=LIBPATH
8671 # AIX 3 has no versioning support, so we append a major version to the name.
8672 soname_spec='${libname}${release}${shared_ext}$major'
8679 hardcode_into_libs=yes
8680 if test "$host_cpu" = ia64; then
8681 # AIX 5 supports IA64
8682 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8683 shlibpath_var=LD_LIBRARY_PATH
8685 # With GCC up to 2.95.x, collect2 would create an import file
8686 # for dependence libraries. The import file would start with
8687 # the line `#! .'. This would cause the generated library to
8688 # depend on `.', always an invalid library. This was fixed in
8689 # development snapshots of GCC prior to 3.0.
8691 aix4 | aix4.[01] | aix4.[01].*)
8692 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8694 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8701 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8702 # soname into executable. Probably we can add versioning support to
8703 # collect2, so additional links can be useful in future.
8704 if test "$aix_use_runtimelinking" = yes; then
8705 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8706 # instead of lib<name>.a to let people know that these are not
8707 # typical AIX shared libraries.
8708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8710 # We preserve .a as extension for shared libraries through AIX4.2
8711 # and later when we are not doing run time linking.
8712 library_names_spec='${libname}${release}.a $libname.a'
8713 soname_spec='${libname}${release}${shared_ext}$major'
8715 shlibpath_var=LIBPATH
8720 library_names_spec='$libname.ixlibrary $libname.a'
8721 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8722 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'
8726 library_names_spec='${libname}${shared_ext}'
8727 dynamic_linker="$host_os ld.so"
8728 shlibpath_var=LIBRARY_PATH
8734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8735 soname_spec='${libname}${release}${shared_ext}$major'
8736 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8737 shlibpath_var=LD_LIBRARY_PATH
8738 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8739 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8740 # the default ld.so.conf also contains /usr/contrib/lib and
8741 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8742 # libtool to hard-code these into programs
8745 cygwin* | mingw* | pw32*)
8746 version_type=windows
8751 case $GCC,$host_os in
8752 yes,cygwin* | yes,mingw* | yes,pw32*)
8753 library_names_spec='$libname.dll.a'
8754 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8755 postinstall_cmds='base_file=`basename \${file}`~
8756 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8757 dldir=$destdir/`dirname \$dlpath`~
8758 test -d \$dldir || mkdir -p \$dldir~
8759 $install_prog $dir/$dlname \$dldir/$dlname~
8760 chmod a+x \$dldir/$dlname'
8761 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8762 dlpath=$dir/\$dldll~
8764 shlibpath_overrides_runpath=yes
8768 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8769 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8770 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8773 # MinGW DLLs use traditional 'lib' prefix
8774 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8775 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8776 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8777 # It is most probably a Windows format PATH printed by
8778 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8779 # path with ; separators, and with drive letters. We can handle the
8780 # drive letters (cygwin fileutils understands them), so leave them,
8781 # especially as we might pass files found there to a mingw objdump,
8782 # which wouldn't understand a cygwinified path. Ahh.
8783 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8785 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8789 # pw32 DLLs use 'pw' prefix rather than 'lib'
8790 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8796 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8799 dynamic_linker='Win32 ld.exe'
8800 # FIXME: first we should search . and the directory the executable is in
8804 darwin* | rhapsody*)
8805 dynamic_linker="$host_os dyld"
8809 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8810 soname_spec='${libname}${release}${major}$shared_ext'
8811 shlibpath_overrides_runpath=yes
8812 shlibpath_var=DYLD_LIBRARY_PATH
8813 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8815 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8816 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8824 soname_spec='${libname}${release}${shared_ext}$major'
8825 shlibpath_var=LD_LIBRARY_PATH
8832 freebsd* | dragonfly*)
8833 # DragonFly does not have aout. When/if they implement a new
8834 # versioning mechanism, adjust this.
8835 if test -x /usr/bin/objformat; then
8836 objformat=`/usr/bin/objformat`
8839 freebsd[123]*) objformat=aout ;;
8843 version_type=freebsd-$objformat
8844 case $version_type in
8846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8851 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8855 shlibpath_var=LD_LIBRARY_PATH
8858 shlibpath_overrides_runpath=yes
8860 freebsd3.[01]* | freebsdelf3.[01]*)
8861 shlibpath_overrides_runpath=yes
8862 hardcode_into_libs=yes
8864 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8865 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8866 shlibpath_overrides_runpath=no
8867 hardcode_into_libs=yes
8869 *) # from 4.6 on, and DragonFly
8870 shlibpath_overrides_runpath=yes
8871 hardcode_into_libs=yes
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8881 soname_spec='${libname}${release}${shared_ext}$major'
8882 shlibpath_var=LD_LIBRARY_PATH
8883 hardcode_into_libs=yes
8886 hpux9* | hpux10* | hpux11*)
8887 # Give a soname corresponding to the major version so that dld.sl refuses to
8888 # link against other versions.
8895 hardcode_into_libs=yes
8896 dynamic_linker="$host_os dld.so"
8897 shlibpath_var=LD_LIBRARY_PATH
8898 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8900 soname_spec='${libname}${release}${shared_ext}$major'
8901 if test "X$HPUX_IA64_MODE" = X32; then
8902 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8904 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8906 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8910 hardcode_into_libs=yes
8911 dynamic_linker="$host_os dld.sl"
8912 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8913 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8915 soname_spec='${libname}${release}${shared_ext}$major'
8916 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8917 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8921 dynamic_linker="$host_os dld.sl"
8922 shlibpath_var=SHLIB_PATH
8923 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8925 soname_spec='${libname}${release}${shared_ext}$major'
8928 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8929 postinstall_cmds='chmod 555 $lib'
8936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8937 soname_spec='${libname}${release}${shared_ext}$major'
8938 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8939 shlibpath_var=LD_LIBRARY_PATH
8940 shlibpath_overrides_runpath=no
8941 hardcode_into_libs=yes
8944 irix5* | irix6* | nonstopux*)
8946 nonstopux*) version_type=nonstopux ;;
8948 if test "$lt_cv_prog_gnu_ld" = yes; then
8956 soname_spec='${libname}${release}${shared_ext}$major'
8957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8959 irix5* | nonstopux*)
8963 case $LD in # libtool.m4 will add one of these switches to LD
8964 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8965 libsuff= shlibsuff= libmagic=32-bit;;
8966 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8967 libsuff=32 shlibsuff=N32 libmagic=N32;;
8968 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8969 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8970 *) libsuff= shlibsuff= libmagic=never-match;;
8974 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8975 shlibpath_overrides_runpath=no
8976 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8977 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8978 hardcode_into_libs=yes
8981 # No shared lib support for Linux oldld, aout, or coff.
8982 linux*oldld* | linux*aout* | linux*coff*)
8986 # This must be Linux ELF.
8987 linux* | k*bsd*-gnu)
8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8992 soname_spec='${libname}${release}${shared_ext}$major'
8993 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8994 shlibpath_var=LD_LIBRARY_PATH
8995 shlibpath_overrides_runpath=no
8996 # This implies no fast_install, which is unacceptable.
8997 # Some rework will be needed to allow for fast_install
8998 # before this can be enabled.
8999 hardcode_into_libs=yes
9001 # Append ld.so.conf contents to the search path
9002 if test -f /etc/ld.so.conf; then
9003 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' ' '`
9004 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9007 # We used to test for /lib/ld.so.1 and disable shared libraries on
9008 # powerpc, because MkLinux only supported shared libraries with the
9009 # GNU dynamic linker. Since this was broken with cross compilers,
9010 # most powerpc-linux boxes support dynamic linking these days and
9011 # people can always --disable-shared, the test was removed, and we
9012 # assume the GNU/Linux dynamic linker is in use.
9013 dynamic_linker='GNU/Linux ld.so'
9020 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9022 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9023 dynamic_linker='NetBSD (a.out) ld.so'
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9026 soname_spec='${libname}${release}${shared_ext}$major'
9027 dynamic_linker='NetBSD ld.elf_so'
9029 shlibpath_var=LD_LIBRARY_PATH
9030 shlibpath_overrides_runpath=yes
9031 hardcode_into_libs=yes
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9037 shlibpath_var=LD_LIBRARY_PATH
9038 shlibpath_overrides_runpath=yes
9045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9046 soname_spec='${libname}${release}${shared_ext}$major'
9047 shlibpath_var=LD_LIBRARY_PATH
9048 shlibpath_overrides_runpath=yes
9053 sys_lib_dlsearch_path_spec="/usr/lib"
9055 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9057 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9058 *) need_version=no ;;
9060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9062 shlibpath_var=LD_LIBRARY_PATH
9063 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9065 openbsd2.[89] | openbsd2.[89].*)
9066 shlibpath_overrides_runpath=no
9069 shlibpath_overrides_runpath=yes
9073 shlibpath_overrides_runpath=yes
9078 libname_spec='$name'
9081 library_names_spec='$libname${shared_ext} $libname.a'
9082 dynamic_linker='OS/2 ld.exe'
9083 shlibpath_var=LIBPATH
9086 osf3* | osf4* | osf5*)
9090 soname_spec='${libname}${release}${shared_ext}$major'
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092 shlibpath_var=LD_LIBRARY_PATH
9093 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9094 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9106 soname_spec='${libname}${release}${shared_ext}$major'
9107 shlibpath_var=LD_LIBRARY_PATH
9108 shlibpath_overrides_runpath=yes
9109 hardcode_into_libs=yes
9110 # ldd complains unless libraries are executable
9111 postinstall_cmds='chmod +x $lib'
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9117 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9118 shlibpath_var=LD_LIBRARY_PATH
9119 shlibpath_overrides_runpath=yes
9120 if test "$with_gnu_ld" = yes; then
9128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9129 soname_spec='${libname}${release}${shared_ext}$major'
9130 shlibpath_var=LD_LIBRARY_PATH
9131 case $host_vendor in
9133 shlibpath_overrides_runpath=no
9135 export_dynamic_flag_spec='${wl}-Blargedynsym'
9136 runpath_var=LD_RUN_PATH
9144 shlibpath_overrides_runpath=no
9145 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9151 if test -d /usr/nec ;then
9153 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9154 soname_spec='$libname${shared_ext}.$major'
9155 shlibpath_var=LD_LIBRARY_PATH
9159 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9160 version_type=freebsd-elf
9163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9164 soname_spec='${libname}${release}${shared_ext}$major'
9165 shlibpath_var=LD_LIBRARY_PATH
9166 hardcode_into_libs=yes
9167 if test "$with_gnu_ld" = yes; then
9168 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9169 shlibpath_overrides_runpath=no
9171 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9172 shlibpath_overrides_runpath=yes
9175 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9179 sys_lib_dlsearch_path_spec='/usr/lib'
9184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9185 soname_spec='${libname}${release}${shared_ext}$major'
9186 shlibpath_var=LD_LIBRARY_PATH
9193 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9194 $as_echo "$dynamic_linker" >&6; }
9195 test "$dynamic_linker" = no && can_build_shared=no
9197 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9198 $as_echo_n "(cached) " >&6
9200 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9203 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9204 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9205 $as_echo_n "(cached) " >&6
9207 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9210 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9212 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9213 if test "$GCC" = yes; then
9214 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9217 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9218 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9220 if test -n "$hardcode_libdir_flag_spec" || \
9221 test -n "$runpath_var" || \
9222 test "X$hardcode_automatic" = "Xyes" ; then
9224 # We can hardcode non-existant directories.
9225 if test "$hardcode_direct" != no &&
9226 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9227 # have to relink, otherwise we might link with an installed library
9228 # when we should be linking with a yet-to-be-installed one
9229 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9230 test "$hardcode_minus_L" != no; then
9231 # Linking always hardcodes the temporary library directory.
9232 hardcode_action=relink
9234 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9235 hardcode_action=immediate
9238 # We cannot hardcode anything, or else we can only hardcode existing
9240 hardcode_action=unsupported
9242 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9243 $as_echo "$hardcode_action" >&6; }
9245 if test "$hardcode_action" = relink; then
9246 # Fast installation is not supported
9247 enable_fast_install=no
9248 elif test "$shlibpath_overrides_runpath" = yes ||
9249 test "$enable_shared" = no; then
9250 # Fast installation is not necessary
9251 enable_fast_install=needless
9256 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9257 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9258 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9259 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9260 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9261 { $as_echo "$as_me:$LINENO: result: yes" >&5
9262 $as_echo "yes" >&6; }
9264 # FIXME - insert some real tests, host_os isn't really good enough
9267 if test -n "$STRIP" ; then
9268 striplib="$STRIP -x"
9269 old_striplib="$STRIP -S"
9270 { $as_echo "$as_me:$LINENO: result: yes" >&5
9271 $as_echo "yes" >&6; }
9273 { $as_echo "$as_me:$LINENO: result: no" >&5
9274 $as_echo "no" >&6; }
9278 { $as_echo "$as_me:$LINENO: result: no" >&5
9279 $as_echo "no" >&6; }
9284 if test "x$enable_dlopen" != xyes; then
9285 enable_dlopen=unknown
9286 enable_dlopen_self=unknown
9287 enable_dlopen_self_static=unknown
9294 lt_cv_dlopen="load_add_on"
9296 lt_cv_dlopen_self=yes
9300 lt_cv_dlopen="LoadLibrary"
9305 lt_cv_dlopen="dlopen"
9310 # if libdl is installed we need to link against it
9311 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9312 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9313 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9314 $as_echo_n "(cached) " >&6
9316 ac_check_lib_save_LIBS=$LIBS
9318 cat >conftest.$ac_ext <<_ACEOF
9321 cat confdefs.h >>conftest.$ac_ext
9322 cat >>conftest.$ac_ext <<_ACEOF
9323 /* end confdefs.h. */
9325 /* Override any GCC internal prototype to avoid an error.
9326 Use char because int might match the return type of a GCC
9327 builtin and then its argument prototype would still apply. */
9340 rm -f conftest.$ac_objext conftest$ac_exeext
9341 if { (ac_try="$ac_link"
9343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344 *) ac_try_echo=$ac_try;;
9346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9347 $as_echo "$ac_try_echo") >&5
9348 (eval "$ac_link") 2>conftest.er1
9350 grep -v '^ *+' conftest.er1 >conftest.err
9352 cat conftest.err >&5
9353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); } && {
9355 test -z "$ac_c_werror_flag" ||
9356 test ! -s conftest.err
9357 } && test -s conftest$ac_exeext && {
9358 test "$cross_compiling" = yes ||
9359 $as_test_x conftest$ac_exeext
9361 ac_cv_lib_dl_dlopen=yes
9363 $as_echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9366 ac_cv_lib_dl_dlopen=no
9369 rm -rf conftest.dSYM
9370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9371 conftest$ac_exeext conftest.$ac_ext
9372 LIBS=$ac_check_lib_save_LIBS
9374 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9375 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9376 if test $ac_cv_lib_dl_dlopen = yes; then
9377 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9382 lt_cv_dlopen_self=yes
9389 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9390 $as_echo_n "checking for shl_load... " >&6; }
9391 if test "${ac_cv_func_shl_load+set}" = set; then
9392 $as_echo_n "(cached) " >&6
9394 cat >conftest.$ac_ext <<_ACEOF
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h. */
9400 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9402 #define shl_load innocuous_shl_load
9404 /* System header to define __stub macros and hopefully few prototypes,
9405 which can conflict with char shl_load (); below.
9406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9407 <limits.h> exists even on freestanding compilers. */
9410 # include <limits.h>
9412 # include <assert.h>
9417 /* Override any GCC internal prototype to avoid an error.
9418 Use char because int might match the return type of a GCC
9419 builtin and then its argument prototype would still apply. */
9424 /* The GNU C library defines this for functions which it implements
9425 to always fail with ENOSYS. Some functions are actually named
9426 something starting with __ and the normal name is an alias. */
9427 #if defined __stub_shl_load || defined __stub___shl_load
9439 rm -f conftest.$ac_objext conftest$ac_exeext
9440 if { (ac_try="$ac_link"
9442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9443 *) ac_try_echo=$ac_try;;
9445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9446 $as_echo "$ac_try_echo") >&5
9447 (eval "$ac_link") 2>conftest.er1
9449 grep -v '^ *+' conftest.er1 >conftest.err
9451 cat conftest.err >&5
9452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } && {
9454 test -z "$ac_c_werror_flag" ||
9455 test ! -s conftest.err
9456 } && test -s conftest$ac_exeext && {
9457 test "$cross_compiling" = yes ||
9458 $as_test_x conftest$ac_exeext
9460 ac_cv_func_shl_load=yes
9462 $as_echo "$as_me: failed program was:" >&5
9463 sed 's/^/| /' conftest.$ac_ext >&5
9465 ac_cv_func_shl_load=no
9468 rm -rf conftest.dSYM
9469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9470 conftest$ac_exeext conftest.$ac_ext
9472 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9473 $as_echo "$ac_cv_func_shl_load" >&6; }
9474 if test $ac_cv_func_shl_load = yes; then
9475 lt_cv_dlopen="shl_load"
9477 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9478 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9479 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9480 $as_echo_n "(cached) " >&6
9482 ac_check_lib_save_LIBS=$LIBS
9484 cat >conftest.$ac_ext <<_ACEOF
9487 cat confdefs.h >>conftest.$ac_ext
9488 cat >>conftest.$ac_ext <<_ACEOF
9489 /* end confdefs.h. */
9491 /* Override any GCC internal prototype to avoid an error.
9492 Use char because int might match the return type of a GCC
9493 builtin and then its argument prototype would still apply. */
9506 rm -f conftest.$ac_objext conftest$ac_exeext
9507 if { (ac_try="$ac_link"
9509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9510 *) ac_try_echo=$ac_try;;
9512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9513 $as_echo "$ac_try_echo") >&5
9514 (eval "$ac_link") 2>conftest.er1
9516 grep -v '^ *+' conftest.er1 >conftest.err
9518 cat conftest.err >&5
9519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } && {
9521 test -z "$ac_c_werror_flag" ||
9522 test ! -s conftest.err
9523 } && test -s conftest$ac_exeext && {
9524 test "$cross_compiling" = yes ||
9525 $as_test_x conftest$ac_exeext
9527 ac_cv_lib_dld_shl_load=yes
9529 $as_echo "$as_me: failed program was:" >&5
9530 sed 's/^/| /' conftest.$ac_ext >&5
9532 ac_cv_lib_dld_shl_load=no
9535 rm -rf conftest.dSYM
9536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9537 conftest$ac_exeext conftest.$ac_ext
9538 LIBS=$ac_check_lib_save_LIBS
9540 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9541 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9542 if test $ac_cv_lib_dld_shl_load = yes; then
9543 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9545 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9546 $as_echo_n "checking for dlopen... " >&6; }
9547 if test "${ac_cv_func_dlopen+set}" = set; then
9548 $as_echo_n "(cached) " >&6
9550 cat >conftest.$ac_ext <<_ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h. */
9556 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9558 #define dlopen innocuous_dlopen
9560 /* System header to define __stub macros and hopefully few prototypes,
9561 which can conflict with char dlopen (); below.
9562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9563 <limits.h> exists even on freestanding compilers. */
9566 # include <limits.h>
9568 # include <assert.h>
9573 /* Override any GCC internal prototype to avoid an error.
9574 Use char because int might match the return type of a GCC
9575 builtin and then its argument prototype would still apply. */
9580 /* The GNU C library defines this for functions which it implements
9581 to always fail with ENOSYS. Some functions are actually named
9582 something starting with __ and the normal name is an alias. */
9583 #if defined __stub_dlopen || defined __stub___dlopen
9595 rm -f conftest.$ac_objext conftest$ac_exeext
9596 if { (ac_try="$ac_link"
9598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599 *) ac_try_echo=$ac_try;;
9601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9602 $as_echo "$ac_try_echo") >&5
9603 (eval "$ac_link") 2>conftest.er1
9605 grep -v '^ *+' conftest.er1 >conftest.err
9607 cat conftest.err >&5
9608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } && {
9610 test -z "$ac_c_werror_flag" ||
9611 test ! -s conftest.err
9612 } && test -s conftest$ac_exeext && {
9613 test "$cross_compiling" = yes ||
9614 $as_test_x conftest$ac_exeext
9616 ac_cv_func_dlopen=yes
9618 $as_echo "$as_me: failed program was:" >&5
9619 sed 's/^/| /' conftest.$ac_ext >&5
9621 ac_cv_func_dlopen=no
9624 rm -rf conftest.dSYM
9625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9626 conftest$ac_exeext conftest.$ac_ext
9628 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9629 $as_echo "$ac_cv_func_dlopen" >&6; }
9630 if test $ac_cv_func_dlopen = yes; then
9631 lt_cv_dlopen="dlopen"
9633 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9634 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9635 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9636 $as_echo_n "(cached) " >&6
9638 ac_check_lib_save_LIBS=$LIBS
9640 cat >conftest.$ac_ext <<_ACEOF
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h. */
9647 /* Override any GCC internal prototype to avoid an error.
9648 Use char because int might match the return type of a GCC
9649 builtin and then its argument prototype would still apply. */
9662 rm -f conftest.$ac_objext conftest$ac_exeext
9663 if { (ac_try="$ac_link"
9665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9666 *) ac_try_echo=$ac_try;;
9668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9669 $as_echo "$ac_try_echo") >&5
9670 (eval "$ac_link") 2>conftest.er1
9672 grep -v '^ *+' conftest.er1 >conftest.err
9674 cat conftest.err >&5
9675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } && {
9677 test -z "$ac_c_werror_flag" ||
9678 test ! -s conftest.err
9679 } && test -s conftest$ac_exeext && {
9680 test "$cross_compiling" = yes ||
9681 $as_test_x conftest$ac_exeext
9683 ac_cv_lib_dl_dlopen=yes
9685 $as_echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9688 ac_cv_lib_dl_dlopen=no
9691 rm -rf conftest.dSYM
9692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9693 conftest$ac_exeext conftest.$ac_ext
9694 LIBS=$ac_check_lib_save_LIBS
9696 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9697 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9698 if test $ac_cv_lib_dl_dlopen = yes; then
9699 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9701 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9702 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9703 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9704 $as_echo_n "(cached) " >&6
9706 ac_check_lib_save_LIBS=$LIBS
9708 cat >conftest.$ac_ext <<_ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h. */
9715 /* Override any GCC internal prototype to avoid an error.
9716 Use char because int might match the return type of a GCC
9717 builtin and then its argument prototype would still apply. */
9730 rm -f conftest.$ac_objext conftest$ac_exeext
9731 if { (ac_try="$ac_link"
9733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9734 *) ac_try_echo=$ac_try;;
9736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9737 $as_echo "$ac_try_echo") >&5
9738 (eval "$ac_link") 2>conftest.er1
9740 grep -v '^ *+' conftest.er1 >conftest.err
9742 cat conftest.err >&5
9743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); } && {
9745 test -z "$ac_c_werror_flag" ||
9746 test ! -s conftest.err
9747 } && test -s conftest$ac_exeext && {
9748 test "$cross_compiling" = yes ||
9749 $as_test_x conftest$ac_exeext
9751 ac_cv_lib_svld_dlopen=yes
9753 $as_echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9756 ac_cv_lib_svld_dlopen=no
9759 rm -rf conftest.dSYM
9760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9761 conftest$ac_exeext conftest.$ac_ext
9762 LIBS=$ac_check_lib_save_LIBS
9764 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9765 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9766 if test $ac_cv_lib_svld_dlopen = yes; then
9767 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9769 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9770 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9771 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9772 $as_echo_n "(cached) " >&6
9774 ac_check_lib_save_LIBS=$LIBS
9776 cat >conftest.$ac_ext <<_ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9783 /* Override any GCC internal prototype to avoid an error.
9784 Use char because int might match the return type of a GCC
9785 builtin and then its argument prototype would still apply. */
9798 rm -f conftest.$ac_objext conftest$ac_exeext
9799 if { (ac_try="$ac_link"
9801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9802 *) ac_try_echo=$ac_try;;
9804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9805 $as_echo "$ac_try_echo") >&5
9806 (eval "$ac_link") 2>conftest.er1
9808 grep -v '^ *+' conftest.er1 >conftest.err
9810 cat conftest.err >&5
9811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } && {
9813 test -z "$ac_c_werror_flag" ||
9814 test ! -s conftest.err
9815 } && test -s conftest$ac_exeext && {
9816 test "$cross_compiling" = yes ||
9817 $as_test_x conftest$ac_exeext
9819 ac_cv_lib_dld_dld_link=yes
9821 $as_echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9824 ac_cv_lib_dld_dld_link=no
9827 rm -rf conftest.dSYM
9828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9829 conftest$ac_exeext conftest.$ac_ext
9830 LIBS=$ac_check_lib_save_LIBS
9832 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9833 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9834 if test $ac_cv_lib_dld_dld_link = yes; then
9835 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9856 if test "x$lt_cv_dlopen" != xno; then
9862 case $lt_cv_dlopen in
9864 save_CPPFLAGS="$CPPFLAGS"
9865 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9867 save_LDFLAGS="$LDFLAGS"
9868 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9871 LIBS="$lt_cv_dlopen_libs $LIBS"
9873 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9874 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9875 if test "${lt_cv_dlopen_self+set}" = set; then
9876 $as_echo_n "(cached) " >&6
9878 if test "$cross_compiling" = yes; then :
9879 lt_cv_dlopen_self=cross
9881 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9882 lt_status=$lt_dlunknown
9883 cat > conftest.$ac_ext <<EOF
9884 #line 9884 "configure"
9885 #include "confdefs.h"
9894 # define LT_DLGLOBAL RTLD_GLOBAL
9897 # define LT_DLGLOBAL DL_GLOBAL
9899 # define LT_DLGLOBAL 0
9903 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9904 find out it does not work in some platform. */
9905 #ifndef LT_DLLAZY_OR_NOW
9907 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9910 # define LT_DLLAZY_OR_NOW DL_LAZY
9913 # define LT_DLLAZY_OR_NOW RTLD_NOW
9916 # define LT_DLLAZY_OR_NOW DL_NOW
9918 # define LT_DLLAZY_OR_NOW 0
9926 extern "C" void exit (int);
9929 void fnord() { int i=42;}
9932 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9933 int status = $lt_dlunknown;
9937 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9938 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9939 /* dlclose (self); */
9947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9948 (eval $ac_link) 2>&5
9950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9952 (./conftest; exit; ) >&5 2>/dev/null
9955 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9956 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9957 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9960 # compilation failed
9961 lt_cv_dlopen_self=no
9968 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9969 $as_echo "$lt_cv_dlopen_self" >&6; }
9971 if test "x$lt_cv_dlopen_self" = xyes; then
9972 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9973 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9974 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9975 if test "${lt_cv_dlopen_self_static+set}" = set; then
9976 $as_echo_n "(cached) " >&6
9978 if test "$cross_compiling" = yes; then :
9979 lt_cv_dlopen_self_static=cross
9981 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9982 lt_status=$lt_dlunknown
9983 cat > conftest.$ac_ext <<EOF
9984 #line 9984 "configure"
9985 #include "confdefs.h"
9994 # define LT_DLGLOBAL RTLD_GLOBAL
9997 # define LT_DLGLOBAL DL_GLOBAL
9999 # define LT_DLGLOBAL 0
10003 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10004 find out it does not work in some platform. */
10005 #ifndef LT_DLLAZY_OR_NOW
10007 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10010 # define LT_DLLAZY_OR_NOW DL_LAZY
10013 # define LT_DLLAZY_OR_NOW RTLD_NOW
10016 # define LT_DLLAZY_OR_NOW DL_NOW
10018 # define LT_DLLAZY_OR_NOW 0
10026 extern "C" void exit (int);
10029 void fnord() { int i=42;}
10032 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10033 int status = $lt_dlunknown;
10037 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10038 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10039 /* dlclose (self); */
10047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10048 (eval $ac_link) 2>&5
10050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10052 (./conftest; exit; ) >&5 2>/dev/null
10054 case x$lt_status in
10055 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10056 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10057 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10060 # compilation failed
10061 lt_cv_dlopen_self_static=no
10068 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10069 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10072 CPPFLAGS="$save_CPPFLAGS"
10073 LDFLAGS="$save_LDFLAGS"
10078 case $lt_cv_dlopen_self in
10079 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10080 *) enable_dlopen_self=unknown ;;
10083 case $lt_cv_dlopen_self_static in
10084 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10085 *) enable_dlopen_self_static=unknown ;;
10090 # Report which library types will actually be built
10091 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10092 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10093 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10094 $as_echo "$can_build_shared" >&6; }
10096 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10097 $as_echo_n "checking whether to build shared libraries... " >&6; }
10098 test "$can_build_shared" = "no" && enable_shared=no
10100 # On AIX, shared libraries and static libraries use the same namespace, and
10101 # are all built from PIC.
10104 test "$enable_shared" = yes && enable_static=no
10105 if test -n "$RANLIB"; then
10106 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10107 postinstall_cmds='$RANLIB $lib'
10112 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10113 test "$enable_shared" = yes && enable_static=no
10117 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10118 $as_echo "$enable_shared" >&6; }
10120 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10121 $as_echo_n "checking whether to build static libraries... " >&6; }
10122 # Make sure either enable_shared or enable_static is yes.
10123 test "$enable_shared" = yes || enable_static=yes
10124 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10125 $as_echo "$enable_static" >&6; }
10127 # The else clause should only fire when bootstrapping the
10128 # libtool distribution, otherwise you forgot to ship ltmain.sh
10129 # with your package, and you will get complaints that there are
10130 # no rules to generate ltmain.sh.
10131 if test -f "$ltmain"; then
10132 # See if we are running on zsh, and set the options which allow our commands through
10133 # without removal of \ escapes.
10134 if test -n "${ZSH_VERSION+set}" ; then
10135 setopt NO_GLOB_SUBST
10137 # Now quote all the things that may contain metacharacters while being
10138 # careful not to overquote the AC_SUBSTed values. We take copies of the
10139 # variables and quote the copies for generation of the libtool script.
10140 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10142 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10143 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10144 deplibs_check_method reload_flag reload_cmds need_locks \
10145 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10146 lt_cv_sys_global_symbol_to_c_name_address \
10147 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10148 old_postinstall_cmds old_postuninstall_cmds \
10152 lt_prog_compiler_wl \
10153 lt_prog_compiler_pic \
10154 lt_prog_compiler_static \
10155 lt_prog_compiler_no_builtin_flag \
10156 export_dynamic_flag_spec \
10157 thread_safe_flag_spec \
10158 whole_archive_flag_spec \
10159 enable_shared_with_static_runtimes \
10161 old_archive_from_new_cmds \
10166 compiler_lib_search_path \
10167 compiler_lib_search_dirs \
10169 archive_expsym_cmds \
10171 postuninstall_cmds \
10172 old_archive_from_expsyms_cmds \
10173 allow_undefined_flag \
10174 no_undefined_flag \
10175 export_symbols_cmds \
10176 hardcode_libdir_flag_spec \
10177 hardcode_libdir_flag_spec_ld \
10178 hardcode_libdir_separator \
10179 hardcode_automatic \
10181 module_expsym_cmds \
10182 lt_cv_prog_compiler_c_o \
10185 include_expsyms; do
10188 old_archive_cmds | \
10189 old_archive_from_new_cmds | \
10191 archive_expsym_cmds | \
10193 module_expsym_cmds | \
10194 old_archive_from_expsyms_cmds | \
10195 export_symbols_cmds | \
10196 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10197 postinstall_cmds | postuninstall_cmds | \
10198 old_postinstall_cmds | old_postuninstall_cmds | \
10199 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10200 # Double-quote double-evaled strings.
10201 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10204 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10210 *'\$0 --fallback-echo"')
10211 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10215 cfgfile="${ofile}T"
10216 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10218 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10219 $as_echo "$as_me: creating $ofile" >&6;}
10221 cat <<__EOF__ >> "$cfgfile"
10224 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10225 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10226 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10228 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10229 # Free Software Foundation, Inc.
10231 # This file is part of GNU Libtool:
10232 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10234 # This program is free software; you can redistribute it and/or modify
10235 # it under the terms of the GNU General Public License as published by
10236 # the Free Software Foundation; either version 2 of the License, or
10237 # (at your option) any later version.
10239 # This program is distributed in the hope that it will be useful, but
10240 # WITHOUT ANY WARRANTY; without even the implied warranty of
10241 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10242 # General Public License for more details.
10244 # You should have received a copy of the GNU General Public License
10245 # along with this program; if not, write to the Free Software
10246 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10248 # As a special exception to the GNU General Public License, if you
10249 # distribute this file as part of a program that contains a
10250 # configuration script generated by Autoconf, you may include it under
10251 # the same distribution terms that you use for the rest of that program.
10253 # A sed program that does not truncate output.
10256 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10257 Xsed="$SED -e 1s/^X//"
10259 # The HP-UX ksh and POSIX shell print the target directory to stdout
10260 # if CDPATH is set.
10261 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10263 # The names of the tagged configurations supported by this script.
10266 # ### BEGIN LIBTOOL CONFIG
10268 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10270 # Shell to use when invoking shell scripts.
10273 # Whether or not to build shared libraries.
10274 build_libtool_libs=$enable_shared
10276 # Whether or not to build static libraries.
10277 build_old_libs=$enable_static
10279 # Whether or not to add -lc for building shared libraries.
10280 build_libtool_need_lc=$archive_cmds_need_lc
10282 # Whether or not to disallow shared libs when runtime libs are static
10283 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10285 # Whether or not to optimize for fast installation.
10286 fast_install=$enable_fast_install
10289 host_alias=$host_alias
10293 # The build system.
10294 build_alias=$build_alias
10298 # An echo program that does not interpret backslashes.
10303 AR_FLAGS=$lt_AR_FLAGS
10308 # LTCC compiler flags.
10309 LTCFLAGS=$lt_LTCFLAGS
10311 # A language-specific compiler.
10314 # Is the compiler the GNU C compiler?
10320 # The linker used to build libraries.
10323 # Whether we need hard or soft links.
10326 # A BSD-compatible nm program.
10329 # A symbol stripping program
10332 # Used to examine libraries when file_magic_cmd begins "file"
10333 MAGIC_CMD=$MAGIC_CMD
10335 # Used on cygwin: DLL creation program.
10338 # Used on cygwin: object dumper.
10341 # Used on cygwin: assembler.
10344 # The name of the directory that contains temporary libtool files.
10347 # How to create reloadable object files.
10348 reload_flag=$lt_reload_flag
10349 reload_cmds=$lt_reload_cmds
10351 # How to pass a linker flag through the compiler.
10352 wl=$lt_lt_prog_compiler_wl
10354 # Object file suffix (normally "o").
10355 objext="$ac_objext"
10357 # Old archive suffix (normally "a").
10360 # Shared library suffix (normally ".so").
10361 shrext_cmds='$shrext_cmds'
10363 # Executable file suffix (normally "").
10366 # Additional compiler flags for building library objects.
10367 pic_flag=$lt_lt_prog_compiler_pic
10370 # What is the maximum length of a command?
10371 max_cmd_len=$lt_cv_sys_max_cmd_len
10373 # Does compiler simultaneously support -c and -o options?
10374 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10376 # Must we lock files when doing compilation?
10377 need_locks=$lt_need_locks
10379 # Do we need the lib prefix for modules?
10380 need_lib_prefix=$need_lib_prefix
10382 # Do we need a version for libraries?
10383 need_version=$need_version
10385 # Whether dlopen is supported.
10386 dlopen_support=$enable_dlopen
10388 # Whether dlopen of programs is supported.
10389 dlopen_self=$enable_dlopen_self
10391 # Whether dlopen of statically linked programs is supported.
10392 dlopen_self_static=$enable_dlopen_self_static
10394 # Compiler flag to prevent dynamic linking.
10395 link_static_flag=$lt_lt_prog_compiler_static
10397 # Compiler flag to turn off builtin functions.
10398 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10400 # Compiler flag to allow reflexive dlopens.
10401 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10403 # Compiler flag to generate shared objects directly from archives.
10404 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10406 # Compiler flag to generate thread-safe objects.
10407 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10409 # Library versioning type.
10410 version_type=$version_type
10412 # Format of library name prefix.
10413 libname_spec=$lt_libname_spec
10415 # List of archive names. First name is the real one, the rest are links.
10416 # The last name is the one that the linker finds with -lNAME.
10417 library_names_spec=$lt_library_names_spec
10419 # The coded name of the library, if different from the real name.
10420 soname_spec=$lt_soname_spec
10422 # Commands used to build and install an old-style archive.
10424 old_archive_cmds=$lt_old_archive_cmds
10425 old_postinstall_cmds=$lt_old_postinstall_cmds
10426 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10428 # Create an old-style archive from a shared archive.
10429 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10431 # Create a temporary old-style archive to link instead of a shared archive.
10432 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10434 # Commands used to build and install a shared archive.
10435 archive_cmds=$lt_archive_cmds
10436 archive_expsym_cmds=$lt_archive_expsym_cmds
10437 postinstall_cmds=$lt_postinstall_cmds
10438 postuninstall_cmds=$lt_postuninstall_cmds
10440 # Commands used to build a loadable module (assumed same as above if empty)
10441 module_cmds=$lt_module_cmds
10442 module_expsym_cmds=$lt_module_expsym_cmds
10444 # Commands to strip libraries.
10445 old_striplib=$lt_old_striplib
10446 striplib=$lt_striplib
10448 # Dependencies to place before the objects being linked to create a
10450 predep_objects=$lt_predep_objects
10452 # Dependencies to place after the objects being linked to create a
10454 postdep_objects=$lt_postdep_objects
10456 # Dependencies to place before the objects being linked to create a
10458 predeps=$lt_predeps
10460 # Dependencies to place after the objects being linked to create a
10462 postdeps=$lt_postdeps
10464 # The directories searched by this compiler when creating a shared
10466 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10468 # The library search path used internally by the compiler when linking
10469 # a shared library.
10470 compiler_lib_search_path=$lt_compiler_lib_search_path
10472 # Method to check whether dependent libraries are shared objects.
10473 deplibs_check_method=$lt_deplibs_check_method
10475 # Command to use when deplibs_check_method == file_magic.
10476 file_magic_cmd=$lt_file_magic_cmd
10478 # Flag that allows shared libraries with undefined symbols to be built.
10479 allow_undefined_flag=$lt_allow_undefined_flag
10481 # Flag that forces no undefined symbols.
10482 no_undefined_flag=$lt_no_undefined_flag
10484 # Commands used to finish a libtool library installation in a directory.
10485 finish_cmds=$lt_finish_cmds
10487 # Same as above, but a single script fragment to be evaled but not shown.
10488 finish_eval=$lt_finish_eval
10490 # Take the output of nm and produce a listing of raw symbols and C names.
10491 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10493 # Transform the output of nm in a proper C declaration
10494 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10496 # Transform the output of nm in a C name address pair
10497 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10499 # This is the shared library runtime path variable.
10500 runpath_var=$runpath_var
10502 # This is the shared library path variable.
10503 shlibpath_var=$shlibpath_var
10505 # Is shlibpath searched before the hard-coded library search path?
10506 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10508 # How to hardcode a shared library path into an executable.
10509 hardcode_action=$hardcode_action
10511 # Whether we should hardcode library paths into libraries.
10512 hardcode_into_libs=$hardcode_into_libs
10514 # Flag to hardcode \$libdir into a binary during linking.
10515 # This must work even if \$libdir does not exist.
10516 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10518 # If ld is used when linking, flag to hardcode \$libdir into
10519 # a binary during linking. This must work even if \$libdir does
10521 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10523 # Whether we need a single -rpath flag with a separated argument.
10524 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10526 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10527 # resulting binary.
10528 hardcode_direct=$hardcode_direct
10530 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10531 # resulting binary.
10532 hardcode_minus_L=$hardcode_minus_L
10534 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10535 # the resulting binary.
10536 hardcode_shlibpath_var=$hardcode_shlibpath_var
10538 # Set to yes if building a shared library automatically hardcodes DIR into the library
10539 # and all subsequent libraries and executables linked against it.
10540 hardcode_automatic=$hardcode_automatic
10542 # Variables whose values should be saved in libtool wrapper scripts and
10543 # restored at relink time.
10544 variables_saved_for_relink="$variables_saved_for_relink"
10546 # Whether libtool must link a program against all its dependency libraries.
10547 link_all_deplibs=$link_all_deplibs
10549 # Compile-time system search path for libraries
10550 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10552 # Run-time system search path for libraries
10553 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10555 # Fix the shell variable \$srcfile for the compiler.
10556 fix_srcfile_path=$lt_fix_srcfile_path
10558 # Set to yes if exported symbols are required.
10559 always_export_symbols=$always_export_symbols
10561 # The commands to list exported symbols.
10562 export_symbols_cmds=$lt_export_symbols_cmds
10564 # The commands to extract the exported symbol list from a shared archive.
10565 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10567 # Symbols that should not be listed in the preloaded symbols.
10568 exclude_expsyms=$lt_exclude_expsyms
10570 # Symbols that must always be exported.
10571 include_expsyms=$lt_include_expsyms
10573 # ### END LIBTOOL CONFIG
10580 cat <<\EOF >> "$cfgfile"
10582 # AIX sometimes has problems with the GCC collect2 program. For some
10583 # reason, if we set the COLLECT_NAMES environment variable, the problems
10584 # vanish in a puff of smoke.
10585 if test "X${COLLECT_NAMES+set}" != Xset; then
10587 export COLLECT_NAMES
10593 # We use sed instead of cat because bash on DJGPP gets confused if
10594 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10595 # text mode, it properly converts lines to CR/LF. This bash problem
10596 # is reportedly fixed, but why not run on old versions too?
10597 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10599 mv -f "$cfgfile" "$ofile" || \
10600 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10604 # If there is no Makefile yet, we rely on a make rule to execute
10605 # `config.status --recheck' to rerun these tests and create the
10606 # libtool script then.
10607 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10608 if test -f "$ltmain_in"; then
10609 test -f Makefile && make "$ltmain"
10615 ac_cpp='$CPP $CPPFLAGS'
10616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10623 # Check whether --with-tags was given.
10624 if test "${with_tags+set}" = set; then
10625 withval=$with_tags; tagnames="$withval"
10629 if test -f "$ltmain" && test -n "$tagnames"; then
10630 if test ! -f "${ofile}"; then
10631 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10632 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10635 if test -z "$LTCC"; then
10636 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10637 if test -z "$LTCC"; then
10638 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10639 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10641 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10642 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10645 if test -z "$LTCFLAGS"; then
10646 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10649 # Extract list of available tagged configurations in $ofile.
10650 # Note that this assumes the entire list is on one line.
10651 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10653 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10654 for tagname in $tagnames; do
10656 # Check whether tagname contains only valid characters
10657 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10659 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10660 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
10661 { (exit 1); exit 1; }; }
10665 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10667 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10668 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10669 { (exit 1); exit 1; }; }
10672 # Update the list of available tags.
10673 if test -n "$tagname"; then
10674 echo appending configuration tag \"$tagname\" to $ofile
10678 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10679 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10680 (test "X$CXX" != "Xg++"))) ; then
10682 ac_cpp='$CXXCPP $CPPFLAGS'
10683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10690 archive_cmds_need_lc_CXX=no
10691 allow_undefined_flag_CXX=
10692 always_export_symbols_CXX=no
10693 archive_expsym_cmds_CXX=
10694 export_dynamic_flag_spec_CXX=
10695 hardcode_direct_CXX=no
10696 hardcode_libdir_flag_spec_CXX=
10697 hardcode_libdir_flag_spec_ld_CXX=
10698 hardcode_libdir_separator_CXX=
10699 hardcode_minus_L_CXX=no
10700 hardcode_shlibpath_var_CXX=unsupported
10701 hardcode_automatic_CXX=no
10703 module_expsym_cmds_CXX=
10704 link_all_deplibs_CXX=unknown
10705 old_archive_cmds_CXX=$old_archive_cmds
10706 no_undefined_flag_CXX=
10707 whole_archive_flag_spec_CXX=
10708 enable_shared_with_static_runtimes_CXX=no
10710 # Dependencies to place before and after the object being linked:
10711 predep_objects_CXX=
10712 postdep_objects_CXX=
10715 compiler_lib_search_path_CXX=
10716 compiler_lib_search_dirs_CXX=
10718 # Source file extension for C++ test sources.
10721 # Object file extension for compiled C++ test sources.
10725 # Code to be used in simple compile tests
10726 lt_simple_compile_test_code="int some_variable = 0;"
10728 # Code to be used in simple link tests
10729 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10731 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10733 # If no C compiler was specified, use CC.
10736 # If no C compiler flags were specified, use CFLAGS.
10737 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10739 # Allow CC to be a program name with arguments.
10743 # save warnings/boilerplate of simple test code
10744 ac_outfile=conftest.$ac_objext
10745 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10746 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10747 _lt_compiler_boilerplate=`cat conftest.err`
10750 ac_outfile=conftest.$ac_objext
10751 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10752 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10753 _lt_linker_boilerplate=`cat conftest.err`
10757 # Allow CC to be a program name with arguments.
10762 lt_save_with_gnu_ld=$with_gnu_ld
10763 lt_save_path_LD=$lt_cv_path_LD
10764 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10765 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10767 $as_unset lt_cv_prog_gnu_ld
10769 if test -n "${lt_cv_path_LDCXX+set}"; then
10770 lt_cv_path_LD=$lt_cv_path_LDCXX
10772 $as_unset lt_cv_path_LD
10774 test -z "${LDCXX+set}" || LD=$LDCXX
10778 for cc_temp in $compiler""; do
10780 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10781 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10786 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10789 # We don't want -fno-exception wen compiling C++ code, so set the
10790 # no_builtin_flag separately
10791 if test "$GXX" = yes; then
10792 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10794 lt_prog_compiler_no_builtin_flag_CXX=
10797 if test "$GXX" = yes; then
10798 # Set up default GNU C++ configuration
10801 # Check whether --with-gnu-ld was given.
10802 if test "${with_gnu_ld+set}" = set; then
10803 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10809 if test "$GCC" = yes; then
10810 # Check if gcc -print-prog-name=ld gives a path.
10811 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10812 $as_echo_n "checking for ld used by $CC... " >&6; }
10815 # gcc leaves a trailing carriage return which upsets mingw
10816 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10818 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10821 # Accept absolute paths.
10823 re_direlt='/[^/][^/]*/\.\./'
10824 # Canonicalize the pathname of ld
10825 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10826 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10827 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10829 test -z "$LD" && LD="$ac_prog"
10832 # If it fails, then pretend we aren't using GCC.
10836 # If it is relative, then search for the first ld in PATH.
10837 with_gnu_ld=unknown
10840 elif test "$with_gnu_ld" = yes; then
10841 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
10842 $as_echo_n "checking for GNU ld... " >&6; }
10844 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10845 $as_echo_n "checking for non-GNU ld... " >&6; }
10847 if test "${lt_cv_path_LD+set}" = set; then
10848 $as_echo_n "(cached) " >&6
10850 if test -z "$LD"; then
10851 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10852 for ac_dir in $PATH; do
10854 test -z "$ac_dir" && ac_dir=.
10855 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10856 lt_cv_path_LD="$ac_dir/$ac_prog"
10857 # Check to see if the program is GNU ld. I'd rather use --version,
10858 # but apparently some variants of GNU ld only accept -v.
10859 # Break only if it was the GNU/non-GNU ld that we prefer.
10860 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10861 *GNU* | *'with BFD'*)
10862 test "$with_gnu_ld" != no && break
10865 test "$with_gnu_ld" != yes && break
10872 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10876 LD="$lt_cv_path_LD"
10877 if test -n "$LD"; then
10878 { $as_echo "$as_me:$LINENO: result: $LD" >&5
10879 $as_echo "$LD" >&6; }
10881 { $as_echo "$as_me:$LINENO: result: no" >&5
10882 $as_echo "no" >&6; }
10884 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10885 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10886 { (exit 1); exit 1; }; }
10887 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10888 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10889 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10890 $as_echo_n "(cached) " >&6
10892 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10893 case `$LD -v 2>&1 </dev/null` in
10894 *GNU* | *'with BFD'*)
10895 lt_cv_prog_gnu_ld=yes
10898 lt_cv_prog_gnu_ld=no
10902 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10903 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10904 with_gnu_ld=$lt_cv_prog_gnu_ld
10908 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10909 # archiving commands below assume that GNU ld is being used.
10910 if test "$with_gnu_ld" = yes; then
10911 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10912 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10914 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10915 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10917 # If archive_cmds runs LD, not CC, wlarc should be empty
10918 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10919 # investigate it a little bit more. (MM)
10922 # ancient GNU ld didn't support --whole-archive et. al.
10923 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10924 grep 'no-whole-archive' > /dev/null; then
10925 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10927 whole_archive_flag_spec_CXX=
10933 # A generic and very simple default shared library creation
10934 # command for GNU C++ for the case where it uses the native
10935 # linker, instead of GNU ld. If possible, this setting should
10936 # overridden to take advantage of the native linker features on
10937 # the platform it is being used on.
10938 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10941 # Commands to make compiler produce verbose output that lists
10942 # what "hidden" libraries, object files and flags are used when
10943 # linking a shared library.
10944 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10952 # PORTME: fill in a description of your system's C++ link characteristics
10953 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10954 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10958 # FIXME: insert proper C++ library support
10962 if test "$host_cpu" = ia64; then
10963 # On IA64, the linker does run time linking by default, so we don't
10964 # have to do anything special.
10965 aix_use_runtimelinking=no
10966 exp_sym_flag='-Bexport'
10969 aix_use_runtimelinking=no
10971 # Test if we are trying to use run time linking or normal
10972 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10973 # need to do runtime linking.
10974 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10975 for ld_flag in $LDFLAGS; do
10978 aix_use_runtimelinking=yes
10986 exp_sym_flag='-bexport'
10987 no_entry_flag='-bnoentry'
10990 # When large executables or shared objects are built, AIX ld can
10991 # have problems creating the table of contents. If linking a library
10992 # or program results in "error TOC overflow" add -mminimal-toc to
10993 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10994 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10996 archive_cmds_CXX=''
10997 hardcode_direct_CXX=yes
10998 hardcode_libdir_separator_CXX=':'
10999 link_all_deplibs_CXX=yes
11001 if test "$GXX" = yes; then
11002 case $host_os in aix4.[012]|aix4.[012].*)
11003 # We only want to do this on AIX 4.2 and lower, the check
11004 # below for broken collect2 doesn't work under 4.3+
11005 collect2name=`${CC} -print-prog-name=collect2`
11006 if test -f "$collect2name" && \
11007 strings "$collect2name" | grep resolve_lib_name >/dev/null
11009 # We have reworked collect2
11012 # We have old collect2
11013 hardcode_direct_CXX=unsupported
11014 # It fails to find uninstalled libraries when the uninstalled
11015 # path is not listed in the libpath. Setting hardcode_minus_L
11016 # to unsupported forces relinking
11017 hardcode_minus_L_CXX=yes
11018 hardcode_libdir_flag_spec_CXX='-L$libdir'
11019 hardcode_libdir_separator_CXX=
11023 shared_flag='-shared'
11024 if test "$aix_use_runtimelinking" = yes; then
11025 shared_flag="$shared_flag "'${wl}-G'
11029 if test "$host_cpu" = ia64; then
11030 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11031 # chokes on -Wl,-G. The following line is correct:
11034 if test "$aix_use_runtimelinking" = yes; then
11035 shared_flag='${wl}-G'
11037 shared_flag='${wl}-bM:SRE'
11042 # It seems that -bexpall does not export symbols beginning with
11043 # underscore (_), so it is better to generate a list of symbols to export.
11044 always_export_symbols_CXX=yes
11045 if test "$aix_use_runtimelinking" = yes; then
11046 # Warning - without using the other runtime loading flags (-brtl),
11047 # -berok will link without error, but may produce a broken library.
11048 allow_undefined_flag_CXX='-berok'
11049 # Determine the default libpath from the value encoded in an empty executable.
11050 cat >conftest.$ac_ext <<_ACEOF
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h. */
11065 rm -f conftest.$ac_objext conftest$ac_exeext
11066 if { (ac_try="$ac_link"
11067 case "(($ac_try" in
11068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11069 *) ac_try_echo=$ac_try;;
11071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11072 $as_echo "$ac_try_echo") >&5
11073 (eval "$ac_link") 2>conftest.er1
11075 grep -v '^ *+' conftest.er1 >conftest.err
11077 cat conftest.err >&5
11078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } && {
11080 test -z "$ac_cxx_werror_flag" ||
11081 test ! -s conftest.err
11082 } && test -s conftest$ac_exeext && {
11083 test "$cross_compiling" = yes ||
11084 $as_test_x conftest$ac_exeext
11087 lt_aix_libpath_sed='
11088 /Import File Strings/,/^$/ {
11094 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11095 # Check for a 64-bit object if we didn't find anything.
11096 if test -z "$aix_libpath"; then
11097 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11100 $as_echo "$as_me: failed program was:" >&5
11101 sed 's/^/| /' conftest.$ac_ext >&5
11106 rm -rf conftest.dSYM
11107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11108 conftest$ac_exeext conftest.$ac_ext
11109 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11111 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11113 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11115 if test "$host_cpu" = ia64; then
11116 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11117 allow_undefined_flag_CXX="-z nodefs"
11118 archive_expsym_cmds_CXX="\$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"
11120 # Determine the default libpath from the value encoded in an empty executable.
11121 cat >conftest.$ac_ext <<_ACEOF
11124 cat confdefs.h >>conftest.$ac_ext
11125 cat >>conftest.$ac_ext <<_ACEOF
11126 /* end confdefs.h. */
11136 rm -f conftest.$ac_objext conftest$ac_exeext
11137 if { (ac_try="$ac_link"
11138 case "(($ac_try" in
11139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140 *) ac_try_echo=$ac_try;;
11142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11143 $as_echo "$ac_try_echo") >&5
11144 (eval "$ac_link") 2>conftest.er1
11146 grep -v '^ *+' conftest.er1 >conftest.err
11148 cat conftest.err >&5
11149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); } && {
11151 test -z "$ac_cxx_werror_flag" ||
11152 test ! -s conftest.err
11153 } && test -s conftest$ac_exeext && {
11154 test "$cross_compiling" = yes ||
11155 $as_test_x conftest$ac_exeext
11158 lt_aix_libpath_sed='
11159 /Import File Strings/,/^$/ {
11165 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11166 # Check for a 64-bit object if we didn't find anything.
11167 if test -z "$aix_libpath"; then
11168 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11171 $as_echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11177 rm -rf conftest.dSYM
11178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11179 conftest$ac_exeext conftest.$ac_ext
11180 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11182 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11183 # Warning - without using the other run time loading flags,
11184 # -berok will link without error, but may produce a broken library.
11185 no_undefined_flag_CXX=' ${wl}-bernotok'
11186 allow_undefined_flag_CXX=' ${wl}-berok'
11187 # Exported symbols can be pulled into shared objects from archives
11188 whole_archive_flag_spec_CXX='$convenience'
11189 archive_cmds_need_lc_CXX=yes
11190 # This is similar to how AIX traditionally builds its shared libraries.
11191 archive_expsym_cmds_CXX="\$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'
11197 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11198 allow_undefined_flag_CXX=unsupported
11199 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11200 # support --undefined. This deserves some investigation. FIXME
11201 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11208 case $cc_basename in
11210 # FIXME: insert proper C++ library support
11216 cygwin* | mingw* | pw32*)
11217 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11218 # as there is no search path for DLLs.
11219 hardcode_libdir_flag_spec_CXX='-L$libdir'
11220 allow_undefined_flag_CXX=unsupported
11221 always_export_symbols_CXX=no
11222 enable_shared_with_static_runtimes_CXX=yes
11224 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11225 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11226 # If the export-symbols file already is a .def file (1st line
11227 # is EXPORTS), use it as is; otherwise, prepend...
11228 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11229 cp $export_symbols $output_objdir/$soname.def;
11231 echo EXPORTS > $output_objdir/$soname.def;
11232 cat $export_symbols >> $output_objdir/$soname.def;
11234 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11239 darwin* | rhapsody*)
11240 archive_cmds_need_lc_CXX=no
11241 hardcode_direct_CXX=no
11242 hardcode_automatic_CXX=yes
11243 hardcode_shlibpath_var_CXX=unsupported
11244 whole_archive_flag_spec_CXX=''
11245 link_all_deplibs_CXX=yes
11246 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11247 if test "$GXX" = yes ; then
11248 output_verbose_link_cmd='echo'
11249 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11250 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11251 archive_expsym_cmds_CXX="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}"
11252 module_expsym_cmds_CXX="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}"
11253 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11254 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11255 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11258 case $cc_basename in
11260 output_verbose_link_cmd='echo'
11261 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11262 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11263 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11264 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11265 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11275 case $cc_basename in
11277 # FIXME: insert proper C++ library support
11281 # Green Hills C++ Compiler
11282 # FIXME: insert proper C++ library support
11286 # FIXME: insert proper C++ library support
11292 # C++ shared libraries reported to be fairly broken before switch to ELF
11296 archive_cmds_need_lc_CXX=no
11298 freebsd* | dragonfly*)
11299 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11306 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11307 hardcode_libdir_separator_CXX=:
11308 export_dynamic_flag_spec_CXX='${wl}-E'
11309 hardcode_direct_CXX=yes
11310 hardcode_minus_L_CXX=yes # Not in the search PATH,
11311 # but as the default
11312 # location of the library.
11314 case $cc_basename in
11316 # FIXME: insert proper C++ library support
11320 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11321 # Commands to make compiler produce verbose output that lists
11322 # what "hidden" libraries, object files and flags are used when
11323 # linking a shared library.
11325 # There doesn't appear to be a way to prevent this compiler from
11326 # explicitly linking system object files so we need to strip them
11327 # from the output so that they don't get included in the library
11329 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11332 if test "$GXX" = yes; then
11333 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11335 # FIXME: insert proper C++ library support
11342 if test $with_gnu_ld = no; then
11343 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11344 hardcode_libdir_separator_CXX=:
11349 export_dynamic_flag_spec_CXX='${wl}-E'
11355 hardcode_direct_CXX=no
11356 hardcode_shlibpath_var_CXX=no
11359 hardcode_direct_CXX=yes
11360 hardcode_minus_L_CXX=yes # Not in the search PATH,
11361 # but as the default
11362 # location of the library.
11366 case $cc_basename in
11368 # FIXME: insert proper C++ library support
11374 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11377 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11380 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11383 # Commands to make compiler produce verbose output that lists
11384 # what "hidden" libraries, object files and flags are used when
11385 # linking a shared library.
11387 # There doesn't appear to be a way to prevent this compiler from
11388 # explicitly linking system object files so we need to strip them
11389 # from the output so that they don't get included in the library
11391 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11394 if test "$GXX" = yes; then
11395 if test $with_gnu_ld = no; then
11398 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11401 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11404 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11409 # FIXME: insert proper C++ library support
11416 hardcode_direct_CXX=no
11417 hardcode_shlibpath_var_CXX=no
11418 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11419 export_dynamic_flag_spec_CXX='${wl}-E'
11420 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11421 # Instead, shared libraries are loaded at an image base (0x10000000 by
11422 # default) and relocated if they conflict, which is a slow very memory
11423 # consuming and fragmenting process. To avoid this, we pick a random,
11424 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11425 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11426 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11427 archive_expsym_cmds_CXX='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'
11430 case $cc_basename in
11433 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11435 # Archives containing C++ object files must be created using
11436 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11437 # necessary to make sure instantiated templates are included
11439 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11442 if test "$GXX" = yes; then
11443 if test "$with_gnu_ld" = no; then
11444 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11446 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11449 link_all_deplibs_CXX=yes
11452 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11453 hardcode_libdir_separator_CXX=:
11455 linux* | k*bsd*-gnu)
11456 case $cc_basename in
11458 # Kuck and Associates, Inc. (KAI) C++ Compiler
11460 # KCC will only create a shared library if the output file
11461 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11462 # to its proper name (with version) after linking.
11463 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11464 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11465 # Commands to make compiler produce verbose output that lists
11466 # what "hidden" libraries, object files and flags are used when
11467 # linking a shared library.
11469 # There doesn't appear to be a way to prevent this compiler from
11470 # explicitly linking system object files so we need to strip them
11471 # from the output so that they don't get included in the library
11473 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11475 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11476 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11478 # Archives containing C++ object files must be created using
11479 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11480 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11485 # version 8.0 and above of icpc choke on multiply defined symbols
11486 # if we add $predep_objects and $postdep_objects, however 7.1 and
11487 # earlier do not add the objects themselves.
11488 case `$CC -V 2>&1` in
11490 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11491 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11493 *) # Version 8.0 or newer
11496 ia64*) tmp_idyn=' -i_dynamic';;
11498 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11499 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11502 archive_cmds_need_lc_CXX=no
11503 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11504 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11505 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11508 # Portland Group C++ compiler
11509 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11510 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11512 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11513 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11514 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11518 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11519 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11521 runpath_var=LD_RUN_PATH
11522 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11523 hardcode_libdir_separator_CXX=:
11525 # Commands to make compiler produce verbose output that lists
11526 # what "hidden" libraries, object files and flags are used when
11527 # linking a shared library.
11529 # There doesn't appear to be a way to prevent this compiler from
11530 # explicitly linking system object files so we need to strip them
11531 # from the output so that they don't get included in the library
11533 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11536 case `$CC -V 2>&1 | sed 5q` in
11539 no_undefined_flag_CXX=' -zdefs'
11540 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11541 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11542 hardcode_libdir_flag_spec_CXX='-R$libdir'
11543 whole_archive_flag_spec_CXX='${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'
11545 # Not sure whether something based on
11546 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11548 output_verbose_link_cmd='echo'
11550 # Archives containing C++ object files must be created using
11551 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11552 # necessary to make sure instantiated templates are included
11554 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11561 # FIXME: insert proper C++ library support
11565 # FIXME: insert proper C++ library support
11569 case $cc_basename in
11571 # FIXME: insert proper C++ library support
11575 # FIXME: insert proper C++ library support
11581 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11582 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11584 hardcode_libdir_flag_spec_CXX='-R$libdir'
11585 hardcode_direct_CXX=yes
11586 hardcode_shlibpath_var_CXX=no
11588 # Workaround some broken pre-1.5 toolchains
11589 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11592 # C++ shared libraries are fairly broken
11596 if test -f /usr/libexec/ld.so; then
11597 hardcode_direct_CXX=yes
11598 hardcode_shlibpath_var_CXX=no
11599 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11600 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11601 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11602 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11603 export_dynamic_flag_spec_CXX='${wl}-E'
11604 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11606 output_verbose_link_cmd='echo'
11612 case $cc_basename in
11614 # Kuck and Associates, Inc. (KAI) C++ Compiler
11616 # KCC will only create a shared library if the output file
11617 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11618 # to its proper name (with version) after linking.
11619 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11621 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11622 hardcode_libdir_separator_CXX=:
11624 # Archives containing C++ object files must be created using
11625 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11626 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11630 # Rational C++ 2.4.1
11631 # FIXME: insert proper C++ library support
11635 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11636 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11638 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11639 hardcode_libdir_separator_CXX=:
11641 # Commands to make compiler produce verbose output that lists
11642 # what "hidden" libraries, object files and flags are used when
11643 # linking a shared library.
11645 # There doesn't appear to be a way to prevent this compiler from
11646 # explicitly linking system object files so we need to strip them
11647 # from the output so that they don't get included in the library
11649 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11652 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11653 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11654 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11656 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11657 hardcode_libdir_separator_CXX=:
11659 # Commands to make compiler produce verbose output that lists
11660 # what "hidden" libraries, object files and flags are used when
11661 # linking a shared library.
11662 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11665 # FIXME: insert proper C++ library support
11672 case $cc_basename in
11674 # Kuck and Associates, Inc. (KAI) C++ Compiler
11676 # KCC will only create a shared library if the output file
11677 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11678 # to its proper name (with version) after linking.
11679 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11681 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11682 hardcode_libdir_separator_CXX=:
11684 # Archives containing C++ object files must be created using
11685 # the KAI C++ compiler.
11686 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11689 # Rational C++ 2.4.1
11690 # FIXME: insert proper C++ library support
11694 allow_undefined_flag_CXX=' -expect_unresolved \*'
11695 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11696 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11697 echo "-hidden">> $lib.exp~
11698 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11701 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11702 hardcode_libdir_separator_CXX=:
11704 # Commands to make compiler produce verbose output that lists
11705 # what "hidden" libraries, object files and flags are used when
11706 # linking a shared library.
11708 # There doesn't appear to be a way to prevent this compiler from
11709 # explicitly linking system object files so we need to strip them
11710 # from the output so that they don't get included in the library
11712 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11715 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11716 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11717 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11719 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11720 hardcode_libdir_separator_CXX=:
11722 # Commands to make compiler produce verbose output that lists
11723 # what "hidden" libraries, object files and flags are used when
11724 # linking a shared library.
11725 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11728 # FIXME: insert proper C++ library support
11735 # FIXME: insert proper C++ library support
11739 case $cc_basename in
11742 # FIXME: insert proper C++ library support
11747 # FIXME: insert proper C++ library support
11751 # FIXME: insert proper C++ library support
11757 case $cc_basename in
11759 # Sun C++ 4.2, 5.x and Centerline C++
11760 archive_cmds_need_lc_CXX=yes
11761 no_undefined_flag_CXX=' -zdefs'
11762 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11763 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11764 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11766 hardcode_libdir_flag_spec_CXX='-R$libdir'
11767 hardcode_shlibpath_var_CXX=no
11769 solaris2.[0-5] | solaris2.[0-5].*) ;;
11771 # The compiler driver will combine and reorder linker options,
11772 # but understands `-z linker_flag'.
11773 # Supported since Solaris 2.6 (maybe 2.5.1?)
11774 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11777 link_all_deplibs_CXX=yes
11779 output_verbose_link_cmd='echo'
11781 # Archives containing C++ object files must be created using
11782 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11783 # necessary to make sure instantiated templates are included
11785 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11788 # Green Hills C++ Compiler
11789 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11791 # The C++ compiler must be used to create the archive.
11792 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11795 # GNU C++ compiler with Solaris linker
11796 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11797 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11798 if $CC --version | grep -v '^2\.7' > /dev/null; then
11799 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11800 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11801 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11803 # Commands to make compiler produce verbose output that lists
11804 # what "hidden" libraries, object files and flags are used when
11805 # linking a shared library.
11806 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11808 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11810 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11811 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11812 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11814 # Commands to make compiler produce verbose output that lists
11815 # what "hidden" libraries, object files and flags are used when
11816 # linking a shared library.
11817 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11820 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11822 solaris2.[0-5] | solaris2.[0-5].*) ;;
11824 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11831 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11832 no_undefined_flag_CXX='${wl}-z,text'
11833 archive_cmds_need_lc_CXX=no
11834 hardcode_shlibpath_var_CXX=no
11835 runpath_var='LD_RUN_PATH'
11837 case $cc_basename in
11839 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11840 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11843 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11844 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11848 sysv5* | sco3.2v5* | sco5v6*)
11849 # Note: We can NOT use -z defs as we might desire, because we do not
11850 # link with -lc, and that would cause any symbols used from libc to
11851 # always be unresolved, which means just about no library would
11852 # ever link correctly. If we're not using GNU ld we use -z text
11853 # though, which does catch some bad symbols but isn't as heavy-handed
11855 # For security reasons, it is highly recommended that you always
11856 # use absolute paths for naming shared libraries, and exclude the
11857 # DT_RUNPATH tag from executables and libraries. But doing so
11858 # requires that you compile everything twice, which is a pain.
11859 # So that behaviour is only enabled if SCOABSPATH is set to a
11860 # non-empty value in the environment. Most likely only useful for
11861 # creating official distributions of packages.
11862 # This is a hack until libtool officially supports absolute path
11863 # names for shared libraries.
11864 no_undefined_flag_CXX='${wl}-z,text'
11865 allow_undefined_flag_CXX='${wl}-z,nodefs'
11866 archive_cmds_need_lc_CXX=no
11867 hardcode_shlibpath_var_CXX=no
11868 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11869 hardcode_libdir_separator_CXX=':'
11870 link_all_deplibs_CXX=yes
11871 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11872 runpath_var='LD_RUN_PATH'
11874 case $cc_basename in
11876 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11877 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11880 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11881 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11886 case $cc_basename in
11888 # NonStop-UX NCC 3.20
11889 # FIXME: insert proper C++ library support
11893 # FIXME: insert proper C++ library support
11899 # FIXME: insert proper C++ library support
11903 # FIXME: insert proper C++ library support
11907 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11908 $as_echo "$ld_shlibs_CXX" >&6; }
11909 test "$ld_shlibs_CXX" = no && can_build_shared=no
11915 ## There is no encapsulation within the following macros, do not change
11916 ## the running order or otherwise move them around unless you know exactly
11917 ## what you are doing...
11918 cat > conftest.$ac_ext <<EOF
11922 Foo (void) { a = 0; }
11928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11929 (eval $ac_compile) 2>&5
11931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; then
11933 # Parse the compiler output and extract the necessary
11934 # objects, libraries and library flags.
11936 # Sentinel used to keep track of whether or not we are before
11937 # the conftest object file.
11938 pre_test_object_deps_done=no
11940 # The `*' in the case matches for architectures that use `case' in
11941 # $output_verbose_cmd can trigger glob expansion during the loop
11942 # eval without this substitution.
11943 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11945 for p in `eval $output_verbose_link_cmd`; do
11949 # Some compilers place space between "-{L,R}" and the path.
11950 # Remove the space.
11951 if test $p = "-L" \
11952 || test $p = "-R"; then
11959 if test "$pre_test_object_deps_done" = no; then
11962 # Internal compiler library paths should come after those
11963 # provided the user. The postdeps already come after the
11964 # user supplied libs so there is no need to process them.
11965 if test -z "$compiler_lib_search_path_CXX"; then
11966 compiler_lib_search_path_CXX="${prev}${p}"
11968 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11971 # The "-l" case would never come before the object being
11972 # linked, so don't bother handling this case.
11975 if test -z "$postdeps_CXX"; then
11976 postdeps_CXX="${prev}${p}"
11978 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11984 # This assumes that the test object file only shows up
11985 # once in the compiler output.
11986 if test "$p" = "conftest.$objext"; then
11987 pre_test_object_deps_done=yes
11991 if test "$pre_test_object_deps_done" = no; then
11992 if test -z "$predep_objects_CXX"; then
11993 predep_objects_CXX="$p"
11995 predep_objects_CXX="$predep_objects_CXX $p"
11998 if test -z "$postdep_objects_CXX"; then
11999 postdep_objects_CXX="$p"
12001 postdep_objects_CXX="$postdep_objects_CXX $p"
12006 *) ;; # Ignore the rest.
12014 echo "libtool.m4: error: problem compiling CXX test program"
12017 $rm -f confest.$objext
12019 compiler_lib_search_dirs_CXX=
12020 if test -n "$compiler_lib_search_path_CXX"; then
12021 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12024 # PORTME: override above test on systems where it is broken
12027 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12028 # hack all around it, let's just trust "g++" to DTRT.
12029 predep_objects_CXX=
12030 postdep_objects_CXX=
12035 case `$CC -V 2>&1 | sed 5q` in
12039 # The more standards-conforming stlport4 library is
12040 # incompatible with the Cstd library. Avoid specifying
12041 # it if it's in CXXFLAGS. Ignore libCrun as
12042 # -library=stlport4 depends on it.
12043 case " $CXX $CXXFLAGS " in
12044 *" -library=stlport4 "*)
12045 solaris_use_stlport4=yes
12048 if test "$solaris_use_stlport4" != yes; then
12049 postdeps_CXX='-library=Cstd -library=Crun'
12056 case $cc_basename in
12058 # The more standards-conforming stlport4 library is
12059 # incompatible with the Cstd library. Avoid specifying
12060 # it if it's in CXXFLAGS. Ignore libCrun as
12061 # -library=stlport4 depends on it.
12062 case " $CXX $CXXFLAGS " in
12063 *" -library=stlport4 "*)
12064 solaris_use_stlport4=yes
12068 # Adding this requires a known-good setup of shared libraries for
12069 # Sun compiler versions before 5.6, else PIC objects from an old
12070 # archive will be linked into the output, leading to subtle bugs.
12071 if test "$solaris_use_stlport4" != yes; then
12072 postdeps_CXX='-library=Cstd -library=Crun'
12079 case " $postdeps_CXX " in
12080 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12083 lt_prog_compiler_wl_CXX=
12084 lt_prog_compiler_pic_CXX=
12085 lt_prog_compiler_static_CXX=
12087 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12088 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12090 # C++ specific cases for pic, static, wl, etc.
12091 if test "$GXX" = yes; then
12092 lt_prog_compiler_wl_CXX='-Wl,'
12093 lt_prog_compiler_static_CXX='-static'
12097 # All AIX code is PIC.
12098 if test "$host_cpu" = ia64; then
12099 # AIX 5 now supports IA64 processor
12100 lt_prog_compiler_static_CXX='-Bstatic'
12104 # FIXME: we need at least 68020 code to build shared libraries, but
12105 # adding the `-m68020' flag to GCC prevents building anything better,
12107 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12109 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12110 # PIC is the default for these OSes.
12112 mingw* | cygwin* | os2* | pw32*)
12113 # This hack is so that the source file can tell whether it is being
12114 # built for inclusion in a dll (and should export symbols for example).
12115 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12116 # (--disable-auto-import) libraries
12117 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12119 darwin* | rhapsody*)
12120 # PIC is the default on this platform
12121 # Common symbols not allowed in MH_DYLIB files
12122 lt_prog_compiler_pic_CXX='-fno-common'
12125 # DJGPP does not support shared libraries at all
12126 lt_prog_compiler_pic_CXX=
12129 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12130 # Instead, we relocate shared libraries at runtime.
12133 if test -d /usr/nec; then
12134 lt_prog_compiler_pic_CXX=-Kconform_pic
12138 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12139 # not for PA HP-UX.
12144 lt_prog_compiler_pic_CXX='-fPIC'
12149 lt_prog_compiler_pic_CXX='-fPIC'
12155 # All AIX code is PIC.
12156 if test "$host_cpu" = ia64; then
12157 # AIX 5 now supports IA64 processor
12158 lt_prog_compiler_static_CXX='-Bstatic'
12160 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12164 case $cc_basename in
12166 # Green Hills C++ Compiler
12167 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12172 # PIC is the default on this platform
12173 # Common symbols not allowed in MH_DYLIB files
12174 case $cc_basename in
12176 lt_prog_compiler_pic_CXX='-qnocommon'
12177 lt_prog_compiler_wl_CXX='-Wl,'
12182 case $cc_basename in
12184 lt_prog_compiler_pic_CXX='-KPIC'
12187 # Green Hills C++ Compiler
12188 lt_prog_compiler_pic_CXX='-pic'
12194 freebsd* | dragonfly*)
12195 # FreeBSD uses GNU C++
12197 hpux9* | hpux10* | hpux11*)
12198 case $cc_basename in
12200 lt_prog_compiler_wl_CXX='-Wl,'
12201 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12202 if test "$host_cpu" != ia64; then
12203 lt_prog_compiler_pic_CXX='+Z'
12207 lt_prog_compiler_wl_CXX='-Wl,'
12208 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12214 lt_prog_compiler_pic_CXX='+Z'
12223 # This is c89, which is MS Visual C++ (no shared libs)
12224 # Anyone wants to do a port?
12226 irix5* | irix6* | nonstopux*)
12227 case $cc_basename in
12229 lt_prog_compiler_wl_CXX='-Wl,'
12230 lt_prog_compiler_static_CXX='-non_shared'
12231 # CC pic flag -KPIC is the default.
12237 linux* | k*bsd*-gnu)
12238 case $cc_basename in
12241 lt_prog_compiler_wl_CXX='--backend -Wl,'
12242 lt_prog_compiler_pic_CXX='-fPIC'
12246 lt_prog_compiler_wl_CXX='-Wl,'
12247 lt_prog_compiler_pic_CXX='-KPIC'
12248 lt_prog_compiler_static_CXX='-static'
12251 # Portland Group C++ compiler.
12252 lt_prog_compiler_wl_CXX='-Wl,'
12253 lt_prog_compiler_pic_CXX='-fpic'
12254 lt_prog_compiler_static_CXX='-Bstatic'
12258 # Make sure the PIC flag is empty. It appears that all Alpha
12259 # Linux and Compaq Tru64 Unix objects are PIC.
12260 lt_prog_compiler_pic_CXX=
12261 lt_prog_compiler_static_CXX='-non_shared'
12264 case `$CC -V 2>&1 | sed 5q` in
12267 lt_prog_compiler_pic_CXX='-KPIC'
12268 lt_prog_compiler_static_CXX='-Bstatic'
12269 lt_prog_compiler_wl_CXX='-Qoption ld '
12280 case $cc_basename in
12282 lt_prog_compiler_pic_CXX='-W c,exportall'
12290 osf3* | osf4* | osf5*)
12291 case $cc_basename in
12293 lt_prog_compiler_wl_CXX='--backend -Wl,'
12296 # Rational C++ 2.4.1
12297 lt_prog_compiler_pic_CXX='-pic'
12300 # Digital/Compaq C++
12301 lt_prog_compiler_wl_CXX='-Wl,'
12302 # Make sure the PIC flag is empty. It appears that all Alpha
12303 # Linux and Compaq Tru64 Unix objects are PIC.
12304 lt_prog_compiler_pic_CXX=
12305 lt_prog_compiler_static_CXX='-non_shared'
12314 case $cc_basename in
12316 # Sun C++ 4.2, 5.x and Centerline C++
12317 lt_prog_compiler_pic_CXX='-KPIC'
12318 lt_prog_compiler_static_CXX='-Bstatic'
12319 lt_prog_compiler_wl_CXX='-Qoption ld '
12322 # Green Hills C++ Compiler
12323 lt_prog_compiler_pic_CXX='-PIC'
12330 case $cc_basename in
12333 lt_prog_compiler_pic_CXX='-pic'
12334 lt_prog_compiler_static_CXX='-Bstatic'
12338 lt_prog_compiler_pic_CXX='-pic'
12345 case $cc_basename in
12347 # NonStop-UX NCC 3.20
12348 lt_prog_compiler_pic_CXX='-KPIC'
12354 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12355 case $cc_basename in
12357 lt_prog_compiler_wl_CXX='-Wl,'
12358 lt_prog_compiler_pic_CXX='-KPIC'
12359 lt_prog_compiler_static_CXX='-Bstatic'
12366 lt_prog_compiler_can_build_shared_CXX=no
12371 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12372 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12375 # Check to make sure the PIC flag actually works.
12377 if test -n "$lt_prog_compiler_pic_CXX"; then
12379 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12380 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12381 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12382 $as_echo_n "(cached) " >&6
12384 lt_cv_prog_compiler_pic_works_CXX=no
12385 ac_outfile=conftest.$ac_objext
12386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12387 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12388 # Insert the option either (1) after the last *FLAGS variable, or
12389 # (2) before a word containing "conftest.", or (3) at the end.
12390 # Note that $ac_compile itself does not contain backslashes and begins
12391 # with a dollar sign (not a hyphen), so the echo should work correctly.
12392 # The option is referenced via a variable to avoid confusing sed.
12393 lt_compile=`echo "$ac_compile" | $SED \
12394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12396 -e 's:$: $lt_compiler_flag:'`
12397 (eval echo "\"\$as_me:12397: $lt_compile\"" >&5)
12398 (eval "$lt_compile" 2>conftest.err)
12400 cat conftest.err >&5
12401 echo "$as_me:12401: \$? = $ac_status" >&5
12402 if (exit $ac_status) && test -s "$ac_outfile"; then
12403 # The compiler can only warn and ignore the option if not recognized
12404 # So say no if there are warnings other than the usual output.
12405 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12406 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12407 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12408 lt_cv_prog_compiler_pic_works_CXX=yes
12414 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12415 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12417 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12418 case $lt_prog_compiler_pic_CXX in
12420 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12423 lt_prog_compiler_pic_CXX=
12424 lt_prog_compiler_can_build_shared_CXX=no
12429 # For platforms which do not support PIC, -DPIC is meaningless:
12431 lt_prog_compiler_pic_CXX=
12434 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12439 # Check to make sure the static flag actually works.
12441 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12442 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12443 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12444 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12445 $as_echo_n "(cached) " >&6
12447 lt_cv_prog_compiler_static_works_CXX=no
12448 save_LDFLAGS="$LDFLAGS"
12449 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12450 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12451 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12452 # The linker can only warn and ignore the option if not recognized
12453 # So say no if there are warnings
12454 if test -s conftest.err; then
12455 # Append any errors to the config.log.
12456 cat conftest.err 1>&5
12457 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12459 if diff conftest.exp conftest.er2 >/dev/null; then
12460 lt_cv_prog_compiler_static_works_CXX=yes
12463 lt_cv_prog_compiler_static_works_CXX=yes
12467 LDFLAGS="$save_LDFLAGS"
12470 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12471 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12473 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12476 lt_prog_compiler_static_CXX=
12480 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12481 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12482 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12483 $as_echo_n "(cached) " >&6
12485 lt_cv_prog_compiler_c_o_CXX=no
12486 $rm -r conftest 2>/dev/null
12490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12492 lt_compiler_flag="-o out/conftest2.$ac_objext"
12493 # Insert the option either (1) after the last *FLAGS variable, or
12494 # (2) before a word containing "conftest.", or (3) at the end.
12495 # Note that $ac_compile itself does not contain backslashes and begins
12496 # with a dollar sign (not a hyphen), so the echo should work correctly.
12497 lt_compile=`echo "$ac_compile" | $SED \
12498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12500 -e 's:$: $lt_compiler_flag:'`
12501 (eval echo "\"\$as_me:12501: $lt_compile\"" >&5)
12502 (eval "$lt_compile" 2>out/conftest.err)
12504 cat out/conftest.err >&5
12505 echo "$as_me:12505: \$? = $ac_status" >&5
12506 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12508 # The compiler can only warn and ignore the option if not recognized
12509 # So say no if there are warnings
12510 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12511 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12512 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12513 lt_cv_prog_compiler_c_o_CXX=yes
12518 # SGI C++ compiler will create directory out/ii_files/ for
12519 # template instantiation
12520 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12521 $rm out/* && rmdir out
12527 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12528 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12531 hard_links="nottested"
12532 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12533 # do not overwrite the value of need_locks provided by the user
12534 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12535 $as_echo_n "checking if we can lock with hard links... " >&6; }
12538 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12540 ln conftest.a conftest.b 2>&5 || hard_links=no
12541 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12542 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
12543 $as_echo "$hard_links" >&6; }
12544 if test "$hard_links" = no; then
12545 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12546 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12553 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12554 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12556 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12559 # If we're using GNU nm, then we don't want the "-C" option.
12560 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12561 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12562 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12564 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12568 export_symbols_cmds_CXX="$ltdll_cmds"
12571 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12574 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12577 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12579 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12580 $as_echo "$ld_shlibs_CXX" >&6; }
12581 test "$ld_shlibs_CXX" = no && can_build_shared=no
12584 # Do we need to explicitly link libc?
12586 case "x$archive_cmds_need_lc_CXX" in
12588 # Assume -lc should be added
12589 archive_cmds_need_lc_CXX=yes
12591 if test "$enable_shared" = yes && test "$GCC" = yes; then
12592 case $archive_cmds_CXX in
12594 # FIXME: we may have to deal with multi-command sequences.
12597 # Test whether the compiler implicitly links with -lc since on some
12598 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12599 # to ld, don't add -lc before -lgcc.
12600 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12601 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12606 (eval $ac_compile) 2>&5
12608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } 2>conftest.err; then
12612 libobjs=conftest.$ac_objext
12614 wl=$lt_prog_compiler_wl_CXX
12615 pic_flag=$lt_prog_compiler_pic_CXX
12621 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12622 allow_undefined_flag_CXX=
12623 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12624 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); }
12629 archive_cmds_need_lc_CXX=no
12631 archive_cmds_need_lc_CXX=yes
12633 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12635 cat conftest.err 1>&5
12638 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12639 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12646 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12647 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12648 library_names_spec=
12649 libname_spec='lib$name'
12653 postuninstall_cmds=
12657 shlibpath_overrides_runpath=unknown
12659 dynamic_linker="$host_os ld.so"
12660 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12662 need_lib_prefix=unknown
12663 hardcode_into_libs=no
12665 # when you set need_version to no, make sure it does not cause -set_version
12666 # flags to be left without arguments
12667 need_version=unknown
12672 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12673 shlibpath_var=LIBPATH
12675 # AIX 3 has no versioning support, so we append a major version to the name.
12676 soname_spec='${libname}${release}${shared_ext}$major'
12683 hardcode_into_libs=yes
12684 if test "$host_cpu" = ia64; then
12685 # AIX 5 supports IA64
12686 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12687 shlibpath_var=LD_LIBRARY_PATH
12689 # With GCC up to 2.95.x, collect2 would create an import file
12690 # for dependence libraries. The import file would start with
12691 # the line `#! .'. This would cause the generated library to
12692 # depend on `.', always an invalid library. This was fixed in
12693 # development snapshots of GCC prior to 3.0.
12695 aix4 | aix4.[01] | aix4.[01].*)
12696 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12698 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12701 can_build_shared=no
12705 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12706 # soname into executable. Probably we can add versioning support to
12707 # collect2, so additional links can be useful in future.
12708 if test "$aix_use_runtimelinking" = yes; then
12709 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12710 # instead of lib<name>.a to let people know that these are not
12711 # typical AIX shared libraries.
12712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12714 # We preserve .a as extension for shared libraries through AIX4.2
12715 # and later when we are not doing run time linking.
12716 library_names_spec='${libname}${release}.a $libname.a'
12717 soname_spec='${libname}${release}${shared_ext}$major'
12719 shlibpath_var=LIBPATH
12724 library_names_spec='$libname.ixlibrary $libname.a'
12725 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12726 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'
12730 library_names_spec='${libname}${shared_ext}'
12731 dynamic_linker="$host_os ld.so"
12732 shlibpath_var=LIBRARY_PATH
12738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12739 soname_spec='${libname}${release}${shared_ext}$major'
12740 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12741 shlibpath_var=LD_LIBRARY_PATH
12742 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12743 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12744 # the default ld.so.conf also contains /usr/contrib/lib and
12745 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12746 # libtool to hard-code these into programs
12749 cygwin* | mingw* | pw32*)
12750 version_type=windows
12755 case $GCC,$host_os in
12756 yes,cygwin* | yes,mingw* | yes,pw32*)
12757 library_names_spec='$libname.dll.a'
12758 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12759 postinstall_cmds='base_file=`basename \${file}`~
12760 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12761 dldir=$destdir/`dirname \$dlpath`~
12762 test -d \$dldir || mkdir -p \$dldir~
12763 $install_prog $dir/$dlname \$dldir/$dlname~
12764 chmod a+x \$dldir/$dlname'
12765 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12766 dlpath=$dir/\$dldll~
12768 shlibpath_overrides_runpath=yes
12772 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12773 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12774 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12777 # MinGW DLLs use traditional 'lib' prefix
12778 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12779 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12780 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12781 # It is most probably a Windows format PATH printed by
12782 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12783 # path with ; separators, and with drive letters. We can handle the
12784 # drive letters (cygwin fileutils understands them), so leave them,
12785 # especially as we might pass files found there to a mingw objdump,
12786 # which wouldn't understand a cygwinified path. Ahh.
12787 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12789 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12793 # pw32 DLLs use 'pw' prefix rather than 'lib'
12794 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12800 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12803 dynamic_linker='Win32 ld.exe'
12804 # FIXME: first we should search . and the directory the executable is in
12808 darwin* | rhapsody*)
12809 dynamic_linker="$host_os dyld"
12810 version_type=darwin
12813 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12814 soname_spec='${libname}${release}${major}$shared_ext'
12815 shlibpath_overrides_runpath=yes
12816 shlibpath_var=DYLD_LIBRARY_PATH
12817 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12819 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12827 soname_spec='${libname}${release}${shared_ext}$major'
12828 shlibpath_var=LD_LIBRARY_PATH
12835 freebsd* | dragonfly*)
12836 # DragonFly does not have aout. When/if they implement a new
12837 # versioning mechanism, adjust this.
12838 if test -x /usr/bin/objformat; then
12839 objformat=`/usr/bin/objformat`
12842 freebsd[123]*) objformat=aout ;;
12843 *) objformat=elf ;;
12846 version_type=freebsd-$objformat
12847 case $version_type in
12849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12858 shlibpath_var=LD_LIBRARY_PATH
12861 shlibpath_overrides_runpath=yes
12863 freebsd3.[01]* | freebsdelf3.[01]*)
12864 shlibpath_overrides_runpath=yes
12865 hardcode_into_libs=yes
12867 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12868 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12869 shlibpath_overrides_runpath=no
12870 hardcode_into_libs=yes
12872 *) # from 4.6 on, and DragonFly
12873 shlibpath_overrides_runpath=yes
12874 hardcode_into_libs=yes
12883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12884 soname_spec='${libname}${release}${shared_ext}$major'
12885 shlibpath_var=LD_LIBRARY_PATH
12886 hardcode_into_libs=yes
12889 hpux9* | hpux10* | hpux11*)
12890 # Give a soname corresponding to the major version so that dld.sl refuses to
12891 # link against other versions.
12898 hardcode_into_libs=yes
12899 dynamic_linker="$host_os dld.so"
12900 shlibpath_var=LD_LIBRARY_PATH
12901 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12903 soname_spec='${libname}${release}${shared_ext}$major'
12904 if test "X$HPUX_IA64_MODE" = X32; then
12905 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12907 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12909 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12913 hardcode_into_libs=yes
12914 dynamic_linker="$host_os dld.sl"
12915 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12916 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12918 soname_spec='${libname}${release}${shared_ext}$major'
12919 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12920 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12924 dynamic_linker="$host_os dld.sl"
12925 shlibpath_var=SHLIB_PATH
12926 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12928 soname_spec='${libname}${release}${shared_ext}$major'
12931 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12932 postinstall_cmds='chmod 555 $lib'
12939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12940 soname_spec='${libname}${release}${shared_ext}$major'
12941 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12942 shlibpath_var=LD_LIBRARY_PATH
12943 shlibpath_overrides_runpath=no
12944 hardcode_into_libs=yes
12947 irix5* | irix6* | nonstopux*)
12949 nonstopux*) version_type=nonstopux ;;
12951 if test "$lt_cv_prog_gnu_ld" = yes; then
12959 soname_spec='${libname}${release}${shared_ext}$major'
12960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12962 irix5* | nonstopux*)
12963 libsuff= shlibsuff=
12966 case $LD in # libtool.m4 will add one of these switches to LD
12967 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12968 libsuff= shlibsuff= libmagic=32-bit;;
12969 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12970 libsuff=32 shlibsuff=N32 libmagic=N32;;
12971 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12972 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12973 *) libsuff= shlibsuff= libmagic=never-match;;
12977 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12978 shlibpath_overrides_runpath=no
12979 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12980 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12981 hardcode_into_libs=yes
12984 # No shared lib support for Linux oldld, aout, or coff.
12985 linux*oldld* | linux*aout* | linux*coff*)
12989 # This must be Linux ELF.
12990 linux* | k*bsd*-gnu)
12994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12995 soname_spec='${libname}${release}${shared_ext}$major'
12996 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12997 shlibpath_var=LD_LIBRARY_PATH
12998 shlibpath_overrides_runpath=no
12999 # This implies no fast_install, which is unacceptable.
13000 # Some rework will be needed to allow for fast_install
13001 # before this can be enabled.
13002 hardcode_into_libs=yes
13004 # Append ld.so.conf contents to the search path
13005 if test -f /etc/ld.so.conf; then
13006 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' ' '`
13007 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13010 # We used to test for /lib/ld.so.1 and disable shared libraries on
13011 # powerpc, because MkLinux only supported shared libraries with the
13012 # GNU dynamic linker. Since this was broken with cross compilers,
13013 # most powerpc-linux boxes support dynamic linking these days and
13014 # people can always --disable-shared, the test was removed, and we
13015 # assume the GNU/Linux dynamic linker is in use.
13016 dynamic_linker='GNU/Linux ld.so'
13023 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13026 dynamic_linker='NetBSD (a.out) ld.so'
13028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13029 soname_spec='${libname}${release}${shared_ext}$major'
13030 dynamic_linker='NetBSD ld.elf_so'
13032 shlibpath_var=LD_LIBRARY_PATH
13033 shlibpath_overrides_runpath=yes
13034 hardcode_into_libs=yes
13039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13040 shlibpath_var=LD_LIBRARY_PATH
13041 shlibpath_overrides_runpath=yes
13048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13049 soname_spec='${libname}${release}${shared_ext}$major'
13050 shlibpath_var=LD_LIBRARY_PATH
13051 shlibpath_overrides_runpath=yes
13056 sys_lib_dlsearch_path_spec="/usr/lib"
13058 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13060 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13061 *) need_version=no ;;
13063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13064 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13065 shlibpath_var=LD_LIBRARY_PATH
13066 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13068 openbsd2.[89] | openbsd2.[89].*)
13069 shlibpath_overrides_runpath=no
13072 shlibpath_overrides_runpath=yes
13076 shlibpath_overrides_runpath=yes
13081 libname_spec='$name'
13084 library_names_spec='$libname${shared_ext} $libname.a'
13085 dynamic_linker='OS/2 ld.exe'
13086 shlibpath_var=LIBPATH
13089 osf3* | osf4* | osf5*)
13093 soname_spec='${libname}${release}${shared_ext}$major'
13094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13095 shlibpath_var=LD_LIBRARY_PATH
13096 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13097 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13109 soname_spec='${libname}${release}${shared_ext}$major'
13110 shlibpath_var=LD_LIBRARY_PATH
13111 shlibpath_overrides_runpath=yes
13112 hardcode_into_libs=yes
13113 # ldd complains unless libraries are executable
13114 postinstall_cmds='chmod +x $lib'
13119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13120 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13121 shlibpath_var=LD_LIBRARY_PATH
13122 shlibpath_overrides_runpath=yes
13123 if test "$with_gnu_ld" = yes; then
13131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13132 soname_spec='${libname}${release}${shared_ext}$major'
13133 shlibpath_var=LD_LIBRARY_PATH
13134 case $host_vendor in
13136 shlibpath_overrides_runpath=no
13138 export_dynamic_flag_spec='${wl}-Blargedynsym'
13139 runpath_var=LD_RUN_PATH
13147 shlibpath_overrides_runpath=no
13148 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13154 if test -d /usr/nec ;then
13156 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13157 soname_spec='$libname${shared_ext}.$major'
13158 shlibpath_var=LD_LIBRARY_PATH
13162 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13163 version_type=freebsd-elf
13166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13167 soname_spec='${libname}${release}${shared_ext}$major'
13168 shlibpath_var=LD_LIBRARY_PATH
13169 hardcode_into_libs=yes
13170 if test "$with_gnu_ld" = yes; then
13171 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13172 shlibpath_overrides_runpath=no
13174 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13175 shlibpath_overrides_runpath=yes
13178 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13182 sys_lib_dlsearch_path_spec='/usr/lib'
13187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13188 soname_spec='${libname}${release}${shared_ext}$major'
13189 shlibpath_var=LD_LIBRARY_PATH
13196 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13197 $as_echo "$dynamic_linker" >&6; }
13198 test "$dynamic_linker" = no && can_build_shared=no
13200 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13201 $as_echo_n "(cached) " >&6
13203 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13206 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13207 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13208 $as_echo_n "(cached) " >&6
13210 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13213 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13215 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13216 if test "$GCC" = yes; then
13217 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13220 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13221 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13222 hardcode_action_CXX=
13223 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13224 test -n "$runpath_var_CXX" || \
13225 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13227 # We can hardcode non-existant directories.
13228 if test "$hardcode_direct_CXX" != no &&
13229 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13230 # have to relink, otherwise we might link with an installed library
13231 # when we should be linking with a yet-to-be-installed one
13232 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13233 test "$hardcode_minus_L_CXX" != no; then
13234 # Linking always hardcodes the temporary library directory.
13235 hardcode_action_CXX=relink
13237 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13238 hardcode_action_CXX=immediate
13241 # We cannot hardcode anything, or else we can only hardcode existing
13243 hardcode_action_CXX=unsupported
13245 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13246 $as_echo "$hardcode_action_CXX" >&6; }
13248 if test "$hardcode_action_CXX" = relink; then
13249 # Fast installation is not supported
13250 enable_fast_install=no
13251 elif test "$shlibpath_overrides_runpath" = yes ||
13252 test "$enable_shared" = no; then
13253 # Fast installation is not necessary
13254 enable_fast_install=needless
13258 # The else clause should only fire when bootstrapping the
13259 # libtool distribution, otherwise you forgot to ship ltmain.sh
13260 # with your package, and you will get complaints that there are
13261 # no rules to generate ltmain.sh.
13262 if test -f "$ltmain"; then
13263 # See if we are running on zsh, and set the options which allow our commands through
13264 # without removal of \ escapes.
13265 if test -n "${ZSH_VERSION+set}" ; then
13266 setopt NO_GLOB_SUBST
13268 # Now quote all the things that may contain metacharacters while being
13269 # careful not to overquote the AC_SUBSTed values. We take copies of the
13270 # variables and quote the copies for generation of the libtool script.
13271 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13273 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13274 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13275 deplibs_check_method reload_flag reload_cmds need_locks \
13276 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13277 lt_cv_sys_global_symbol_to_c_name_address \
13278 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13279 old_postinstall_cmds old_postuninstall_cmds \
13283 lt_prog_compiler_wl_CXX \
13284 lt_prog_compiler_pic_CXX \
13285 lt_prog_compiler_static_CXX \
13286 lt_prog_compiler_no_builtin_flag_CXX \
13287 export_dynamic_flag_spec_CXX \
13288 thread_safe_flag_spec_CXX \
13289 whole_archive_flag_spec_CXX \
13290 enable_shared_with_static_runtimes_CXX \
13291 old_archive_cmds_CXX \
13292 old_archive_from_new_cmds_CXX \
13293 predep_objects_CXX \
13294 postdep_objects_CXX \
13297 compiler_lib_search_path_CXX \
13298 compiler_lib_search_dirs_CXX \
13300 archive_expsym_cmds_CXX \
13301 postinstall_cmds_CXX \
13302 postuninstall_cmds_CXX \
13303 old_archive_from_expsyms_cmds_CXX \
13304 allow_undefined_flag_CXX \
13305 no_undefined_flag_CXX \
13306 export_symbols_cmds_CXX \
13307 hardcode_libdir_flag_spec_CXX \
13308 hardcode_libdir_flag_spec_ld_CXX \
13309 hardcode_libdir_separator_CXX \
13310 hardcode_automatic_CXX \
13312 module_expsym_cmds_CXX \
13313 lt_cv_prog_compiler_c_o_CXX \
13314 fix_srcfile_path_CXX \
13315 exclude_expsyms_CXX \
13316 include_expsyms_CXX; do
13319 old_archive_cmds_CXX | \
13320 old_archive_from_new_cmds_CXX | \
13321 archive_cmds_CXX | \
13322 archive_expsym_cmds_CXX | \
13323 module_cmds_CXX | \
13324 module_expsym_cmds_CXX | \
13325 old_archive_from_expsyms_cmds_CXX | \
13326 export_symbols_cmds_CXX | \
13327 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13328 postinstall_cmds | postuninstall_cmds | \
13329 old_postinstall_cmds | old_postuninstall_cmds | \
13330 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13331 # Double-quote double-evaled strings.
13332 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13335 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13341 *'\$0 --fallback-echo"')
13342 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13348 cat <<__EOF__ >> "$cfgfile"
13349 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13351 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13353 # Shell to use when invoking shell scripts.
13356 # Whether or not to build shared libraries.
13357 build_libtool_libs=$enable_shared
13359 # Whether or not to build static libraries.
13360 build_old_libs=$enable_static
13362 # Whether or not to add -lc for building shared libraries.
13363 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13365 # Whether or not to disallow shared libs when runtime libs are static
13366 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13368 # Whether or not to optimize for fast installation.
13369 fast_install=$enable_fast_install
13372 host_alias=$host_alias
13376 # The build system.
13377 build_alias=$build_alias
13381 # An echo program that does not interpret backslashes.
13386 AR_FLAGS=$lt_AR_FLAGS
13391 # LTCC compiler flags.
13392 LTCFLAGS=$lt_LTCFLAGS
13394 # A language-specific compiler.
13395 CC=$lt_compiler_CXX
13397 # Is the compiler the GNU C compiler?
13403 # The linker used to build libraries.
13406 # Whether we need hard or soft links.
13409 # A BSD-compatible nm program.
13412 # A symbol stripping program
13415 # Used to examine libraries when file_magic_cmd begins "file"
13416 MAGIC_CMD=$MAGIC_CMD
13418 # Used on cygwin: DLL creation program.
13421 # Used on cygwin: object dumper.
13424 # Used on cygwin: assembler.
13427 # The name of the directory that contains temporary libtool files.
13430 # How to create reloadable object files.
13431 reload_flag=$lt_reload_flag
13432 reload_cmds=$lt_reload_cmds
13434 # How to pass a linker flag through the compiler.
13435 wl=$lt_lt_prog_compiler_wl_CXX
13437 # Object file suffix (normally "o").
13438 objext="$ac_objext"
13440 # Old archive suffix (normally "a").
13443 # Shared library suffix (normally ".so").
13444 shrext_cmds='$shrext_cmds'
13446 # Executable file suffix (normally "").
13449 # Additional compiler flags for building library objects.
13450 pic_flag=$lt_lt_prog_compiler_pic_CXX
13453 # What is the maximum length of a command?
13454 max_cmd_len=$lt_cv_sys_max_cmd_len
13456 # Does compiler simultaneously support -c and -o options?
13457 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13459 # Must we lock files when doing compilation?
13460 need_locks=$lt_need_locks
13462 # Do we need the lib prefix for modules?
13463 need_lib_prefix=$need_lib_prefix
13465 # Do we need a version for libraries?
13466 need_version=$need_version
13468 # Whether dlopen is supported.
13469 dlopen_support=$enable_dlopen
13471 # Whether dlopen of programs is supported.
13472 dlopen_self=$enable_dlopen_self
13474 # Whether dlopen of statically linked programs is supported.
13475 dlopen_self_static=$enable_dlopen_self_static
13477 # Compiler flag to prevent dynamic linking.
13478 link_static_flag=$lt_lt_prog_compiler_static_CXX
13480 # Compiler flag to turn off builtin functions.
13481 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13483 # Compiler flag to allow reflexive dlopens.
13484 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13486 # Compiler flag to generate shared objects directly from archives.
13487 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13489 # Compiler flag to generate thread-safe objects.
13490 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13492 # Library versioning type.
13493 version_type=$version_type
13495 # Format of library name prefix.
13496 libname_spec=$lt_libname_spec
13498 # List of archive names. First name is the real one, the rest are links.
13499 # The last name is the one that the linker finds with -lNAME.
13500 library_names_spec=$lt_library_names_spec
13502 # The coded name of the library, if different from the real name.
13503 soname_spec=$lt_soname_spec
13505 # Commands used to build and install an old-style archive.
13507 old_archive_cmds=$lt_old_archive_cmds_CXX
13508 old_postinstall_cmds=$lt_old_postinstall_cmds
13509 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13511 # Create an old-style archive from a shared archive.
13512 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13514 # Create a temporary old-style archive to link instead of a shared archive.
13515 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13517 # Commands used to build and install a shared archive.
13518 archive_cmds=$lt_archive_cmds_CXX
13519 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13520 postinstall_cmds=$lt_postinstall_cmds
13521 postuninstall_cmds=$lt_postuninstall_cmds
13523 # Commands used to build a loadable module (assumed same as above if empty)
13524 module_cmds=$lt_module_cmds_CXX
13525 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13527 # Commands to strip libraries.
13528 old_striplib=$lt_old_striplib
13529 striplib=$lt_striplib
13531 # Dependencies to place before the objects being linked to create a
13533 predep_objects=$lt_predep_objects_CXX
13535 # Dependencies to place after the objects being linked to create a
13537 postdep_objects=$lt_postdep_objects_CXX
13539 # Dependencies to place before the objects being linked to create a
13541 predeps=$lt_predeps_CXX
13543 # Dependencies to place after the objects being linked to create a
13545 postdeps=$lt_postdeps_CXX
13547 # The directories searched by this compiler when creating a shared
13549 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13551 # The library search path used internally by the compiler when linking
13552 # a shared library.
13553 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13555 # Method to check whether dependent libraries are shared objects.
13556 deplibs_check_method=$lt_deplibs_check_method
13558 # Command to use when deplibs_check_method == file_magic.
13559 file_magic_cmd=$lt_file_magic_cmd
13561 # Flag that allows shared libraries with undefined symbols to be built.
13562 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13564 # Flag that forces no undefined symbols.
13565 no_undefined_flag=$lt_no_undefined_flag_CXX
13567 # Commands used to finish a libtool library installation in a directory.
13568 finish_cmds=$lt_finish_cmds
13570 # Same as above, but a single script fragment to be evaled but not shown.
13571 finish_eval=$lt_finish_eval
13573 # Take the output of nm and produce a listing of raw symbols and C names.
13574 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13576 # Transform the output of nm in a proper C declaration
13577 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13579 # Transform the output of nm in a C name address pair
13580 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13582 # This is the shared library runtime path variable.
13583 runpath_var=$runpath_var
13585 # This is the shared library path variable.
13586 shlibpath_var=$shlibpath_var
13588 # Is shlibpath searched before the hard-coded library search path?
13589 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13591 # How to hardcode a shared library path into an executable.
13592 hardcode_action=$hardcode_action_CXX
13594 # Whether we should hardcode library paths into libraries.
13595 hardcode_into_libs=$hardcode_into_libs
13597 # Flag to hardcode \$libdir into a binary during linking.
13598 # This must work even if \$libdir does not exist.
13599 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13601 # If ld is used when linking, flag to hardcode \$libdir into
13602 # a binary during linking. This must work even if \$libdir does
13604 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13606 # Whether we need a single -rpath flag with a separated argument.
13607 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13609 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13610 # resulting binary.
13611 hardcode_direct=$hardcode_direct_CXX
13613 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13614 # resulting binary.
13615 hardcode_minus_L=$hardcode_minus_L_CXX
13617 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13618 # the resulting binary.
13619 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13621 # Set to yes if building a shared library automatically hardcodes DIR into the library
13622 # and all subsequent libraries and executables linked against it.
13623 hardcode_automatic=$hardcode_automatic_CXX
13625 # Variables whose values should be saved in libtool wrapper scripts and
13626 # restored at relink time.
13627 variables_saved_for_relink="$variables_saved_for_relink"
13629 # Whether libtool must link a program against all its dependency libraries.
13630 link_all_deplibs=$link_all_deplibs_CXX
13632 # Compile-time system search path for libraries
13633 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13635 # Run-time system search path for libraries
13636 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13638 # Fix the shell variable \$srcfile for the compiler.
13639 fix_srcfile_path=$lt_fix_srcfile_path
13641 # Set to yes if exported symbols are required.
13642 always_export_symbols=$always_export_symbols_CXX
13644 # The commands to list exported symbols.
13645 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13647 # The commands to extract the exported symbol list from a shared archive.
13648 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13650 # Symbols that should not be listed in the preloaded symbols.
13651 exclude_expsyms=$lt_exclude_expsyms_CXX
13653 # Symbols that must always be exported.
13654 include_expsyms=$lt_include_expsyms_CXX
13656 # ### END LIBTOOL TAG CONFIG: $tagname
13662 # If there is no Makefile yet, we rely on a make rule to execute
13663 # `config.status --recheck' to rerun these tests and create the
13664 # libtool script then.
13665 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13666 if test -f "$ltmain_in"; then
13667 test -f Makefile && make "$ltmain"
13673 ac_cpp='$CPP $CPPFLAGS'
13674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13682 with_gnu_ldcxx=$with_gnu_ld
13683 with_gnu_ld=$lt_save_with_gnu_ld
13684 lt_cv_path_LDCXX=$lt_cv_path_LD
13685 lt_cv_path_LD=$lt_save_path_LD
13686 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13687 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13695 if test -n "$F77" && test "X$F77" != "Xno"; then
13698 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13699 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13700 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13703 archive_cmds_need_lc_F77=no
13704 allow_undefined_flag_F77=
13705 always_export_symbols_F77=no
13706 archive_expsym_cmds_F77=
13707 export_dynamic_flag_spec_F77=
13708 hardcode_direct_F77=no
13709 hardcode_libdir_flag_spec_F77=
13710 hardcode_libdir_flag_spec_ld_F77=
13711 hardcode_libdir_separator_F77=
13712 hardcode_minus_L_F77=no
13713 hardcode_automatic_F77=no
13715 module_expsym_cmds_F77=
13716 link_all_deplibs_F77=unknown
13717 old_archive_cmds_F77=$old_archive_cmds
13718 no_undefined_flag_F77=
13719 whole_archive_flag_spec_F77=
13720 enable_shared_with_static_runtimes_F77=no
13722 # Source file extension for f77 test sources.
13725 # Object file extension for compiled f77 test sources.
13729 # Code to be used in simple compile tests
13730 lt_simple_compile_test_code="\
13736 # Code to be used in simple link tests
13737 lt_simple_link_test_code="\
13742 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13744 # If no C compiler was specified, use CC.
13747 # If no C compiler flags were specified, use CFLAGS.
13748 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13750 # Allow CC to be a program name with arguments.
13754 # save warnings/boilerplate of simple test code
13755 ac_outfile=conftest.$ac_objext
13756 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13757 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13758 _lt_compiler_boilerplate=`cat conftest.err`
13761 ac_outfile=conftest.$ac_objext
13762 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13763 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13764 _lt_linker_boilerplate=`cat conftest.err`
13768 # Allow CC to be a program name with arguments.
13773 for cc_temp in $compiler""; do
13775 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13776 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13781 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13784 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13785 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13786 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13787 $as_echo "$can_build_shared" >&6; }
13789 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13790 $as_echo_n "checking whether to build shared libraries... " >&6; }
13791 test "$can_build_shared" = "no" && enable_shared=no
13793 # On AIX, shared libraries and static libraries use the same namespace, and
13794 # are all built from PIC.
13797 test "$enable_shared" = yes && enable_static=no
13798 if test -n "$RANLIB"; then
13799 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13800 postinstall_cmds='$RANLIB $lib'
13804 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13805 test "$enable_shared" = yes && enable_static=no
13809 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13810 $as_echo "$enable_shared" >&6; }
13812 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13813 $as_echo_n "checking whether to build static libraries... " >&6; }
13814 # Make sure either enable_shared or enable_static is yes.
13815 test "$enable_shared" = yes || enable_static=yes
13816 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13817 $as_echo "$enable_static" >&6; }
13822 lt_prog_compiler_wl_F77=
13823 lt_prog_compiler_pic_F77=
13824 lt_prog_compiler_static_F77=
13826 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13827 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13829 if test "$GCC" = yes; then
13830 lt_prog_compiler_wl_F77='-Wl,'
13831 lt_prog_compiler_static_F77='-static'
13835 # All AIX code is PIC.
13836 if test "$host_cpu" = ia64; then
13837 # AIX 5 now supports IA64 processor
13838 lt_prog_compiler_static_F77='-Bstatic'
13843 # FIXME: we need at least 68020 code to build shared libraries, but
13844 # adding the `-m68020' flag to GCC prevents building anything better,
13846 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13849 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13850 # PIC is the default for these OSes.
13853 mingw* | cygwin* | pw32* | os2*)
13854 # This hack is so that the source file can tell whether it is being
13855 # built for inclusion in a dll (and should export symbols for example).
13856 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13857 # (--disable-auto-import) libraries
13858 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13861 darwin* | rhapsody*)
13862 # PIC is the default on this platform
13863 # Common symbols not allowed in MH_DYLIB files
13864 lt_prog_compiler_pic_F77='-fno-common'
13868 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13869 # Instead, we relocate shared libraries at runtime.
13873 # Just because we use GCC doesn't mean we suddenly get shared libraries
13874 # on systems that don't support them.
13875 lt_prog_compiler_can_build_shared_F77=no
13880 if test -d /usr/nec; then
13881 lt_prog_compiler_pic_F77=-Kconform_pic
13886 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13887 # not for PA HP-UX.
13893 lt_prog_compiler_pic_F77='-fPIC'
13899 lt_prog_compiler_pic_F77='-fPIC'
13903 # PORTME Check for flag to pass linker flags through the system compiler.
13906 lt_prog_compiler_wl_F77='-Wl,'
13907 if test "$host_cpu" = ia64; then
13908 # AIX 5 now supports IA64 processor
13909 lt_prog_compiler_static_F77='-Bstatic'
13911 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13915 # PIC is the default on this platform
13916 # Common symbols not allowed in MH_DYLIB files
13917 case $cc_basename in
13919 lt_prog_compiler_pic_F77='-qnocommon'
13920 lt_prog_compiler_wl_F77='-Wl,'
13925 mingw* | cygwin* | pw32* | os2*)
13926 # This hack is so that the source file can tell whether it is being
13927 # built for inclusion in a dll (and should export symbols for example).
13928 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13931 hpux9* | hpux10* | hpux11*)
13932 lt_prog_compiler_wl_F77='-Wl,'
13933 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13934 # not for PA HP-UX.
13940 lt_prog_compiler_pic_F77='+Z'
13943 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13944 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13947 irix5* | irix6* | nonstopux*)
13948 lt_prog_compiler_wl_F77='-Wl,'
13949 # PIC (with -KPIC) is the default.
13950 lt_prog_compiler_static_F77='-non_shared'
13954 lt_prog_compiler_pic_F77='-KPIC'
13955 lt_prog_compiler_static_F77='-Bstatic'
13958 linux* | k*bsd*-gnu)
13959 case $cc_basename in
13961 lt_prog_compiler_wl_F77='-Wl,'
13962 lt_prog_compiler_pic_F77='-KPIC'
13963 lt_prog_compiler_static_F77='-static'
13965 pgcc* | pgf77* | pgf90* | pgf95*)
13966 # Portland Group compilers (*not* the Pentium gcc compiler,
13967 # which looks to be a dead project)
13968 lt_prog_compiler_wl_F77='-Wl,'
13969 lt_prog_compiler_pic_F77='-fpic'
13970 lt_prog_compiler_static_F77='-Bstatic'
13973 lt_prog_compiler_wl_F77='-Wl,'
13974 # All Alpha code is PIC.
13975 lt_prog_compiler_static_F77='-non_shared'
13978 case `$CC -V 2>&1 | sed 5q` in
13981 lt_prog_compiler_pic_F77='-KPIC'
13982 lt_prog_compiler_static_F77='-Bstatic'
13983 lt_prog_compiler_wl_F77='-Wl,'
13986 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13987 lt_prog_compiler_pic_F77='-KPIC'
13988 lt_prog_compiler_static_F77='-Bstatic'
13989 lt_prog_compiler_wl_F77=''
13996 osf3* | osf4* | osf5*)
13997 lt_prog_compiler_wl_F77='-Wl,'
13998 # All OSF/1 code is PIC.
13999 lt_prog_compiler_static_F77='-non_shared'
14003 lt_prog_compiler_static_F77='-non_shared'
14007 lt_prog_compiler_pic_F77='-KPIC'
14008 lt_prog_compiler_static_F77='-Bstatic'
14009 case $cc_basename in
14010 f77* | f90* | f95*)
14011 lt_prog_compiler_wl_F77='-Qoption ld ';;
14013 lt_prog_compiler_wl_F77='-Wl,';;
14018 lt_prog_compiler_wl_F77='-Qoption ld '
14019 lt_prog_compiler_pic_F77='-PIC'
14020 lt_prog_compiler_static_F77='-Bstatic'
14023 sysv4 | sysv4.2uw2* | sysv4.3*)
14024 lt_prog_compiler_wl_F77='-Wl,'
14025 lt_prog_compiler_pic_F77='-KPIC'
14026 lt_prog_compiler_static_F77='-Bstatic'
14030 if test -d /usr/nec ;then
14031 lt_prog_compiler_pic_F77='-Kconform_pic'
14032 lt_prog_compiler_static_F77='-Bstatic'
14036 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14037 lt_prog_compiler_wl_F77='-Wl,'
14038 lt_prog_compiler_pic_F77='-KPIC'
14039 lt_prog_compiler_static_F77='-Bstatic'
14043 lt_prog_compiler_wl_F77='-Wl,'
14044 lt_prog_compiler_can_build_shared_F77=no
14048 lt_prog_compiler_pic_F77='-pic'
14049 lt_prog_compiler_static_F77='-Bstatic'
14053 lt_prog_compiler_can_build_shared_F77=no
14058 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14059 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14062 # Check to make sure the PIC flag actually works.
14064 if test -n "$lt_prog_compiler_pic_F77"; then
14066 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14067 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14068 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14069 $as_echo_n "(cached) " >&6
14071 lt_cv_prog_compiler_pic_works_F77=no
14072 ac_outfile=conftest.$ac_objext
14073 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14074 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14075 # Insert the option either (1) after the last *FLAGS variable, or
14076 # (2) before a word containing "conftest.", or (3) at the end.
14077 # Note that $ac_compile itself does not contain backslashes and begins
14078 # with a dollar sign (not a hyphen), so the echo should work correctly.
14079 # The option is referenced via a variable to avoid confusing sed.
14080 lt_compile=`echo "$ac_compile" | $SED \
14081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14083 -e 's:$: $lt_compiler_flag:'`
14084 (eval echo "\"\$as_me:14084: $lt_compile\"" >&5)
14085 (eval "$lt_compile" 2>conftest.err)
14087 cat conftest.err >&5
14088 echo "$as_me:14088: \$? = $ac_status" >&5
14089 if (exit $ac_status) && test -s "$ac_outfile"; then
14090 # The compiler can only warn and ignore the option if not recognized
14091 # So say no if there are warnings other than the usual output.
14092 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14093 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14094 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14095 lt_cv_prog_compiler_pic_works_F77=yes
14101 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14102 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14104 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14105 case $lt_prog_compiler_pic_F77 in
14107 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14110 lt_prog_compiler_pic_F77=
14111 lt_prog_compiler_can_build_shared_F77=no
14116 # For platforms which do not support PIC, -DPIC is meaningless:
14118 lt_prog_compiler_pic_F77=
14121 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14126 # Check to make sure the static flag actually works.
14128 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14129 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14130 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14131 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14132 $as_echo_n "(cached) " >&6
14134 lt_cv_prog_compiler_static_works_F77=no
14135 save_LDFLAGS="$LDFLAGS"
14136 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14137 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14138 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14139 # The linker can only warn and ignore the option if not recognized
14140 # So say no if there are warnings
14141 if test -s conftest.err; then
14142 # Append any errors to the config.log.
14143 cat conftest.err 1>&5
14144 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14145 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14146 if diff conftest.exp conftest.er2 >/dev/null; then
14147 lt_cv_prog_compiler_static_works_F77=yes
14150 lt_cv_prog_compiler_static_works_F77=yes
14154 LDFLAGS="$save_LDFLAGS"
14157 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14158 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14160 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14163 lt_prog_compiler_static_F77=
14167 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14168 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14169 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14170 $as_echo_n "(cached) " >&6
14172 lt_cv_prog_compiler_c_o_F77=no
14173 $rm -r conftest 2>/dev/null
14177 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14179 lt_compiler_flag="-o out/conftest2.$ac_objext"
14180 # Insert the option either (1) after the last *FLAGS variable, or
14181 # (2) before a word containing "conftest.", or (3) at the end.
14182 # Note that $ac_compile itself does not contain backslashes and begins
14183 # with a dollar sign (not a hyphen), so the echo should work correctly.
14184 lt_compile=`echo "$ac_compile" | $SED \
14185 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14186 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14187 -e 's:$: $lt_compiler_flag:'`
14188 (eval echo "\"\$as_me:14188: $lt_compile\"" >&5)
14189 (eval "$lt_compile" 2>out/conftest.err)
14191 cat out/conftest.err >&5
14192 echo "$as_me:14192: \$? = $ac_status" >&5
14193 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14195 # The compiler can only warn and ignore the option if not recognized
14196 # So say no if there are warnings
14197 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14198 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14199 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14200 lt_cv_prog_compiler_c_o_F77=yes
14205 # SGI C++ compiler will create directory out/ii_files/ for
14206 # template instantiation
14207 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14208 $rm out/* && rmdir out
14214 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14215 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14218 hard_links="nottested"
14219 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14220 # do not overwrite the value of need_locks provided by the user
14221 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14222 $as_echo_n "checking if we can lock with hard links... " >&6; }
14225 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14227 ln conftest.a conftest.b 2>&5 || hard_links=no
14228 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14229 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14230 $as_echo "$hard_links" >&6; }
14231 if test "$hard_links" = no; then
14232 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14233 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14240 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14241 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14244 allow_undefined_flag_F77=
14245 enable_shared_with_static_runtimes_F77=no
14247 archive_expsym_cmds_F77=
14248 old_archive_From_new_cmds_F77=
14249 old_archive_from_expsyms_cmds_F77=
14250 export_dynamic_flag_spec_F77=
14251 whole_archive_flag_spec_F77=
14252 thread_safe_flag_spec_F77=
14253 hardcode_libdir_flag_spec_F77=
14254 hardcode_libdir_flag_spec_ld_F77=
14255 hardcode_libdir_separator_F77=
14256 hardcode_direct_F77=no
14257 hardcode_minus_L_F77=no
14258 hardcode_shlibpath_var_F77=unsupported
14259 link_all_deplibs_F77=unknown
14260 hardcode_automatic_F77=no
14262 module_expsym_cmds_F77=
14263 always_export_symbols_F77=no
14264 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14265 # include_expsyms should be a list of space-separated symbols to be *always*
14266 # included in the symbol list
14267 include_expsyms_F77=
14268 # exclude_expsyms can be an extended regexp of symbols to exclude
14269 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14270 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14271 # as well as any symbol that contains `d'.
14272 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14273 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14274 # platforms (ab)use it in PIC code, but their linkers get confused if
14275 # the symbol is explicitly referenced. Since portable code cannot
14276 # rely on this symbol name, it's probably fine to never include it in
14277 # preloaded symbol tables.
14278 # Exclude shared library initialization/finalization symbols.
14279 extract_expsyms_cmds=
14280 # Just being paranoid about ensuring that cc_basename is set.
14281 for cc_temp in $compiler""; do
14283 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14284 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14289 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14292 cygwin* | mingw* | pw32*)
14293 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14294 # When not using gcc, we currently assume that we are using
14295 # Microsoft Visual C++.
14296 if test "$GCC" != yes; then
14301 # we just hope/assume this is gcc and not c89 (= MSVC++)
14310 if test "$with_gnu_ld" = yes; then
14311 # If archive_cmds runs LD, not CC, wlarc should be empty
14314 # Set some defaults for GNU ld with shared library support. These
14315 # are reset later if shared libraries are not supported. Putting them
14316 # here allows them to be overridden if necessary.
14317 runpath_var=LD_RUN_PATH
14318 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14319 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14320 # ancient GNU ld didn't support --whole-archive et. al.
14321 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14322 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14324 whole_archive_flag_spec_F77=
14326 supports_anon_versioning=no
14327 case `$LD -v 2>/dev/null` in
14328 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14329 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14330 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14331 *\ 2.11.*) ;; # other 2.11 versions
14332 *) supports_anon_versioning=yes ;;
14335 # See if GNU ld supports shared libraries.
14338 # On AIX/PPC, the GNU linker is very broken
14339 if test "$host_cpu" != ia64; then
14343 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14344 *** to be unable to reliably create shared libraries on AIX.
14345 *** Therefore, libtool is disabling shared libraries support. If you
14346 *** really care for shared libraries, you may want to modify your PATH
14347 *** so that a non-GNU linker is found, and then restart.
14354 archive_cmds_F77='$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)'
14355 hardcode_libdir_flag_spec_F77='-L$libdir'
14356 hardcode_minus_L_F77=yes
14358 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14359 # that the semantics of dynamic libraries on AmigaOS, at least up
14360 # to version 4, is to share data among multiple programs linked
14361 # with the same dynamic library. Since this doesn't match the
14362 # behavior of shared libraries on other platforms, we can't use
14368 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14369 allow_undefined_flag_F77=unsupported
14370 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14371 # support --undefined. This deserves some investigation. FIXME
14372 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14378 cygwin* | mingw* | pw32*)
14379 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14380 # as there is no search path for DLLs.
14381 hardcode_libdir_flag_spec_F77='-L$libdir'
14382 allow_undefined_flag_F77=unsupported
14383 always_export_symbols_F77=no
14384 enable_shared_with_static_runtimes_F77=yes
14385 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14387 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14388 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14389 # If the export-symbols file already is a .def file (1st line
14390 # is EXPORTS), use it as is; otherwise, prepend...
14391 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14392 cp $export_symbols $output_objdir/$soname.def;
14394 echo EXPORTS > $output_objdir/$soname.def;
14395 cat $export_symbols >> $output_objdir/$soname.def;
14397 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14404 hardcode_direct_F77=no
14405 hardcode_shlibpath_var_F77=no
14406 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14407 export_dynamic_flag_spec_F77='${wl}-E'
14408 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14409 # Instead, shared libraries are loaded at an image base (0x10000000 by
14410 # default) and relocated if they conflict, which is a slow very memory
14411 # consuming and fragmenting process. To avoid this, we pick a random,
14412 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14413 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14414 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14415 archive_expsym_cmds_F77='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'
14418 gnu* | linux* | k*bsd*-gnu)
14419 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14421 case $cc_basename,$host_cpu in
14422 pgcc*) # Portland Group C compiler
14423 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14424 tmp_addflag=' $pic_flag'
14426 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14427 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14428 tmp_addflag=' $pic_flag -Mnomain' ;;
14429 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14430 tmp_addflag=' -i_dynamic' ;;
14431 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14432 tmp_addflag=' -i_dynamic -nofor_main' ;;
14433 ifc* | ifort*) # Intel Fortran compiler
14434 tmp_addflag=' -nofor_main' ;;
14436 case `$CC -V 2>&1 | sed 5q` in
14437 *Sun\ C*) # Sun C 5.9
14438 whole_archive_flag_spec_F77='${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'
14439 tmp_sharedflag='-G' ;;
14440 *Sun\ F*) # Sun Fortran 8.3
14441 tmp_sharedflag='-G' ;;
14443 tmp_sharedflag='-shared' ;;
14445 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14447 if test $supports_anon_versioning = yes; then
14448 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14449 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14450 $echo "local: *; };" >> $output_objdir/$libname.ver~
14451 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14459 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14460 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14463 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14464 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14469 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14473 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14474 *** create shared libraries on Solaris systems. Therefore, libtool
14475 *** is disabling shared libraries support. We urge you to upgrade GNU
14476 *** binutils to release 2.9.1 or newer. Another option is to modify
14477 *** your PATH or compiler configuration so that the native linker is
14478 *** used, and then restart.
14481 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14482 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14483 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14489 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14490 case `$LD -v 2>&1` in
14491 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14495 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14496 *** reliably create shared libraries on SCO systems. Therefore, libtool
14497 *** is disabling shared libraries support. We urge you to upgrade GNU
14498 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14499 *** your PATH or compiler configuration so that the native linker is
14500 *** used, and then restart.
14505 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14506 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14507 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14508 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14517 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14519 hardcode_direct_F77=yes
14520 hardcode_shlibpath_var_F77=no
14524 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14525 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14526 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14533 if test "$ld_shlibs_F77" = no; then
14535 hardcode_libdir_flag_spec_F77=
14536 export_dynamic_flag_spec_F77=
14537 whole_archive_flag_spec_F77=
14540 # PORTME fill in a description of your system's linker (not GNU ld)
14543 allow_undefined_flag_F77=unsupported
14544 always_export_symbols_F77=yes
14545 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14546 # Note: this linker hardcodes the directories in LIBPATH if there
14547 # are no directories specified by -L.
14548 hardcode_minus_L_F77=yes
14549 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14550 # Neither direct hardcoding nor static linking is supported with a
14552 hardcode_direct_F77=unsupported
14557 if test "$host_cpu" = ia64; then
14558 # On IA64, the linker does run time linking by default, so we don't
14559 # have to do anything special.
14560 aix_use_runtimelinking=no
14561 exp_sym_flag='-Bexport'
14564 # If we're using GNU nm, then we don't want the "-C" option.
14565 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14566 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14567 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14569 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14571 aix_use_runtimelinking=no
14573 # Test if we are trying to use run time linking or normal
14574 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14575 # need to do runtime linking.
14576 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14577 for ld_flag in $LDFLAGS; do
14578 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14579 aix_use_runtimelinking=yes
14586 exp_sym_flag='-bexport'
14587 no_entry_flag='-bnoentry'
14590 # When large executables or shared objects are built, AIX ld can
14591 # have problems creating the table of contents. If linking a library
14592 # or program results in "error TOC overflow" add -mminimal-toc to
14593 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14594 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14596 archive_cmds_F77=''
14597 hardcode_direct_F77=yes
14598 hardcode_libdir_separator_F77=':'
14599 link_all_deplibs_F77=yes
14601 if test "$GCC" = yes; then
14602 case $host_os in aix4.[012]|aix4.[012].*)
14603 # We only want to do this on AIX 4.2 and lower, the check
14604 # below for broken collect2 doesn't work under 4.3+
14605 collect2name=`${CC} -print-prog-name=collect2`
14606 if test -f "$collect2name" && \
14607 strings "$collect2name" | grep resolve_lib_name >/dev/null
14609 # We have reworked collect2
14612 # We have old collect2
14613 hardcode_direct_F77=unsupported
14614 # It fails to find uninstalled libraries when the uninstalled
14615 # path is not listed in the libpath. Setting hardcode_minus_L
14616 # to unsupported forces relinking
14617 hardcode_minus_L_F77=yes
14618 hardcode_libdir_flag_spec_F77='-L$libdir'
14619 hardcode_libdir_separator_F77=
14623 shared_flag='-shared'
14624 if test "$aix_use_runtimelinking" = yes; then
14625 shared_flag="$shared_flag "'${wl}-G'
14629 if test "$host_cpu" = ia64; then
14630 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14631 # chokes on -Wl,-G. The following line is correct:
14634 if test "$aix_use_runtimelinking" = yes; then
14635 shared_flag='${wl}-G'
14637 shared_flag='${wl}-bM:SRE'
14642 # It seems that -bexpall does not export symbols beginning with
14643 # underscore (_), so it is better to generate a list of symbols to export.
14644 always_export_symbols_F77=yes
14645 if test "$aix_use_runtimelinking" = yes; then
14646 # Warning - without using the other runtime loading flags (-brtl),
14647 # -berok will link without error, but may produce a broken library.
14648 allow_undefined_flag_F77='-berok'
14649 # Determine the default libpath from the value encoded in an empty executable.
14650 cat >conftest.$ac_ext <<_ACEOF
14655 rm -f conftest.$ac_objext conftest$ac_exeext
14656 if { (ac_try="$ac_link"
14657 case "(($ac_try" in
14658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14659 *) ac_try_echo=$ac_try;;
14661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14662 $as_echo "$ac_try_echo") >&5
14663 (eval "$ac_link") 2>conftest.er1
14665 grep -v '^ *+' conftest.er1 >conftest.err
14667 cat conftest.err >&5
14668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); } && {
14670 test -z "$ac_f77_werror_flag" ||
14671 test ! -s conftest.err
14672 } && test -s conftest$ac_exeext && {
14673 test "$cross_compiling" = yes ||
14674 $as_test_x conftest$ac_exeext
14677 lt_aix_libpath_sed='
14678 /Import File Strings/,/^$/ {
14684 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14685 # Check for a 64-bit object if we didn't find anything.
14686 if test -z "$aix_libpath"; then
14687 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14690 $as_echo "$as_me: failed program was:" >&5
14691 sed 's/^/| /' conftest.$ac_ext >&5
14696 rm -rf conftest.dSYM
14697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14698 conftest$ac_exeext conftest.$ac_ext
14699 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14701 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14702 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14704 if test "$host_cpu" = ia64; then
14705 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14706 allow_undefined_flag_F77="-z nodefs"
14707 archive_expsym_cmds_F77="\$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"
14709 # Determine the default libpath from the value encoded in an empty executable.
14710 cat >conftest.$ac_ext <<_ACEOF
14715 rm -f conftest.$ac_objext conftest$ac_exeext
14716 if { (ac_try="$ac_link"
14717 case "(($ac_try" in
14718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719 *) ac_try_echo=$ac_try;;
14721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14722 $as_echo "$ac_try_echo") >&5
14723 (eval "$ac_link") 2>conftest.er1
14725 grep -v '^ *+' conftest.er1 >conftest.err
14727 cat conftest.err >&5
14728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } && {
14730 test -z "$ac_f77_werror_flag" ||
14731 test ! -s conftest.err
14732 } && test -s conftest$ac_exeext && {
14733 test "$cross_compiling" = yes ||
14734 $as_test_x conftest$ac_exeext
14737 lt_aix_libpath_sed='
14738 /Import File Strings/,/^$/ {
14744 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14745 # Check for a 64-bit object if we didn't find anything.
14746 if test -z "$aix_libpath"; then
14747 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14750 $as_echo "$as_me: failed program was:" >&5
14751 sed 's/^/| /' conftest.$ac_ext >&5
14756 rm -rf conftest.dSYM
14757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14758 conftest$ac_exeext conftest.$ac_ext
14759 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14761 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14762 # Warning - without using the other run time loading flags,
14763 # -berok will link without error, but may produce a broken library.
14764 no_undefined_flag_F77=' ${wl}-bernotok'
14765 allow_undefined_flag_F77=' ${wl}-berok'
14766 # Exported symbols can be pulled into shared objects from archives
14767 whole_archive_flag_spec_F77='$convenience'
14768 archive_cmds_need_lc_F77=yes
14769 # This is similar to how AIX traditionally builds its shared libraries.
14770 archive_expsym_cmds_F77="\$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'
14776 archive_cmds_F77='$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)'
14777 hardcode_libdir_flag_spec_F77='-L$libdir'
14778 hardcode_minus_L_F77=yes
14779 # see comment about different semantics on the GNU ld section
14784 export_dynamic_flag_spec_F77=-rdynamic
14787 cygwin* | mingw* | pw32*)
14788 # When not using gcc, we currently assume that we are using
14789 # Microsoft Visual C++.
14790 # hardcode_libdir_flag_spec is actually meaningless, as there is
14791 # no search path for DLLs.
14792 hardcode_libdir_flag_spec_F77=' '
14793 allow_undefined_flag_F77=unsupported
14794 # Tell ltmain to make .lib files, not .a files.
14796 # Tell ltmain to make .dll files, not .so files.
14798 # FIXME: Setting linknames here is a bad hack.
14799 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14800 # The linker will automatically build a .lib file if we build a DLL.
14801 old_archive_From_new_cmds_F77='true'
14802 # FIXME: Should let the user specify the lib program.
14803 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14804 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14805 enable_shared_with_static_runtimes_F77=yes
14808 darwin* | rhapsody*)
14810 rhapsody* | darwin1.[012])
14811 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14814 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14815 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14817 case ${MACOSX_DEPLOYMENT_TARGET} in
14819 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14822 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14828 archive_cmds_need_lc_F77=no
14829 hardcode_direct_F77=no
14830 hardcode_automatic_F77=yes
14831 hardcode_shlibpath_var_F77=unsupported
14832 whole_archive_flag_spec_F77=''
14833 link_all_deplibs_F77=yes
14834 if test "$GCC" = yes ; then
14835 output_verbose_link_cmd='echo'
14836 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14837 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14838 archive_expsym_cmds_F77="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}"
14839 module_expsym_cmds_F77="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}"
14841 case $cc_basename in
14843 output_verbose_link_cmd='echo'
14844 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14845 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14846 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14847 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14848 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14858 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14859 hardcode_libdir_flag_spec_F77='-L$libdir'
14860 hardcode_shlibpath_var_F77=no
14867 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14868 # support. Future versions do this automatically, but an explicit c++rt0.o
14869 # does not break anything, and helps significantly (at the cost of a little
14872 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14873 hardcode_libdir_flag_spec_F77='-R$libdir'
14874 hardcode_direct_F77=yes
14875 hardcode_shlibpath_var_F77=no
14878 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14880 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14881 hardcode_direct_F77=yes
14882 hardcode_minus_L_F77=yes
14883 hardcode_shlibpath_var_F77=no
14886 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14887 freebsd* | dragonfly*)
14888 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14889 hardcode_libdir_flag_spec_F77='-R$libdir'
14890 hardcode_direct_F77=yes
14891 hardcode_shlibpath_var_F77=no
14895 if test "$GCC" = yes; then
14896 archive_cmds_F77='$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'
14898 archive_cmds_F77='$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'
14900 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14901 hardcode_libdir_separator_F77=:
14902 hardcode_direct_F77=yes
14904 # hardcode_minus_L: Not really in the search PATH,
14905 # but as the default location of the library.
14906 hardcode_minus_L_F77=yes
14907 export_dynamic_flag_spec_F77='${wl}-E'
14911 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14912 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14914 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14916 if test "$with_gnu_ld" = no; then
14917 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14918 hardcode_libdir_separator_F77=:
14920 hardcode_direct_F77=yes
14921 export_dynamic_flag_spec_F77='${wl}-E'
14923 # hardcode_minus_L: Not really in the search PATH,
14924 # but as the default location of the library.
14925 hardcode_minus_L_F77=yes
14930 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14933 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14936 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14939 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14945 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14948 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14951 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14955 if test "$with_gnu_ld" = no; then
14956 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14957 hardcode_libdir_separator_F77=:
14961 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14962 hardcode_direct_F77=no
14963 hardcode_shlibpath_var_F77=no
14966 hardcode_direct_F77=yes
14967 export_dynamic_flag_spec_F77='${wl}-E'
14969 # hardcode_minus_L: Not really in the search PATH,
14970 # but as the default location of the library.
14971 hardcode_minus_L_F77=yes
14977 irix5* | irix6* | nonstopux*)
14978 if test "$GCC" = yes; then
14979 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14981 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14982 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14984 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14985 hardcode_libdir_separator_F77=:
14986 link_all_deplibs_F77=yes
14990 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14991 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14993 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14995 hardcode_libdir_flag_spec_F77='-R$libdir'
14996 hardcode_direct_F77=yes
14997 hardcode_shlibpath_var_F77=no
15001 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15002 hardcode_direct_F77=yes
15003 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15004 hardcode_libdir_separator_F77=:
15005 hardcode_shlibpath_var_F77=no
15009 if test -f /usr/libexec/ld.so; then
15010 hardcode_direct_F77=yes
15011 hardcode_shlibpath_var_F77=no
15012 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15013 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15014 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15015 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15016 export_dynamic_flag_spec_F77='${wl}-E'
15019 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15020 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15021 hardcode_libdir_flag_spec_F77='-R$libdir'
15024 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15025 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15035 hardcode_libdir_flag_spec_F77='-L$libdir'
15036 hardcode_minus_L_F77=yes
15037 allow_undefined_flag_F77=unsupported
15038 archive_cmds_F77='$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'
15039 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15043 if test "$GCC" = yes; then
15044 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15045 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15047 allow_undefined_flag_F77=' -expect_unresolved \*'
15048 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15050 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15051 hardcode_libdir_separator_F77=:
15054 osf4* | osf5*) # as osf3* with the addition of -msym flag
15055 if test "$GCC" = yes; then
15056 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15057 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15058 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15060 allow_undefined_flag_F77=' -expect_unresolved \*'
15061 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15062 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15063 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15065 # Both c and cxx compiler support -rpath directly
15066 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15068 hardcode_libdir_separator_F77=:
15072 no_undefined_flag_F77=' -z text'
15073 if test "$GCC" = yes; then
15075 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15076 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15077 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15080 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15081 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15082 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15084 hardcode_libdir_flag_spec_F77='-R$libdir'
15085 hardcode_shlibpath_var_F77=no
15087 solaris2.[0-5] | solaris2.[0-5].*) ;;
15089 # The compiler driver will combine and reorder linker options,
15090 # but understands `-z linker_flag'. GCC discards it without `$wl',
15091 # but is careful enough not to reorder.
15092 # Supported since Solaris 2.6 (maybe 2.5.1?)
15093 if test "$GCC" = yes; then
15094 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15096 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15100 link_all_deplibs_F77=yes
15104 if test "x$host_vendor" = xsequent; then
15105 # Use $CC to link under sequent, because it throws in some extra .o
15106 # files that make .init and .fini sections work.
15107 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15109 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15111 hardcode_libdir_flag_spec_F77='-L$libdir'
15112 hardcode_direct_F77=yes
15113 hardcode_minus_L_F77=yes
15114 hardcode_shlibpath_var_F77=no
15118 case $host_vendor in
15120 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15121 hardcode_direct_F77=yes # is this really true???
15124 ## LD is ld it makes a PLAMLIB
15125 ## CC just makes a GrossModule.
15126 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15127 reload_cmds_F77='$CC -r -o $output$reload_objs'
15128 hardcode_direct_F77=no
15131 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15132 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15135 runpath_var='LD_RUN_PATH'
15136 hardcode_shlibpath_var_F77=no
15140 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15141 hardcode_shlibpath_var_F77=no
15142 export_dynamic_flag_spec_F77='-Bexport'
15146 if test -d /usr/nec; then
15147 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15148 hardcode_shlibpath_var_F77=no
15149 runpath_var=LD_RUN_PATH
15150 hardcode_runpath_var=yes
15155 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15156 no_undefined_flag_F77='${wl}-z,text'
15157 archive_cmds_need_lc_F77=no
15158 hardcode_shlibpath_var_F77=no
15159 runpath_var='LD_RUN_PATH'
15161 if test "$GCC" = yes; then
15162 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15163 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15165 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15166 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15170 sysv5* | sco3.2v5* | sco5v6*)
15171 # Note: We can NOT use -z defs as we might desire, because we do not
15172 # link with -lc, and that would cause any symbols used from libc to
15173 # always be unresolved, which means just about no library would
15174 # ever link correctly. If we're not using GNU ld we use -z text
15175 # though, which does catch some bad symbols but isn't as heavy-handed
15177 no_undefined_flag_F77='${wl}-z,text'
15178 allow_undefined_flag_F77='${wl}-z,nodefs'
15179 archive_cmds_need_lc_F77=no
15180 hardcode_shlibpath_var_F77=no
15181 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15182 hardcode_libdir_separator_F77=':'
15183 link_all_deplibs_F77=yes
15184 export_dynamic_flag_spec_F77='${wl}-Bexport'
15185 runpath_var='LD_RUN_PATH'
15187 if test "$GCC" = yes; then
15188 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15189 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15191 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15192 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15197 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15198 hardcode_libdir_flag_spec_F77='-L$libdir'
15199 hardcode_shlibpath_var_F77=no
15208 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15209 $as_echo "$ld_shlibs_F77" >&6; }
15210 test "$ld_shlibs_F77" = no && can_build_shared=no
15213 # Do we need to explicitly link libc?
15215 case "x$archive_cmds_need_lc_F77" in
15217 # Assume -lc should be added
15218 archive_cmds_need_lc_F77=yes
15220 if test "$enable_shared" = yes && test "$GCC" = yes; then
15221 case $archive_cmds_F77 in
15223 # FIXME: we may have to deal with multi-command sequences.
15226 # Test whether the compiler implicitly links with -lc since on some
15227 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15228 # to ld, don't add -lc before -lgcc.
15229 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15230 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15232 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15235 (eval $ac_compile) 2>&5
15237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); } 2>conftest.err; then
15241 libobjs=conftest.$ac_objext
15243 wl=$lt_prog_compiler_wl_F77
15244 pic_flag=$lt_prog_compiler_pic_F77
15250 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15251 allow_undefined_flag_F77=
15252 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15253 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }
15258 archive_cmds_need_lc_F77=no
15260 archive_cmds_need_lc_F77=yes
15262 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15264 cat conftest.err 1>&5
15267 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15268 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15275 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15276 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15277 library_names_spec=
15278 libname_spec='lib$name'
15282 postuninstall_cmds=
15286 shlibpath_overrides_runpath=unknown
15288 dynamic_linker="$host_os ld.so"
15289 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15291 need_lib_prefix=unknown
15292 hardcode_into_libs=no
15294 # when you set need_version to no, make sure it does not cause -set_version
15295 # flags to be left without arguments
15296 need_version=unknown
15301 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15302 shlibpath_var=LIBPATH
15304 # AIX 3 has no versioning support, so we append a major version to the name.
15305 soname_spec='${libname}${release}${shared_ext}$major'
15312 hardcode_into_libs=yes
15313 if test "$host_cpu" = ia64; then
15314 # AIX 5 supports IA64
15315 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15316 shlibpath_var=LD_LIBRARY_PATH
15318 # With GCC up to 2.95.x, collect2 would create an import file
15319 # for dependence libraries. The import file would start with
15320 # the line `#! .'. This would cause the generated library to
15321 # depend on `.', always an invalid library. This was fixed in
15322 # development snapshots of GCC prior to 3.0.
15324 aix4 | aix4.[01] | aix4.[01].*)
15325 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15327 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15330 can_build_shared=no
15334 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15335 # soname into executable. Probably we can add versioning support to
15336 # collect2, so additional links can be useful in future.
15337 if test "$aix_use_runtimelinking" = yes; then
15338 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15339 # instead of lib<name>.a to let people know that these are not
15340 # typical AIX shared libraries.
15341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15343 # We preserve .a as extension for shared libraries through AIX4.2
15344 # and later when we are not doing run time linking.
15345 library_names_spec='${libname}${release}.a $libname.a'
15346 soname_spec='${libname}${release}${shared_ext}$major'
15348 shlibpath_var=LIBPATH
15353 library_names_spec='$libname.ixlibrary $libname.a'
15354 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15355 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'
15359 library_names_spec='${libname}${shared_ext}'
15360 dynamic_linker="$host_os ld.so"
15361 shlibpath_var=LIBRARY_PATH
15367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15368 soname_spec='${libname}${release}${shared_ext}$major'
15369 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15370 shlibpath_var=LD_LIBRARY_PATH
15371 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15372 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15373 # the default ld.so.conf also contains /usr/contrib/lib and
15374 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15375 # libtool to hard-code these into programs
15378 cygwin* | mingw* | pw32*)
15379 version_type=windows
15384 case $GCC,$host_os in
15385 yes,cygwin* | yes,mingw* | yes,pw32*)
15386 library_names_spec='$libname.dll.a'
15387 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15388 postinstall_cmds='base_file=`basename \${file}`~
15389 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15390 dldir=$destdir/`dirname \$dlpath`~
15391 test -d \$dldir || mkdir -p \$dldir~
15392 $install_prog $dir/$dlname \$dldir/$dlname~
15393 chmod a+x \$dldir/$dlname'
15394 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15395 dlpath=$dir/\$dldll~
15397 shlibpath_overrides_runpath=yes
15401 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15402 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15403 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15406 # MinGW DLLs use traditional 'lib' prefix
15407 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15408 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15409 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15410 # It is most probably a Windows format PATH printed by
15411 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15412 # path with ; separators, and with drive letters. We can handle the
15413 # drive letters (cygwin fileutils understands them), so leave them,
15414 # especially as we might pass files found there to a mingw objdump,
15415 # which wouldn't understand a cygwinified path. Ahh.
15416 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15418 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15422 # pw32 DLLs use 'pw' prefix rather than 'lib'
15423 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15429 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15432 dynamic_linker='Win32 ld.exe'
15433 # FIXME: first we should search . and the directory the executable is in
15437 darwin* | rhapsody*)
15438 dynamic_linker="$host_os dyld"
15439 version_type=darwin
15442 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15443 soname_spec='${libname}${release}${major}$shared_ext'
15444 shlibpath_overrides_runpath=yes
15445 shlibpath_var=DYLD_LIBRARY_PATH
15446 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15448 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15456 soname_spec='${libname}${release}${shared_ext}$major'
15457 shlibpath_var=LD_LIBRARY_PATH
15464 freebsd* | dragonfly*)
15465 # DragonFly does not have aout. When/if they implement a new
15466 # versioning mechanism, adjust this.
15467 if test -x /usr/bin/objformat; then
15468 objformat=`/usr/bin/objformat`
15471 freebsd[123]*) objformat=aout ;;
15472 *) objformat=elf ;;
15475 version_type=freebsd-$objformat
15476 case $version_type in
15478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15483 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15487 shlibpath_var=LD_LIBRARY_PATH
15490 shlibpath_overrides_runpath=yes
15492 freebsd3.[01]* | freebsdelf3.[01]*)
15493 shlibpath_overrides_runpath=yes
15494 hardcode_into_libs=yes
15496 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15497 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15498 shlibpath_overrides_runpath=no
15499 hardcode_into_libs=yes
15501 *) # from 4.6 on, and DragonFly
15502 shlibpath_overrides_runpath=yes
15503 hardcode_into_libs=yes
15512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15513 soname_spec='${libname}${release}${shared_ext}$major'
15514 shlibpath_var=LD_LIBRARY_PATH
15515 hardcode_into_libs=yes
15518 hpux9* | hpux10* | hpux11*)
15519 # Give a soname corresponding to the major version so that dld.sl refuses to
15520 # link against other versions.
15527 hardcode_into_libs=yes
15528 dynamic_linker="$host_os dld.so"
15529 shlibpath_var=LD_LIBRARY_PATH
15530 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15532 soname_spec='${libname}${release}${shared_ext}$major'
15533 if test "X$HPUX_IA64_MODE" = X32; then
15534 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15536 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15538 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15542 hardcode_into_libs=yes
15543 dynamic_linker="$host_os dld.sl"
15544 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15545 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15547 soname_spec='${libname}${release}${shared_ext}$major'
15548 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15549 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15553 dynamic_linker="$host_os dld.sl"
15554 shlibpath_var=SHLIB_PATH
15555 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15557 soname_spec='${libname}${release}${shared_ext}$major'
15560 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15561 postinstall_cmds='chmod 555 $lib'
15568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15569 soname_spec='${libname}${release}${shared_ext}$major'
15570 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15571 shlibpath_var=LD_LIBRARY_PATH
15572 shlibpath_overrides_runpath=no
15573 hardcode_into_libs=yes
15576 irix5* | irix6* | nonstopux*)
15578 nonstopux*) version_type=nonstopux ;;
15580 if test "$lt_cv_prog_gnu_ld" = yes; then
15588 soname_spec='${libname}${release}${shared_ext}$major'
15589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15591 irix5* | nonstopux*)
15592 libsuff= shlibsuff=
15595 case $LD in # libtool.m4 will add one of these switches to LD
15596 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15597 libsuff= shlibsuff= libmagic=32-bit;;
15598 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15599 libsuff=32 shlibsuff=N32 libmagic=N32;;
15600 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15601 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15602 *) libsuff= shlibsuff= libmagic=never-match;;
15606 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15607 shlibpath_overrides_runpath=no
15608 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15609 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15610 hardcode_into_libs=yes
15613 # No shared lib support for Linux oldld, aout, or coff.
15614 linux*oldld* | linux*aout* | linux*coff*)
15618 # This must be Linux ELF.
15619 linux* | k*bsd*-gnu)
15623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15624 soname_spec='${libname}${release}${shared_ext}$major'
15625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15626 shlibpath_var=LD_LIBRARY_PATH
15627 shlibpath_overrides_runpath=no
15628 # This implies no fast_install, which is unacceptable.
15629 # Some rework will be needed to allow for fast_install
15630 # before this can be enabled.
15631 hardcode_into_libs=yes
15633 # Append ld.so.conf contents to the search path
15634 if test -f /etc/ld.so.conf; then
15635 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' ' '`
15636 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15639 # We used to test for /lib/ld.so.1 and disable shared libraries on
15640 # powerpc, because MkLinux only supported shared libraries with the
15641 # GNU dynamic linker. Since this was broken with cross compilers,
15642 # most powerpc-linux boxes support dynamic linking these days and
15643 # people can always --disable-shared, the test was removed, and we
15644 # assume the GNU/Linux dynamic linker is in use.
15645 dynamic_linker='GNU/Linux ld.so'
15652 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15655 dynamic_linker='NetBSD (a.out) ld.so'
15657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15658 soname_spec='${libname}${release}${shared_ext}$major'
15659 dynamic_linker='NetBSD ld.elf_so'
15661 shlibpath_var=LD_LIBRARY_PATH
15662 shlibpath_overrides_runpath=yes
15663 hardcode_into_libs=yes
15668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15669 shlibpath_var=LD_LIBRARY_PATH
15670 shlibpath_overrides_runpath=yes
15677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15678 soname_spec='${libname}${release}${shared_ext}$major'
15679 shlibpath_var=LD_LIBRARY_PATH
15680 shlibpath_overrides_runpath=yes
15685 sys_lib_dlsearch_path_spec="/usr/lib"
15687 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15689 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15690 *) need_version=no ;;
15692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15694 shlibpath_var=LD_LIBRARY_PATH
15695 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15697 openbsd2.[89] | openbsd2.[89].*)
15698 shlibpath_overrides_runpath=no
15701 shlibpath_overrides_runpath=yes
15705 shlibpath_overrides_runpath=yes
15710 libname_spec='$name'
15713 library_names_spec='$libname${shared_ext} $libname.a'
15714 dynamic_linker='OS/2 ld.exe'
15715 shlibpath_var=LIBPATH
15718 osf3* | osf4* | osf5*)
15722 soname_spec='${libname}${release}${shared_ext}$major'
15723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15724 shlibpath_var=LD_LIBRARY_PATH
15725 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15726 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15738 soname_spec='${libname}${release}${shared_ext}$major'
15739 shlibpath_var=LD_LIBRARY_PATH
15740 shlibpath_overrides_runpath=yes
15741 hardcode_into_libs=yes
15742 # ldd complains unless libraries are executable
15743 postinstall_cmds='chmod +x $lib'
15748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15749 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15750 shlibpath_var=LD_LIBRARY_PATH
15751 shlibpath_overrides_runpath=yes
15752 if test "$with_gnu_ld" = yes; then
15760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15761 soname_spec='${libname}${release}${shared_ext}$major'
15762 shlibpath_var=LD_LIBRARY_PATH
15763 case $host_vendor in
15765 shlibpath_overrides_runpath=no
15767 export_dynamic_flag_spec='${wl}-Blargedynsym'
15768 runpath_var=LD_RUN_PATH
15776 shlibpath_overrides_runpath=no
15777 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15783 if test -d /usr/nec ;then
15785 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15786 soname_spec='$libname${shared_ext}.$major'
15787 shlibpath_var=LD_LIBRARY_PATH
15791 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15792 version_type=freebsd-elf
15795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15796 soname_spec='${libname}${release}${shared_ext}$major'
15797 shlibpath_var=LD_LIBRARY_PATH
15798 hardcode_into_libs=yes
15799 if test "$with_gnu_ld" = yes; then
15800 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15801 shlibpath_overrides_runpath=no
15803 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15804 shlibpath_overrides_runpath=yes
15807 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15811 sys_lib_dlsearch_path_spec='/usr/lib'
15816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15817 soname_spec='${libname}${release}${shared_ext}$major'
15818 shlibpath_var=LD_LIBRARY_PATH
15825 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15826 $as_echo "$dynamic_linker" >&6; }
15827 test "$dynamic_linker" = no && can_build_shared=no
15829 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15830 $as_echo_n "(cached) " >&6
15832 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15835 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15836 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15837 $as_echo_n "(cached) " >&6
15839 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15842 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15844 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15845 if test "$GCC" = yes; then
15846 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15849 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15850 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15851 hardcode_action_F77=
15852 if test -n "$hardcode_libdir_flag_spec_F77" || \
15853 test -n "$runpath_var_F77" || \
15854 test "X$hardcode_automatic_F77" = "Xyes" ; then
15856 # We can hardcode non-existant directories.
15857 if test "$hardcode_direct_F77" != no &&
15858 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15859 # have to relink, otherwise we might link with an installed library
15860 # when we should be linking with a yet-to-be-installed one
15861 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15862 test "$hardcode_minus_L_F77" != no; then
15863 # Linking always hardcodes the temporary library directory.
15864 hardcode_action_F77=relink
15866 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15867 hardcode_action_F77=immediate
15870 # We cannot hardcode anything, or else we can only hardcode existing
15872 hardcode_action_F77=unsupported
15874 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15875 $as_echo "$hardcode_action_F77" >&6; }
15877 if test "$hardcode_action_F77" = relink; then
15878 # Fast installation is not supported
15879 enable_fast_install=no
15880 elif test "$shlibpath_overrides_runpath" = yes ||
15881 test "$enable_shared" = no; then
15882 # Fast installation is not necessary
15883 enable_fast_install=needless
15887 # The else clause should only fire when bootstrapping the
15888 # libtool distribution, otherwise you forgot to ship ltmain.sh
15889 # with your package, and you will get complaints that there are
15890 # no rules to generate ltmain.sh.
15891 if test -f "$ltmain"; then
15892 # See if we are running on zsh, and set the options which allow our commands through
15893 # without removal of \ escapes.
15894 if test -n "${ZSH_VERSION+set}" ; then
15895 setopt NO_GLOB_SUBST
15897 # Now quote all the things that may contain metacharacters while being
15898 # careful not to overquote the AC_SUBSTed values. We take copies of the
15899 # variables and quote the copies for generation of the libtool script.
15900 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15902 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15903 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15904 deplibs_check_method reload_flag reload_cmds need_locks \
15905 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15906 lt_cv_sys_global_symbol_to_c_name_address \
15907 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15908 old_postinstall_cmds old_postuninstall_cmds \
15912 lt_prog_compiler_wl_F77 \
15913 lt_prog_compiler_pic_F77 \
15914 lt_prog_compiler_static_F77 \
15915 lt_prog_compiler_no_builtin_flag_F77 \
15916 export_dynamic_flag_spec_F77 \
15917 thread_safe_flag_spec_F77 \
15918 whole_archive_flag_spec_F77 \
15919 enable_shared_with_static_runtimes_F77 \
15920 old_archive_cmds_F77 \
15921 old_archive_from_new_cmds_F77 \
15922 predep_objects_F77 \
15923 postdep_objects_F77 \
15926 compiler_lib_search_path_F77 \
15927 compiler_lib_search_dirs_F77 \
15929 archive_expsym_cmds_F77 \
15930 postinstall_cmds_F77 \
15931 postuninstall_cmds_F77 \
15932 old_archive_from_expsyms_cmds_F77 \
15933 allow_undefined_flag_F77 \
15934 no_undefined_flag_F77 \
15935 export_symbols_cmds_F77 \
15936 hardcode_libdir_flag_spec_F77 \
15937 hardcode_libdir_flag_spec_ld_F77 \
15938 hardcode_libdir_separator_F77 \
15939 hardcode_automatic_F77 \
15941 module_expsym_cmds_F77 \
15942 lt_cv_prog_compiler_c_o_F77 \
15943 fix_srcfile_path_F77 \
15944 exclude_expsyms_F77 \
15945 include_expsyms_F77; do
15948 old_archive_cmds_F77 | \
15949 old_archive_from_new_cmds_F77 | \
15950 archive_cmds_F77 | \
15951 archive_expsym_cmds_F77 | \
15952 module_cmds_F77 | \
15953 module_expsym_cmds_F77 | \
15954 old_archive_from_expsyms_cmds_F77 | \
15955 export_symbols_cmds_F77 | \
15956 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15957 postinstall_cmds | postuninstall_cmds | \
15958 old_postinstall_cmds | old_postuninstall_cmds | \
15959 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15960 # Double-quote double-evaled strings.
15961 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15964 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15970 *'\$0 --fallback-echo"')
15971 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15977 cat <<__EOF__ >> "$cfgfile"
15978 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15980 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15982 # Shell to use when invoking shell scripts.
15985 # Whether or not to build shared libraries.
15986 build_libtool_libs=$enable_shared
15988 # Whether or not to build static libraries.
15989 build_old_libs=$enable_static
15991 # Whether or not to add -lc for building shared libraries.
15992 build_libtool_need_lc=$archive_cmds_need_lc_F77
15994 # Whether or not to disallow shared libs when runtime libs are static
15995 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15997 # Whether or not to optimize for fast installation.
15998 fast_install=$enable_fast_install
16001 host_alias=$host_alias
16005 # The build system.
16006 build_alias=$build_alias
16010 # An echo program that does not interpret backslashes.
16015 AR_FLAGS=$lt_AR_FLAGS
16020 # LTCC compiler flags.
16021 LTCFLAGS=$lt_LTCFLAGS
16023 # A language-specific compiler.
16024 CC=$lt_compiler_F77
16026 # Is the compiler the GNU C compiler?
16032 # The linker used to build libraries.
16035 # Whether we need hard or soft links.
16038 # A BSD-compatible nm program.
16041 # A symbol stripping program
16044 # Used to examine libraries when file_magic_cmd begins "file"
16045 MAGIC_CMD=$MAGIC_CMD
16047 # Used on cygwin: DLL creation program.
16050 # Used on cygwin: object dumper.
16053 # Used on cygwin: assembler.
16056 # The name of the directory that contains temporary libtool files.
16059 # How to create reloadable object files.
16060 reload_flag=$lt_reload_flag
16061 reload_cmds=$lt_reload_cmds
16063 # How to pass a linker flag through the compiler.
16064 wl=$lt_lt_prog_compiler_wl_F77
16066 # Object file suffix (normally "o").
16067 objext="$ac_objext"
16069 # Old archive suffix (normally "a").
16072 # Shared library suffix (normally ".so").
16073 shrext_cmds='$shrext_cmds'
16075 # Executable file suffix (normally "").
16078 # Additional compiler flags for building library objects.
16079 pic_flag=$lt_lt_prog_compiler_pic_F77
16082 # What is the maximum length of a command?
16083 max_cmd_len=$lt_cv_sys_max_cmd_len
16085 # Does compiler simultaneously support -c and -o options?
16086 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16088 # Must we lock files when doing compilation?
16089 need_locks=$lt_need_locks
16091 # Do we need the lib prefix for modules?
16092 need_lib_prefix=$need_lib_prefix
16094 # Do we need a version for libraries?
16095 need_version=$need_version
16097 # Whether dlopen is supported.
16098 dlopen_support=$enable_dlopen
16100 # Whether dlopen of programs is supported.
16101 dlopen_self=$enable_dlopen_self
16103 # Whether dlopen of statically linked programs is supported.
16104 dlopen_self_static=$enable_dlopen_self_static
16106 # Compiler flag to prevent dynamic linking.
16107 link_static_flag=$lt_lt_prog_compiler_static_F77
16109 # Compiler flag to turn off builtin functions.
16110 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16112 # Compiler flag to allow reflexive dlopens.
16113 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16115 # Compiler flag to generate shared objects directly from archives.
16116 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16118 # Compiler flag to generate thread-safe objects.
16119 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16121 # Library versioning type.
16122 version_type=$version_type
16124 # Format of library name prefix.
16125 libname_spec=$lt_libname_spec
16127 # List of archive names. First name is the real one, the rest are links.
16128 # The last name is the one that the linker finds with -lNAME.
16129 library_names_spec=$lt_library_names_spec
16131 # The coded name of the library, if different from the real name.
16132 soname_spec=$lt_soname_spec
16134 # Commands used to build and install an old-style archive.
16136 old_archive_cmds=$lt_old_archive_cmds_F77
16137 old_postinstall_cmds=$lt_old_postinstall_cmds
16138 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16140 # Create an old-style archive from a shared archive.
16141 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16143 # Create a temporary old-style archive to link instead of a shared archive.
16144 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16146 # Commands used to build and install a shared archive.
16147 archive_cmds=$lt_archive_cmds_F77
16148 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16149 postinstall_cmds=$lt_postinstall_cmds
16150 postuninstall_cmds=$lt_postuninstall_cmds
16152 # Commands used to build a loadable module (assumed same as above if empty)
16153 module_cmds=$lt_module_cmds_F77
16154 module_expsym_cmds=$lt_module_expsym_cmds_F77
16156 # Commands to strip libraries.
16157 old_striplib=$lt_old_striplib
16158 striplib=$lt_striplib
16160 # Dependencies to place before the objects being linked to create a
16162 predep_objects=$lt_predep_objects_F77
16164 # Dependencies to place after the objects being linked to create a
16166 postdep_objects=$lt_postdep_objects_F77
16168 # Dependencies to place before the objects being linked to create a
16170 predeps=$lt_predeps_F77
16172 # Dependencies to place after the objects being linked to create a
16174 postdeps=$lt_postdeps_F77
16176 # The directories searched by this compiler when creating a shared
16178 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16180 # The library search path used internally by the compiler when linking
16181 # a shared library.
16182 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16184 # Method to check whether dependent libraries are shared objects.
16185 deplibs_check_method=$lt_deplibs_check_method
16187 # Command to use when deplibs_check_method == file_magic.
16188 file_magic_cmd=$lt_file_magic_cmd
16190 # Flag that allows shared libraries with undefined symbols to be built.
16191 allow_undefined_flag=$lt_allow_undefined_flag_F77
16193 # Flag that forces no undefined symbols.
16194 no_undefined_flag=$lt_no_undefined_flag_F77
16196 # Commands used to finish a libtool library installation in a directory.
16197 finish_cmds=$lt_finish_cmds
16199 # Same as above, but a single script fragment to be evaled but not shown.
16200 finish_eval=$lt_finish_eval
16202 # Take the output of nm and produce a listing of raw symbols and C names.
16203 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16205 # Transform the output of nm in a proper C declaration
16206 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16208 # Transform the output of nm in a C name address pair
16209 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16211 # This is the shared library runtime path variable.
16212 runpath_var=$runpath_var
16214 # This is the shared library path variable.
16215 shlibpath_var=$shlibpath_var
16217 # Is shlibpath searched before the hard-coded library search path?
16218 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16220 # How to hardcode a shared library path into an executable.
16221 hardcode_action=$hardcode_action_F77
16223 # Whether we should hardcode library paths into libraries.
16224 hardcode_into_libs=$hardcode_into_libs
16226 # Flag to hardcode \$libdir into a binary during linking.
16227 # This must work even if \$libdir does not exist.
16228 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16230 # If ld is used when linking, flag to hardcode \$libdir into
16231 # a binary during linking. This must work even if \$libdir does
16233 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16235 # Whether we need a single -rpath flag with a separated argument.
16236 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16238 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16239 # resulting binary.
16240 hardcode_direct=$hardcode_direct_F77
16242 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16243 # resulting binary.
16244 hardcode_minus_L=$hardcode_minus_L_F77
16246 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16247 # the resulting binary.
16248 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16250 # Set to yes if building a shared library automatically hardcodes DIR into the library
16251 # and all subsequent libraries and executables linked against it.
16252 hardcode_automatic=$hardcode_automatic_F77
16254 # Variables whose values should be saved in libtool wrapper scripts and
16255 # restored at relink time.
16256 variables_saved_for_relink="$variables_saved_for_relink"
16258 # Whether libtool must link a program against all its dependency libraries.
16259 link_all_deplibs=$link_all_deplibs_F77
16261 # Compile-time system search path for libraries
16262 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16264 # Run-time system search path for libraries
16265 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16267 # Fix the shell variable \$srcfile for the compiler.
16268 fix_srcfile_path=$lt_fix_srcfile_path
16270 # Set to yes if exported symbols are required.
16271 always_export_symbols=$always_export_symbols_F77
16273 # The commands to list exported symbols.
16274 export_symbols_cmds=$lt_export_symbols_cmds_F77
16276 # The commands to extract the exported symbol list from a shared archive.
16277 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16279 # Symbols that should not be listed in the preloaded symbols.
16280 exclude_expsyms=$lt_exclude_expsyms_F77
16282 # Symbols that must always be exported.
16283 include_expsyms=$lt_include_expsyms_F77
16285 # ### END LIBTOOL TAG CONFIG: $tagname
16291 # If there is no Makefile yet, we rely on a make rule to execute
16292 # `config.status --recheck' to rerun these tests and create the
16293 # libtool script then.
16294 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16295 if test -f "$ltmain_in"; then
16296 test -f Makefile && make "$ltmain"
16302 ac_cpp='$CPP $CPPFLAGS'
16303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16315 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16318 # Source file extension for Java test sources.
16321 # Object file extension for compiled Java test sources.
16325 # Code to be used in simple compile tests
16326 lt_simple_compile_test_code="class foo {}"
16328 # Code to be used in simple link tests
16329 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16331 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16333 # If no C compiler was specified, use CC.
16336 # If no C compiler flags were specified, use CFLAGS.
16337 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16339 # Allow CC to be a program name with arguments.
16343 # save warnings/boilerplate of simple test code
16344 ac_outfile=conftest.$ac_objext
16345 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16346 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16347 _lt_compiler_boilerplate=`cat conftest.err`
16350 ac_outfile=conftest.$ac_objext
16351 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16352 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16353 _lt_linker_boilerplate=`cat conftest.err`
16357 # Allow CC to be a program name with arguments.
16362 for cc_temp in $compiler""; do
16364 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16365 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16370 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16373 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16374 archive_cmds_need_lc_GCJ=no
16376 old_archive_cmds_GCJ=$old_archive_cmds
16379 ## There is no encapsulation within the following macros, do not change
16380 ## the running order or otherwise move them around unless you know exactly
16381 ## what you are doing...
16383 lt_prog_compiler_no_builtin_flag_GCJ=
16385 if test "$GCC" = yes; then
16386 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16389 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16390 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16391 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16392 $as_echo_n "(cached) " >&6
16394 lt_cv_prog_compiler_rtti_exceptions=no
16395 ac_outfile=conftest.$ac_objext
16396 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16397 lt_compiler_flag="-fno-rtti -fno-exceptions"
16398 # Insert the option either (1) after the last *FLAGS variable, or
16399 # (2) before a word containing "conftest.", or (3) at the end.
16400 # Note that $ac_compile itself does not contain backslashes and begins
16401 # with a dollar sign (not a hyphen), so the echo should work correctly.
16402 # The option is referenced via a variable to avoid confusing sed.
16403 lt_compile=`echo "$ac_compile" | $SED \
16404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16406 -e 's:$: $lt_compiler_flag:'`
16407 (eval echo "\"\$as_me:16407: $lt_compile\"" >&5)
16408 (eval "$lt_compile" 2>conftest.err)
16410 cat conftest.err >&5
16411 echo "$as_me:16411: \$? = $ac_status" >&5
16412 if (exit $ac_status) && test -s "$ac_outfile"; then
16413 # The compiler can only warn and ignore the option if not recognized
16414 # So say no if there are warnings other than the usual output.
16415 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16416 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16417 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16418 lt_cv_prog_compiler_rtti_exceptions=yes
16424 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16425 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16427 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16428 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16435 lt_prog_compiler_wl_GCJ=
16436 lt_prog_compiler_pic_GCJ=
16437 lt_prog_compiler_static_GCJ=
16439 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16440 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16442 if test "$GCC" = yes; then
16443 lt_prog_compiler_wl_GCJ='-Wl,'
16444 lt_prog_compiler_static_GCJ='-static'
16448 # All AIX code is PIC.
16449 if test "$host_cpu" = ia64; then
16450 # AIX 5 now supports IA64 processor
16451 lt_prog_compiler_static_GCJ='-Bstatic'
16456 # FIXME: we need at least 68020 code to build shared libraries, but
16457 # adding the `-m68020' flag to GCC prevents building anything better,
16459 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16462 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16463 # PIC is the default for these OSes.
16466 mingw* | cygwin* | pw32* | os2*)
16467 # This hack is so that the source file can tell whether it is being
16468 # built for inclusion in a dll (and should export symbols for example).
16469 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16470 # (--disable-auto-import) libraries
16474 darwin* | rhapsody*)
16475 # PIC is the default on this platform
16476 # Common symbols not allowed in MH_DYLIB files
16477 lt_prog_compiler_pic_GCJ='-fno-common'
16481 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16482 # Instead, we relocate shared libraries at runtime.
16486 # Just because we use GCC doesn't mean we suddenly get shared libraries
16487 # on systems that don't support them.
16488 lt_prog_compiler_can_build_shared_GCJ=no
16493 if test -d /usr/nec; then
16494 lt_prog_compiler_pic_GCJ=-Kconform_pic
16499 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16500 # not for PA HP-UX.
16506 lt_prog_compiler_pic_GCJ='-fPIC'
16512 lt_prog_compiler_pic_GCJ='-fPIC'
16516 # PORTME Check for flag to pass linker flags through the system compiler.
16519 lt_prog_compiler_wl_GCJ='-Wl,'
16520 if test "$host_cpu" = ia64; then
16521 # AIX 5 now supports IA64 processor
16522 lt_prog_compiler_static_GCJ='-Bstatic'
16524 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16528 # PIC is the default on this platform
16529 # Common symbols not allowed in MH_DYLIB files
16530 case $cc_basename in
16532 lt_prog_compiler_pic_GCJ='-qnocommon'
16533 lt_prog_compiler_wl_GCJ='-Wl,'
16538 mingw* | cygwin* | pw32* | os2*)
16539 # This hack is so that the source file can tell whether it is being
16540 # built for inclusion in a dll (and should export symbols for example).
16544 hpux9* | hpux10* | hpux11*)
16545 lt_prog_compiler_wl_GCJ='-Wl,'
16546 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16547 # not for PA HP-UX.
16553 lt_prog_compiler_pic_GCJ='+Z'
16556 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16557 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16560 irix5* | irix6* | nonstopux*)
16561 lt_prog_compiler_wl_GCJ='-Wl,'
16562 # PIC (with -KPIC) is the default.
16563 lt_prog_compiler_static_GCJ='-non_shared'
16567 lt_prog_compiler_pic_GCJ='-KPIC'
16568 lt_prog_compiler_static_GCJ='-Bstatic'
16571 linux* | k*bsd*-gnu)
16572 case $cc_basename in
16574 lt_prog_compiler_wl_GCJ='-Wl,'
16575 lt_prog_compiler_pic_GCJ='-KPIC'
16576 lt_prog_compiler_static_GCJ='-static'
16578 pgcc* | pgf77* | pgf90* | pgf95*)
16579 # Portland Group compilers (*not* the Pentium gcc compiler,
16580 # which looks to be a dead project)
16581 lt_prog_compiler_wl_GCJ='-Wl,'
16582 lt_prog_compiler_pic_GCJ='-fpic'
16583 lt_prog_compiler_static_GCJ='-Bstatic'
16586 lt_prog_compiler_wl_GCJ='-Wl,'
16587 # All Alpha code is PIC.
16588 lt_prog_compiler_static_GCJ='-non_shared'
16591 case `$CC -V 2>&1 | sed 5q` in
16594 lt_prog_compiler_pic_GCJ='-KPIC'
16595 lt_prog_compiler_static_GCJ='-Bstatic'
16596 lt_prog_compiler_wl_GCJ='-Wl,'
16599 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16600 lt_prog_compiler_pic_GCJ='-KPIC'
16601 lt_prog_compiler_static_GCJ='-Bstatic'
16602 lt_prog_compiler_wl_GCJ=''
16609 osf3* | osf4* | osf5*)
16610 lt_prog_compiler_wl_GCJ='-Wl,'
16611 # All OSF/1 code is PIC.
16612 lt_prog_compiler_static_GCJ='-non_shared'
16616 lt_prog_compiler_static_GCJ='-non_shared'
16620 lt_prog_compiler_pic_GCJ='-KPIC'
16621 lt_prog_compiler_static_GCJ='-Bstatic'
16622 case $cc_basename in
16623 f77* | f90* | f95*)
16624 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16626 lt_prog_compiler_wl_GCJ='-Wl,';;
16631 lt_prog_compiler_wl_GCJ='-Qoption ld '
16632 lt_prog_compiler_pic_GCJ='-PIC'
16633 lt_prog_compiler_static_GCJ='-Bstatic'
16636 sysv4 | sysv4.2uw2* | sysv4.3*)
16637 lt_prog_compiler_wl_GCJ='-Wl,'
16638 lt_prog_compiler_pic_GCJ='-KPIC'
16639 lt_prog_compiler_static_GCJ='-Bstatic'
16643 if test -d /usr/nec ;then
16644 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16645 lt_prog_compiler_static_GCJ='-Bstatic'
16649 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16650 lt_prog_compiler_wl_GCJ='-Wl,'
16651 lt_prog_compiler_pic_GCJ='-KPIC'
16652 lt_prog_compiler_static_GCJ='-Bstatic'
16656 lt_prog_compiler_wl_GCJ='-Wl,'
16657 lt_prog_compiler_can_build_shared_GCJ=no
16661 lt_prog_compiler_pic_GCJ='-pic'
16662 lt_prog_compiler_static_GCJ='-Bstatic'
16666 lt_prog_compiler_can_build_shared_GCJ=no
16671 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16672 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16675 # Check to make sure the PIC flag actually works.
16677 if test -n "$lt_prog_compiler_pic_GCJ"; then
16679 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16680 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16681 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16682 $as_echo_n "(cached) " >&6
16684 lt_cv_prog_compiler_pic_works_GCJ=no
16685 ac_outfile=conftest.$ac_objext
16686 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16687 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16688 # Insert the option either (1) after the last *FLAGS variable, or
16689 # (2) before a word containing "conftest.", or (3) at the end.
16690 # Note that $ac_compile itself does not contain backslashes and begins
16691 # with a dollar sign (not a hyphen), so the echo should work correctly.
16692 # The option is referenced via a variable to avoid confusing sed.
16693 lt_compile=`echo "$ac_compile" | $SED \
16694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16696 -e 's:$: $lt_compiler_flag:'`
16697 (eval echo "\"\$as_me:16697: $lt_compile\"" >&5)
16698 (eval "$lt_compile" 2>conftest.err)
16700 cat conftest.err >&5
16701 echo "$as_me:16701: \$? = $ac_status" >&5
16702 if (exit $ac_status) && test -s "$ac_outfile"; then
16703 # The compiler can only warn and ignore the option if not recognized
16704 # So say no if there are warnings other than the usual output.
16705 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16707 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16708 lt_cv_prog_compiler_pic_works_GCJ=yes
16714 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16715 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16717 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16718 case $lt_prog_compiler_pic_GCJ in
16720 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16723 lt_prog_compiler_pic_GCJ=
16724 lt_prog_compiler_can_build_shared_GCJ=no
16729 # For platforms which do not support PIC, -DPIC is meaningless:
16731 lt_prog_compiler_pic_GCJ=
16734 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16739 # Check to make sure the static flag actually works.
16741 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16742 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16743 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16744 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16745 $as_echo_n "(cached) " >&6
16747 lt_cv_prog_compiler_static_works_GCJ=no
16748 save_LDFLAGS="$LDFLAGS"
16749 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16750 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16751 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16752 # The linker can only warn and ignore the option if not recognized
16753 # So say no if there are warnings
16754 if test -s conftest.err; then
16755 # Append any errors to the config.log.
16756 cat conftest.err 1>&5
16757 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16758 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16759 if diff conftest.exp conftest.er2 >/dev/null; then
16760 lt_cv_prog_compiler_static_works_GCJ=yes
16763 lt_cv_prog_compiler_static_works_GCJ=yes
16767 LDFLAGS="$save_LDFLAGS"
16770 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16771 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16773 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16776 lt_prog_compiler_static_GCJ=
16780 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16781 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16782 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16783 $as_echo_n "(cached) " >&6
16785 lt_cv_prog_compiler_c_o_GCJ=no
16786 $rm -r conftest 2>/dev/null
16790 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16792 lt_compiler_flag="-o out/conftest2.$ac_objext"
16793 # Insert the option either (1) after the last *FLAGS variable, or
16794 # (2) before a word containing "conftest.", or (3) at the end.
16795 # Note that $ac_compile itself does not contain backslashes and begins
16796 # with a dollar sign (not a hyphen), so the echo should work correctly.
16797 lt_compile=`echo "$ac_compile" | $SED \
16798 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16800 -e 's:$: $lt_compiler_flag:'`
16801 (eval echo "\"\$as_me:16801: $lt_compile\"" >&5)
16802 (eval "$lt_compile" 2>out/conftest.err)
16804 cat out/conftest.err >&5
16805 echo "$as_me:16805: \$? = $ac_status" >&5
16806 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16808 # The compiler can only warn and ignore the option if not recognized
16809 # So say no if there are warnings
16810 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16811 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16812 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16813 lt_cv_prog_compiler_c_o_GCJ=yes
16818 # SGI C++ compiler will create directory out/ii_files/ for
16819 # template instantiation
16820 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16821 $rm out/* && rmdir out
16827 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16828 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16831 hard_links="nottested"
16832 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16833 # do not overwrite the value of need_locks provided by the user
16834 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16835 $as_echo_n "checking if we can lock with hard links... " >&6; }
16838 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16840 ln conftest.a conftest.b 2>&5 || hard_links=no
16841 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16842 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16843 $as_echo "$hard_links" >&6; }
16844 if test "$hard_links" = no; then
16845 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16846 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16853 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16854 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16857 allow_undefined_flag_GCJ=
16858 enable_shared_with_static_runtimes_GCJ=no
16860 archive_expsym_cmds_GCJ=
16861 old_archive_From_new_cmds_GCJ=
16862 old_archive_from_expsyms_cmds_GCJ=
16863 export_dynamic_flag_spec_GCJ=
16864 whole_archive_flag_spec_GCJ=
16865 thread_safe_flag_spec_GCJ=
16866 hardcode_libdir_flag_spec_GCJ=
16867 hardcode_libdir_flag_spec_ld_GCJ=
16868 hardcode_libdir_separator_GCJ=
16869 hardcode_direct_GCJ=no
16870 hardcode_minus_L_GCJ=no
16871 hardcode_shlibpath_var_GCJ=unsupported
16872 link_all_deplibs_GCJ=unknown
16873 hardcode_automatic_GCJ=no
16875 module_expsym_cmds_GCJ=
16876 always_export_symbols_GCJ=no
16877 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16878 # include_expsyms should be a list of space-separated symbols to be *always*
16879 # included in the symbol list
16880 include_expsyms_GCJ=
16881 # exclude_expsyms can be an extended regexp of symbols to exclude
16882 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16883 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16884 # as well as any symbol that contains `d'.
16885 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16886 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16887 # platforms (ab)use it in PIC code, but their linkers get confused if
16888 # the symbol is explicitly referenced. Since portable code cannot
16889 # rely on this symbol name, it's probably fine to never include it in
16890 # preloaded symbol tables.
16891 # Exclude shared library initialization/finalization symbols.
16892 extract_expsyms_cmds=
16893 # Just being paranoid about ensuring that cc_basename is set.
16894 for cc_temp in $compiler""; do
16896 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16897 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16902 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16905 cygwin* | mingw* | pw32*)
16906 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16907 # When not using gcc, we currently assume that we are using
16908 # Microsoft Visual C++.
16909 if test "$GCC" != yes; then
16914 # we just hope/assume this is gcc and not c89 (= MSVC++)
16923 if test "$with_gnu_ld" = yes; then
16924 # If archive_cmds runs LD, not CC, wlarc should be empty
16927 # Set some defaults for GNU ld with shared library support. These
16928 # are reset later if shared libraries are not supported. Putting them
16929 # here allows them to be overridden if necessary.
16930 runpath_var=LD_RUN_PATH
16931 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16932 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16933 # ancient GNU ld didn't support --whole-archive et. al.
16934 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16935 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16937 whole_archive_flag_spec_GCJ=
16939 supports_anon_versioning=no
16940 case `$LD -v 2>/dev/null` in
16941 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16942 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16943 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16944 *\ 2.11.*) ;; # other 2.11 versions
16945 *) supports_anon_versioning=yes ;;
16948 # See if GNU ld supports shared libraries.
16951 # On AIX/PPC, the GNU linker is very broken
16952 if test "$host_cpu" != ia64; then
16956 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16957 *** to be unable to reliably create shared libraries on AIX.
16958 *** Therefore, libtool is disabling shared libraries support. If you
16959 *** really care for shared libraries, you may want to modify your PATH
16960 *** so that a non-GNU linker is found, and then restart.
16967 archive_cmds_GCJ='$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)'
16968 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16969 hardcode_minus_L_GCJ=yes
16971 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16972 # that the semantics of dynamic libraries on AmigaOS, at least up
16973 # to version 4, is to share data among multiple programs linked
16974 # with the same dynamic library. Since this doesn't match the
16975 # behavior of shared libraries on other platforms, we can't use
16981 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16982 allow_undefined_flag_GCJ=unsupported
16983 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16984 # support --undefined. This deserves some investigation. FIXME
16985 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16991 cygwin* | mingw* | pw32*)
16992 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16993 # as there is no search path for DLLs.
16994 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16995 allow_undefined_flag_GCJ=unsupported
16996 always_export_symbols_GCJ=no
16997 enable_shared_with_static_runtimes_GCJ=yes
16998 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17000 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17001 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17002 # If the export-symbols file already is a .def file (1st line
17003 # is EXPORTS), use it as is; otherwise, prepend...
17004 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17005 cp $export_symbols $output_objdir/$soname.def;
17007 echo EXPORTS > $output_objdir/$soname.def;
17008 cat $export_symbols >> $output_objdir/$soname.def;
17010 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17017 hardcode_direct_GCJ=no
17018 hardcode_shlibpath_var_GCJ=no
17019 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17020 export_dynamic_flag_spec_GCJ='${wl}-E'
17021 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17022 # Instead, shared libraries are loaded at an image base (0x10000000 by
17023 # default) and relocated if they conflict, which is a slow very memory
17024 # consuming and fragmenting process. To avoid this, we pick a random,
17025 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17026 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17027 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17028 archive_expsym_cmds_GCJ='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'
17031 gnu* | linux* | k*bsd*-gnu)
17032 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17034 case $cc_basename,$host_cpu in
17035 pgcc*) # Portland Group C compiler
17036 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17037 tmp_addflag=' $pic_flag'
17039 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17040 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17041 tmp_addflag=' $pic_flag -Mnomain' ;;
17042 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17043 tmp_addflag=' -i_dynamic' ;;
17044 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17045 tmp_addflag=' -i_dynamic -nofor_main' ;;
17046 ifc* | ifort*) # Intel Fortran compiler
17047 tmp_addflag=' -nofor_main' ;;
17049 case `$CC -V 2>&1 | sed 5q` in
17050 *Sun\ C*) # Sun C 5.9
17051 whole_archive_flag_spec_GCJ='${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'
17052 tmp_sharedflag='-G' ;;
17053 *Sun\ F*) # Sun Fortran 8.3
17054 tmp_sharedflag='-G' ;;
17056 tmp_sharedflag='-shared' ;;
17058 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17060 if test $supports_anon_versioning = yes; then
17061 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17062 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17063 $echo "local: *; };" >> $output_objdir/$libname.ver~
17064 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17072 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17073 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17076 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17077 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17082 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17086 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17087 *** create shared libraries on Solaris systems. Therefore, libtool
17088 *** is disabling shared libraries support. We urge you to upgrade GNU
17089 *** binutils to release 2.9.1 or newer. Another option is to modify
17090 *** your PATH or compiler configuration so that the native linker is
17091 *** used, and then restart.
17094 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17095 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17096 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17102 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17103 case `$LD -v 2>&1` in
17104 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17108 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17109 *** reliably create shared libraries on SCO systems. Therefore, libtool
17110 *** is disabling shared libraries support. We urge you to upgrade GNU
17111 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17112 *** your PATH or compiler configuration so that the native linker is
17113 *** used, and then restart.
17118 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17119 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17120 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17121 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17130 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17132 hardcode_direct_GCJ=yes
17133 hardcode_shlibpath_var_GCJ=no
17137 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17138 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17139 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17146 if test "$ld_shlibs_GCJ" = no; then
17148 hardcode_libdir_flag_spec_GCJ=
17149 export_dynamic_flag_spec_GCJ=
17150 whole_archive_flag_spec_GCJ=
17153 # PORTME fill in a description of your system's linker (not GNU ld)
17156 allow_undefined_flag_GCJ=unsupported
17157 always_export_symbols_GCJ=yes
17158 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17159 # Note: this linker hardcodes the directories in LIBPATH if there
17160 # are no directories specified by -L.
17161 hardcode_minus_L_GCJ=yes
17162 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17163 # Neither direct hardcoding nor static linking is supported with a
17165 hardcode_direct_GCJ=unsupported
17170 if test "$host_cpu" = ia64; then
17171 # On IA64, the linker does run time linking by default, so we don't
17172 # have to do anything special.
17173 aix_use_runtimelinking=no
17174 exp_sym_flag='-Bexport'
17177 # If we're using GNU nm, then we don't want the "-C" option.
17178 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17179 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17180 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17182 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17184 aix_use_runtimelinking=no
17186 # Test if we are trying to use run time linking or normal
17187 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17188 # need to do runtime linking.
17189 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17190 for ld_flag in $LDFLAGS; do
17191 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17192 aix_use_runtimelinking=yes
17199 exp_sym_flag='-bexport'
17200 no_entry_flag='-bnoentry'
17203 # When large executables or shared objects are built, AIX ld can
17204 # have problems creating the table of contents. If linking a library
17205 # or program results in "error TOC overflow" add -mminimal-toc to
17206 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17207 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17209 archive_cmds_GCJ=''
17210 hardcode_direct_GCJ=yes
17211 hardcode_libdir_separator_GCJ=':'
17212 link_all_deplibs_GCJ=yes
17214 if test "$GCC" = yes; then
17215 case $host_os in aix4.[012]|aix4.[012].*)
17216 # We only want to do this on AIX 4.2 and lower, the check
17217 # below for broken collect2 doesn't work under 4.3+
17218 collect2name=`${CC} -print-prog-name=collect2`
17219 if test -f "$collect2name" && \
17220 strings "$collect2name" | grep resolve_lib_name >/dev/null
17222 # We have reworked collect2
17225 # We have old collect2
17226 hardcode_direct_GCJ=unsupported
17227 # It fails to find uninstalled libraries when the uninstalled
17228 # path is not listed in the libpath. Setting hardcode_minus_L
17229 # to unsupported forces relinking
17230 hardcode_minus_L_GCJ=yes
17231 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17232 hardcode_libdir_separator_GCJ=
17236 shared_flag='-shared'
17237 if test "$aix_use_runtimelinking" = yes; then
17238 shared_flag="$shared_flag "'${wl}-G'
17242 if test "$host_cpu" = ia64; then
17243 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17244 # chokes on -Wl,-G. The following line is correct:
17247 if test "$aix_use_runtimelinking" = yes; then
17248 shared_flag='${wl}-G'
17250 shared_flag='${wl}-bM:SRE'
17255 # It seems that -bexpall does not export symbols beginning with
17256 # underscore (_), so it is better to generate a list of symbols to export.
17257 always_export_symbols_GCJ=yes
17258 if test "$aix_use_runtimelinking" = yes; then
17259 # Warning - without using the other runtime loading flags (-brtl),
17260 # -berok will link without error, but may produce a broken library.
17261 allow_undefined_flag_GCJ='-berok'
17262 # Determine the default libpath from the value encoded in an empty executable.
17263 cat >conftest.$ac_ext <<_ACEOF
17266 cat confdefs.h >>conftest.$ac_ext
17267 cat >>conftest.$ac_ext <<_ACEOF
17268 /* end confdefs.h. */
17278 rm -f conftest.$ac_objext conftest$ac_exeext
17279 if { (ac_try="$ac_link"
17280 case "(($ac_try" in
17281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282 *) ac_try_echo=$ac_try;;
17284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17285 $as_echo "$ac_try_echo") >&5
17286 (eval "$ac_link") 2>conftest.er1
17288 grep -v '^ *+' conftest.er1 >conftest.err
17290 cat conftest.err >&5
17291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); } && {
17293 test -z "$ac_c_werror_flag" ||
17294 test ! -s conftest.err
17295 } && test -s conftest$ac_exeext && {
17296 test "$cross_compiling" = yes ||
17297 $as_test_x conftest$ac_exeext
17300 lt_aix_libpath_sed='
17301 /Import File Strings/,/^$/ {
17307 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17308 # Check for a 64-bit object if we didn't find anything.
17309 if test -z "$aix_libpath"; then
17310 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17313 $as_echo "$as_me: failed program was:" >&5
17314 sed 's/^/| /' conftest.$ac_ext >&5
17319 rm -rf conftest.dSYM
17320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17321 conftest$ac_exeext conftest.$ac_ext
17322 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17324 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17325 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17327 if test "$host_cpu" = ia64; then
17328 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17329 allow_undefined_flag_GCJ="-z nodefs"
17330 archive_expsym_cmds_GCJ="\$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"
17332 # Determine the default libpath from the value encoded in an empty executable.
17333 cat >conftest.$ac_ext <<_ACEOF
17336 cat confdefs.h >>conftest.$ac_ext
17337 cat >>conftest.$ac_ext <<_ACEOF
17338 /* end confdefs.h. */
17348 rm -f conftest.$ac_objext conftest$ac_exeext
17349 if { (ac_try="$ac_link"
17350 case "(($ac_try" in
17351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17352 *) ac_try_echo=$ac_try;;
17354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17355 $as_echo "$ac_try_echo") >&5
17356 (eval "$ac_link") 2>conftest.er1
17358 grep -v '^ *+' conftest.er1 >conftest.err
17360 cat conftest.err >&5
17361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); } && {
17363 test -z "$ac_c_werror_flag" ||
17364 test ! -s conftest.err
17365 } && test -s conftest$ac_exeext && {
17366 test "$cross_compiling" = yes ||
17367 $as_test_x conftest$ac_exeext
17370 lt_aix_libpath_sed='
17371 /Import File Strings/,/^$/ {
17377 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17378 # Check for a 64-bit object if we didn't find anything.
17379 if test -z "$aix_libpath"; then
17380 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17383 $as_echo "$as_me: failed program was:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17389 rm -rf conftest.dSYM
17390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17391 conftest$ac_exeext conftest.$ac_ext
17392 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17394 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17395 # Warning - without using the other run time loading flags,
17396 # -berok will link without error, but may produce a broken library.
17397 no_undefined_flag_GCJ=' ${wl}-bernotok'
17398 allow_undefined_flag_GCJ=' ${wl}-berok'
17399 # Exported symbols can be pulled into shared objects from archives
17400 whole_archive_flag_spec_GCJ='$convenience'
17401 archive_cmds_need_lc_GCJ=yes
17402 # This is similar to how AIX traditionally builds its shared libraries.
17403 archive_expsym_cmds_GCJ="\$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'
17409 archive_cmds_GCJ='$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)'
17410 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17411 hardcode_minus_L_GCJ=yes
17412 # see comment about different semantics on the GNU ld section
17417 export_dynamic_flag_spec_GCJ=-rdynamic
17420 cygwin* | mingw* | pw32*)
17421 # When not using gcc, we currently assume that we are using
17422 # Microsoft Visual C++.
17423 # hardcode_libdir_flag_spec is actually meaningless, as there is
17424 # no search path for DLLs.
17425 hardcode_libdir_flag_spec_GCJ=' '
17426 allow_undefined_flag_GCJ=unsupported
17427 # Tell ltmain to make .lib files, not .a files.
17429 # Tell ltmain to make .dll files, not .so files.
17431 # FIXME: Setting linknames here is a bad hack.
17432 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17433 # The linker will automatically build a .lib file if we build a DLL.
17434 old_archive_From_new_cmds_GCJ='true'
17435 # FIXME: Should let the user specify the lib program.
17436 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17437 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17438 enable_shared_with_static_runtimes_GCJ=yes
17441 darwin* | rhapsody*)
17443 rhapsody* | darwin1.[012])
17444 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17447 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17448 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17450 case ${MACOSX_DEPLOYMENT_TARGET} in
17452 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17455 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17461 archive_cmds_need_lc_GCJ=no
17462 hardcode_direct_GCJ=no
17463 hardcode_automatic_GCJ=yes
17464 hardcode_shlibpath_var_GCJ=unsupported
17465 whole_archive_flag_spec_GCJ=''
17466 link_all_deplibs_GCJ=yes
17467 if test "$GCC" = yes ; then
17468 output_verbose_link_cmd='echo'
17469 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17470 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17471 archive_expsym_cmds_GCJ="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}"
17472 module_expsym_cmds_GCJ="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}"
17474 case $cc_basename in
17476 output_verbose_link_cmd='echo'
17477 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17478 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17479 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17480 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17481 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17491 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17492 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17493 hardcode_shlibpath_var_GCJ=no
17500 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17501 # support. Future versions do this automatically, but an explicit c++rt0.o
17502 # does not break anything, and helps significantly (at the cost of a little
17505 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17506 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17507 hardcode_direct_GCJ=yes
17508 hardcode_shlibpath_var_GCJ=no
17511 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17513 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17514 hardcode_direct_GCJ=yes
17515 hardcode_minus_L_GCJ=yes
17516 hardcode_shlibpath_var_GCJ=no
17519 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17520 freebsd* | dragonfly*)
17521 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17522 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17523 hardcode_direct_GCJ=yes
17524 hardcode_shlibpath_var_GCJ=no
17528 if test "$GCC" = yes; then
17529 archive_cmds_GCJ='$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'
17531 archive_cmds_GCJ='$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'
17533 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17534 hardcode_libdir_separator_GCJ=:
17535 hardcode_direct_GCJ=yes
17537 # hardcode_minus_L: Not really in the search PATH,
17538 # but as the default location of the library.
17539 hardcode_minus_L_GCJ=yes
17540 export_dynamic_flag_spec_GCJ='${wl}-E'
17544 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17545 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17547 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17549 if test "$with_gnu_ld" = no; then
17550 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17551 hardcode_libdir_separator_GCJ=:
17553 hardcode_direct_GCJ=yes
17554 export_dynamic_flag_spec_GCJ='${wl}-E'
17556 # hardcode_minus_L: Not really in the search PATH,
17557 # but as the default location of the library.
17558 hardcode_minus_L_GCJ=yes
17563 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17566 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17569 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17572 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17578 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17581 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17584 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17588 if test "$with_gnu_ld" = no; then
17589 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17590 hardcode_libdir_separator_GCJ=:
17594 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17595 hardcode_direct_GCJ=no
17596 hardcode_shlibpath_var_GCJ=no
17599 hardcode_direct_GCJ=yes
17600 export_dynamic_flag_spec_GCJ='${wl}-E'
17602 # hardcode_minus_L: Not really in the search PATH,
17603 # but as the default location of the library.
17604 hardcode_minus_L_GCJ=yes
17610 irix5* | irix6* | nonstopux*)
17611 if test "$GCC" = yes; then
17612 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17614 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17615 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17617 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17618 hardcode_libdir_separator_GCJ=:
17619 link_all_deplibs_GCJ=yes
17623 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17624 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17626 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17628 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17629 hardcode_direct_GCJ=yes
17630 hardcode_shlibpath_var_GCJ=no
17634 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17635 hardcode_direct_GCJ=yes
17636 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17637 hardcode_libdir_separator_GCJ=:
17638 hardcode_shlibpath_var_GCJ=no
17642 if test -f /usr/libexec/ld.so; then
17643 hardcode_direct_GCJ=yes
17644 hardcode_shlibpath_var_GCJ=no
17645 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17646 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17647 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17648 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17649 export_dynamic_flag_spec_GCJ='${wl}-E'
17652 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17653 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17654 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17657 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17658 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17668 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17669 hardcode_minus_L_GCJ=yes
17670 allow_undefined_flag_GCJ=unsupported
17671 archive_cmds_GCJ='$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'
17672 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17676 if test "$GCC" = yes; then
17677 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17678 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17680 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17681 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17683 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17684 hardcode_libdir_separator_GCJ=:
17687 osf4* | osf5*) # as osf3* with the addition of -msym flag
17688 if test "$GCC" = yes; then
17689 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17690 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17691 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17693 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17694 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17695 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17696 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17698 # Both c and cxx compiler support -rpath directly
17699 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17701 hardcode_libdir_separator_GCJ=:
17705 no_undefined_flag_GCJ=' -z text'
17706 if test "$GCC" = yes; then
17708 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17709 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17710 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17713 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17714 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17715 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17717 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17718 hardcode_shlibpath_var_GCJ=no
17720 solaris2.[0-5] | solaris2.[0-5].*) ;;
17722 # The compiler driver will combine and reorder linker options,
17723 # but understands `-z linker_flag'. GCC discards it without `$wl',
17724 # but is careful enough not to reorder.
17725 # Supported since Solaris 2.6 (maybe 2.5.1?)
17726 if test "$GCC" = yes; then
17727 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17729 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17733 link_all_deplibs_GCJ=yes
17737 if test "x$host_vendor" = xsequent; then
17738 # Use $CC to link under sequent, because it throws in some extra .o
17739 # files that make .init and .fini sections work.
17740 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17742 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17744 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17745 hardcode_direct_GCJ=yes
17746 hardcode_minus_L_GCJ=yes
17747 hardcode_shlibpath_var_GCJ=no
17751 case $host_vendor in
17753 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17754 hardcode_direct_GCJ=yes # is this really true???
17757 ## LD is ld it makes a PLAMLIB
17758 ## CC just makes a GrossModule.
17759 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17760 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17761 hardcode_direct_GCJ=no
17764 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17765 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17768 runpath_var='LD_RUN_PATH'
17769 hardcode_shlibpath_var_GCJ=no
17773 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17774 hardcode_shlibpath_var_GCJ=no
17775 export_dynamic_flag_spec_GCJ='-Bexport'
17779 if test -d /usr/nec; then
17780 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17781 hardcode_shlibpath_var_GCJ=no
17782 runpath_var=LD_RUN_PATH
17783 hardcode_runpath_var=yes
17788 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17789 no_undefined_flag_GCJ='${wl}-z,text'
17790 archive_cmds_need_lc_GCJ=no
17791 hardcode_shlibpath_var_GCJ=no
17792 runpath_var='LD_RUN_PATH'
17794 if test "$GCC" = yes; then
17795 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17796 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17798 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17799 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17803 sysv5* | sco3.2v5* | sco5v6*)
17804 # Note: We can NOT use -z defs as we might desire, because we do not
17805 # link with -lc, and that would cause any symbols used from libc to
17806 # always be unresolved, which means just about no library would
17807 # ever link correctly. If we're not using GNU ld we use -z text
17808 # though, which does catch some bad symbols but isn't as heavy-handed
17810 no_undefined_flag_GCJ='${wl}-z,text'
17811 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17812 archive_cmds_need_lc_GCJ=no
17813 hardcode_shlibpath_var_GCJ=no
17814 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17815 hardcode_libdir_separator_GCJ=':'
17816 link_all_deplibs_GCJ=yes
17817 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17818 runpath_var='LD_RUN_PATH'
17820 if test "$GCC" = yes; then
17821 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17822 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17824 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17825 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17830 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17831 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17832 hardcode_shlibpath_var_GCJ=no
17841 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17842 $as_echo "$ld_shlibs_GCJ" >&6; }
17843 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17846 # Do we need to explicitly link libc?
17848 case "x$archive_cmds_need_lc_GCJ" in
17850 # Assume -lc should be added
17851 archive_cmds_need_lc_GCJ=yes
17853 if test "$enable_shared" = yes && test "$GCC" = yes; then
17854 case $archive_cmds_GCJ in
17856 # FIXME: we may have to deal with multi-command sequences.
17859 # Test whether the compiler implicitly links with -lc since on some
17860 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17861 # to ld, don't add -lc before -lgcc.
17862 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17863 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17865 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17868 (eval $ac_compile) 2>&5
17870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); } 2>conftest.err; then
17874 libobjs=conftest.$ac_objext
17876 wl=$lt_prog_compiler_wl_GCJ
17877 pic_flag=$lt_prog_compiler_pic_GCJ
17883 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17884 allow_undefined_flag_GCJ=
17885 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17886 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }
17891 archive_cmds_need_lc_GCJ=no
17893 archive_cmds_need_lc_GCJ=yes
17895 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17897 cat conftest.err 1>&5
17900 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17901 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17908 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17909 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17910 library_names_spec=
17911 libname_spec='lib$name'
17915 postuninstall_cmds=
17919 shlibpath_overrides_runpath=unknown
17921 dynamic_linker="$host_os ld.so"
17922 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17924 need_lib_prefix=unknown
17925 hardcode_into_libs=no
17927 # when you set need_version to no, make sure it does not cause -set_version
17928 # flags to be left without arguments
17929 need_version=unknown
17934 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17935 shlibpath_var=LIBPATH
17937 # AIX 3 has no versioning support, so we append a major version to the name.
17938 soname_spec='${libname}${release}${shared_ext}$major'
17945 hardcode_into_libs=yes
17946 if test "$host_cpu" = ia64; then
17947 # AIX 5 supports IA64
17948 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17949 shlibpath_var=LD_LIBRARY_PATH
17951 # With GCC up to 2.95.x, collect2 would create an import file
17952 # for dependence libraries. The import file would start with
17953 # the line `#! .'. This would cause the generated library to
17954 # depend on `.', always an invalid library. This was fixed in
17955 # development snapshots of GCC prior to 3.0.
17957 aix4 | aix4.[01] | aix4.[01].*)
17958 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17960 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17963 can_build_shared=no
17967 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17968 # soname into executable. Probably we can add versioning support to
17969 # collect2, so additional links can be useful in future.
17970 if test "$aix_use_runtimelinking" = yes; then
17971 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17972 # instead of lib<name>.a to let people know that these are not
17973 # typical AIX shared libraries.
17974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17976 # We preserve .a as extension for shared libraries through AIX4.2
17977 # and later when we are not doing run time linking.
17978 library_names_spec='${libname}${release}.a $libname.a'
17979 soname_spec='${libname}${release}${shared_ext}$major'
17981 shlibpath_var=LIBPATH
17986 library_names_spec='$libname.ixlibrary $libname.a'
17987 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17988 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'
17992 library_names_spec='${libname}${shared_ext}'
17993 dynamic_linker="$host_os ld.so"
17994 shlibpath_var=LIBRARY_PATH
18000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18001 soname_spec='${libname}${release}${shared_ext}$major'
18002 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18003 shlibpath_var=LD_LIBRARY_PATH
18004 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18005 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18006 # the default ld.so.conf also contains /usr/contrib/lib and
18007 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18008 # libtool to hard-code these into programs
18011 cygwin* | mingw* | pw32*)
18012 version_type=windows
18017 case $GCC,$host_os in
18018 yes,cygwin* | yes,mingw* | yes,pw32*)
18019 library_names_spec='$libname.dll.a'
18020 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18021 postinstall_cmds='base_file=`basename \${file}`~
18022 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18023 dldir=$destdir/`dirname \$dlpath`~
18024 test -d \$dldir || mkdir -p \$dldir~
18025 $install_prog $dir/$dlname \$dldir/$dlname~
18026 chmod a+x \$dldir/$dlname'
18027 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18028 dlpath=$dir/\$dldll~
18030 shlibpath_overrides_runpath=yes
18034 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18035 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18036 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18039 # MinGW DLLs use traditional 'lib' prefix
18040 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18041 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18042 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18043 # It is most probably a Windows format PATH printed by
18044 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18045 # path with ; separators, and with drive letters. We can handle the
18046 # drive letters (cygwin fileutils understands them), so leave them,
18047 # especially as we might pass files found there to a mingw objdump,
18048 # which wouldn't understand a cygwinified path. Ahh.
18049 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18051 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18055 # pw32 DLLs use 'pw' prefix rather than 'lib'
18056 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18062 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18065 dynamic_linker='Win32 ld.exe'
18066 # FIXME: first we should search . and the directory the executable is in
18070 darwin* | rhapsody*)
18071 dynamic_linker="$host_os dyld"
18072 version_type=darwin
18075 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18076 soname_spec='${libname}${release}${major}$shared_ext'
18077 shlibpath_overrides_runpath=yes
18078 shlibpath_var=DYLD_LIBRARY_PATH
18079 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18081 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18089 soname_spec='${libname}${release}${shared_ext}$major'
18090 shlibpath_var=LD_LIBRARY_PATH
18097 freebsd* | dragonfly*)
18098 # DragonFly does not have aout. When/if they implement a new
18099 # versioning mechanism, adjust this.
18100 if test -x /usr/bin/objformat; then
18101 objformat=`/usr/bin/objformat`
18104 freebsd[123]*) objformat=aout ;;
18105 *) objformat=elf ;;
18108 version_type=freebsd-$objformat
18109 case $version_type in
18111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18116 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18120 shlibpath_var=LD_LIBRARY_PATH
18123 shlibpath_overrides_runpath=yes
18125 freebsd3.[01]* | freebsdelf3.[01]*)
18126 shlibpath_overrides_runpath=yes
18127 hardcode_into_libs=yes
18129 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18130 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18131 shlibpath_overrides_runpath=no
18132 hardcode_into_libs=yes
18134 *) # from 4.6 on, and DragonFly
18135 shlibpath_overrides_runpath=yes
18136 hardcode_into_libs=yes
18145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18146 soname_spec='${libname}${release}${shared_ext}$major'
18147 shlibpath_var=LD_LIBRARY_PATH
18148 hardcode_into_libs=yes
18151 hpux9* | hpux10* | hpux11*)
18152 # Give a soname corresponding to the major version so that dld.sl refuses to
18153 # link against other versions.
18160 hardcode_into_libs=yes
18161 dynamic_linker="$host_os dld.so"
18162 shlibpath_var=LD_LIBRARY_PATH
18163 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18165 soname_spec='${libname}${release}${shared_ext}$major'
18166 if test "X$HPUX_IA64_MODE" = X32; then
18167 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18169 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18171 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18175 hardcode_into_libs=yes
18176 dynamic_linker="$host_os dld.sl"
18177 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18178 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18180 soname_spec='${libname}${release}${shared_ext}$major'
18181 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18182 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18186 dynamic_linker="$host_os dld.sl"
18187 shlibpath_var=SHLIB_PATH
18188 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18190 soname_spec='${libname}${release}${shared_ext}$major'
18193 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18194 postinstall_cmds='chmod 555 $lib'
18201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18202 soname_spec='${libname}${release}${shared_ext}$major'
18203 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18204 shlibpath_var=LD_LIBRARY_PATH
18205 shlibpath_overrides_runpath=no
18206 hardcode_into_libs=yes
18209 irix5* | irix6* | nonstopux*)
18211 nonstopux*) version_type=nonstopux ;;
18213 if test "$lt_cv_prog_gnu_ld" = yes; then
18221 soname_spec='${libname}${release}${shared_ext}$major'
18222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18224 irix5* | nonstopux*)
18225 libsuff= shlibsuff=
18228 case $LD in # libtool.m4 will add one of these switches to LD
18229 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18230 libsuff= shlibsuff= libmagic=32-bit;;
18231 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18232 libsuff=32 shlibsuff=N32 libmagic=N32;;
18233 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18234 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18235 *) libsuff= shlibsuff= libmagic=never-match;;
18239 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18240 shlibpath_overrides_runpath=no
18241 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18242 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18243 hardcode_into_libs=yes
18246 # No shared lib support for Linux oldld, aout, or coff.
18247 linux*oldld* | linux*aout* | linux*coff*)
18251 # This must be Linux ELF.
18252 linux* | k*bsd*-gnu)
18256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18257 soname_spec='${libname}${release}${shared_ext}$major'
18258 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18259 shlibpath_var=LD_LIBRARY_PATH
18260 shlibpath_overrides_runpath=no
18261 # This implies no fast_install, which is unacceptable.
18262 # Some rework will be needed to allow for fast_install
18263 # before this can be enabled.
18264 hardcode_into_libs=yes
18266 # Append ld.so.conf contents to the search path
18267 if test -f /etc/ld.so.conf; then
18268 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' ' '`
18269 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18272 # We used to test for /lib/ld.so.1 and disable shared libraries on
18273 # powerpc, because MkLinux only supported shared libraries with the
18274 # GNU dynamic linker. Since this was broken with cross compilers,
18275 # most powerpc-linux boxes support dynamic linking these days and
18276 # people can always --disable-shared, the test was removed, and we
18277 # assume the GNU/Linux dynamic linker is in use.
18278 dynamic_linker='GNU/Linux ld.so'
18285 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18287 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18288 dynamic_linker='NetBSD (a.out) ld.so'
18290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18291 soname_spec='${libname}${release}${shared_ext}$major'
18292 dynamic_linker='NetBSD ld.elf_so'
18294 shlibpath_var=LD_LIBRARY_PATH
18295 shlibpath_overrides_runpath=yes
18296 hardcode_into_libs=yes
18301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18302 shlibpath_var=LD_LIBRARY_PATH
18303 shlibpath_overrides_runpath=yes
18310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18311 soname_spec='${libname}${release}${shared_ext}$major'
18312 shlibpath_var=LD_LIBRARY_PATH
18313 shlibpath_overrides_runpath=yes
18318 sys_lib_dlsearch_path_spec="/usr/lib"
18320 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18322 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18323 *) need_version=no ;;
18325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18327 shlibpath_var=LD_LIBRARY_PATH
18328 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18330 openbsd2.[89] | openbsd2.[89].*)
18331 shlibpath_overrides_runpath=no
18334 shlibpath_overrides_runpath=yes
18338 shlibpath_overrides_runpath=yes
18343 libname_spec='$name'
18346 library_names_spec='$libname${shared_ext} $libname.a'
18347 dynamic_linker='OS/2 ld.exe'
18348 shlibpath_var=LIBPATH
18351 osf3* | osf4* | osf5*)
18355 soname_spec='${libname}${release}${shared_ext}$major'
18356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18357 shlibpath_var=LD_LIBRARY_PATH
18358 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18359 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18371 soname_spec='${libname}${release}${shared_ext}$major'
18372 shlibpath_var=LD_LIBRARY_PATH
18373 shlibpath_overrides_runpath=yes
18374 hardcode_into_libs=yes
18375 # ldd complains unless libraries are executable
18376 postinstall_cmds='chmod +x $lib'
18381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18382 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18383 shlibpath_var=LD_LIBRARY_PATH
18384 shlibpath_overrides_runpath=yes
18385 if test "$with_gnu_ld" = yes; then
18393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18394 soname_spec='${libname}${release}${shared_ext}$major'
18395 shlibpath_var=LD_LIBRARY_PATH
18396 case $host_vendor in
18398 shlibpath_overrides_runpath=no
18400 export_dynamic_flag_spec='${wl}-Blargedynsym'
18401 runpath_var=LD_RUN_PATH
18409 shlibpath_overrides_runpath=no
18410 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18416 if test -d /usr/nec ;then
18418 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18419 soname_spec='$libname${shared_ext}.$major'
18420 shlibpath_var=LD_LIBRARY_PATH
18424 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18425 version_type=freebsd-elf
18428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18429 soname_spec='${libname}${release}${shared_ext}$major'
18430 shlibpath_var=LD_LIBRARY_PATH
18431 hardcode_into_libs=yes
18432 if test "$with_gnu_ld" = yes; then
18433 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18434 shlibpath_overrides_runpath=no
18436 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18437 shlibpath_overrides_runpath=yes
18440 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18444 sys_lib_dlsearch_path_spec='/usr/lib'
18449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18450 soname_spec='${libname}${release}${shared_ext}$major'
18451 shlibpath_var=LD_LIBRARY_PATH
18458 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18459 $as_echo "$dynamic_linker" >&6; }
18460 test "$dynamic_linker" = no && can_build_shared=no
18462 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18463 $as_echo_n "(cached) " >&6
18465 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18468 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18469 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18470 $as_echo_n "(cached) " >&6
18472 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18475 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18477 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18478 if test "$GCC" = yes; then
18479 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18482 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18483 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18484 hardcode_action_GCJ=
18485 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18486 test -n "$runpath_var_GCJ" || \
18487 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18489 # We can hardcode non-existant directories.
18490 if test "$hardcode_direct_GCJ" != no &&
18491 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18492 # have to relink, otherwise we might link with an installed library
18493 # when we should be linking with a yet-to-be-installed one
18494 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18495 test "$hardcode_minus_L_GCJ" != no; then
18496 # Linking always hardcodes the temporary library directory.
18497 hardcode_action_GCJ=relink
18499 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18500 hardcode_action_GCJ=immediate
18503 # We cannot hardcode anything, or else we can only hardcode existing
18505 hardcode_action_GCJ=unsupported
18507 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18508 $as_echo "$hardcode_action_GCJ" >&6; }
18510 if test "$hardcode_action_GCJ" = relink; then
18511 # Fast installation is not supported
18512 enable_fast_install=no
18513 elif test "$shlibpath_overrides_runpath" = yes ||
18514 test "$enable_shared" = no; then
18515 # Fast installation is not necessary
18516 enable_fast_install=needless
18520 # The else clause should only fire when bootstrapping the
18521 # libtool distribution, otherwise you forgot to ship ltmain.sh
18522 # with your package, and you will get complaints that there are
18523 # no rules to generate ltmain.sh.
18524 if test -f "$ltmain"; then
18525 # See if we are running on zsh, and set the options which allow our commands through
18526 # without removal of \ escapes.
18527 if test -n "${ZSH_VERSION+set}" ; then
18528 setopt NO_GLOB_SUBST
18530 # Now quote all the things that may contain metacharacters while being
18531 # careful not to overquote the AC_SUBSTed values. We take copies of the
18532 # variables and quote the copies for generation of the libtool script.
18533 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18535 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18536 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18537 deplibs_check_method reload_flag reload_cmds need_locks \
18538 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18539 lt_cv_sys_global_symbol_to_c_name_address \
18540 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18541 old_postinstall_cmds old_postuninstall_cmds \
18545 lt_prog_compiler_wl_GCJ \
18546 lt_prog_compiler_pic_GCJ \
18547 lt_prog_compiler_static_GCJ \
18548 lt_prog_compiler_no_builtin_flag_GCJ \
18549 export_dynamic_flag_spec_GCJ \
18550 thread_safe_flag_spec_GCJ \
18551 whole_archive_flag_spec_GCJ \
18552 enable_shared_with_static_runtimes_GCJ \
18553 old_archive_cmds_GCJ \
18554 old_archive_from_new_cmds_GCJ \
18555 predep_objects_GCJ \
18556 postdep_objects_GCJ \
18559 compiler_lib_search_path_GCJ \
18560 compiler_lib_search_dirs_GCJ \
18562 archive_expsym_cmds_GCJ \
18563 postinstall_cmds_GCJ \
18564 postuninstall_cmds_GCJ \
18565 old_archive_from_expsyms_cmds_GCJ \
18566 allow_undefined_flag_GCJ \
18567 no_undefined_flag_GCJ \
18568 export_symbols_cmds_GCJ \
18569 hardcode_libdir_flag_spec_GCJ \
18570 hardcode_libdir_flag_spec_ld_GCJ \
18571 hardcode_libdir_separator_GCJ \
18572 hardcode_automatic_GCJ \
18574 module_expsym_cmds_GCJ \
18575 lt_cv_prog_compiler_c_o_GCJ \
18576 fix_srcfile_path_GCJ \
18577 exclude_expsyms_GCJ \
18578 include_expsyms_GCJ; do
18581 old_archive_cmds_GCJ | \
18582 old_archive_from_new_cmds_GCJ | \
18583 archive_cmds_GCJ | \
18584 archive_expsym_cmds_GCJ | \
18585 module_cmds_GCJ | \
18586 module_expsym_cmds_GCJ | \
18587 old_archive_from_expsyms_cmds_GCJ | \
18588 export_symbols_cmds_GCJ | \
18589 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18590 postinstall_cmds | postuninstall_cmds | \
18591 old_postinstall_cmds | old_postuninstall_cmds | \
18592 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18593 # Double-quote double-evaled strings.
18594 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18597 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18603 *'\$0 --fallback-echo"')
18604 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18610 cat <<__EOF__ >> "$cfgfile"
18611 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18613 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18615 # Shell to use when invoking shell scripts.
18618 # Whether or not to build shared libraries.
18619 build_libtool_libs=$enable_shared
18621 # Whether or not to build static libraries.
18622 build_old_libs=$enable_static
18624 # Whether or not to add -lc for building shared libraries.
18625 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18627 # Whether or not to disallow shared libs when runtime libs are static
18628 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18630 # Whether or not to optimize for fast installation.
18631 fast_install=$enable_fast_install
18634 host_alias=$host_alias
18638 # The build system.
18639 build_alias=$build_alias
18643 # An echo program that does not interpret backslashes.
18648 AR_FLAGS=$lt_AR_FLAGS
18653 # LTCC compiler flags.
18654 LTCFLAGS=$lt_LTCFLAGS
18656 # A language-specific compiler.
18657 CC=$lt_compiler_GCJ
18659 # Is the compiler the GNU C compiler?
18665 # The linker used to build libraries.
18668 # Whether we need hard or soft links.
18671 # A BSD-compatible nm program.
18674 # A symbol stripping program
18677 # Used to examine libraries when file_magic_cmd begins "file"
18678 MAGIC_CMD=$MAGIC_CMD
18680 # Used on cygwin: DLL creation program.
18683 # Used on cygwin: object dumper.
18686 # Used on cygwin: assembler.
18689 # The name of the directory that contains temporary libtool files.
18692 # How to create reloadable object files.
18693 reload_flag=$lt_reload_flag
18694 reload_cmds=$lt_reload_cmds
18696 # How to pass a linker flag through the compiler.
18697 wl=$lt_lt_prog_compiler_wl_GCJ
18699 # Object file suffix (normally "o").
18700 objext="$ac_objext"
18702 # Old archive suffix (normally "a").
18705 # Shared library suffix (normally ".so").
18706 shrext_cmds='$shrext_cmds'
18708 # Executable file suffix (normally "").
18711 # Additional compiler flags for building library objects.
18712 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18715 # What is the maximum length of a command?
18716 max_cmd_len=$lt_cv_sys_max_cmd_len
18718 # Does compiler simultaneously support -c and -o options?
18719 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18721 # Must we lock files when doing compilation?
18722 need_locks=$lt_need_locks
18724 # Do we need the lib prefix for modules?
18725 need_lib_prefix=$need_lib_prefix
18727 # Do we need a version for libraries?
18728 need_version=$need_version
18730 # Whether dlopen is supported.
18731 dlopen_support=$enable_dlopen
18733 # Whether dlopen of programs is supported.
18734 dlopen_self=$enable_dlopen_self
18736 # Whether dlopen of statically linked programs is supported.
18737 dlopen_self_static=$enable_dlopen_self_static
18739 # Compiler flag to prevent dynamic linking.
18740 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18742 # Compiler flag to turn off builtin functions.
18743 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18745 # Compiler flag to allow reflexive dlopens.
18746 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18748 # Compiler flag to generate shared objects directly from archives.
18749 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18751 # Compiler flag to generate thread-safe objects.
18752 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18754 # Library versioning type.
18755 version_type=$version_type
18757 # Format of library name prefix.
18758 libname_spec=$lt_libname_spec
18760 # List of archive names. First name is the real one, the rest are links.
18761 # The last name is the one that the linker finds with -lNAME.
18762 library_names_spec=$lt_library_names_spec
18764 # The coded name of the library, if different from the real name.
18765 soname_spec=$lt_soname_spec
18767 # Commands used to build and install an old-style archive.
18769 old_archive_cmds=$lt_old_archive_cmds_GCJ
18770 old_postinstall_cmds=$lt_old_postinstall_cmds
18771 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18773 # Create an old-style archive from a shared archive.
18774 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18776 # Create a temporary old-style archive to link instead of a shared archive.
18777 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18779 # Commands used to build and install a shared archive.
18780 archive_cmds=$lt_archive_cmds_GCJ
18781 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18782 postinstall_cmds=$lt_postinstall_cmds
18783 postuninstall_cmds=$lt_postuninstall_cmds
18785 # Commands used to build a loadable module (assumed same as above if empty)
18786 module_cmds=$lt_module_cmds_GCJ
18787 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18789 # Commands to strip libraries.
18790 old_striplib=$lt_old_striplib
18791 striplib=$lt_striplib
18793 # Dependencies to place before the objects being linked to create a
18795 predep_objects=$lt_predep_objects_GCJ
18797 # Dependencies to place after the objects being linked to create a
18799 postdep_objects=$lt_postdep_objects_GCJ
18801 # Dependencies to place before the objects being linked to create a
18803 predeps=$lt_predeps_GCJ
18805 # Dependencies to place after the objects being linked to create a
18807 postdeps=$lt_postdeps_GCJ
18809 # The directories searched by this compiler when creating a shared
18811 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18813 # The library search path used internally by the compiler when linking
18814 # a shared library.
18815 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18817 # Method to check whether dependent libraries are shared objects.
18818 deplibs_check_method=$lt_deplibs_check_method
18820 # Command to use when deplibs_check_method == file_magic.
18821 file_magic_cmd=$lt_file_magic_cmd
18823 # Flag that allows shared libraries with undefined symbols to be built.
18824 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18826 # Flag that forces no undefined symbols.
18827 no_undefined_flag=$lt_no_undefined_flag_GCJ
18829 # Commands used to finish a libtool library installation in a directory.
18830 finish_cmds=$lt_finish_cmds
18832 # Same as above, but a single script fragment to be evaled but not shown.
18833 finish_eval=$lt_finish_eval
18835 # Take the output of nm and produce a listing of raw symbols and C names.
18836 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18838 # Transform the output of nm in a proper C declaration
18839 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18841 # Transform the output of nm in a C name address pair
18842 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18844 # This is the shared library runtime path variable.
18845 runpath_var=$runpath_var
18847 # This is the shared library path variable.
18848 shlibpath_var=$shlibpath_var
18850 # Is shlibpath searched before the hard-coded library search path?
18851 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18853 # How to hardcode a shared library path into an executable.
18854 hardcode_action=$hardcode_action_GCJ
18856 # Whether we should hardcode library paths into libraries.
18857 hardcode_into_libs=$hardcode_into_libs
18859 # Flag to hardcode \$libdir into a binary during linking.
18860 # This must work even if \$libdir does not exist.
18861 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18863 # If ld is used when linking, flag to hardcode \$libdir into
18864 # a binary during linking. This must work even if \$libdir does
18866 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18868 # Whether we need a single -rpath flag with a separated argument.
18869 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18871 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18872 # resulting binary.
18873 hardcode_direct=$hardcode_direct_GCJ
18875 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18876 # resulting binary.
18877 hardcode_minus_L=$hardcode_minus_L_GCJ
18879 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18880 # the resulting binary.
18881 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18883 # Set to yes if building a shared library automatically hardcodes DIR into the library
18884 # and all subsequent libraries and executables linked against it.
18885 hardcode_automatic=$hardcode_automatic_GCJ
18887 # Variables whose values should be saved in libtool wrapper scripts and
18888 # restored at relink time.
18889 variables_saved_for_relink="$variables_saved_for_relink"
18891 # Whether libtool must link a program against all its dependency libraries.
18892 link_all_deplibs=$link_all_deplibs_GCJ
18894 # Compile-time system search path for libraries
18895 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18897 # Run-time system search path for libraries
18898 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18900 # Fix the shell variable \$srcfile for the compiler.
18901 fix_srcfile_path=$lt_fix_srcfile_path
18903 # Set to yes if exported symbols are required.
18904 always_export_symbols=$always_export_symbols_GCJ
18906 # The commands to list exported symbols.
18907 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18909 # The commands to extract the exported symbol list from a shared archive.
18910 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18912 # Symbols that should not be listed in the preloaded symbols.
18913 exclude_expsyms=$lt_exclude_expsyms_GCJ
18915 # Symbols that must always be exported.
18916 include_expsyms=$lt_include_expsyms_GCJ
18918 # ### END LIBTOOL TAG CONFIG: $tagname
18924 # If there is no Makefile yet, we rely on a make rule to execute
18925 # `config.status --recheck' to rerun these tests and create the
18926 # libtool script then.
18927 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18928 if test -f "$ltmain_in"; then
18929 test -f Makefile && make "$ltmain"
18935 ac_cpp='$CPP $CPPFLAGS'
18936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18950 # Source file extension for RC test sources.
18953 # Object file extension for compiled RC test sources.
18957 # Code to be used in simple compile tests
18958 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18960 # Code to be used in simple link tests
18961 lt_simple_link_test_code="$lt_simple_compile_test_code"
18963 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18965 # If no C compiler was specified, use CC.
18968 # If no C compiler flags were specified, use CFLAGS.
18969 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18971 # Allow CC to be a program name with arguments.
18975 # save warnings/boilerplate of simple test code
18976 ac_outfile=conftest.$ac_objext
18977 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18978 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18979 _lt_compiler_boilerplate=`cat conftest.err`
18982 ac_outfile=conftest.$ac_objext
18983 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18984 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18985 _lt_linker_boilerplate=`cat conftest.err`
18989 # Allow CC to be a program name with arguments.
18994 for cc_temp in $compiler""; do
18996 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18997 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19002 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19004 lt_cv_prog_compiler_c_o_RC=yes
19006 # The else clause should only fire when bootstrapping the
19007 # libtool distribution, otherwise you forgot to ship ltmain.sh
19008 # with your package, and you will get complaints that there are
19009 # no rules to generate ltmain.sh.
19010 if test -f "$ltmain"; then
19011 # See if we are running on zsh, and set the options which allow our commands through
19012 # without removal of \ escapes.
19013 if test -n "${ZSH_VERSION+set}" ; then
19014 setopt NO_GLOB_SUBST
19016 # Now quote all the things that may contain metacharacters while being
19017 # careful not to overquote the AC_SUBSTed values. We take copies of the
19018 # variables and quote the copies for generation of the libtool script.
19019 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19021 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19022 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19023 deplibs_check_method reload_flag reload_cmds need_locks \
19024 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19025 lt_cv_sys_global_symbol_to_c_name_address \
19026 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19027 old_postinstall_cmds old_postuninstall_cmds \
19031 lt_prog_compiler_wl_RC \
19032 lt_prog_compiler_pic_RC \
19033 lt_prog_compiler_static_RC \
19034 lt_prog_compiler_no_builtin_flag_RC \
19035 export_dynamic_flag_spec_RC \
19036 thread_safe_flag_spec_RC \
19037 whole_archive_flag_spec_RC \
19038 enable_shared_with_static_runtimes_RC \
19039 old_archive_cmds_RC \
19040 old_archive_from_new_cmds_RC \
19041 predep_objects_RC \
19042 postdep_objects_RC \
19045 compiler_lib_search_path_RC \
19046 compiler_lib_search_dirs_RC \
19048 archive_expsym_cmds_RC \
19049 postinstall_cmds_RC \
19050 postuninstall_cmds_RC \
19051 old_archive_from_expsyms_cmds_RC \
19052 allow_undefined_flag_RC \
19053 no_undefined_flag_RC \
19054 export_symbols_cmds_RC \
19055 hardcode_libdir_flag_spec_RC \
19056 hardcode_libdir_flag_spec_ld_RC \
19057 hardcode_libdir_separator_RC \
19058 hardcode_automatic_RC \
19060 module_expsym_cmds_RC \
19061 lt_cv_prog_compiler_c_o_RC \
19062 fix_srcfile_path_RC \
19063 exclude_expsyms_RC \
19064 include_expsyms_RC; do
19067 old_archive_cmds_RC | \
19068 old_archive_from_new_cmds_RC | \
19069 archive_cmds_RC | \
19070 archive_expsym_cmds_RC | \
19072 module_expsym_cmds_RC | \
19073 old_archive_from_expsyms_cmds_RC | \
19074 export_symbols_cmds_RC | \
19075 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19076 postinstall_cmds | postuninstall_cmds | \
19077 old_postinstall_cmds | old_postuninstall_cmds | \
19078 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19079 # Double-quote double-evaled strings.
19080 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19083 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19089 *'\$0 --fallback-echo"')
19090 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19096 cat <<__EOF__ >> "$cfgfile"
19097 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19099 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19101 # Shell to use when invoking shell scripts.
19104 # Whether or not to build shared libraries.
19105 build_libtool_libs=$enable_shared
19107 # Whether or not to build static libraries.
19108 build_old_libs=$enable_static
19110 # Whether or not to add -lc for building shared libraries.
19111 build_libtool_need_lc=$archive_cmds_need_lc_RC
19113 # Whether or not to disallow shared libs when runtime libs are static
19114 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19116 # Whether or not to optimize for fast installation.
19117 fast_install=$enable_fast_install
19120 host_alias=$host_alias
19124 # The build system.
19125 build_alias=$build_alias
19129 # An echo program that does not interpret backslashes.
19134 AR_FLAGS=$lt_AR_FLAGS
19139 # LTCC compiler flags.
19140 LTCFLAGS=$lt_LTCFLAGS
19142 # A language-specific compiler.
19145 # Is the compiler the GNU C compiler?
19151 # The linker used to build libraries.
19154 # Whether we need hard or soft links.
19157 # A BSD-compatible nm program.
19160 # A symbol stripping program
19163 # Used to examine libraries when file_magic_cmd begins "file"
19164 MAGIC_CMD=$MAGIC_CMD
19166 # Used on cygwin: DLL creation program.
19169 # Used on cygwin: object dumper.
19172 # Used on cygwin: assembler.
19175 # The name of the directory that contains temporary libtool files.
19178 # How to create reloadable object files.
19179 reload_flag=$lt_reload_flag
19180 reload_cmds=$lt_reload_cmds
19182 # How to pass a linker flag through the compiler.
19183 wl=$lt_lt_prog_compiler_wl_RC
19185 # Object file suffix (normally "o").
19186 objext="$ac_objext"
19188 # Old archive suffix (normally "a").
19191 # Shared library suffix (normally ".so").
19192 shrext_cmds='$shrext_cmds'
19194 # Executable file suffix (normally "").
19197 # Additional compiler flags for building library objects.
19198 pic_flag=$lt_lt_prog_compiler_pic_RC
19201 # What is the maximum length of a command?
19202 max_cmd_len=$lt_cv_sys_max_cmd_len
19204 # Does compiler simultaneously support -c and -o options?
19205 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19207 # Must we lock files when doing compilation?
19208 need_locks=$lt_need_locks
19210 # Do we need the lib prefix for modules?
19211 need_lib_prefix=$need_lib_prefix
19213 # Do we need a version for libraries?
19214 need_version=$need_version
19216 # Whether dlopen is supported.
19217 dlopen_support=$enable_dlopen
19219 # Whether dlopen of programs is supported.
19220 dlopen_self=$enable_dlopen_self
19222 # Whether dlopen of statically linked programs is supported.
19223 dlopen_self_static=$enable_dlopen_self_static
19225 # Compiler flag to prevent dynamic linking.
19226 link_static_flag=$lt_lt_prog_compiler_static_RC
19228 # Compiler flag to turn off builtin functions.
19229 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19231 # Compiler flag to allow reflexive dlopens.
19232 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19234 # Compiler flag to generate shared objects directly from archives.
19235 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19237 # Compiler flag to generate thread-safe objects.
19238 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19240 # Library versioning type.
19241 version_type=$version_type
19243 # Format of library name prefix.
19244 libname_spec=$lt_libname_spec
19246 # List of archive names. First name is the real one, the rest are links.
19247 # The last name is the one that the linker finds with -lNAME.
19248 library_names_spec=$lt_library_names_spec
19250 # The coded name of the library, if different from the real name.
19251 soname_spec=$lt_soname_spec
19253 # Commands used to build and install an old-style archive.
19255 old_archive_cmds=$lt_old_archive_cmds_RC
19256 old_postinstall_cmds=$lt_old_postinstall_cmds
19257 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19259 # Create an old-style archive from a shared archive.
19260 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19262 # Create a temporary old-style archive to link instead of a shared archive.
19263 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19265 # Commands used to build and install a shared archive.
19266 archive_cmds=$lt_archive_cmds_RC
19267 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19268 postinstall_cmds=$lt_postinstall_cmds
19269 postuninstall_cmds=$lt_postuninstall_cmds
19271 # Commands used to build a loadable module (assumed same as above if empty)
19272 module_cmds=$lt_module_cmds_RC
19273 module_expsym_cmds=$lt_module_expsym_cmds_RC
19275 # Commands to strip libraries.
19276 old_striplib=$lt_old_striplib
19277 striplib=$lt_striplib
19279 # Dependencies to place before the objects being linked to create a
19281 predep_objects=$lt_predep_objects_RC
19283 # Dependencies to place after the objects being linked to create a
19285 postdep_objects=$lt_postdep_objects_RC
19287 # Dependencies to place before the objects being linked to create a
19289 predeps=$lt_predeps_RC
19291 # Dependencies to place after the objects being linked to create a
19293 postdeps=$lt_postdeps_RC
19295 # The directories searched by this compiler when creating a shared
19297 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19299 # The library search path used internally by the compiler when linking
19300 # a shared library.
19301 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19303 # Method to check whether dependent libraries are shared objects.
19304 deplibs_check_method=$lt_deplibs_check_method
19306 # Command to use when deplibs_check_method == file_magic.
19307 file_magic_cmd=$lt_file_magic_cmd
19309 # Flag that allows shared libraries with undefined symbols to be built.
19310 allow_undefined_flag=$lt_allow_undefined_flag_RC
19312 # Flag that forces no undefined symbols.
19313 no_undefined_flag=$lt_no_undefined_flag_RC
19315 # Commands used to finish a libtool library installation in a directory.
19316 finish_cmds=$lt_finish_cmds
19318 # Same as above, but a single script fragment to be evaled but not shown.
19319 finish_eval=$lt_finish_eval
19321 # Take the output of nm and produce a listing of raw symbols and C names.
19322 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19324 # Transform the output of nm in a proper C declaration
19325 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19327 # Transform the output of nm in a C name address pair
19328 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19330 # This is the shared library runtime path variable.
19331 runpath_var=$runpath_var
19333 # This is the shared library path variable.
19334 shlibpath_var=$shlibpath_var
19336 # Is shlibpath searched before the hard-coded library search path?
19337 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19339 # How to hardcode a shared library path into an executable.
19340 hardcode_action=$hardcode_action_RC
19342 # Whether we should hardcode library paths into libraries.
19343 hardcode_into_libs=$hardcode_into_libs
19345 # Flag to hardcode \$libdir into a binary during linking.
19346 # This must work even if \$libdir does not exist.
19347 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19349 # If ld is used when linking, flag to hardcode \$libdir into
19350 # a binary during linking. This must work even if \$libdir does
19352 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19354 # Whether we need a single -rpath flag with a separated argument.
19355 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19357 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19358 # resulting binary.
19359 hardcode_direct=$hardcode_direct_RC
19361 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19362 # resulting binary.
19363 hardcode_minus_L=$hardcode_minus_L_RC
19365 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19366 # the resulting binary.
19367 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19369 # Set to yes if building a shared library automatically hardcodes DIR into the library
19370 # and all subsequent libraries and executables linked against it.
19371 hardcode_automatic=$hardcode_automatic_RC
19373 # Variables whose values should be saved in libtool wrapper scripts and
19374 # restored at relink time.
19375 variables_saved_for_relink="$variables_saved_for_relink"
19377 # Whether libtool must link a program against all its dependency libraries.
19378 link_all_deplibs=$link_all_deplibs_RC
19380 # Compile-time system search path for libraries
19381 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19383 # Run-time system search path for libraries
19384 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19386 # Fix the shell variable \$srcfile for the compiler.
19387 fix_srcfile_path=$lt_fix_srcfile_path
19389 # Set to yes if exported symbols are required.
19390 always_export_symbols=$always_export_symbols_RC
19392 # The commands to list exported symbols.
19393 export_symbols_cmds=$lt_export_symbols_cmds_RC
19395 # The commands to extract the exported symbol list from a shared archive.
19396 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19398 # Symbols that should not be listed in the preloaded symbols.
19399 exclude_expsyms=$lt_exclude_expsyms_RC
19401 # Symbols that must always be exported.
19402 include_expsyms=$lt_include_expsyms_RC
19404 # ### END LIBTOOL TAG CONFIG: $tagname
19410 # If there is no Makefile yet, we rely on a make rule to execute
19411 # `config.status --recheck' to rerun these tests and create the
19412 # libtool script then.
19413 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19414 if test -f "$ltmain_in"; then
19415 test -f Makefile && make "$ltmain"
19421 ac_cpp='$CPP $CPPFLAGS'
19422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19431 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19432 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19433 { (exit 1); exit 1; }; }
19437 # Append the new tag name to the list of available tags.
19438 if test -n "$tagname" ; then
19439 available_tags="$available_tags $tagname"
19445 # Now substitute the updated list of available tags.
19446 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19447 mv "${ofile}T" "$ofile"
19451 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19452 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19453 { (exit 1); exit 1; }; }
19459 # This can be used to rebuild libtool when needed
19460 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19462 # Always use our own libtool.
19463 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19465 # Prevent multiple expansion
19486 # Find a good install program. We prefer a C program (faster),
19487 # so one script is as good as another. But avoid the broken or
19488 # incompatible versions:
19489 # SysV /etc/install, /usr/sbin/install
19490 # SunOS /usr/etc/install
19491 # IRIX /sbin/install
19493 # AmigaOS /C/install, which installs bootblocks on floppy discs
19494 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19495 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19496 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19497 # OS/2's system install, which has a completely different semantic
19498 # ./install, which can be erroneously created by make from ./install.sh.
19499 # Reject install programs that cannot install multiple files.
19500 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19501 $as_echo_n "checking for a BSD-compatible install... " >&6; }
19502 if test -z "$INSTALL"; then
19503 if test "${ac_cv_path_install+set}" = set; then
19504 $as_echo_n "(cached) " >&6
19506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19507 for as_dir in $PATH
19510 test -z "$as_dir" && as_dir=.
19511 # Account for people who put trailing slashes in PATH elements.
19513 ./ | .// | /cC/* | \
19514 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19515 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19518 # OSF1 and SCO ODT 3.0 have their own names for install.
19519 # Don't use installbsd from OSF since it installs stuff as root
19521 for ac_prog in ginstall scoinst install; do
19522 for ac_exec_ext in '' $ac_executable_extensions; do
19523 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19524 if test $ac_prog = install &&
19525 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19526 # AIX install. It has an incompatible calling convention.
19528 elif test $ac_prog = install &&
19529 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19530 # program-specific install script used by HP pwplus--don't use.
19533 rm -rf conftest.one conftest.two conftest.dir
19534 echo one > conftest.one
19535 echo two > conftest.two
19537 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
19538 test -s conftest.one && test -s conftest.two &&
19539 test -s conftest.dir/conftest.one &&
19540 test -s conftest.dir/conftest.two
19542 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19555 rm -rf conftest.one conftest.two conftest.dir
19558 if test "${ac_cv_path_install+set}" = set; then
19559 INSTALL=$ac_cv_path_install
19561 # As a last resort, use the slow shell script. Don't cache a
19562 # value for INSTALL within a source directory, because that will
19563 # break other packages using the cache if that directory is
19564 # removed, or if the value is a relative name.
19565 INSTALL=$ac_install_sh
19568 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
19569 $as_echo "$INSTALL" >&6; }
19571 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19572 # It thinks the first close brace ends the variable substitution.
19573 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19575 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19577 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19579 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
19580 $as_echo_n "checking whether ln -s works... " >&6; }
19582 if test "$LN_S" = "ln -s"; then
19583 { $as_echo "$as_me:$LINENO: result: yes" >&5
19584 $as_echo "yes" >&6; }
19586 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
19587 $as_echo "no, using $LN_S" >&6; }
19596 # Warn if the user specified libbind, which is now deprecated
19597 # Check whether --enable-libbind was given.
19598 if test "${enable_libbind+set}" = set; then
19599 enableval=$enable_libbind;
19603 case "$enable_libbind" in
19605 { { $as_echo "$as_me:$LINENO: error: 'libbind' is no longer part of the BIND 9 distribution.
19606 It is available from http://www.isc.org as a separate download." >&5
19607 $as_echo "$as_me: error: 'libbind' is no longer part of the BIND 9 distribution.
19608 It is available from http://www.isc.org as a separate download." >&2;}
19609 { (exit 1); exit 1; }; }
19616 # Make very sure that these are the first files processed by
19617 # config.status, since we use the processed output as the input for
19618 # AC_SUBST_FILE() substitutions in other files.
19620 ac_config_files="$ac_config_files make/rules make/includes"
19623 # Extract the first word of "ar", so it can be a program name with args.
19624 set dummy ar; ac_word=$2
19625 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19626 $as_echo_n "checking for $ac_word... " >&6; }
19627 if test "${ac_cv_path_AR+set}" = set; then
19628 $as_echo_n "(cached) " >&6
19632 ac_cv_path_AR="$AR" # Let the user override the test with a path.
19635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19636 for as_dir in $PATH
19639 test -z "$as_dir" && as_dir=.
19640 for ac_exec_ext in '' $ac_executable_extensions; do
19641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19642 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
19643 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19654 if test -n "$AR"; then
19655 { $as_echo "$as_me:$LINENO: result: $AR" >&5
19656 $as_echo "$AR" >&6; }
19658 { $as_echo "$as_me:$LINENO: result: no" >&5
19659 $as_echo "no" >&6; }
19667 # The POSIX ln(1) program. Non-POSIX systems may substitute
19668 # "copy" or something.
19674 { { $as_echo "$as_me:$LINENO: error:
19675 ar program not found. Please fix your PATH to include the directory in
19676 which ar resides, or set AR in the environment with the full path to ar.
19678 $as_echo "$as_me: error:
19679 ar program not found. Please fix your PATH to include the directory in
19680 which ar resides, or set AR in the environment with the full path to ar.
19682 { (exit 1); exit 1; }; }
19690 for ac_prog in etags emacs-etags
19692 # Extract the first word of "$ac_prog", so it can be a program name with args.
19693 set dummy $ac_prog; ac_word=$2
19694 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19695 $as_echo_n "checking for $ac_word... " >&6; }
19696 if test "${ac_cv_path_ETAGS+set}" = set; then
19697 $as_echo_n "(cached) " >&6
19701 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
19704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19705 for as_dir in $PATH
19708 test -z "$as_dir" && as_dir=.
19709 for ac_exec_ext in '' $ac_executable_extensions; do
19710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19711 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
19712 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19722 ETAGS=$ac_cv_path_ETAGS
19723 if test -n "$ETAGS"; then
19724 { $as_echo "$as_me:$LINENO: result: $ETAGS" >&5
19725 $as_echo "$ETAGS" >&6; }
19727 { $as_echo "$as_me:$LINENO: result: no" >&5
19728 $as_echo "no" >&6; }
19732 test -n "$ETAGS" && break
19737 # Some systems, e.g. RH7, have the Exuberant Ctags etags instead of
19738 # GNU emacs etags, and it requires the -L flag.
19740 if test "X$ETAGS" != "X"; then
19741 { $as_echo "$as_me:$LINENO: checking for Exuberant Ctags etags" >&5
19742 $as_echo_n "checking for Exuberant Ctags etags... " >&6; }
19743 if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then
19744 { $as_echo "$as_me:$LINENO: result: yes" >&5
19745 $as_echo "yes" >&6; }
19748 { $as_echo "$as_me:$LINENO: result: no" >&5
19749 $as_echo "no" >&6; }
19755 # Perl is optional; it is used only by some of the system test scripts.
19756 # Note: the backtrace feature (see below) uses perl to build the symbol table,
19757 # but it still compiles without perl, in which case an empty table will be used.
19759 for ac_prog in perl5 perl
19761 # Extract the first word of "$ac_prog", so it can be a program name with args.
19762 set dummy $ac_prog; ac_word=$2
19763 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19764 $as_echo_n "checking for $ac_word... " >&6; }
19765 if test "${ac_cv_path_PERL+set}" = set; then
19766 $as_echo_n "(cached) " >&6
19770 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19774 for as_dir in $PATH
19777 test -z "$as_dir" && as_dir=.
19778 for ac_exec_ext in '' $ac_executable_extensions; do
19779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19780 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19781 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19791 PERL=$ac_cv_path_PERL
19792 if test -n "$PERL"; then
19793 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
19794 $as_echo "$PERL" >&6; }
19796 { $as_echo "$as_me:$LINENO: result: no" >&5
19797 $as_echo "no" >&6; }
19801 test -n "$PERL" && break
19807 # Special processing of paths depending on whether --prefix,
19808 # --sysconfdir or --localstatedir arguments were given. What's
19809 # desired is some compatibility with the way previous versions
19810 # of BIND built; they defaulted to /usr/local for most parts of
19811 # the installation, but named.boot/named.conf was in /etc
19812 # and named.pid was in /var/run.
19814 # So ... if none of --prefix, --sysconfdir or --localstatedir are
19815 # specified, set things up that way. If --prefix is given, use
19816 # it for sysconfdir and localstatedir the way configure normally
19817 # would. To change the prefix for everything but leave named.conf
19818 # in /etc or named.pid in /var/run, then do this the usual configure way:
19819 # ./configure --prefix=/somewhere --sysconfdir=/etc
19820 # ./configure --prefix=/somewhere --localstatedir=/var
19822 # To put named.conf and named.pid in /usr/local with everything else,
19823 # set the prefix explicitly to /usr/local even though that's the default:
19824 # ./configure --prefix=/usr/local
19828 case "$sysconfdir" in
19833 case "$localstatedir" in
19842 # Make sure INSTALL uses an absolute path, else it will be wrong in all
19843 # Makefiles, since they use make/rules.in and INSTALL will be adjusted by
19844 # configure based on the location of the file where it is substituted.
19845 # Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
19846 # subdirectory of install-sh, This relative path will be wrong for all
19847 # directories more than one level down from install-sh.
19854 # Not all systems have dirname.
19857 ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
19860 ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
19861 test "$ac_dir" = "$ac_prog" && ac_dir=.
19862 test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
19863 INSTALL="$ac_dir/$ac_prog"
19868 # On these hosts, we really want to use cc, not gcc, even if it is
19869 # found. The gcc that these systems have will not correctly handle
19872 # However, if the user sets $CC to be something, let that override
19875 if test "X$CC" = "X" ; then
19881 # Use Sun's cc if it is available, but watch
19882 # out for /usr/ucb/cc; it will never be the right
19885 # If setting CC here fails, the AC_PROG_CC done
19886 # below might still find gcc.
19887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
19888 for ac_dir in $PATH; do
19889 test -z "$ac_dir" && ac_dir=.
19895 if test -f "$ac_dir/cc"; then
19914 ac_cpp='$CPP $CPPFLAGS'
19915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19918 if test -n "$ac_tool_prefix"; then
19919 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19920 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19921 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19922 $as_echo_n "checking for $ac_word... " >&6; }
19923 if test "${ac_cv_prog_CC+set}" = set; then
19924 $as_echo_n "(cached) " >&6
19926 if test -n "$CC"; then
19927 ac_cv_prog_CC="$CC" # Let the user override the test.
19929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19930 for as_dir in $PATH
19933 test -z "$as_dir" && as_dir=.
19934 for ac_exec_ext in '' $ac_executable_extensions; do
19935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19936 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19937 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19947 if test -n "$CC"; then
19948 { $as_echo "$as_me:$LINENO: result: $CC" >&5
19949 $as_echo "$CC" >&6; }
19951 { $as_echo "$as_me:$LINENO: result: no" >&5
19952 $as_echo "no" >&6; }
19957 if test -z "$ac_cv_prog_CC"; then
19959 # Extract the first word of "gcc", so it can be a program name with args.
19960 set dummy gcc; ac_word=$2
19961 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19962 $as_echo_n "checking for $ac_word... " >&6; }
19963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19964 $as_echo_n "(cached) " >&6
19966 if test -n "$ac_ct_CC"; then
19967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19970 for as_dir in $PATH
19973 test -z "$as_dir" && as_dir=.
19974 for ac_exec_ext in '' $ac_executable_extensions; do
19975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19976 ac_cv_prog_ac_ct_CC="gcc"
19977 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19987 if test -n "$ac_ct_CC"; then
19988 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19989 $as_echo "$ac_ct_CC" >&6; }
19991 { $as_echo "$as_me:$LINENO: result: no" >&5
19992 $as_echo "no" >&6; }
19995 if test "x$ac_ct_CC" = x; then
19998 case $cross_compiling:$ac_tool_warned in
20000 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20001 whose name does not start with the host triplet. If you think this
20002 configuration is useful to you, please write to autoconf@gnu.org." >&5
20003 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20004 whose name does not start with the host triplet. If you think this
20005 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20006 ac_tool_warned=yes ;;
20011 CC="$ac_cv_prog_CC"
20014 if test -z "$CC"; then
20015 if test -n "$ac_tool_prefix"; then
20016 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20017 set dummy ${ac_tool_prefix}cc; ac_word=$2
20018 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20019 $as_echo_n "checking for $ac_word... " >&6; }
20020 if test "${ac_cv_prog_CC+set}" = set; then
20021 $as_echo_n "(cached) " >&6
20023 if test -n "$CC"; then
20024 ac_cv_prog_CC="$CC" # Let the user override the test.
20026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20027 for as_dir in $PATH
20030 test -z "$as_dir" && as_dir=.
20031 for ac_exec_ext in '' $ac_executable_extensions; do
20032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20033 ac_cv_prog_CC="${ac_tool_prefix}cc"
20034 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20044 if test -n "$CC"; then
20045 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20046 $as_echo "$CC" >&6; }
20048 { $as_echo "$as_me:$LINENO: result: no" >&5
20049 $as_echo "no" >&6; }
20055 if test -z "$CC"; then
20056 # Extract the first word of "cc", so it can be a program name with args.
20057 set dummy cc; ac_word=$2
20058 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20059 $as_echo_n "checking for $ac_word... " >&6; }
20060 if test "${ac_cv_prog_CC+set}" = set; then
20061 $as_echo_n "(cached) " >&6
20063 if test -n "$CC"; then
20064 ac_cv_prog_CC="$CC" # Let the user override the test.
20066 ac_prog_rejected=no
20067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20068 for as_dir in $PATH
20071 test -z "$as_dir" && as_dir=.
20072 for ac_exec_ext in '' $ac_executable_extensions; do
20073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20074 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20075 ac_prog_rejected=yes
20079 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20086 if test $ac_prog_rejected = yes; then
20087 # We found a bogon in the path, so make sure we never use it.
20088 set dummy $ac_cv_prog_CC
20090 if test $# != 0; then
20091 # We chose a different compiler from the bogus one.
20092 # However, it has the same basename, so the bogon will be chosen
20093 # first if we set CC to just the basename; use the full file name.
20095 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20101 if test -n "$CC"; then
20102 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20103 $as_echo "$CC" >&6; }
20105 { $as_echo "$as_me:$LINENO: result: no" >&5
20106 $as_echo "no" >&6; }
20111 if test -z "$CC"; then
20112 if test -n "$ac_tool_prefix"; then
20113 for ac_prog in cl.exe
20115 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20116 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20117 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20118 $as_echo_n "checking for $ac_word... " >&6; }
20119 if test "${ac_cv_prog_CC+set}" = set; then
20120 $as_echo_n "(cached) " >&6
20122 if test -n "$CC"; then
20123 ac_cv_prog_CC="$CC" # Let the user override the test.
20125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20126 for as_dir in $PATH
20129 test -z "$as_dir" && as_dir=.
20130 for ac_exec_ext in '' $ac_executable_extensions; do
20131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20132 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20133 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20143 if test -n "$CC"; then
20144 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20145 $as_echo "$CC" >&6; }
20147 { $as_echo "$as_me:$LINENO: result: no" >&5
20148 $as_echo "no" >&6; }
20152 test -n "$CC" && break
20155 if test -z "$CC"; then
20157 for ac_prog in cl.exe
20159 # Extract the first word of "$ac_prog", so it can be a program name with args.
20160 set dummy $ac_prog; ac_word=$2
20161 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20162 $as_echo_n "checking for $ac_word... " >&6; }
20163 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20164 $as_echo_n "(cached) " >&6
20166 if test -n "$ac_ct_CC"; then
20167 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20170 for as_dir in $PATH
20173 test -z "$as_dir" && as_dir=.
20174 for ac_exec_ext in '' $ac_executable_extensions; do
20175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20176 ac_cv_prog_ac_ct_CC="$ac_prog"
20177 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20186 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20187 if test -n "$ac_ct_CC"; then
20188 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20189 $as_echo "$ac_ct_CC" >&6; }
20191 { $as_echo "$as_me:$LINENO: result: no" >&5
20192 $as_echo "no" >&6; }
20196 test -n "$ac_ct_CC" && break
20199 if test "x$ac_ct_CC" = x; then
20202 case $cross_compiling:$ac_tool_warned in
20204 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20205 whose name does not start with the host triplet. If you think this
20206 configuration is useful to you, please write to autoconf@gnu.org." >&5
20207 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20208 whose name does not start with the host triplet. If you think this
20209 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20210 ac_tool_warned=yes ;;
20219 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20220 See \`config.log' for more details." >&5
20221 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
20222 See \`config.log' for more details." >&2;}
20223 { (exit 1); exit 1; }; }
20225 # Provide some information about the compiler.
20226 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
20229 { (ac_try="$ac_compiler --version >&5"
20230 case "(($ac_try" in
20231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232 *) ac_try_echo=$ac_try;;
20234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20235 $as_echo "$ac_try_echo") >&5
20236 (eval "$ac_compiler --version >&5") 2>&5
20238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }
20240 { (ac_try="$ac_compiler -v >&5"
20241 case "(($ac_try" in
20242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20243 *) ac_try_echo=$ac_try;;
20245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20246 $as_echo "$ac_try_echo") >&5
20247 (eval "$ac_compiler -v >&5") 2>&5
20249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); }
20251 { (ac_try="$ac_compiler -V >&5"
20252 case "(($ac_try" in
20253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20254 *) ac_try_echo=$ac_try;;
20256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20257 $as_echo "$ac_try_echo") >&5
20258 (eval "$ac_compiler -V >&5") 2>&5
20260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); }
20263 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20264 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20265 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20266 $as_echo_n "(cached) " >&6
20268 cat >conftest.$ac_ext <<_ACEOF
20271 cat confdefs.h >>conftest.$ac_ext
20272 cat >>conftest.$ac_ext <<_ACEOF
20273 /* end confdefs.h. */
20286 rm -f conftest.$ac_objext
20287 if { (ac_try="$ac_compile"
20288 case "(($ac_try" in
20289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290 *) ac_try_echo=$ac_try;;
20292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20293 $as_echo "$ac_try_echo") >&5
20294 (eval "$ac_compile") 2>conftest.er1
20296 grep -v '^ *+' conftest.er1 >conftest.err
20298 cat conftest.err >&5
20299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); } && {
20301 test -z "$ac_c_werror_flag" ||
20302 test ! -s conftest.err
20303 } && test -s conftest.$ac_objext; then
20304 ac_compiler_gnu=yes
20306 $as_echo "$as_me: failed program was:" >&5
20307 sed 's/^/| /' conftest.$ac_ext >&5
20312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20313 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20316 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20317 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
20318 if test $ac_compiler_gnu = yes; then
20323 ac_test_CFLAGS=${CFLAGS+set}
20324 ac_save_CFLAGS=$CFLAGS
20325 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20326 $as_echo_n "checking whether $CC accepts -g... " >&6; }
20327 if test "${ac_cv_prog_cc_g+set}" = set; then
20328 $as_echo_n "(cached) " >&6
20330 ac_save_c_werror_flag=$ac_c_werror_flag
20331 ac_c_werror_flag=yes
20334 cat >conftest.$ac_ext <<_ACEOF
20337 cat confdefs.h >>conftest.$ac_ext
20338 cat >>conftest.$ac_ext <<_ACEOF
20339 /* end confdefs.h. */
20349 rm -f conftest.$ac_objext
20350 if { (ac_try="$ac_compile"
20351 case "(($ac_try" in
20352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20353 *) ac_try_echo=$ac_try;;
20355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20356 $as_echo "$ac_try_echo") >&5
20357 (eval "$ac_compile") 2>conftest.er1
20359 grep -v '^ *+' conftest.er1 >conftest.err
20361 cat conftest.err >&5
20362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } && {
20364 test -z "$ac_c_werror_flag" ||
20365 test ! -s conftest.err
20366 } && test -s conftest.$ac_objext; then
20367 ac_cv_prog_cc_g=yes
20369 $as_echo "$as_me: failed program was:" >&5
20370 sed 's/^/| /' conftest.$ac_ext >&5
20373 cat >conftest.$ac_ext <<_ACEOF
20376 cat confdefs.h >>conftest.$ac_ext
20377 cat >>conftest.$ac_ext <<_ACEOF
20378 /* end confdefs.h. */
20388 rm -f conftest.$ac_objext
20389 if { (ac_try="$ac_compile"
20390 case "(($ac_try" in
20391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20392 *) ac_try_echo=$ac_try;;
20394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20395 $as_echo "$ac_try_echo") >&5
20396 (eval "$ac_compile") 2>conftest.er1
20398 grep -v '^ *+' conftest.er1 >conftest.err
20400 cat conftest.err >&5
20401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); } && {
20403 test -z "$ac_c_werror_flag" ||
20404 test ! -s conftest.err
20405 } && test -s conftest.$ac_objext; then
20408 $as_echo "$as_me: failed program was:" >&5
20409 sed 's/^/| /' conftest.$ac_ext >&5
20411 ac_c_werror_flag=$ac_save_c_werror_flag
20413 cat >conftest.$ac_ext <<_ACEOF
20416 cat confdefs.h >>conftest.$ac_ext
20417 cat >>conftest.$ac_ext <<_ACEOF
20418 /* end confdefs.h. */
20428 rm -f conftest.$ac_objext
20429 if { (ac_try="$ac_compile"
20430 case "(($ac_try" in
20431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20432 *) ac_try_echo=$ac_try;;
20434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20435 $as_echo "$ac_try_echo") >&5
20436 (eval "$ac_compile") 2>conftest.er1
20438 grep -v '^ *+' conftest.er1 >conftest.err
20440 cat conftest.err >&5
20441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); } && {
20443 test -z "$ac_c_werror_flag" ||
20444 test ! -s conftest.err
20445 } && test -s conftest.$ac_objext; then
20446 ac_cv_prog_cc_g=yes
20448 $as_echo "$as_me: failed program was:" >&5
20449 sed 's/^/| /' conftest.$ac_ext >&5
20454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20461 ac_c_werror_flag=$ac_save_c_werror_flag
20463 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20464 $as_echo "$ac_cv_prog_cc_g" >&6; }
20465 if test "$ac_test_CFLAGS" = set; then
20466 CFLAGS=$ac_save_CFLAGS
20467 elif test $ac_cv_prog_cc_g = yes; then
20468 if test "$GCC" = yes; then
20474 if test "$GCC" = yes; then
20480 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20481 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20482 if test "${ac_cv_prog_cc_c89+set}" = set; then
20483 $as_echo_n "(cached) " >&6
20485 ac_cv_prog_cc_c89=no
20487 cat >conftest.$ac_ext <<_ACEOF
20490 cat confdefs.h >>conftest.$ac_ext
20491 cat >>conftest.$ac_ext <<_ACEOF
20492 /* end confdefs.h. */
20493 #include <stdarg.h>
20495 #include <sys/types.h>
20496 #include <sys/stat.h>
20497 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20498 struct buf { int x; };
20499 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20500 static char *e (p, i)
20506 static char *f (char * (*g) (char **, int), char **p, ...)
20511 s = g (p, va_arg (v,int));
20516 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20517 function prototypes and stuff, but not '\xHH' hex character constants.
20518 These don't provoke an error unfortunately, instead are silently treated
20519 as 'x'. The following induces an error, until -std is added to get
20520 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20521 array size at least. It's necessary to write '\x00'==0 to get something
20522 that's true only with -std. */
20523 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20525 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20526 inside strings and character constants. */
20528 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20530 int test (int i, double x);
20531 struct s1 {int (*f) (int a);};
20532 struct s2 {int (*f) (double a);};
20533 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20539 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20544 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20545 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20547 CC="$ac_save_CC $ac_arg"
20548 rm -f conftest.$ac_objext
20549 if { (ac_try="$ac_compile"
20550 case "(($ac_try" in
20551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20552 *) ac_try_echo=$ac_try;;
20554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20555 $as_echo "$ac_try_echo") >&5
20556 (eval "$ac_compile") 2>conftest.er1
20558 grep -v '^ *+' conftest.er1 >conftest.err
20560 cat conftest.err >&5
20561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); } && {
20563 test -z "$ac_c_werror_flag" ||
20564 test ! -s conftest.err
20565 } && test -s conftest.$ac_objext; then
20566 ac_cv_prog_cc_c89=$ac_arg
20568 $as_echo "$as_me: failed program was:" >&5
20569 sed 's/^/| /' conftest.$ac_ext >&5
20574 rm -f core conftest.err conftest.$ac_objext
20575 test "x$ac_cv_prog_cc_c89" != "xno" && break
20577 rm -f conftest.$ac_ext
20582 case "x$ac_cv_prog_cc_c89" in
20584 { $as_echo "$as_me:$LINENO: result: none needed" >&5
20585 $as_echo "none needed" >&6; } ;;
20587 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20588 $as_echo "unsupported" >&6; } ;;
20590 CC="$CC $ac_cv_prog_cc_c89"
20591 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20592 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20597 ac_cpp='$CPP $CPPFLAGS'
20598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20604 # gcc's optimiser is broken at -02 for ultrasparc
20606 if test "$ac_env_CFLAGS_set" != set -a "X$GCC" = "Xyes"; then
20615 # OS dependent CC flags
20618 # OSF 5.0: recv/send are only available with -D_POSIX_PII_SOCKET or
20619 # -D_XOPEN_SOURCE_EXTENDED.
20621 STD_CDEFINES="$STD_CDEFINES -D_POSIX_PII_SOCKET"
20622 CPPFLAGS="$CPPFLAGS -D_POSIX_PII_SOCKET"
20624 #HP-UX: need -D_XOPEN_SOURCE_EXTENDED and -lxnet for CMSG macros
20626 STD_CDEFINES="$STD_CDEFINES -D_XOPEN_SOURCE_EXTENDED"
20627 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
20628 LIBS="-lxnet $LIBS"
20630 # Solaris: need -D_XPG4_2 and -D__EXTENSIONS__ for CMSG macros
20632 STD_CDEFINES="$STD_CDEFINES -D_XPG4_2 -D__EXTENSIONS__"
20633 CPPFLAGS="$CPPFLAGS -D_XPG4_2 -D__EXTENSIONS__"
20635 # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides
20636 # parts of the IPv6 Advanced Socket API as a result. This is stupid
20637 # as it breaks how the two halves (Basic and Advanced) of the IPv6
20638 # Socket API were designed to be used but we have to live with it.
20639 # Define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
20641 STD_CDEFINES="$STD_CDEFINES -D_GNU_SOURCE"
20642 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20646 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20647 $as_echo_n "checking for ANSI C header files... " >&6; }
20648 if test "${ac_cv_header_stdc+set}" = set; then
20649 $as_echo_n "(cached) " >&6
20651 cat >conftest.$ac_ext <<_ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h. */
20657 #include <stdlib.h>
20658 #include <stdarg.h>
20659 #include <string.h>
20670 rm -f conftest.$ac_objext
20671 if { (ac_try="$ac_compile"
20672 case "(($ac_try" in
20673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20674 *) ac_try_echo=$ac_try;;
20676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20677 $as_echo "$ac_try_echo") >&5
20678 (eval "$ac_compile") 2>conftest.er1
20680 grep -v '^ *+' conftest.er1 >conftest.err
20682 cat conftest.err >&5
20683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); } && {
20685 test -z "$ac_c_werror_flag" ||
20686 test ! -s conftest.err
20687 } && test -s conftest.$ac_objext; then
20688 ac_cv_header_stdc=yes
20690 $as_echo "$as_me: failed program was:" >&5
20691 sed 's/^/| /' conftest.$ac_ext >&5
20693 ac_cv_header_stdc=no
20696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20698 if test $ac_cv_header_stdc = yes; then
20699 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20700 cat >conftest.$ac_ext <<_ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h. */
20706 #include <string.h>
20709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20710 $EGREP "memchr" >/dev/null 2>&1; then
20713 ac_cv_header_stdc=no
20719 if test $ac_cv_header_stdc = yes; then
20720 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20721 cat >conftest.$ac_ext <<_ACEOF
20724 cat confdefs.h >>conftest.$ac_ext
20725 cat >>conftest.$ac_ext <<_ACEOF
20726 /* end confdefs.h. */
20727 #include <stdlib.h>
20730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20731 $EGREP "free" >/dev/null 2>&1; then
20734 ac_cv_header_stdc=no
20740 if test $ac_cv_header_stdc = yes; then
20741 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20742 if test "$cross_compiling" = yes; then
20745 cat >conftest.$ac_ext <<_ACEOF
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h. */
20752 #include <stdlib.h>
20753 #if ((' ' & 0x0FF) == 0x020)
20754 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20755 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20757 # define ISLOWER(c) \
20758 (('a' <= (c) && (c) <= 'i') \
20759 || ('j' <= (c) && (c) <= 'r') \
20760 || ('s' <= (c) && (c) <= 'z'))
20761 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20764 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20769 for (i = 0; i < 256; i++)
20770 if (XOR (islower (i), ISLOWER (i))
20771 || toupper (i) != TOUPPER (i))
20776 rm -f conftest$ac_exeext
20777 if { (ac_try="$ac_link"
20778 case "(($ac_try" in
20779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20780 *) ac_try_echo=$ac_try;;
20782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20783 $as_echo "$ac_try_echo") >&5
20784 (eval "$ac_link") 2>&5
20786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20788 { (case "(($ac_try" in
20789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20790 *) ac_try_echo=$ac_try;;
20792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20793 $as_echo "$ac_try_echo") >&5
20794 (eval "$ac_try") 2>&5
20796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); }; }; then
20800 $as_echo "$as_me: program exited with status $ac_status" >&5
20801 $as_echo "$as_me: failed program was:" >&5
20802 sed 's/^/| /' conftest.$ac_ext >&5
20804 ( exit $ac_status )
20805 ac_cv_header_stdc=no
20807 rm -rf conftest.dSYM
20808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20814 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20815 $as_echo "$ac_cv_header_stdc" >&6; }
20816 if test $ac_cv_header_stdc = yes; then
20818 cat >>confdefs.h <<\_ACEOF
20819 #define STDC_HEADERS 1
20834 for ac_header in fcntl.h regex.h sys/time.h unistd.h sys/sockio.h sys/select.h sys/param.h sys/sysctl.h net/if6.h
20836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20837 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20838 $as_echo_n "checking for $ac_header... " >&6; }
20839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20840 $as_echo_n "(cached) " >&6
20842 cat >conftest.$ac_ext <<_ACEOF
20845 cat confdefs.h >>conftest.$ac_ext
20846 cat >>conftest.$ac_ext <<_ACEOF
20847 /* end confdefs.h. */
20848 $ac_includes_default
20849 #ifdef HAVE_SYS_PARAM_H
20850 # include <sys/param.h>
20854 #include <$ac_header>
20856 rm -f conftest.$ac_objext
20857 if { (ac_try="$ac_compile"
20858 case "(($ac_try" in
20859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860 *) ac_try_echo=$ac_try;;
20862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20863 $as_echo "$ac_try_echo") >&5
20864 (eval "$ac_compile") 2>conftest.er1
20866 grep -v '^ *+' conftest.er1 >conftest.err
20868 cat conftest.err >&5
20869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); } && {
20871 test -z "$ac_c_werror_flag" ||
20872 test ! -s conftest.err
20873 } && test -s conftest.$ac_objext; then
20874 eval "$as_ac_Header=yes"
20876 $as_echo "$as_me: failed program was:" >&5
20877 sed 's/^/| /' conftest.$ac_ext >&5
20879 eval "$as_ac_Header=no"
20882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20884 ac_res=`eval 'as_val=${'$as_ac_Header'}
20885 $as_echo "$as_val"'`
20886 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20887 $as_echo "$ac_res" >&6; }
20888 if test `eval 'as_val=${'$as_ac_Header'}
20889 $as_echo "$as_val"'` = yes; then
20890 cat >>confdefs.h <<_ACEOF
20891 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20899 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20900 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20901 if test "${ac_cv_c_const+set}" = set; then
20902 $as_echo_n "(cached) " >&6
20904 cat >conftest.$ac_ext <<_ACEOF
20907 cat confdefs.h >>conftest.$ac_ext
20908 cat >>conftest.$ac_ext <<_ACEOF
20909 /* end confdefs.h. */
20914 /* FIXME: Include the comments suggested by Paul. */
20915 #ifndef __cplusplus
20916 /* Ultrix mips cc rejects this. */
20917 typedef int charset[2];
20919 /* SunOS 4.1.1 cc rejects this. */
20920 char const *const *pcpcc;
20922 /* NEC SVR4.0.2 mips cc rejects this. */
20923 struct point {int x, y;};
20924 static struct point const zero = {0,0};
20925 /* AIX XL C 1.02.0.0 rejects this.
20926 It does not let you subtract one const X* pointer from another in
20927 an arm of an if-expression whose if-part is not a constant
20929 const char *g = "string";
20930 pcpcc = &g + (g ? g-g : 0);
20931 /* HPUX 7.0 cc rejects these. */
20933 ppc = (char**) pcpcc;
20934 pcpcc = (char const *const *) ppc;
20935 { /* SCO 3.2v4 cc rejects this. */
20937 char const *s = 0 ? (char *) 0 : (char const *) 0;
20942 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20943 int x[] = {25, 17};
20944 const int *foo = &x[0];
20947 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20948 typedef const int *iptr;
20952 { /* AIX XL C 1.02.0.0 rejects this saying
20953 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20954 struct s { int j; const int *ap[3]; };
20955 struct s *b; b->j = 5;
20957 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20958 const int foo = 10;
20959 if (!foo) return 0;
20961 return !cs[0] && !zero.x;
20968 rm -f conftest.$ac_objext
20969 if { (ac_try="$ac_compile"
20970 case "(($ac_try" in
20971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20972 *) ac_try_echo=$ac_try;;
20974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20975 $as_echo "$ac_try_echo") >&5
20976 (eval "$ac_compile") 2>conftest.er1
20978 grep -v '^ *+' conftest.er1 >conftest.err
20980 cat conftest.err >&5
20981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); } && {
20983 test -z "$ac_c_werror_flag" ||
20984 test ! -s conftest.err
20985 } && test -s conftest.$ac_objext; then
20988 $as_echo "$as_me: failed program was:" >&5
20989 sed 's/^/| /' conftest.$ac_ext >&5
20994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20996 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20997 $as_echo "$ac_cv_c_const" >&6; }
20998 if test $ac_cv_c_const = no; then
21000 cat >>confdefs.h <<\_ACEOF
21006 { $as_echo "$as_me:$LINENO: checking for inline" >&5
21007 $as_echo_n "checking for inline... " >&6; }
21008 if test "${ac_cv_c_inline+set}" = set; then
21009 $as_echo_n "(cached) " >&6
21012 for ac_kw in inline __inline__ __inline; do
21013 cat >conftest.$ac_ext <<_ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h. */
21019 #ifndef __cplusplus
21021 static $ac_kw foo_t static_foo () {return 0; }
21022 $ac_kw foo_t foo () {return 0; }
21026 rm -f conftest.$ac_objext
21027 if { (ac_try="$ac_compile"
21028 case "(($ac_try" in
21029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21030 *) ac_try_echo=$ac_try;;
21032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21033 $as_echo "$ac_try_echo") >&5
21034 (eval "$ac_compile") 2>conftest.er1
21036 grep -v '^ *+' conftest.er1 >conftest.err
21038 cat conftest.err >&5
21039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); } && {
21041 test -z "$ac_c_werror_flag" ||
21042 test ! -s conftest.err
21043 } && test -s conftest.$ac_objext; then
21044 ac_cv_c_inline=$ac_kw
21046 $as_echo "$as_me: failed program was:" >&5
21047 sed 's/^/| /' conftest.$ac_ext >&5
21052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21053 test "$ac_cv_c_inline" != no && break
21057 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21058 $as_echo "$ac_cv_c_inline" >&6; }
21061 case $ac_cv_c_inline in
21064 case $ac_cv_c_inline in
21066 *) ac_val=$ac_cv_c_inline;;
21068 cat >>confdefs.h <<_ACEOF
21069 #ifndef __cplusplus
21070 #define inline $ac_val
21076 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
21077 $as_echo_n "checking for working volatile... " >&6; }
21078 if test "${ac_cv_c_volatile+set}" = set; then
21079 $as_echo_n "(cached) " >&6
21081 cat >conftest.$ac_ext <<_ACEOF
21084 cat confdefs.h >>conftest.$ac_ext
21085 cat >>conftest.$ac_ext <<_ACEOF
21086 /* end confdefs.h. */
21093 int * volatile y = (int *) 0;
21099 rm -f conftest.$ac_objext
21100 if { (ac_try="$ac_compile"
21101 case "(($ac_try" in
21102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21103 *) ac_try_echo=$ac_try;;
21105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21106 $as_echo "$ac_try_echo") >&5
21107 (eval "$ac_compile") 2>conftest.er1
21109 grep -v '^ *+' conftest.er1 >conftest.err
21111 cat conftest.err >&5
21112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); } && {
21114 test -z "$ac_c_werror_flag" ||
21115 test ! -s conftest.err
21116 } && test -s conftest.$ac_objext; then
21117 ac_cv_c_volatile=yes
21119 $as_echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.$ac_ext >&5
21122 ac_cv_c_volatile=no
21125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21127 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
21128 $as_echo "$ac_cv_c_volatile" >&6; }
21129 if test $ac_cv_c_volatile = no; then
21131 cat >>confdefs.h <<\_ACEOF
21132 #define volatile /**/
21137 { $as_echo "$as_me:$LINENO: checking for sysctlbyname" >&5
21138 $as_echo_n "checking for sysctlbyname... " >&6; }
21139 if test "${ac_cv_func_sysctlbyname+set}" = set; then
21140 $as_echo_n "(cached) " >&6
21142 cat >conftest.$ac_ext <<_ACEOF
21145 cat confdefs.h >>conftest.$ac_ext
21146 cat >>conftest.$ac_ext <<_ACEOF
21147 /* end confdefs.h. */
21148 /* Define sysctlbyname to an innocuous variant, in case <limits.h> declares sysctlbyname.
21149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21150 #define sysctlbyname innocuous_sysctlbyname
21152 /* System header to define __stub macros and hopefully few prototypes,
21153 which can conflict with char sysctlbyname (); below.
21154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21155 <limits.h> exists even on freestanding compilers. */
21158 # include <limits.h>
21160 # include <assert.h>
21163 #undef sysctlbyname
21165 /* Override any GCC internal prototype to avoid an error.
21166 Use char because int might match the return type of a GCC
21167 builtin and then its argument prototype would still apply. */
21171 char sysctlbyname ();
21172 /* The GNU C library defines this for functions which it implements
21173 to always fail with ENOSYS. Some functions are actually named
21174 something starting with __ and the normal name is an alias. */
21175 #if defined __stub_sysctlbyname || defined __stub___sysctlbyname
21182 return sysctlbyname ();
21187 rm -f conftest.$ac_objext conftest$ac_exeext
21188 if { (ac_try="$ac_link"
21189 case "(($ac_try" in
21190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21191 *) ac_try_echo=$ac_try;;
21193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21194 $as_echo "$ac_try_echo") >&5
21195 (eval "$ac_link") 2>conftest.er1
21197 grep -v '^ *+' conftest.er1 >conftest.err
21199 cat conftest.err >&5
21200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); } && {
21202 test -z "$ac_c_werror_flag" ||
21203 test ! -s conftest.err
21204 } && test -s conftest$ac_exeext && {
21205 test "$cross_compiling" = yes ||
21206 $as_test_x conftest$ac_exeext
21208 ac_cv_func_sysctlbyname=yes
21210 $as_echo "$as_me: failed program was:" >&5
21211 sed 's/^/| /' conftest.$ac_ext >&5
21213 ac_cv_func_sysctlbyname=no
21216 rm -rf conftest.dSYM
21217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21218 conftest$ac_exeext conftest.$ac_ext
21220 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_sysctlbyname" >&5
21221 $as_echo "$ac_cv_func_sysctlbyname" >&6; }
21222 if test $ac_cv_func_sysctlbyname = yes; then
21223 cat >>confdefs.h <<\_ACEOF
21224 #define HAVE_SYSCTLBYNAME 1
21230 { $as_echo "$as_me:$LINENO: checking for flexible array members" >&5
21231 $as_echo_n "checking for flexible array members... " >&6; }
21232 if test "${ac_cv_c_flexmember+set}" = set; then
21233 $as_echo_n "(cached) " >&6
21235 cat >conftest.$ac_ext <<_ACEOF
21238 cat confdefs.h >>conftest.$ac_ext
21239 cat >>conftest.$ac_ext <<_ACEOF
21240 /* end confdefs.h. */
21241 #include <stdlib.h>
21243 #include <stddef.h>
21244 struct s { int n; double d[]; };
21248 int m = getchar ();
21249 struct s *p = malloc (offsetof (struct s, d)
21250 + m * sizeof (double));
21252 return p->d != (double *) NULL;
21257 rm -f conftest.$ac_objext
21258 if { (ac_try="$ac_compile"
21259 case "(($ac_try" in
21260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21261 *) ac_try_echo=$ac_try;;
21263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21264 $as_echo "$ac_try_echo") >&5
21265 (eval "$ac_compile") 2>conftest.er1
21267 grep -v '^ *+' conftest.er1 >conftest.err
21269 cat conftest.err >&5
21270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); } && {
21272 test -z "$ac_c_werror_flag" ||
21273 test ! -s conftest.err
21274 } && test -s conftest.$ac_objext; then
21275 ac_cv_c_flexmember=yes
21277 $as_echo "$as_me: failed program was:" >&5
21278 sed 's/^/| /' conftest.$ac_ext >&5
21280 ac_cv_c_flexmember=no
21283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21285 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
21286 $as_echo "$ac_cv_c_flexmember" >&6; }
21287 if test $ac_cv_c_flexmember = yes; then
21289 cat >>confdefs.h <<\_ACEOF
21290 #define FLEXIBLE_ARRAY_MEMBER /**/
21294 cat >>confdefs.h <<\_ACEOF
21295 #define FLEXIBLE_ARRAY_MEMBER 1
21302 # Older versions of HP/UX don't define seteuid() and setegid()
21306 for ac_func in seteuid setresuid
21308 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21309 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21310 $as_echo_n "checking for $ac_func... " >&6; }
21311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21312 $as_echo_n "(cached) " >&6
21314 cat >conftest.$ac_ext <<_ACEOF
21317 cat confdefs.h >>conftest.$ac_ext
21318 cat >>conftest.$ac_ext <<_ACEOF
21319 /* end confdefs.h. */
21320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21322 #define $ac_func innocuous_$ac_func
21324 /* System header to define __stub macros and hopefully few prototypes,
21325 which can conflict with char $ac_func (); below.
21326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21327 <limits.h> exists even on freestanding compilers. */
21330 # include <limits.h>
21332 # include <assert.h>
21337 /* Override any GCC internal prototype to avoid an error.
21338 Use char because int might match the return type of a GCC
21339 builtin and then its argument prototype would still apply. */
21344 /* The GNU C library defines this for functions which it implements
21345 to always fail with ENOSYS. Some functions are actually named
21346 something starting with __ and the normal name is an alias. */
21347 #if defined __stub_$ac_func || defined __stub___$ac_func
21354 return $ac_func ();
21359 rm -f conftest.$ac_objext conftest$ac_exeext
21360 if { (ac_try="$ac_link"
21361 case "(($ac_try" in
21362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21363 *) ac_try_echo=$ac_try;;
21365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21366 $as_echo "$ac_try_echo") >&5
21367 (eval "$ac_link") 2>conftest.er1
21369 grep -v '^ *+' conftest.er1 >conftest.err
21371 cat conftest.err >&5
21372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); } && {
21374 test -z "$ac_c_werror_flag" ||
21375 test ! -s conftest.err
21376 } && test -s conftest$ac_exeext && {
21377 test "$cross_compiling" = yes ||
21378 $as_test_x conftest$ac_exeext
21380 eval "$as_ac_var=yes"
21382 $as_echo "$as_me: failed program was:" >&5
21383 sed 's/^/| /' conftest.$ac_ext >&5
21385 eval "$as_ac_var=no"
21388 rm -rf conftest.dSYM
21389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21390 conftest$ac_exeext conftest.$ac_ext
21392 ac_res=`eval 'as_val=${'$as_ac_var'}
21393 $as_echo "$as_val"'`
21394 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21395 $as_echo "$ac_res" >&6; }
21396 if test `eval 'as_val=${'$as_ac_var'}
21397 $as_echo "$as_val"'` = yes; then
21398 cat >>confdefs.h <<_ACEOF
21399 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21407 for ac_func in setegid setresgid
21409 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21410 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21411 $as_echo_n "checking for $ac_func... " >&6; }
21412 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21413 $as_echo_n "(cached) " >&6
21415 cat >conftest.$ac_ext <<_ACEOF
21418 cat confdefs.h >>conftest.$ac_ext
21419 cat >>conftest.$ac_ext <<_ACEOF
21420 /* end confdefs.h. */
21421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21423 #define $ac_func innocuous_$ac_func
21425 /* System header to define __stub macros and hopefully few prototypes,
21426 which can conflict with char $ac_func (); below.
21427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21428 <limits.h> exists even on freestanding compilers. */
21431 # include <limits.h>
21433 # include <assert.h>
21438 /* Override any GCC internal prototype to avoid an error.
21439 Use char because int might match the return type of a GCC
21440 builtin and then its argument prototype would still apply. */
21445 /* The GNU C library defines this for functions which it implements
21446 to always fail with ENOSYS. Some functions are actually named
21447 something starting with __ and the normal name is an alias. */
21448 #if defined __stub_$ac_func || defined __stub___$ac_func
21455 return $ac_func ();
21460 rm -f conftest.$ac_objext conftest$ac_exeext
21461 if { (ac_try="$ac_link"
21462 case "(($ac_try" in
21463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21464 *) ac_try_echo=$ac_try;;
21466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21467 $as_echo "$ac_try_echo") >&5
21468 (eval "$ac_link") 2>conftest.er1
21470 grep -v '^ *+' conftest.er1 >conftest.err
21472 cat conftest.err >&5
21473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); } && {
21475 test -z "$ac_c_werror_flag" ||
21476 test ! -s conftest.err
21477 } && test -s conftest$ac_exeext && {
21478 test "$cross_compiling" = yes ||
21479 $as_test_x conftest$ac_exeext
21481 eval "$as_ac_var=yes"
21483 $as_echo "$as_me: failed program was:" >&5
21484 sed 's/^/| /' conftest.$ac_ext >&5
21486 eval "$as_ac_var=no"
21489 rm -rf conftest.dSYM
21490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21491 conftest$ac_exeext conftest.$ac_ext
21493 ac_res=`eval 'as_val=${'$as_ac_var'}
21494 $as_echo "$as_val"'`
21495 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21496 $as_echo "$ac_res" >&6; }
21497 if test `eval 'as_val=${'$as_ac_var'}
21498 $as_echo "$as_val"'` = yes; then
21499 cat >>confdefs.h <<_ACEOF
21500 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21508 # UnixWare 7.1.1 with the feature supplement to the UDK compiler
21509 # is reported to not support "static inline" (RT #1212).
21511 { $as_echo "$as_me:$LINENO: checking for static inline breakage" >&5
21512 $as_echo_n "checking for static inline breakage... " >&6; }
21513 cat >conftest.$ac_ext <<_ACEOF
21516 cat confdefs.h >>conftest.$ac_ext
21517 cat >>conftest.$ac_ext <<_ACEOF
21518 /* end confdefs.h. */
21527 static inline int foo1() {
21531 static inline int foo2() {
21538 rm -f conftest.$ac_objext
21539 if { (ac_try="$ac_compile"
21540 case "(($ac_try" in
21541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21542 *) ac_try_echo=$ac_try;;
21544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21545 $as_echo "$ac_try_echo") >&5
21546 (eval "$ac_compile") 2>conftest.er1
21548 grep -v '^ *+' conftest.er1 >conftest.err
21550 cat conftest.err >&5
21551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); } && {
21553 test -z "$ac_c_werror_flag" ||
21554 test ! -s conftest.err
21555 } && test -s conftest.$ac_objext; then
21556 { $as_echo "$as_me:$LINENO: result: no" >&5
21557 $as_echo "no" >&6; }
21559 $as_echo "$as_me: failed program was:" >&5
21560 sed 's/^/| /' conftest.$ac_ext >&5
21562 { $as_echo "$as_me:$LINENO: result: yes" >&5
21563 $as_echo "yes" >&6; }
21564 cat >>confdefs.h <<\_ACEOF
21565 #define inline /**/
21570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21572 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
21573 $as_echo_n "checking for size_t... " >&6; }
21574 if test "${ac_cv_type_size_t+set}" = set; then
21575 $as_echo_n "(cached) " >&6
21577 ac_cv_type_size_t=no
21578 cat >conftest.$ac_ext <<_ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h. */
21584 $ac_includes_default
21588 if (sizeof (size_t))
21594 rm -f conftest.$ac_objext
21595 if { (ac_try="$ac_compile"
21596 case "(($ac_try" in
21597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21598 *) ac_try_echo=$ac_try;;
21600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21601 $as_echo "$ac_try_echo") >&5
21602 (eval "$ac_compile") 2>conftest.er1
21604 grep -v '^ *+' conftest.er1 >conftest.err
21606 cat conftest.err >&5
21607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); } && {
21609 test -z "$ac_c_werror_flag" ||
21610 test ! -s conftest.err
21611 } && test -s conftest.$ac_objext; then
21612 cat >conftest.$ac_ext <<_ACEOF
21615 cat confdefs.h >>conftest.$ac_ext
21616 cat >>conftest.$ac_ext <<_ACEOF
21617 /* end confdefs.h. */
21618 $ac_includes_default
21622 if (sizeof ((size_t)))
21628 rm -f conftest.$ac_objext
21629 if { (ac_try="$ac_compile"
21630 case "(($ac_try" in
21631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21632 *) ac_try_echo=$ac_try;;
21634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21635 $as_echo "$ac_try_echo") >&5
21636 (eval "$ac_compile") 2>conftest.er1
21638 grep -v '^ *+' conftest.er1 >conftest.err
21640 cat conftest.err >&5
21641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); } && {
21643 test -z "$ac_c_werror_flag" ||
21644 test ! -s conftest.err
21645 } && test -s conftest.$ac_objext; then
21648 $as_echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21651 ac_cv_type_size_t=yes
21654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21656 $as_echo "$as_me: failed program was:" >&5
21657 sed 's/^/| /' conftest.$ac_ext >&5
21662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21664 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21665 $as_echo "$ac_cv_type_size_t" >&6; }
21666 if test $ac_cv_type_size_t = yes; then
21670 cat >>confdefs.h <<_ACEOF
21671 #define size_t unsigned int
21676 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
21677 $as_echo_n "checking for ssize_t... " >&6; }
21678 if test "${ac_cv_type_ssize_t+set}" = set; then
21679 $as_echo_n "(cached) " >&6
21681 ac_cv_type_ssize_t=no
21682 cat >conftest.$ac_ext <<_ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h. */
21688 $ac_includes_default
21692 if (sizeof (ssize_t))
21698 rm -f conftest.$ac_objext
21699 if { (ac_try="$ac_compile"
21700 case "(($ac_try" in
21701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21702 *) ac_try_echo=$ac_try;;
21704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21705 $as_echo "$ac_try_echo") >&5
21706 (eval "$ac_compile") 2>conftest.er1
21708 grep -v '^ *+' conftest.er1 >conftest.err
21710 cat conftest.err >&5
21711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); } && {
21713 test -z "$ac_c_werror_flag" ||
21714 test ! -s conftest.err
21715 } && test -s conftest.$ac_objext; then
21716 cat >conftest.$ac_ext <<_ACEOF
21719 cat confdefs.h >>conftest.$ac_ext
21720 cat >>conftest.$ac_ext <<_ACEOF
21721 /* end confdefs.h. */
21722 $ac_includes_default
21726 if (sizeof ((ssize_t)))
21732 rm -f conftest.$ac_objext
21733 if { (ac_try="$ac_compile"
21734 case "(($ac_try" in
21735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21736 *) ac_try_echo=$ac_try;;
21738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21739 $as_echo "$ac_try_echo") >&5
21740 (eval "$ac_compile") 2>conftest.er1
21742 grep -v '^ *+' conftest.er1 >conftest.err
21744 cat conftest.err >&5
21745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); } && {
21747 test -z "$ac_c_werror_flag" ||
21748 test ! -s conftest.err
21749 } && test -s conftest.$ac_objext; then
21752 $as_echo "$as_me: failed program was:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21755 ac_cv_type_ssize_t=yes
21758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21760 $as_echo "$as_me: failed program was:" >&5
21761 sed 's/^/| /' conftest.$ac_ext >&5
21766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21768 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
21769 $as_echo "$ac_cv_type_ssize_t" >&6; }
21770 if test $ac_cv_type_ssize_t = yes; then
21774 cat >>confdefs.h <<_ACEOF
21775 #define ssize_t int
21780 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
21781 $as_echo_n "checking for uintptr_t... " >&6; }
21782 if test "${ac_cv_type_uintptr_t+set}" = set; then
21783 $as_echo_n "(cached) " >&6
21785 ac_cv_type_uintptr_t=no
21786 cat >conftest.$ac_ext <<_ACEOF
21789 cat confdefs.h >>conftest.$ac_ext
21790 cat >>conftest.$ac_ext <<_ACEOF
21791 /* end confdefs.h. */
21792 $ac_includes_default
21796 if (sizeof (uintptr_t))
21802 rm -f conftest.$ac_objext
21803 if { (ac_try="$ac_compile"
21804 case "(($ac_try" in
21805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21806 *) ac_try_echo=$ac_try;;
21808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21809 $as_echo "$ac_try_echo") >&5
21810 (eval "$ac_compile") 2>conftest.er1
21812 grep -v '^ *+' conftest.er1 >conftest.err
21814 cat conftest.err >&5
21815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); } && {
21817 test -z "$ac_c_werror_flag" ||
21818 test ! -s conftest.err
21819 } && test -s conftest.$ac_objext; then
21820 cat >conftest.$ac_ext <<_ACEOF
21823 cat confdefs.h >>conftest.$ac_ext
21824 cat >>conftest.$ac_ext <<_ACEOF
21825 /* end confdefs.h. */
21826 $ac_includes_default
21830 if (sizeof ((uintptr_t)))
21836 rm -f conftest.$ac_objext
21837 if { (ac_try="$ac_compile"
21838 case "(($ac_try" in
21839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21840 *) ac_try_echo=$ac_try;;
21842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21843 $as_echo "$ac_try_echo") >&5
21844 (eval "$ac_compile") 2>conftest.er1
21846 grep -v '^ *+' conftest.er1 >conftest.err
21848 cat conftest.err >&5
21849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); } && {
21851 test -z "$ac_c_werror_flag" ||
21852 test ! -s conftest.err
21853 } && test -s conftest.$ac_objext; then
21856 $as_echo "$as_me: failed program was:" >&5
21857 sed 's/^/| /' conftest.$ac_ext >&5
21859 ac_cv_type_uintptr_t=yes
21862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21864 $as_echo "$as_me: failed program was:" >&5
21865 sed 's/^/| /' conftest.$ac_ext >&5
21870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21872 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
21873 $as_echo "$ac_cv_type_uintptr_t" >&6; }
21874 if test $ac_cv_type_uintptr_t = yes; then
21878 cat >>confdefs.h <<_ACEOF
21879 #define uintptr_t unsigned long
21884 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
21885 $as_echo_n "checking for socklen_t... " >&6; }
21886 if test "${ac_cv_type_socklen_t+set}" = set; then
21887 $as_echo_n "(cached) " >&6
21889 ac_cv_type_socklen_t=no
21890 cat >conftest.$ac_ext <<_ACEOF
21893 cat confdefs.h >>conftest.$ac_ext
21894 cat >>conftest.$ac_ext <<_ACEOF
21895 /* end confdefs.h. */
21897 #include <sys/types.h>
21898 #include <sys/socket.h>
21904 if (sizeof (socklen_t))
21910 rm -f conftest.$ac_objext
21911 if { (ac_try="$ac_compile"
21912 case "(($ac_try" in
21913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21914 *) ac_try_echo=$ac_try;;
21916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21917 $as_echo "$ac_try_echo") >&5
21918 (eval "$ac_compile") 2>conftest.er1
21920 grep -v '^ *+' conftest.er1 >conftest.err
21922 cat conftest.err >&5
21923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); } && {
21925 test -z "$ac_c_werror_flag" ||
21926 test ! -s conftest.err
21927 } && test -s conftest.$ac_objext; then
21928 cat >conftest.$ac_ext <<_ACEOF
21931 cat confdefs.h >>conftest.$ac_ext
21932 cat >>conftest.$ac_ext <<_ACEOF
21933 /* end confdefs.h. */
21935 #include <sys/types.h>
21936 #include <sys/socket.h>
21942 if (sizeof ((socklen_t)))
21948 rm -f conftest.$ac_objext
21949 if { (ac_try="$ac_compile"
21950 case "(($ac_try" in
21951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21952 *) ac_try_echo=$ac_try;;
21954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21955 $as_echo "$ac_try_echo") >&5
21956 (eval "$ac_compile") 2>conftest.er1
21958 grep -v '^ *+' conftest.er1 >conftest.err
21960 cat conftest.err >&5
21961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962 (exit $ac_status); } && {
21963 test -z "$ac_c_werror_flag" ||
21964 test ! -s conftest.err
21965 } && test -s conftest.$ac_objext; then
21968 $as_echo "$as_me: failed program was:" >&5
21969 sed 's/^/| /' conftest.$ac_ext >&5
21971 ac_cv_type_socklen_t=yes
21974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21976 $as_echo "$as_me: failed program was:" >&5
21977 sed 's/^/| /' conftest.$ac_ext >&5
21982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21984 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21985 $as_echo "$ac_cv_type_socklen_t" >&6; }
21986 if test $ac_cv_type_socklen_t = yes; then
21987 cat >>confdefs.h <<\_ACEOF
21988 #define ISC_SOCKADDR_LEN_T socklen_t
21993 cat >conftest.$ac_ext <<_ACEOF
21996 cat confdefs.h >>conftest.$ac_ext
21997 cat >>conftest.$ac_ext <<_ACEOF
21998 /* end confdefs.h. */
22000 #include <sys/types.h>
22001 #include <sys/socket.h>
22002 int getsockname(int, struct sockaddr *, size_t *);
22012 rm -f conftest.$ac_objext
22013 if { (ac_try="$ac_compile"
22014 case "(($ac_try" in
22015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22016 *) ac_try_echo=$ac_try;;
22018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22019 $as_echo "$ac_try_echo") >&5
22020 (eval "$ac_compile") 2>conftest.er1
22022 grep -v '^ *+' conftest.er1 >conftest.err
22024 cat conftest.err >&5
22025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 (exit $ac_status); } && {
22027 test -z "$ac_c_werror_flag" ||
22028 test ! -s conftest.err
22029 } && test -s conftest.$ac_objext; then
22030 cat >>confdefs.h <<\_ACEOF
22031 #define ISC_SOCKADDR_LEN_T size_t
22035 $as_echo "$as_me: failed program was:" >&5
22036 sed 's/^/| /' conftest.$ac_ext >&5
22038 cat >>confdefs.h <<\_ACEOF
22039 #define ISC_SOCKADDR_LEN_T int
22044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22049 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22050 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22051 if test "${ac_cv_header_time+set}" = set; then
22052 $as_echo_n "(cached) " >&6
22054 cat >conftest.$ac_ext <<_ACEOF
22057 cat confdefs.h >>conftest.$ac_ext
22058 cat >>conftest.$ac_ext <<_ACEOF
22059 /* end confdefs.h. */
22060 #include <sys/types.h>
22061 #include <sys/time.h>
22067 if ((struct tm *) 0)
22073 rm -f conftest.$ac_objext
22074 if { (ac_try="$ac_compile"
22075 case "(($ac_try" in
22076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22077 *) ac_try_echo=$ac_try;;
22079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22080 $as_echo "$ac_try_echo") >&5
22081 (eval "$ac_compile") 2>conftest.er1
22083 grep -v '^ *+' conftest.er1 >conftest.err
22085 cat conftest.err >&5
22086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); } && {
22088 test -z "$ac_c_werror_flag" ||
22089 test ! -s conftest.err
22090 } && test -s conftest.$ac_objext; then
22091 ac_cv_header_time=yes
22093 $as_echo "$as_me: failed program was:" >&5
22094 sed 's/^/| /' conftest.$ac_ext >&5
22096 ac_cv_header_time=no
22099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22101 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22102 $as_echo "$ac_cv_header_time" >&6; }
22103 if test $ac_cv_header_time = yes; then
22105 cat >>confdefs.h <<\_ACEOF
22106 #define TIME_WITH_SYS_TIME 1
22111 { $as_echo "$as_me:$LINENO: checking for long long" >&5
22112 $as_echo_n "checking for long long... " >&6; }
22113 cat >conftest.$ac_ext <<_ACEOF
22116 cat confdefs.h >>conftest.$ac_ext
22117 cat >>conftest.$ac_ext <<_ACEOF
22118 /* end confdefs.h. */
22123 long long i = 0; return (0);
22128 rm -f conftest.$ac_objext
22129 if { (ac_try="$ac_compile"
22130 case "(($ac_try" in
22131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22132 *) ac_try_echo=$ac_try;;
22134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22135 $as_echo "$ac_try_echo") >&5
22136 (eval "$ac_compile") 2>conftest.er1
22138 grep -v '^ *+' conftest.er1 >conftest.err
22140 cat conftest.err >&5
22141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142 (exit $ac_status); } && {
22143 test -z "$ac_c_werror_flag" ||
22144 test ! -s conftest.err
22145 } && test -s conftest.$ac_objext; then
22146 { $as_echo "$as_me:$LINENO: result: yes" >&5
22147 $as_echo "yes" >&6; }
22148 ISC_PLATFORM_HAVELONGLONG="#define ISC_PLATFORM_HAVELONGLONG 1"
22150 $as_echo "$as_me: failed program was:" >&5
22151 sed 's/^/| /' conftest.$ac_ext >&5
22153 { $as_echo "$as_me:$LINENO: result: no" >&5
22154 $as_echo "no" >&6; }
22155 ISC_PLATFORM_HAVELONGLONG="#undef ISC_PLATFORM_HAVELONGLONG"
22158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22162 # check for GCC noreturn attribute
22164 { $as_echo "$as_me:$LINENO: checking for GCC noreturn attribute" >&5
22165 $as_echo_n "checking for GCC noreturn attribute... " >&6; }
22166 cat >conftest.$ac_ext <<_ACEOF
22169 cat confdefs.h >>conftest.$ac_ext
22170 cat >>conftest.$ac_ext <<_ACEOF
22171 /* end confdefs.h. */
22176 void foo() __attribute__((noreturn));
22181 rm -f conftest.$ac_objext
22182 if { (ac_try="$ac_compile"
22183 case "(($ac_try" in
22184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22185 *) ac_try_echo=$ac_try;;
22187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22188 $as_echo "$ac_try_echo") >&5
22189 (eval "$ac_compile") 2>conftest.er1
22191 grep -v '^ *+' conftest.er1 >conftest.err
22193 cat conftest.err >&5
22194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195 (exit $ac_status); } && {
22196 test -z "$ac_c_werror_flag" ||
22197 test ! -s conftest.err
22198 } && test -s conftest.$ac_objext; then
22199 { $as_echo "$as_me:$LINENO: result: yes" >&5
22200 $as_echo "yes" >&6; }
22201 ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
22202 ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST __attribute__((noreturn))"
22204 $as_echo "$as_me: failed program was:" >&5
22205 sed 's/^/| /' conftest.$ac_ext >&5
22207 { $as_echo "$as_me:$LINENO: result: no" >&5
22208 $as_echo "no" >&6; }
22209 ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
22210 ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST"
22213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22218 # check if we have lifconf
22220 { $as_echo "$as_me:$LINENO: checking for struct lifconf" >&5
22221 $as_echo_n "checking for struct lifconf... " >&6; }
22222 cat >conftest.$ac_ext <<_ACEOF
22225 cat confdefs.h >>conftest.$ac_ext
22226 cat >>conftest.$ac_ext <<_ACEOF
22227 /* end confdefs.h. */
22229 #include <sys/types.h>
22230 #include <sys/socket.h>
22231 #include <net/if.h>
22237 struct lifconf lifconf;
22238 lifconf.lifc_len = 0;
22245 rm -f conftest.$ac_objext
22246 if { (ac_try="$ac_compile"
22247 case "(($ac_try" in
22248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22249 *) ac_try_echo=$ac_try;;
22251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22252 $as_echo "$ac_try_echo") >&5
22253 (eval "$ac_compile") 2>conftest.er1
22255 grep -v '^ *+' conftest.er1 >conftest.err
22257 cat conftest.err >&5
22258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259 (exit $ac_status); } && {
22260 test -z "$ac_c_werror_flag" ||
22261 test ! -s conftest.err
22262 } && test -s conftest.$ac_objext; then
22263 { $as_echo "$as_me:$LINENO: result: yes" >&5
22264 $as_echo "yes" >&6; }
22265 ISC_PLATFORM_HAVELIFCONF="#define ISC_PLATFORM_HAVELIFCONF 1"
22267 $as_echo "$as_me: failed program was:" >&5
22268 sed 's/^/| /' conftest.$ac_ext >&5
22270 { $as_echo "$as_me:$LINENO: result: no" >&5
22271 $as_echo "no" >&6; }
22272 ISC_PLATFORM_HAVELIFCONF="#undef ISC_PLATFORM_HAVELIFCONF"
22275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22279 # check if we have kqueue
22281 # Check whether --enable-kqueue was given.
22282 if test "${enable_kqueue+set}" = set; then
22283 enableval=$enable_kqueue; want_kqueue="$enableval"
22288 case $want_kqueue in
22290 { $as_echo "$as_me:$LINENO: checking for kqueue" >&5
22291 $as_echo_n "checking for kqueue... " >&6; }
22292 if test "${ac_cv_func_kqueue+set}" = set; then
22293 $as_echo_n "(cached) " >&6
22295 cat >conftest.$ac_ext <<_ACEOF
22298 cat confdefs.h >>conftest.$ac_ext
22299 cat >>conftest.$ac_ext <<_ACEOF
22300 /* end confdefs.h. */
22301 /* Define kqueue to an innocuous variant, in case <limits.h> declares kqueue.
22302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22303 #define kqueue innocuous_kqueue
22305 /* System header to define __stub macros and hopefully few prototypes,
22306 which can conflict with char kqueue (); below.
22307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22308 <limits.h> exists even on freestanding compilers. */
22311 # include <limits.h>
22313 # include <assert.h>
22318 /* Override any GCC internal prototype to avoid an error.
22319 Use char because int might match the return type of a GCC
22320 builtin and then its argument prototype would still apply. */
22325 /* The GNU C library defines this for functions which it implements
22326 to always fail with ENOSYS. Some functions are actually named
22327 something starting with __ and the normal name is an alias. */
22328 #if defined __stub_kqueue || defined __stub___kqueue
22340 rm -f conftest.$ac_objext conftest$ac_exeext
22341 if { (ac_try="$ac_link"
22342 case "(($ac_try" in
22343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22344 *) ac_try_echo=$ac_try;;
22346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22347 $as_echo "$ac_try_echo") >&5
22348 (eval "$ac_link") 2>conftest.er1
22350 grep -v '^ *+' conftest.er1 >conftest.err
22352 cat conftest.err >&5
22353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354 (exit $ac_status); } && {
22355 test -z "$ac_c_werror_flag" ||
22356 test ! -s conftest.err
22357 } && test -s conftest$ac_exeext && {
22358 test "$cross_compiling" = yes ||
22359 $as_test_x conftest$ac_exeext
22361 ac_cv_func_kqueue=yes
22363 $as_echo "$as_me: failed program was:" >&5
22364 sed 's/^/| /' conftest.$ac_ext >&5
22366 ac_cv_func_kqueue=no
22369 rm -rf conftest.dSYM
22370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22371 conftest$ac_exeext conftest.$ac_ext
22373 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_kqueue" >&5
22374 $as_echo "$ac_cv_func_kqueue" >&6; }
22375 if test $ac_cv_func_kqueue = yes; then
22376 ac_cv_have_kqueue=yes
22378 ac_cv_have_kqueue=no
22381 case $ac_cv_have_kqueue in
22383 ISC_PLATFORM_HAVEKQUEUE="#define ISC_PLATFORM_HAVEKQUEUE 1"
22386 ISC_PLATFORM_HAVEKQUEUE="#undef ISC_PLATFORM_HAVEKQUEUE"
22391 ISC_PLATFORM_HAVEKQUEUE="#undef ISC_PLATFORM_HAVEKQUEUE"
22397 # check if we have epoll. Linux kernel 2.4 has epoll_create() which fails,
22398 # so we need to try running the code, not just test its existence.
22400 # Check whether --enable-epoll was given.
22401 if test "${enable_epoll+set}" = set; then
22402 enableval=$enable_epoll; want_epoll="$enableval"
22407 case $want_epoll in
22409 { $as_echo "$as_me:$LINENO: checking epoll support" >&5
22410 $as_echo_n "checking epoll support... " >&6; }
22411 if test "$cross_compiling" = yes; then
22412 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22413 See \`config.log' for more details." >&5
22414 $as_echo "$as_me: error: cannot run test program while cross compiling
22415 See \`config.log' for more details." >&2;}
22416 { (exit 1); exit 1; }; }
22418 cat >conftest.$ac_ext <<_ACEOF
22421 cat confdefs.h >>conftest.$ac_ext
22422 cat >>conftest.$ac_ext <<_ACEOF
22423 /* end confdefs.h. */
22425 #include <sys/epoll.h>
22427 if (epoll_create(1) < 0)
22433 rm -f conftest$ac_exeext
22434 if { (ac_try="$ac_link"
22435 case "(($ac_try" in
22436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22437 *) ac_try_echo=$ac_try;;
22439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22440 $as_echo "$ac_try_echo") >&5
22441 (eval "$ac_link") 2>&5
22443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22445 { (case "(($ac_try" in
22446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22447 *) ac_try_echo=$ac_try;;
22449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22450 $as_echo "$ac_try_echo") >&5
22451 (eval "$ac_try") 2>&5
22453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); }; }; then
22455 { $as_echo "$as_me:$LINENO: result: yes" >&5
22456 $as_echo "yes" >&6; }
22457 ISC_PLATFORM_HAVEEPOLL="#define ISC_PLATFORM_HAVEEPOLL 1"
22459 $as_echo "$as_me: program exited with status $ac_status" >&5
22460 $as_echo "$as_me: failed program was:" >&5
22461 sed 's/^/| /' conftest.$ac_ext >&5
22463 ( exit $ac_status )
22464 { $as_echo "$as_me:$LINENO: result: no" >&5
22465 $as_echo "no" >&6; }
22466 ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL"
22468 rm -rf conftest.dSYM
22469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22475 ISC_PLATFORM_HAVEEPOLL="#define ISC_PLATFORM_HAVEEPOLL 1"
22478 ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL"
22484 # check if we support /dev/poll
22486 # Check whether --enable-devpoll was given.
22487 if test "${enable_devpoll+set}" = set; then
22488 enableval=$enable_devpoll; want_devpoll="$enableval"
22493 case $want_devpoll in
22496 for ac_header in sys/devpoll.h
22498 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22500 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22501 $as_echo_n "checking for $ac_header... " >&6; }
22502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22503 $as_echo_n "(cached) " >&6
22505 ac_res=`eval 'as_val=${'$as_ac_Header'}
22506 $as_echo "$as_val"'`
22507 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22508 $as_echo "$ac_res" >&6; }
22510 # Is the header compilable?
22511 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22512 $as_echo_n "checking $ac_header usability... " >&6; }
22513 cat >conftest.$ac_ext <<_ACEOF
22516 cat confdefs.h >>conftest.$ac_ext
22517 cat >>conftest.$ac_ext <<_ACEOF
22518 /* end confdefs.h. */
22519 $ac_includes_default
22520 #include <$ac_header>
22522 rm -f conftest.$ac_objext
22523 if { (ac_try="$ac_compile"
22524 case "(($ac_try" in
22525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526 *) ac_try_echo=$ac_try;;
22528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22529 $as_echo "$ac_try_echo") >&5
22530 (eval "$ac_compile") 2>conftest.er1
22532 grep -v '^ *+' conftest.er1 >conftest.err
22534 cat conftest.err >&5
22535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); } && {
22537 test -z "$ac_c_werror_flag" ||
22538 test ! -s conftest.err
22539 } && test -s conftest.$ac_objext; then
22540 ac_header_compiler=yes
22542 $as_echo "$as_me: failed program was:" >&5
22543 sed 's/^/| /' conftest.$ac_ext >&5
22545 ac_header_compiler=no
22548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22549 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22550 $as_echo "$ac_header_compiler" >&6; }
22552 # Is the header present?
22553 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22554 $as_echo_n "checking $ac_header presence... " >&6; }
22555 cat >conftest.$ac_ext <<_ACEOF
22558 cat confdefs.h >>conftest.$ac_ext
22559 cat >>conftest.$ac_ext <<_ACEOF
22560 /* end confdefs.h. */
22561 #include <$ac_header>
22563 if { (ac_try="$ac_cpp conftest.$ac_ext"
22564 case "(($ac_try" in
22565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22566 *) ac_try_echo=$ac_try;;
22568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22569 $as_echo "$ac_try_echo") >&5
22570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22572 grep -v '^ *+' conftest.er1 >conftest.err
22574 cat conftest.err >&5
22575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576 (exit $ac_status); } >/dev/null && {
22577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22578 test ! -s conftest.err
22580 ac_header_preproc=yes
22582 $as_echo "$as_me: failed program was:" >&5
22583 sed 's/^/| /' conftest.$ac_ext >&5
22585 ac_header_preproc=no
22588 rm -f conftest.err conftest.$ac_ext
22589 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22590 $as_echo "$ac_header_preproc" >&6; }
22592 # So? What about this header?
22593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22596 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22598 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22599 ac_header_preproc=yes
22602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22603 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22605 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22607 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22609 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22611 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22613 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22617 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22618 $as_echo_n "checking for $ac_header... " >&6; }
22619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22620 $as_echo_n "(cached) " >&6
22622 eval "$as_ac_Header=\$ac_header_preproc"
22624 ac_res=`eval 'as_val=${'$as_ac_Header'}
22625 $as_echo "$as_val"'`
22626 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22627 $as_echo "$ac_res" >&6; }
22630 if test `eval 'as_val=${'$as_ac_Header'}
22631 $as_echo "$as_val"'` = yes; then
22632 cat >>confdefs.h <<_ACEOF
22633 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22635 ISC_PLATFORM_HAVEDEVPOLL="#define ISC_PLATFORM_HAVEDEVPOLL 1"
22638 ISC_PLATFORM_HAVEDEVPOLL="#undef ISC_PLATFORM_HAVEDEVPOLL"
22646 ISC_PLATFORM_HAVEDEVPOLL="#undef ISC_PLATFORM_HAVEDEVPOLL"
22652 # check if we need to #include sys/select.h explicitly
22654 case $ac_cv_header_unistd_h in
22656 { $as_echo "$as_me:$LINENO: checking if unistd.h or sys/types.h defines fd_set" >&5
22657 $as_echo_n "checking if unistd.h or sys/types.h defines fd_set... " >&6; }
22658 cat >conftest.$ac_ext <<_ACEOF
22661 cat confdefs.h >>conftest.$ac_ext
22662 cat >>conftest.$ac_ext <<_ACEOF
22663 /* end confdefs.h. */
22665 #include <sys/types.h> /* Ultrix */
22666 #include <unistd.h>
22670 fd_set read_set; return (0);
22675 rm -f conftest.$ac_objext
22676 if { (ac_try="$ac_compile"
22677 case "(($ac_try" in
22678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22679 *) ac_try_echo=$ac_try;;
22681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22682 $as_echo "$ac_try_echo") >&5
22683 (eval "$ac_compile") 2>conftest.er1
22685 grep -v '^ *+' conftest.er1 >conftest.err
22687 cat conftest.err >&5
22688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689 (exit $ac_status); } && {
22690 test -z "$ac_c_werror_flag" ||
22691 test ! -s conftest.err
22692 } && test -s conftest.$ac_objext; then
22693 { $as_echo "$as_me:$LINENO: result: yes" >&5
22694 $as_echo "yes" >&6; }
22695 ISC_PLATFORM_NEEDSYSSELECTH="#undef ISC_PLATFORM_NEEDSYSSELECTH"
22696 LWRES_PLATFORM_NEEDSYSSELECTH="#undef LWRES_PLATFORM_NEEDSYSSELECTH"
22698 $as_echo "$as_me: failed program was:" >&5
22699 sed 's/^/| /' conftest.$ac_ext >&5
22701 { $as_echo "$as_me:$LINENO: result: no" >&5
22702 $as_echo "no" >&6; }
22703 case $ac_cv_header_sys_select_h in
22705 ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
22706 LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
22709 { { $as_echo "$as_me:$LINENO: error: need either working unistd.h or sys/select.h" >&5
22710 $as_echo "$as_me: error: need either working unistd.h or sys/select.h" >&2;}
22711 { (exit 1); exit 1; }; }
22717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22720 case $ac_cv_header_sys_select_h in
22722 ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
22723 LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
22726 { { $as_echo "$as_me:$LINENO: error: need either unistd.h or sys/select.h" >&5
22727 $as_echo "$as_me: error: need either unistd.h or sys/select.h" >&2;}
22728 { (exit 1); exit 1; }; }
22737 # Find the machine's endian flavor.
22740 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22741 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22742 if test "${ac_cv_c_bigendian+set}" = set; then
22743 $as_echo_n "(cached) " >&6
22745 ac_cv_c_bigendian=unknown
22746 # See if __BIG_ENDIAN__ or __LITTLE_ENDIAN__ is defined.
22747 cat >conftest.$ac_ext <<_ACEOF
22750 cat confdefs.h >>conftest.$ac_ext
22751 cat >>conftest.$ac_ext <<_ACEOF
22752 /* end confdefs.h. */
22753 #if ! (defined __BIG_ENDIAN__ || defined __LITTLE_ENDIAN__)
22754 neither is defined;
22759 rm -f conftest.$ac_objext
22760 if { (ac_try="$ac_compile"
22761 case "(($ac_try" in
22762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22763 *) ac_try_echo=$ac_try;;
22765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22766 $as_echo "$ac_try_echo") >&5
22767 (eval "$ac_compile") 2>conftest.er1
22769 grep -v '^ *+' conftest.er1 >conftest.err
22771 cat conftest.err >&5
22772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773 (exit $ac_status); } && {
22774 test -z "$ac_c_werror_flag" ||
22775 test ! -s conftest.err
22776 } && test -s conftest.$ac_objext; then
22777 ac_cv_c_bigendian=universal
22779 $as_echo "$as_me: failed program was:" >&5
22780 sed 's/^/| /' conftest.$ac_ext >&5
22785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22786 if test $ac_cv_c_bigendian = unknown; then
22787 # See if sys/param.h defines the BYTE_ORDER macro.
22788 cat >conftest.$ac_ext <<_ACEOF
22791 cat confdefs.h >>conftest.$ac_ext
22792 cat >>conftest.$ac_ext <<_ACEOF
22793 /* end confdefs.h. */
22794 #include <sys/types.h>
22795 #include <sys/param.h>
22800 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22801 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22803 bogus endian macros
22810 rm -f conftest.$ac_objext
22811 if { (ac_try="$ac_compile"
22812 case "(($ac_try" in
22813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22814 *) ac_try_echo=$ac_try;;
22816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22817 $as_echo "$ac_try_echo") >&5
22818 (eval "$ac_compile") 2>conftest.er1
22820 grep -v '^ *+' conftest.er1 >conftest.err
22822 cat conftest.err >&5
22823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824 (exit $ac_status); } && {
22825 test -z "$ac_c_werror_flag" ||
22826 test ! -s conftest.err
22827 } && test -s conftest.$ac_objext; then
22828 # It does; now see whether it defined to BIG_ENDIAN or not.
22829 cat >conftest.$ac_ext <<_ACEOF
22832 cat confdefs.h >>conftest.$ac_ext
22833 cat >>conftest.$ac_ext <<_ACEOF
22834 /* end confdefs.h. */
22835 #include <sys/types.h>
22836 #include <sys/param.h>
22841 #if BYTE_ORDER != BIG_ENDIAN
22849 rm -f conftest.$ac_objext
22850 if { (ac_try="$ac_compile"
22851 case "(($ac_try" in
22852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22853 *) ac_try_echo=$ac_try;;
22855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22856 $as_echo "$ac_try_echo") >&5
22857 (eval "$ac_compile") 2>conftest.er1
22859 grep -v '^ *+' conftest.er1 >conftest.err
22861 cat conftest.err >&5
22862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); } && {
22864 test -z "$ac_c_werror_flag" ||
22865 test ! -s conftest.err
22866 } && test -s conftest.$ac_objext; then
22867 ac_cv_c_bigendian=yes
22869 $as_echo "$as_me: failed program was:" >&5
22870 sed 's/^/| /' conftest.$ac_ext >&5
22872 ac_cv_c_bigendian=no
22875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22877 $as_echo "$as_me: failed program was:" >&5
22878 sed 's/^/| /' conftest.$ac_ext >&5
22883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22885 if test $ac_cv_c_bigendian = unknown; then
22886 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22887 cat >conftest.$ac_ext <<_ACEOF
22890 cat confdefs.h >>conftest.$ac_ext
22891 cat >>conftest.$ac_ext <<_ACEOF
22892 /* end confdefs.h. */
22893 #include <limits.h>
22898 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22899 bogus endian macros
22906 rm -f conftest.$ac_objext
22907 if { (ac_try="$ac_compile"
22908 case "(($ac_try" in
22909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22910 *) ac_try_echo=$ac_try;;
22912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22913 $as_echo "$ac_try_echo") >&5
22914 (eval "$ac_compile") 2>conftest.er1
22916 grep -v '^ *+' conftest.er1 >conftest.err
22918 cat conftest.err >&5
22919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920 (exit $ac_status); } && {
22921 test -z "$ac_c_werror_flag" ||
22922 test ! -s conftest.err
22923 } && test -s conftest.$ac_objext; then
22924 # It does; now see whether it defined to _BIG_ENDIAN or not.
22925 cat >conftest.$ac_ext <<_ACEOF
22928 cat confdefs.h >>conftest.$ac_ext
22929 cat >>conftest.$ac_ext <<_ACEOF
22930 /* end confdefs.h. */
22931 #include <limits.h>
22936 #ifndef _BIG_ENDIAN
22944 rm -f conftest.$ac_objext
22945 if { (ac_try="$ac_compile"
22946 case "(($ac_try" in
22947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22948 *) ac_try_echo=$ac_try;;
22950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22951 $as_echo "$ac_try_echo") >&5
22952 (eval "$ac_compile") 2>conftest.er1
22954 grep -v '^ *+' conftest.er1 >conftest.err
22956 cat conftest.err >&5
22957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958 (exit $ac_status); } && {
22959 test -z "$ac_c_werror_flag" ||
22960 test ! -s conftest.err
22961 } && test -s conftest.$ac_objext; then
22962 ac_cv_c_bigendian=yes
22964 $as_echo "$as_me: failed program was:" >&5
22965 sed 's/^/| /' conftest.$ac_ext >&5
22967 ac_cv_c_bigendian=no
22970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22972 $as_echo "$as_me: failed program was:" >&5
22973 sed 's/^/| /' conftest.$ac_ext >&5
22978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22980 if test $ac_cv_c_bigendian = unknown; then
22981 # Compile a test program.
22982 if test "$cross_compiling" = yes; then
22983 # Try to guess by grepping values from an object file.
22984 cat >conftest.$ac_ext <<_ACEOF
22987 cat confdefs.h >>conftest.$ac_ext
22988 cat >>conftest.$ac_ext <<_ACEOF
22989 /* end confdefs.h. */
22990 short int ascii_mm[] =
22991 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22992 short int ascii_ii[] =
22993 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22994 int use_ascii (int i) {
22995 return ascii_mm[i] + ascii_ii[i];
22997 short int ebcdic_ii[] =
22998 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22999 short int ebcdic_mm[] =
23000 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23001 int use_ebcdic (int i) {
23002 return ebcdic_mm[i] + ebcdic_ii[i];
23009 return use_ascii (foo) == use_ebcdic (foo);
23014 rm -f conftest.$ac_objext
23015 if { (ac_try="$ac_compile"
23016 case "(($ac_try" in
23017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23018 *) ac_try_echo=$ac_try;;
23020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23021 $as_echo "$ac_try_echo") >&5
23022 (eval "$ac_compile") 2>conftest.er1
23024 grep -v '^ *+' conftest.er1 >conftest.err
23026 cat conftest.err >&5
23027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); } && {
23029 test -z "$ac_c_werror_flag" ||
23030 test ! -s conftest.err
23031 } && test -s conftest.$ac_objext; then
23032 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23033 ac_cv_c_bigendian=yes
23035 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23036 if test "$ac_cv_c_bigendian" = unknown; then
23037 ac_cv_c_bigendian=no
23039 # finding both strings is unlikely to happen, but who knows?
23040 ac_cv_c_bigendian=unknown
23044 $as_echo "$as_me: failed program was:" >&5
23045 sed 's/^/| /' conftest.$ac_ext >&5
23050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23052 cat >conftest.$ac_ext <<_ACEOF
23055 cat confdefs.h >>conftest.$ac_ext
23056 cat >>conftest.$ac_ext <<_ACEOF
23057 /* end confdefs.h. */
23058 $ac_includes_default
23063 /* Are we little or big endian? From Harbison&Steele. */
23067 char c[sizeof (long int)];
23070 return u.c[sizeof (long int) - 1] == 1;
23076 rm -f conftest$ac_exeext
23077 if { (ac_try="$ac_link"
23078 case "(($ac_try" in
23079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23080 *) ac_try_echo=$ac_try;;
23082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23083 $as_echo "$ac_try_echo") >&5
23084 (eval "$ac_link") 2>&5
23086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23088 { (case "(($ac_try" in
23089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23090 *) ac_try_echo=$ac_try;;
23092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23093 $as_echo "$ac_try_echo") >&5
23094 (eval "$ac_try") 2>&5
23096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097 (exit $ac_status); }; }; then
23098 ac_cv_c_bigendian=no
23100 $as_echo "$as_me: program exited with status $ac_status" >&5
23101 $as_echo "$as_me: failed program was:" >&5
23102 sed 's/^/| /' conftest.$ac_ext >&5
23104 ( exit $ac_status )
23105 ac_cv_c_bigendian=yes
23107 rm -rf conftest.dSYM
23108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23114 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23115 $as_echo "$ac_cv_c_bigendian" >&6; }
23116 case $ac_cv_c_bigendian in #(
23118 cat >>confdefs.h <<\_ACEOF
23119 #define WORDS_BIGENDIAN 1
23127 { { $as_echo "$as_me:$LINENO: error: unknown endianness
23128 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23129 $as_echo "$as_me: error: unknown endianness
23130 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23131 { (exit 1); exit 1; }; } ;;
23137 # was --with-openssl specified?
23140 { $as_echo "$as_me:$LINENO: checking for OpenSSL library" >&5
23141 $as_echo_n "checking for OpenSSL library... " >&6; }
23143 # Check whether --with-openssl was given.
23144 if test "${with_openssl+set}" = set; then
23145 withval=$with_openssl; use_openssl="$withval"
23151 openssldirs="/usr /usr/local /usr/local/ssl /usr/pkg /usr/sfw"
23152 if test "$use_openssl" = "auto"
23154 for d in $openssldirs
23156 if test -f $d/include/openssl/opensslv.h
23163 case "$use_openssl" in
23165 { $as_echo "$as_me:$LINENO: result: no" >&5
23166 $as_echo "no" >&6; }
23173 { { $as_echo "$as_me:$LINENO: error: OpenSSL was not found in any of $openssldirs; use --with-openssl=/path
23174 If you don't want OpenSSL, use --without-openssl" >&5
23175 $as_echo "$as_me: error: OpenSSL was not found in any of $openssldirs; use --with-openssl=/path
23176 If you don't want OpenSSL, use --without-openssl" >&2;}
23177 { (exit 1); exit 1; }; }
23180 if test "$use_openssl" = "yes"
23182 # User did not specify a path - guess it
23183 for d in $openssldirs
23185 if test -f $d/include/openssl/opensslv.h
23191 if test "$use_openssl" = "yes"
23193 { $as_echo "$as_me:$LINENO: result: not found" >&5
23194 $as_echo "not found" >&6; }
23195 { { $as_echo "$as_me:$LINENO: error: OpenSSL was not found in any of $openssldirs; use --with-openssl=/path" >&5
23196 $as_echo "$as_me: error: OpenSSL was not found in any of $openssldirs; use --with-openssl=/path" >&2;}
23197 { (exit 1); exit 1; }; }
23199 elif ! test -f "$use_openssl"/include/openssl/opensslv.h
23201 { { $as_echo "$as_me:$LINENO: error: \"$use_openssl/include/openssl/opensslv.h\" not found" >&5
23202 $as_echo "$as_me: error: \"$use_openssl/include/openssl/opensslv.h\" not found" >&2;}
23203 { (exit 1); exit 1; }; }
23205 USE_OPENSSL='-DOPENSSL'
23206 if test "$use_openssl" = "/usr"
23209 DNS_OPENSSL_LIBS="-lcrypto"
23211 DST_OPENSSL_INC="-I$use_openssl/include"
23214 DNS_OPENSSL_LIBS="-L$use_openssl/lib -R$use_openssl/lib -lcrypto"
23217 DNS_OPENSSL_LIBS="-L$use_openssl/lib -Wl,+b: -lcrypto"
23221 # Apple's ld seaches for serially for dynamic
23222 # then static libraries. This means you can't
23223 # use -L to override dynamic system libraries
23224 # with static ones when linking. Instead
23225 # we specify a absolute path.
23227 if test -f "$use_openssl/lib/libcrypto.dylib"
23229 DNS_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto"
23231 DNS_OPENSSL_LIBS="$use_openssl/lib/libcrypto.a"
23235 DNS_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto"
23239 { $as_echo "$as_me:$LINENO: result: using OpenSSL from $use_openssl/lib and $use_openssl/include" >&5
23240 $as_echo "using OpenSSL from $use_openssl/lib and $use_openssl/include" >&6; }
23242 saved_cflags="$CFLAGS"
23244 CFLAGS="$CFLAGS $DST_OPENSSL_INC"
23245 LIBS="$LIBS $DNS_OPENSSL_LIBS"
23246 { $as_echo "$as_me:$LINENO: checking whether linking with OpenSSL works" >&5
23247 $as_echo_n "checking whether linking with OpenSSL works... " >&6; }
23248 if test "$cross_compiling" = yes; then
23249 { $as_echo "$as_me:$LINENO: result: assuming it does work on target platform" >&5
23250 $as_echo "assuming it does work on target platform" >&6; }
23252 cat >conftest.$ac_ext <<_ACEOF
23255 cat confdefs.h >>conftest.$ac_ext
23256 cat >>conftest.$ac_ext <<_ACEOF
23257 /* end confdefs.h. */
23259 #include <openssl/err.h>
23266 rm -f conftest$ac_exeext
23267 if { (ac_try="$ac_link"
23268 case "(($ac_try" in
23269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23270 *) ac_try_echo=$ac_try;;
23272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23273 $as_echo "$ac_try_echo") >&5
23274 (eval "$ac_link") 2>&5
23276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23278 { (case "(($ac_try" in
23279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23280 *) ac_try_echo=$ac_try;;
23282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23283 $as_echo "$ac_try_echo") >&5
23284 (eval "$ac_try") 2>&5
23286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287 (exit $ac_status); }; }; then
23288 { $as_echo "$as_me:$LINENO: result: yes" >&5
23289 $as_echo "yes" >&6; }
23291 $as_echo "$as_me: program exited with status $ac_status" >&5
23292 $as_echo "$as_me: failed program was:" >&5
23293 sed 's/^/| /' conftest.$ac_ext >&5
23295 ( exit $ac_status )
23296 { $as_echo "$as_me:$LINENO: result: no" >&5
23297 $as_echo "no" >&6; }
23298 { { $as_echo "$as_me:$LINENO: error: Could not run test program using OpenSSL from
23299 $use_openssl/lib and $use_openssl/include.
23300 Please check the argument to --with-openssl and your
23301 shared library configuration (e.g., LD_LIBRARY_PATH)." >&5
23302 $as_echo "$as_me: error: Could not run test program using OpenSSL from
23303 $use_openssl/lib and $use_openssl/include.
23304 Please check the argument to --with-openssl and your
23305 shared library configuration (e.g., LD_LIBRARY_PATH)." >&2;}
23306 { (exit 1); exit 1; }; }
23308 rm -rf conftest.dSYM
23309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23314 { $as_echo "$as_me:$LINENO: checking whether linking with OpenSSL requires -ldl" >&5
23315 $as_echo_n "checking whether linking with OpenSSL requires -ldl... " >&6; }
23316 cat >conftest.$ac_ext <<_ACEOF
23319 cat confdefs.h >>conftest.$ac_ext
23320 cat >>conftest.$ac_ext <<_ACEOF
23321 /* end confdefs.h. */
23323 #include <openssl/err.h>
23327 DSO_METHOD_dlfcn();
23332 rm -f conftest.$ac_objext conftest$ac_exeext
23333 if { (ac_try="$ac_link"
23334 case "(($ac_try" in
23335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23336 *) ac_try_echo=$ac_try;;
23338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23339 $as_echo "$ac_try_echo") >&5
23340 (eval "$ac_link") 2>conftest.er1
23342 grep -v '^ *+' conftest.er1 >conftest.err
23344 cat conftest.err >&5
23345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346 (exit $ac_status); } && {
23347 test -z "$ac_c_werror_flag" ||
23348 test ! -s conftest.err
23349 } && test -s conftest$ac_exeext && {
23350 test "$cross_compiling" = yes ||
23351 $as_test_x conftest$ac_exeext
23353 { $as_echo "$as_me:$LINENO: result: no" >&5
23354 $as_echo "no" >&6; }
23356 $as_echo "$as_me: failed program was:" >&5
23357 sed 's/^/| /' conftest.$ac_ext >&5
23360 cat >conftest.$ac_ext <<_ACEOF
23363 cat confdefs.h >>conftest.$ac_ext
23364 cat >>conftest.$ac_ext <<_ACEOF
23365 /* end confdefs.h. */
23367 #include <openssl/err.h>
23372 DSO_METHOD_dlfcn();
23377 rm -f conftest.$ac_objext conftest$ac_exeext
23378 if { (ac_try="$ac_link"
23379 case "(($ac_try" in
23380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23381 *) ac_try_echo=$ac_try;;
23383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23384 $as_echo "$ac_try_echo") >&5
23385 (eval "$ac_link") 2>conftest.er1
23387 grep -v '^ *+' conftest.er1 >conftest.err
23389 cat conftest.err >&5
23390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391 (exit $ac_status); } && {
23392 test -z "$ac_c_werror_flag" ||
23393 test ! -s conftest.err
23394 } && test -s conftest$ac_exeext && {
23395 test "$cross_compiling" = yes ||
23396 $as_test_x conftest$ac_exeext
23398 { $as_echo "$as_me:$LINENO: result: yes" >&5
23399 $as_echo "yes" >&6; }
23400 DNS_OPENSSL_LIBS="$DNS_OPENSSL_LIBS -ldl"
23403 $as_echo "$as_me: failed program was:" >&5
23404 sed 's/^/| /' conftest.$ac_ext >&5
23406 { $as_echo "$as_me:$LINENO: result: unknown" >&5
23407 $as_echo "unknown" >&6; }
23408 { { $as_echo "$as_me:$LINENO: error: OpenSSL has unsupported dynamic loading" >&5
23409 $as_echo "$as_me: error: OpenSSL has unsupported dynamic loading" >&2;}
23410 { (exit 1); exit 1; }; }
23413 rm -rf conftest.dSYM
23414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23415 conftest$ac_exeext conftest.$ac_ext
23419 rm -rf conftest.dSYM
23420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23421 conftest$ac_exeext conftest.$ac_ext
23423 # Check whether --enable-openssl-version-check was given.
23424 if test "${enable_openssl_version_check+set}" = set; then
23425 enableval=$enable_openssl_version_check;
23428 case "$enable_openssl_version_check" in
23430 { $as_echo "$as_me:$LINENO: checking OpenSSL library version" >&5
23431 $as_echo_n "checking OpenSSL library version... " >&6; }
23432 if test "$cross_compiling" = yes; then
23433 { $as_echo "$as_me:$LINENO: result: assuming target platform has compatible version" >&5
23434 $as_echo "assuming target platform has compatible version" >&6; }
23436 cat >conftest.$ac_ext <<_ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h. */
23444 #include <openssl/opensslv.h>
23446 if ((OPENSSL_VERSION_NUMBER >= 0x009070cfL &&
23447 OPENSSL_VERSION_NUMBER < 0x00908000L) ||
23448 OPENSSL_VERSION_NUMBER >= 0x0090804fL)
23450 printf("\n\nFound OPENSSL_VERSION_NUMBER %#010x\n",
23451 OPENSSL_VERSION_NUMBER);
23452 printf("Require OPENSSL_VERSION_NUMBER 0x009070cf or greater (0.9.7l)\n"
23453 "Require OPENSSL_VERSION_NUMBER 0x0090804f or greater (0.9.8d)\n\n");
23458 rm -f conftest$ac_exeext
23459 if { (ac_try="$ac_link"
23460 case "(($ac_try" in
23461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23462 *) ac_try_echo=$ac_try;;
23464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23465 $as_echo "$ac_try_echo") >&5
23466 (eval "$ac_link") 2>&5
23468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23470 { (case "(($ac_try" in
23471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23472 *) ac_try_echo=$ac_try;;
23474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23475 $as_echo "$ac_try_echo") >&5
23476 (eval "$ac_try") 2>&5
23478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); }; }; then
23480 { $as_echo "$as_me:$LINENO: result: ok" >&5
23481 $as_echo "ok" >&6; }
23483 $as_echo "$as_me: program exited with status $ac_status" >&5
23484 $as_echo "$as_me: failed program was:" >&5
23485 sed 's/^/| /' conftest.$ac_ext >&5
23487 ( exit $ac_status )
23488 { $as_echo "$as_me:$LINENO: result: not compatible" >&5
23489 $as_echo "not compatible" >&6; }
23490 OPENSSL_WARNING=yes
23493 rm -rf conftest.dSYM
23494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23500 { $as_echo "$as_me:$LINENO: result: Skipped OpenSSL version check" >&5
23501 $as_echo "Skipped OpenSSL version check" >&6; }
23505 { $as_echo "$as_me:$LINENO: checking for OpenSSL DSA support" >&5
23506 $as_echo_n "checking for OpenSSL DSA support... " >&6; }
23507 if test -f $use_openssl/include/openssl/dsa.h
23509 cat >>confdefs.h <<\_ACEOF
23510 #define HAVE_OPENSSL_DSA 1
23513 { $as_echo "$as_me:$LINENO: result: yes" >&5
23514 $as_echo "yes" >&6; }
23516 { $as_echo "$as_me:$LINENO: result: no" >&5
23517 $as_echo "no" >&6; }
23521 for ac_func in EVP_sha256 EVP_sha512
23523 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23524 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23525 $as_echo_n "checking for $ac_func... " >&6; }
23526 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23527 $as_echo_n "(cached) " >&6
23529 cat >conftest.$ac_ext <<_ACEOF
23532 cat confdefs.h >>conftest.$ac_ext
23533 cat >>conftest.$ac_ext <<_ACEOF
23534 /* end confdefs.h. */
23535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23537 #define $ac_func innocuous_$ac_func
23539 /* System header to define __stub macros and hopefully few prototypes,
23540 which can conflict with char $ac_func (); below.
23541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23542 <limits.h> exists even on freestanding compilers. */
23545 # include <limits.h>
23547 # include <assert.h>
23552 /* Override any GCC internal prototype to avoid an error.
23553 Use char because int might match the return type of a GCC
23554 builtin and then its argument prototype would still apply. */
23559 /* The GNU C library defines this for functions which it implements
23560 to always fail with ENOSYS. Some functions are actually named
23561 something starting with __ and the normal name is an alias. */
23562 #if defined __stub_$ac_func || defined __stub___$ac_func
23569 return $ac_func ();
23574 rm -f conftest.$ac_objext conftest$ac_exeext
23575 if { (ac_try="$ac_link"
23576 case "(($ac_try" in
23577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23578 *) ac_try_echo=$ac_try;;
23580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23581 $as_echo "$ac_try_echo") >&5
23582 (eval "$ac_link") 2>conftest.er1
23584 grep -v '^ *+' conftest.er1 >conftest.err
23586 cat conftest.err >&5
23587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588 (exit $ac_status); } && {
23589 test -z "$ac_c_werror_flag" ||
23590 test ! -s conftest.err
23591 } && test -s conftest$ac_exeext && {
23592 test "$cross_compiling" = yes ||
23593 $as_test_x conftest$ac_exeext
23595 eval "$as_ac_var=yes"
23597 $as_echo "$as_me: failed program was:" >&5
23598 sed 's/^/| /' conftest.$ac_ext >&5
23600 eval "$as_ac_var=no"
23603 rm -rf conftest.dSYM
23604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23605 conftest$ac_exeext conftest.$ac_ext
23607 ac_res=`eval 'as_val=${'$as_ac_var'}
23608 $as_echo "$as_val"'`
23609 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23610 $as_echo "$ac_res" >&6; }
23611 if test `eval 'as_val=${'$as_ac_var'}
23612 $as_echo "$as_val"'` = yes; then
23613 cat >>confdefs.h <<_ACEOF
23614 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23620 CFLAGS="$saved_cflags"
23627 # This would include the system openssl path (and linker options to use
23628 # it as needed) if it is found.
23633 DNS_CRYPTO_LIBS="$DNS_CRYPTO_LIBS $DNS_OPENSSL_LIBS"
23636 # Use OpenSSL for hash functions
23639 # Check whether --enable-openssl-hash was given.
23640 if test "${enable_openssl_hash+set}" = set; then
23641 enableval=$enable_openssl_hash; want_openssl_hash="$enableval"
23643 want_openssl_hash="no"
23646 case $want_openssl_hash in
23648 if test "$USE_OPENSSL" = ""
23650 { { $as_echo "$as_me:$LINENO: error: No OpenSSL for hash functions" >&5
23651 $as_echo "$as_me: error: No OpenSSL for hash functions" >&2;}
23652 { (exit 1); exit 1; }; }
23654 ISC_PLATFORM_OPENSSLHASH="#define ISC_PLATFORM_OPENSSLHASH 1"
23655 ISC_OPENSSL_INC="$DST_OPENSSL_INC"
23658 ISC_PLATFORM_OPENSSLHASH="#undef ISC_PLATFORM_OPENSSLHASH"
23666 # PKCS11 (aka crypto hardware) support
23668 # This works only with the right OpenSSL with PKCS11 engine!
23671 { $as_echo "$as_me:$LINENO: checking for PKCS11 support" >&5
23672 $as_echo_n "checking for PKCS11 support... " >&6; }
23674 # Check whether --with-pkcs11 was given.
23675 if test "${with_pkcs11+set}" = set; then
23676 withval=$with_pkcs11; use_pkcs11="$withval"
23682 case "$use_pkcs11" in
23684 { $as_echo "$as_me:$LINENO: result: disabled" >&5
23685 $as_echo "disabled" >&6; }
23690 { $as_echo "$as_me:$LINENO: result: using OpenSSL with PKCS11 support" >&5
23691 $as_echo "using OpenSSL with PKCS11 support" >&6; }
23692 USE_PKCS11='-DUSE_PKCS11'
23693 PKCS11_TOOLS=pkcs11
23699 { $as_echo "$as_me:$LINENO: checking for PKCS11 tools" >&5
23700 $as_echo_n "checking for PKCS11 tools... " >&6; }
23701 case "$use_pkcs11" in
23703 { $as_echo "$as_me:$LINENO: result: disabled" >&5
23704 $as_echo "disabled" >&6; }
23705 PKCS11_PROVIDER="undefined"
23708 { $as_echo "$as_me:$LINENO: result: PKCS11 provider is \"$use_pkcs11\"" >&5
23709 $as_echo "PKCS11 provider is \"$use_pkcs11\"" >&6; }
23710 PKCS11_PROVIDER="$use_pkcs11"
23715 { $as_echo "$as_me:$LINENO: checking for GSSAPI library" >&5
23716 $as_echo_n "checking for GSSAPI library... " >&6; }
23718 # Check whether --with-gssapi was given.
23719 if test "${with_gssapi+set}" = set; then
23720 withval=$with_gssapi; use_gssapi="$withval"
23726 gssapidirs="/usr/local /usr/pkg /usr/kerberos /usr"
23727 if test "$use_gssapi" = "yes"
23729 for d in $gssapidirs
23731 if test -f $d/include/gssapi/gssapi.h -o -f $d/include/gssapi.h
23739 case "$use_gssapi" in
23741 { $as_echo "$as_me:$LINENO: result: disabled" >&5
23742 $as_echo "disabled" >&6; }
23746 { { $as_echo "$as_me:$LINENO: error: --with-gssapi must specify a path" >&5
23747 $as_echo "$as_me: error: --with-gssapi must specify a path" >&2;}
23748 { (exit 1); exit 1; }; }
23751 { $as_echo "$as_me:$LINENO: result: looking in $use_gssapi/lib" >&5
23752 $as_echo "looking in $use_gssapi/lib" >&6; }
23753 USE_GSSAPI='-DGSSAPI'
23754 saved_cppflags="$CPPFLAGS"
23755 CPPFLAGS="-I$use_gssapi/include $CPPFLAGS"
23758 for ac_header in gssapi.h gssapi/gssapi.h
23760 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23762 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23763 $as_echo_n "checking for $ac_header... " >&6; }
23764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23765 $as_echo_n "(cached) " >&6
23767 ac_res=`eval 'as_val=${'$as_ac_Header'}
23768 $as_echo "$as_val"'`
23769 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23770 $as_echo "$ac_res" >&6; }
23772 # Is the header compilable?
23773 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23774 $as_echo_n "checking $ac_header usability... " >&6; }
23775 cat >conftest.$ac_ext <<_ACEOF
23778 cat confdefs.h >>conftest.$ac_ext
23779 cat >>conftest.$ac_ext <<_ACEOF
23780 /* end confdefs.h. */
23781 $ac_includes_default
23782 #include <$ac_header>
23784 rm -f conftest.$ac_objext
23785 if { (ac_try="$ac_compile"
23786 case "(($ac_try" in
23787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23788 *) ac_try_echo=$ac_try;;
23790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23791 $as_echo "$ac_try_echo") >&5
23792 (eval "$ac_compile") 2>conftest.er1
23794 grep -v '^ *+' conftest.er1 >conftest.err
23796 cat conftest.err >&5
23797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798 (exit $ac_status); } && {
23799 test -z "$ac_c_werror_flag" ||
23800 test ! -s conftest.err
23801 } && test -s conftest.$ac_objext; then
23802 ac_header_compiler=yes
23804 $as_echo "$as_me: failed program was:" >&5
23805 sed 's/^/| /' conftest.$ac_ext >&5
23807 ac_header_compiler=no
23810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23811 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23812 $as_echo "$ac_header_compiler" >&6; }
23814 # Is the header present?
23815 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23816 $as_echo_n "checking $ac_header presence... " >&6; }
23817 cat >conftest.$ac_ext <<_ACEOF
23820 cat confdefs.h >>conftest.$ac_ext
23821 cat >>conftest.$ac_ext <<_ACEOF
23822 /* end confdefs.h. */
23823 #include <$ac_header>
23825 if { (ac_try="$ac_cpp conftest.$ac_ext"
23826 case "(($ac_try" in
23827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23828 *) ac_try_echo=$ac_try;;
23830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23831 $as_echo "$ac_try_echo") >&5
23832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23834 grep -v '^ *+' conftest.er1 >conftest.err
23836 cat conftest.err >&5
23837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838 (exit $ac_status); } >/dev/null && {
23839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23840 test ! -s conftest.err
23842 ac_header_preproc=yes
23844 $as_echo "$as_me: failed program was:" >&5
23845 sed 's/^/| /' conftest.$ac_ext >&5
23847 ac_header_preproc=no
23850 rm -f conftest.err conftest.$ac_ext
23851 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23852 $as_echo "$ac_header_preproc" >&6; }
23854 # So? What about this header?
23855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23858 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23860 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23861 ac_header_preproc=yes
23864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23865 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23867 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23869 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23871 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23873 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23875 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23879 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23880 $as_echo_n "checking for $ac_header... " >&6; }
23881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23882 $as_echo_n "(cached) " >&6
23884 eval "$as_ac_Header=\$ac_header_preproc"
23886 ac_res=`eval 'as_val=${'$as_ac_Header'}
23887 $as_echo "$as_val"'`
23888 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23889 $as_echo "$ac_res" >&6; }
23892 if test `eval 'as_val=${'$as_ac_Header'}
23893 $as_echo "$as_val"'` = yes; then
23894 cat >>confdefs.h <<_ACEOF
23895 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23897 ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
23903 if test "$ISC_PLATFORM_GSSAPIHEADER" = ""; then
23904 { { $as_echo "$as_me:$LINENO: error: gssapi.h not found" >&5
23905 $as_echo "$as_me: error: gssapi.h not found" >&2;}
23906 { (exit 1); exit 1; }; }
23909 CPPFLAGS="$saved_cppflags"
23912 # XXXDCL This probably doesn't work right on all systems.
23913 # It will need to be worked on as problems become evident.
23915 # Essentially the problems here relate to two different
23916 # areas. The first area is building with either KTH
23917 # or MIT Kerberos, particularly when both are present on
23918 # the machine. The other is static versus dynamic linking.
23920 # On the KTH vs MIT issue, Both have libkrb5 that can mess
23921 # up the works if one implementation ends up trying to
23922 # use the other's krb. This is unfortunately a situation
23923 # that very easily arises.
23925 # Dynamic linking when the dependency information is built
23926 # into MIT's libgssapi_krb5 or KTH's libgssapi magically makes
23927 # all such problems go away, but when that setup is not
23928 # present, because either the dynamic libraries lack
23929 # dependencies or static linking is being done, then the
23930 # problems start to show up.
23934 "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \
23935 "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \
23937 "-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \
23938 "-lgssapi -lkrb5 -lcrypto -lcrypt -lasn1 -lroken -lcom_err" \
23941 # Note that this does not include $saved_libs, because
23942 # on FreeBSD machines this configure script has added
23943 # -L/usr/local/lib to LIBS, which can make the
23944 # -lgssapi_krb5 test succeed with shared libraries even
23945 # when you are trying to build with KTH in /usr/lib.
23946 LIBS="-L$use_gssapi/lib $TRY_LIBS"
23947 { $as_echo "$as_me:$LINENO: checking linking as $TRY_LIBS" >&5
23948 $as_echo_n "checking linking as $TRY_LIBS... " >&6; }
23949 cat >conftest.$ac_ext <<_ACEOF
23952 cat confdefs.h >>conftest.$ac_ext
23953 cat >>conftest.$ac_ext <<_ACEOF
23954 /* end confdefs.h. */
23959 gss_acquire_cred();
23964 rm -f conftest.$ac_objext conftest$ac_exeext
23965 if { (ac_try="$ac_link"
23966 case "(($ac_try" in
23967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23968 *) ac_try_echo=$ac_try;;
23970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23971 $as_echo "$ac_try_echo") >&5
23972 (eval "$ac_link") 2>conftest.er1
23974 grep -v '^ *+' conftest.er1 >conftest.err
23976 cat conftest.err >&5
23977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23978 (exit $ac_status); } && {
23979 test -z "$ac_c_werror_flag" ||
23980 test ! -s conftest.err
23981 } && test -s conftest$ac_exeext && {
23982 test "$cross_compiling" = yes ||
23983 $as_test_x conftest$ac_exeext
23987 $as_echo "$as_me: failed program was:" >&5
23988 sed 's/^/| /' conftest.$ac_ext >&5
23993 rm -rf conftest.dSYM
23994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23995 conftest$ac_exeext conftest.$ac_ext
23996 case $gssapi_linked in
23997 yes) { $as_echo "$as_me:$LINENO: result: yes" >&5
23998 $as_echo "yes" >&6; }; break ;;
23999 no) { $as_echo "$as_me:$LINENO: result: no" >&5
24000 $as_echo "no" >&6; } ;;
24004 case $gssapi_linked in
24005 no) { { $as_echo "$as_me:$LINENO: error: could not determine proper GSSAPI linkage" >&5
24006 $as_echo "$as_me: error: could not determine proper GSSAPI linkage" >&2;}
24007 { (exit 1); exit 1; }; } ;;
24011 # XXXDCL Major kludge. Tries to cope with KTH in /usr/lib
24012 # but MIT in /usr/local/lib and trying to build with KTH.
24013 # /usr/local/lib can end up earlier on the link lines.
24014 # Like most kludges, this one is not only inelegant it
24015 # is also likely to be the wrong thing to do at least as
24016 # many times as it is the right thing. Something better
24017 # needs to be done.
24019 if test "$use_gssapi" = "/usr" -a \
24020 -f /usr/local/lib/libkrb5.a; then
24024 case "$FIX_KTH_VS_MIT" in
24026 case "$enable_static_linking" in
24027 yes) gssapi_lib_suffix=".a" ;;
24028 *) gssapi_lib_suffix=".so" ;;
24031 for lib in $LIBS; do
24036 new_lib=`echo $lib |
24037 sed -e s%^-l%$use_gssapi/lib/lib% \
24038 -e s%$%$gssapi_lib_suffix%`
24039 NEW_LIBS="$NEW_LIBS $new_lib"
24042 { { $as_echo "$as_me:$LINENO: error: KTH vs MIT Kerberos confusion!" >&5
24043 $as_echo "$as_me: error: KTH vs MIT Kerberos confusion!" >&2;}
24044 { (exit 1); exit 1; }; }
24052 DST_GSSAPI_INC="-I$use_gssapi/include"
24053 DNS_GSSAPI_LIBS="$LIBS"
24055 { $as_echo "$as_me:$LINENO: result: using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&5
24056 $as_echo "using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&6; }
24067 DNS_CRYPTO_LIBS="$DNS_GSSAPI_LIBS $DNS_CRYPTO_LIBS"
24070 # Applications linking with libdns also need to link with these libraries.
24076 # was --with-randomdev specified?
24078 { $as_echo "$as_me:$LINENO: checking for random device" >&5
24079 $as_echo_n "checking for random device... " >&6; }
24081 # Check whether --with-randomdev was given.
24082 if test "${with_randomdev+set}" = set; then
24083 withval=$with_randomdev; use_randomdev="$withval"
24085 use_randomdev="unspec"
24089 case "$use_randomdev" in
24093 devrandom=/dev/arandom
24096 devrandom=/dev/random
24099 { $as_echo "$as_me:$LINENO: result: $devrandom" >&5
24100 $as_echo "$devrandom" >&6; }
24101 as_ac_File=`$as_echo "ac_cv_file_$devrandom" | $as_tr_sh`
24102 { $as_echo "$as_me:$LINENO: checking for $devrandom" >&5
24103 $as_echo_n "checking for $devrandom... " >&6; }
24104 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24105 $as_echo_n "(cached) " >&6
24107 test "$cross_compiling" = yes &&
24108 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24109 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24110 { (exit 1); exit 1; }; }
24111 if test -r "$devrandom"; then
24112 eval "$as_ac_File=yes"
24114 eval "$as_ac_File=no"
24117 ac_res=`eval 'as_val=${'$as_ac_File'}
24118 $as_echo "$as_val"'`
24119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24120 $as_echo "$ac_res" >&6; }
24121 if test `eval 'as_val=${'$as_ac_File'}
24122 $as_echo "$as_val"'` = yes; then
24123 cat >>confdefs.h <<_ACEOF
24124 #define PATH_RANDOMDEV "$devrandom"
24131 { { $as_echo "$as_me:$LINENO: error: --with-randomdev must specify a path" >&5
24132 $as_echo "$as_me: error: --with-randomdev must specify a path" >&2;}
24133 { (exit 1); exit 1; }; }
24136 { $as_echo "$as_me:$LINENO: result: disabled" >&5
24137 $as_echo "disabled" >&6; }
24140 cat >>confdefs.h <<_ACEOF
24141 #define PATH_RANDOMDEV "$use_randomdev"
24144 { $as_echo "$as_me:$LINENO: result: using \"$use_randomdev\"" >&5
24145 $as_echo "using \"$use_randomdev\"" >&6; }
24150 # Do we have arc4random() ?
24152 { $as_echo "$as_me:$LINENO: checking for arc4random" >&5
24153 $as_echo_n "checking for arc4random... " >&6; }
24154 if test "${ac_cv_func_arc4random+set}" = set; then
24155 $as_echo_n "(cached) " >&6
24157 cat >conftest.$ac_ext <<_ACEOF
24160 cat confdefs.h >>conftest.$ac_ext
24161 cat >>conftest.$ac_ext <<_ACEOF
24162 /* end confdefs.h. */
24163 /* Define arc4random to an innocuous variant, in case <limits.h> declares arc4random.
24164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24165 #define arc4random innocuous_arc4random
24167 /* System header to define __stub macros and hopefully few prototypes,
24168 which can conflict with char arc4random (); below.
24169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24170 <limits.h> exists even on freestanding compilers. */
24173 # include <limits.h>
24175 # include <assert.h>
24180 /* Override any GCC internal prototype to avoid an error.
24181 Use char because int might match the return type of a GCC
24182 builtin and then its argument prototype would still apply. */
24186 char arc4random ();
24187 /* The GNU C library defines this for functions which it implements
24188 to always fail with ENOSYS. Some functions are actually named
24189 something starting with __ and the normal name is an alias. */
24190 #if defined __stub_arc4random || defined __stub___arc4random
24197 return arc4random ();
24202 rm -f conftest.$ac_objext conftest$ac_exeext
24203 if { (ac_try="$ac_link"
24204 case "(($ac_try" in
24205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24206 *) ac_try_echo=$ac_try;;
24208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24209 $as_echo "$ac_try_echo") >&5
24210 (eval "$ac_link") 2>conftest.er1
24212 grep -v '^ *+' conftest.er1 >conftest.err
24214 cat conftest.err >&5
24215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24216 (exit $ac_status); } && {
24217 test -z "$ac_c_werror_flag" ||
24218 test ! -s conftest.err
24219 } && test -s conftest$ac_exeext && {
24220 test "$cross_compiling" = yes ||
24221 $as_test_x conftest$ac_exeext
24223 ac_cv_func_arc4random=yes
24225 $as_echo "$as_me: failed program was:" >&5
24226 sed 's/^/| /' conftest.$ac_ext >&5
24228 ac_cv_func_arc4random=no
24231 rm -rf conftest.dSYM
24232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24233 conftest$ac_exeext conftest.$ac_ext
24235 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_arc4random" >&5
24236 $as_echo "$ac_cv_func_arc4random" >&6; }
24237 if test $ac_cv_func_arc4random = yes; then
24238 cat >>confdefs.h <<\_ACEOF
24239 #define HAVE_ARC4RANDOM 1
24246 # Begin pthreads checking.
24248 # First, decide whether to use multithreading or not.
24250 # Enable multithreading by default on systems where it is known
24251 # to work well, and where debugging of multithreaded programs
24255 { $as_echo "$as_me:$LINENO: checking whether to build with thread support" >&5
24256 $as_echo_n "checking whether to build with thread support... " >&6; }
24260 use_threads=true ;;
24262 # Thread signals are broken on Solaris 2.6; they are sometimes
24263 # delivered to the wrong thread.
24264 use_threads=false ;;
24266 use_threads=true ;;
24268 use_threads=true ;;
24270 use_threads=false ;;
24272 use_threads=true ;;
24274 use_threads=true ;;
24275 *-sco-sysv*uw*|*-*-sysv*UnixWare*)
24277 use_threads=false ;;
24278 *-*-sysv*OpenUNIX*)
24280 use_threads=true ;;
24282 if test -r /usr/lib/libpthread.so ; then
24285 # Socket I/O optimizations introduced in 9.2 expose a
24286 # bug in unproven-pthreads; see PR #12650
24291 # OpenBSD users have reported that named dumps core on
24292 # startup when built with threads.
24293 use_threads=false ;;
24295 use_threads=false ;;
24297 # Thread signals do not work reliably on some versions of BSD/OS.
24298 use_threads=false ;;
24300 use_threads=true ;;
24302 # Threads are disabled on Linux by default because most
24303 # Linux kernels produce unusable core dumps from multithreaded
24304 # programs, and because of limitations in setuid().
24305 use_threads=false ;;
24307 use_threads=false ;;
24310 # Check whether --enable-threads was given.
24311 if test "${enable_threads+set}" = set; then
24312 enableval=$enable_threads;
24315 case "$enable_threads" in
24323 # Use system-dependent default
24326 { { $as_echo "$as_me:$LINENO: error: --enable-threads takes yes or no" >&5
24327 $as_echo "$as_me: error: --enable-threads takes yes or no" >&2;}
24328 { (exit 1); exit 1; }; }
24334 { $as_echo "$as_me:$LINENO: result: yes" >&5
24335 $as_echo "yes" >&6; }
24337 { $as_echo "$as_me:$LINENO: result: no" >&5
24338 $as_echo "no" >&6; }
24344 # Search for / configure pthreads in a system-dependent fashion.
24348 # NetBSD has multiple pthreads implementations. The
24349 # recommended one to use is "unproven-pthreads". The
24350 # older "mit-pthreads" may also work on some NetBSD
24351 # versions. The PTL2 thread library does not
24352 # currently work with bind9, but can be chosen with
24353 # the --with-ptl2 option for those who wish to
24354 # experiment with it.
24356 { $as_echo "$as_me:$LINENO: checking which NetBSD thread library to use" >&5
24357 $as_echo_n "checking which NetBSD thread library to use... " >&6; }
24360 # Check whether --with-ptl2 was given.
24361 if test "${with_ptl2+set}" = set; then
24362 withval=$with_ptl2; use_ptl2="$withval"
24368 : ${LOCALBASE:=/usr/pkg}
24370 if test "X$use_ptl2" = "Xyes"
24372 { $as_echo "$as_me:$LINENO: result: PTL2" >&5
24373 $as_echo "PTL2" >&6; }
24374 { $as_echo "$as_me:$LINENO: WARNING: linking with PTL2 is highly experimental and not expected to work" >&5
24375 $as_echo "$as_me: WARNING: linking with PTL2 is highly experimental and not expected to work" >&2;}
24378 if test -r /usr/lib/libpthread.so
24380 { $as_echo "$as_me:$LINENO: result: native" >&5
24381 $as_echo "native" >&6; }
24382 LIBS="-lpthread $LIBS"
24384 if test ! -d $LOCALBASE/pthreads
24386 { $as_echo "$as_me:$LINENO: result: none" >&5
24387 $as_echo "none" >&6; }
24388 { { $as_echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5
24389 $as_echo "$as_me: error: \"could not find thread libraries\"" >&2;}
24390 { (exit 1); exit 1; }; }
24395 { $as_echo "$as_me:$LINENO: result: mit-pthreads/unproven-pthreads" >&5
24396 $as_echo "mit-pthreads/unproven-pthreads" >&6; }
24397 pkg="$LOCALBASE/pthreads"
24398 lib1="-L$pkg/lib -Wl,-R$pkg/lib"
24399 lib2="-lpthread -lm -lgcc -lpthread"
24400 LIBS="$lib1 $lib2 $LIBS"
24401 CPPFLAGS="$CPPFLAGS -I$pkg/include"
24402 STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
24408 # We don't want to set -lpthread as that break
24409 # the ability to choose threads library at final
24410 # link time and is not valid for all architectures.
24413 if test "X$GCC" = "Xyes"; then
24416 { $as_echo "$as_me:$LINENO: checking for gcc -pthread support" >&5
24417 $as_echo_n "checking for gcc -pthread support... " >&6; };
24418 cat >conftest.$ac_ext <<_ACEOF
24421 cat confdefs.h >>conftest.$ac_ext
24422 cat >>conftest.$ac_ext <<_ACEOF
24423 /* end confdefs.h. */
24424 #include <pthread.h>
24428 printf("%x\n", pthread_create);
24433 rm -f conftest.$ac_objext conftest$ac_exeext
24434 if { (ac_try="$ac_link"
24435 case "(($ac_try" in
24436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437 *) ac_try_echo=$ac_try;;
24439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24440 $as_echo "$ac_try_echo") >&5
24441 (eval "$ac_link") 2>conftest.er1
24443 grep -v '^ *+' conftest.er1 >conftest.err
24445 cat conftest.err >&5
24446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447 (exit $ac_status); } && {
24448 test -z "$ac_c_werror_flag" ||
24449 test ! -s conftest.err
24450 } && test -s conftest$ac_exeext && {
24451 test "$cross_compiling" = yes ||
24452 $as_test_x conftest$ac_exeext
24455 { $as_echo "$as_me:$LINENO: result: yes" >&5
24456 $as_echo "yes" >&6; }
24458 $as_echo "$as_me: failed program was:" >&5
24459 sed 's/^/| /' conftest.$ac_ext >&5
24461 { $as_echo "$as_me:$LINENO: result: no" >&5
24462 $as_echo "no" >&6; }
24465 rm -rf conftest.dSYM
24466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24467 conftest$ac_exeext conftest.$ac_ext
24470 if test "X$PTHREAD" != "Xyes"; then
24472 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24473 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
24474 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24475 $as_echo_n "(cached) " >&6
24477 ac_check_lib_save_LIBS=$LIBS
24478 LIBS="-lpthread $LIBS"
24479 cat >conftest.$ac_ext <<_ACEOF
24482 cat confdefs.h >>conftest.$ac_ext
24483 cat >>conftest.$ac_ext <<_ACEOF
24484 /* end confdefs.h. */
24486 /* Override any GCC internal prototype to avoid an error.
24487 Use char because int might match the return type of a GCC
24488 builtin and then its argument prototype would still apply. */
24492 char pthread_create ();
24496 return pthread_create ();
24501 rm -f conftest.$ac_objext conftest$ac_exeext
24502 if { (ac_try="$ac_link"
24503 case "(($ac_try" in
24504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24505 *) ac_try_echo=$ac_try;;
24507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24508 $as_echo "$ac_try_echo") >&5
24509 (eval "$ac_link") 2>conftest.er1
24511 grep -v '^ *+' conftest.er1 >conftest.err
24513 cat conftest.err >&5
24514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515 (exit $ac_status); } && {
24516 test -z "$ac_c_werror_flag" ||
24517 test ! -s conftest.err
24518 } && test -s conftest$ac_exeext && {
24519 test "$cross_compiling" = yes ||
24520 $as_test_x conftest$ac_exeext
24522 ac_cv_lib_pthread_pthread_create=yes
24524 $as_echo "$as_me: failed program was:" >&5
24525 sed 's/^/| /' conftest.$ac_ext >&5
24527 ac_cv_lib_pthread_pthread_create=no
24530 rm -rf conftest.dSYM
24531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24532 conftest$ac_exeext conftest.$ac_ext
24533 LIBS=$ac_check_lib_save_LIBS
24535 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24536 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
24537 if test $ac_cv_lib_pthread_pthread_create = yes; then
24538 cat >>confdefs.h <<_ACEOF
24539 #define HAVE_LIBPTHREAD 1
24542 LIBS="-lpthread $LIBS"
24546 { $as_echo "$as_me:$LINENO: checking for thread_create in -lthr" >&5
24547 $as_echo_n "checking for thread_create in -lthr... " >&6; }
24548 if test "${ac_cv_lib_thr_thread_create+set}" = set; then
24549 $as_echo_n "(cached) " >&6
24551 ac_check_lib_save_LIBS=$LIBS
24553 cat >conftest.$ac_ext <<_ACEOF
24556 cat confdefs.h >>conftest.$ac_ext
24557 cat >>conftest.$ac_ext <<_ACEOF
24558 /* end confdefs.h. */
24560 /* Override any GCC internal prototype to avoid an error.
24561 Use char because int might match the return type of a GCC
24562 builtin and then its argument prototype would still apply. */
24566 char thread_create ();
24570 return thread_create ();
24575 rm -f conftest.$ac_objext conftest$ac_exeext
24576 if { (ac_try="$ac_link"
24577 case "(($ac_try" in
24578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24579 *) ac_try_echo=$ac_try;;
24581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24582 $as_echo "$ac_try_echo") >&5
24583 (eval "$ac_link") 2>conftest.er1
24585 grep -v '^ *+' conftest.er1 >conftest.err
24587 cat conftest.err >&5
24588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589 (exit $ac_status); } && {
24590 test -z "$ac_c_werror_flag" ||
24591 test ! -s conftest.err
24592 } && test -s conftest$ac_exeext && {
24593 test "$cross_compiling" = yes ||
24594 $as_test_x conftest$ac_exeext
24596 ac_cv_lib_thr_thread_create=yes
24598 $as_echo "$as_me: failed program was:" >&5
24599 sed 's/^/| /' conftest.$ac_ext >&5
24601 ac_cv_lib_thr_thread_create=no
24604 rm -rf conftest.dSYM
24605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24606 conftest$ac_exeext conftest.$ac_ext
24607 LIBS=$ac_check_lib_save_LIBS
24609 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_thr_thread_create" >&5
24610 $as_echo "$ac_cv_lib_thr_thread_create" >&6; }
24611 if test $ac_cv_lib_thr_thread_create = yes; then
24612 cat >>confdefs.h <<_ACEOF
24613 #define HAVE_LIBTHR 1
24620 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
24621 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
24622 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
24623 $as_echo_n "(cached) " >&6
24625 ac_check_lib_save_LIBS=$LIBS
24627 cat >conftest.$ac_ext <<_ACEOF
24630 cat confdefs.h >>conftest.$ac_ext
24631 cat >>conftest.$ac_ext <<_ACEOF
24632 /* end confdefs.h. */
24634 /* Override any GCC internal prototype to avoid an error.
24635 Use char because int might match the return type of a GCC
24636 builtin and then its argument prototype would still apply. */
24640 char pthread_create ();
24644 return pthread_create ();
24649 rm -f conftest.$ac_objext conftest$ac_exeext
24650 if { (ac_try="$ac_link"
24651 case "(($ac_try" in
24652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24653 *) ac_try_echo=$ac_try;;
24655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24656 $as_echo "$ac_try_echo") >&5
24657 (eval "$ac_link") 2>conftest.er1
24659 grep -v '^ *+' conftest.er1 >conftest.err
24661 cat conftest.err >&5
24662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663 (exit $ac_status); } && {
24664 test -z "$ac_c_werror_flag" ||
24665 test ! -s conftest.err
24666 } && test -s conftest$ac_exeext && {
24667 test "$cross_compiling" = yes ||
24668 $as_test_x conftest$ac_exeext
24670 ac_cv_lib_c_r_pthread_create=yes
24672 $as_echo "$as_me: failed program was:" >&5
24673 sed 's/^/| /' conftest.$ac_ext >&5
24675 ac_cv_lib_c_r_pthread_create=no
24678 rm -rf conftest.dSYM
24679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24680 conftest$ac_exeext conftest.$ac_ext
24681 LIBS=$ac_check_lib_save_LIBS
24683 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
24684 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
24685 if test $ac_cv_lib_c_r_pthread_create = yes; then
24686 cat >>confdefs.h <<_ACEOF
24687 #define HAVE_LIBC_R 1
24694 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lc" >&5
24695 $as_echo_n "checking for pthread_create in -lc... " >&6; }
24696 if test "${ac_cv_lib_c_pthread_create+set}" = set; then
24697 $as_echo_n "(cached) " >&6
24699 ac_check_lib_save_LIBS=$LIBS
24701 cat >conftest.$ac_ext <<_ACEOF
24704 cat confdefs.h >>conftest.$ac_ext
24705 cat >>conftest.$ac_ext <<_ACEOF
24706 /* end confdefs.h. */
24708 /* Override any GCC internal prototype to avoid an error.
24709 Use char because int might match the return type of a GCC
24710 builtin and then its argument prototype would still apply. */
24714 char pthread_create ();
24718 return pthread_create ();
24723 rm -f conftest.$ac_objext conftest$ac_exeext
24724 if { (ac_try="$ac_link"
24725 case "(($ac_try" in
24726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24727 *) ac_try_echo=$ac_try;;
24729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24730 $as_echo "$ac_try_echo") >&5
24731 (eval "$ac_link") 2>conftest.er1
24733 grep -v '^ *+' conftest.er1 >conftest.err
24735 cat conftest.err >&5
24736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737 (exit $ac_status); } && {
24738 test -z "$ac_c_werror_flag" ||
24739 test ! -s conftest.err
24740 } && test -s conftest$ac_exeext && {
24741 test "$cross_compiling" = yes ||
24742 $as_test_x conftest$ac_exeext
24744 ac_cv_lib_c_pthread_create=yes
24746 $as_echo "$as_me: failed program was:" >&5
24747 sed 's/^/| /' conftest.$ac_ext >&5
24749 ac_cv_lib_c_pthread_create=no
24752 rm -rf conftest.dSYM
24753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24754 conftest$ac_exeext conftest.$ac_ext
24755 LIBS=$ac_check_lib_save_LIBS
24757 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_create" >&5
24758 $as_echo "$ac_cv_lib_c_pthread_create" >&6; }
24759 if test $ac_cv_lib_c_pthread_create = yes; then
24760 cat >>confdefs.h <<_ACEOF
24761 #define HAVE_LIBC 1
24767 { { $as_echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5
24768 $as_echo "$as_me: error: \"could not find thread libraries\"" >&2;}
24769 { (exit 1); exit 1; }; }
24782 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24783 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
24784 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24785 $as_echo_n "(cached) " >&6
24787 ac_check_lib_save_LIBS=$LIBS
24788 LIBS="-lpthread $LIBS"
24789 cat >conftest.$ac_ext <<_ACEOF
24792 cat confdefs.h >>conftest.$ac_ext
24793 cat >>conftest.$ac_ext <<_ACEOF
24794 /* end confdefs.h. */
24796 /* Override any GCC internal prototype to avoid an error.
24797 Use char because int might match the return type of a GCC
24798 builtin and then its argument prototype would still apply. */
24802 char pthread_create ();
24806 return pthread_create ();
24811 rm -f conftest.$ac_objext conftest$ac_exeext
24812 if { (ac_try="$ac_link"
24813 case "(($ac_try" in
24814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24815 *) ac_try_echo=$ac_try;;
24817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24818 $as_echo "$ac_try_echo") >&5
24819 (eval "$ac_link") 2>conftest.er1
24821 grep -v '^ *+' conftest.er1 >conftest.err
24823 cat conftest.err >&5
24824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825 (exit $ac_status); } && {
24826 test -z "$ac_c_werror_flag" ||
24827 test ! -s conftest.err
24828 } && test -s conftest$ac_exeext && {
24829 test "$cross_compiling" = yes ||
24830 $as_test_x conftest$ac_exeext
24832 ac_cv_lib_pthread_pthread_create=yes
24834 $as_echo "$as_me: failed program was:" >&5
24835 sed 's/^/| /' conftest.$ac_ext >&5
24837 ac_cv_lib_pthread_pthread_create=no
24840 rm -rf conftest.dSYM
24841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24842 conftest$ac_exeext conftest.$ac_ext
24843 LIBS=$ac_check_lib_save_LIBS
24845 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24846 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
24847 if test $ac_cv_lib_pthread_pthread_create = yes; then
24848 cat >>confdefs.h <<_ACEOF
24849 #define HAVE_LIBPTHREAD 1
24852 LIBS="-lpthread $LIBS"
24856 { $as_echo "$as_me:$LINENO: checking for __pthread_create in -lpthread" >&5
24857 $as_echo_n "checking for __pthread_create in -lpthread... " >&6; }
24858 if test "${ac_cv_lib_pthread___pthread_create+set}" = set; then
24859 $as_echo_n "(cached) " >&6
24861 ac_check_lib_save_LIBS=$LIBS
24862 LIBS="-lpthread $LIBS"
24863 cat >conftest.$ac_ext <<_ACEOF
24866 cat confdefs.h >>conftest.$ac_ext
24867 cat >>conftest.$ac_ext <<_ACEOF
24868 /* end confdefs.h. */
24870 /* Override any GCC internal prototype to avoid an error.
24871 Use char because int might match the return type of a GCC
24872 builtin and then its argument prototype would still apply. */
24876 char __pthread_create ();
24880 return __pthread_create ();
24885 rm -f conftest.$ac_objext conftest$ac_exeext
24886 if { (ac_try="$ac_link"
24887 case "(($ac_try" in
24888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24889 *) ac_try_echo=$ac_try;;
24891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24892 $as_echo "$ac_try_echo") >&5
24893 (eval "$ac_link") 2>conftest.er1
24895 grep -v '^ *+' conftest.er1 >conftest.err
24897 cat conftest.err >&5
24898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24899 (exit $ac_status); } && {
24900 test -z "$ac_c_werror_flag" ||
24901 test ! -s conftest.err
24902 } && test -s conftest$ac_exeext && {
24903 test "$cross_compiling" = yes ||
24904 $as_test_x conftest$ac_exeext
24906 ac_cv_lib_pthread___pthread_create=yes
24908 $as_echo "$as_me: failed program was:" >&5
24909 sed 's/^/| /' conftest.$ac_ext >&5
24911 ac_cv_lib_pthread___pthread_create=no
24914 rm -rf conftest.dSYM
24915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24916 conftest$ac_exeext conftest.$ac_ext
24917 LIBS=$ac_check_lib_save_LIBS
24919 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create" >&5
24920 $as_echo "$ac_cv_lib_pthread___pthread_create" >&6; }
24921 if test $ac_cv_lib_pthread___pthread_create = yes; then
24922 cat >>confdefs.h <<_ACEOF
24923 #define HAVE_LIBPTHREAD 1
24926 LIBS="-lpthread $LIBS"
24930 { $as_echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
24931 $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
24932 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
24933 $as_echo_n "(cached) " >&6
24935 ac_check_lib_save_LIBS=$LIBS
24936 LIBS="-lpthread $LIBS"
24937 cat >conftest.$ac_ext <<_ACEOF
24940 cat confdefs.h >>conftest.$ac_ext
24941 cat >>conftest.$ac_ext <<_ACEOF
24942 /* end confdefs.h. */
24944 /* Override any GCC internal prototype to avoid an error.
24945 Use char because int might match the return type of a GCC
24946 builtin and then its argument prototype would still apply. */
24950 char __pthread_create_system ();
24954 return __pthread_create_system ();
24959 rm -f conftest.$ac_objext conftest$ac_exeext
24960 if { (ac_try="$ac_link"
24961 case "(($ac_try" in
24962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24963 *) ac_try_echo=$ac_try;;
24965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24966 $as_echo "$ac_try_echo") >&5
24967 (eval "$ac_link") 2>conftest.er1
24969 grep -v '^ *+' conftest.er1 >conftest.err
24971 cat conftest.err >&5
24972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973 (exit $ac_status); } && {
24974 test -z "$ac_c_werror_flag" ||
24975 test ! -s conftest.err
24976 } && test -s conftest$ac_exeext && {
24977 test "$cross_compiling" = yes ||
24978 $as_test_x conftest$ac_exeext
24980 ac_cv_lib_pthread___pthread_create_system=yes
24982 $as_echo "$as_me: failed program was:" >&5
24983 sed 's/^/| /' conftest.$ac_ext >&5
24985 ac_cv_lib_pthread___pthread_create_system=no
24988 rm -rf conftest.dSYM
24989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24990 conftest$ac_exeext conftest.$ac_ext
24991 LIBS=$ac_check_lib_save_LIBS
24993 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
24994 $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
24995 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
24996 cat >>confdefs.h <<_ACEOF
24997 #define HAVE_LIBPTHREAD 1
25000 LIBS="-lpthread $LIBS"
25004 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
25005 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
25006 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
25007 $as_echo_n "(cached) " >&6
25009 ac_check_lib_save_LIBS=$LIBS
25011 cat >conftest.$ac_ext <<_ACEOF
25014 cat confdefs.h >>conftest.$ac_ext
25015 cat >>conftest.$ac_ext <<_ACEOF
25016 /* end confdefs.h. */
25018 /* Override any GCC internal prototype to avoid an error.
25019 Use char because int might match the return type of a GCC
25020 builtin and then its argument prototype would still apply. */
25024 char pthread_create ();
25028 return pthread_create ();
25033 rm -f conftest.$ac_objext conftest$ac_exeext
25034 if { (ac_try="$ac_link"
25035 case "(($ac_try" in
25036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25037 *) ac_try_echo=$ac_try;;
25039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25040 $as_echo "$ac_try_echo") >&5
25041 (eval "$ac_link") 2>conftest.er1
25043 grep -v '^ *+' conftest.er1 >conftest.err
25045 cat conftest.err >&5
25046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047 (exit $ac_status); } && {
25048 test -z "$ac_c_werror_flag" ||
25049 test ! -s conftest.err
25050 } && test -s conftest$ac_exeext && {
25051 test "$cross_compiling" = yes ||
25052 $as_test_x conftest$ac_exeext
25054 ac_cv_lib_c_r_pthread_create=yes
25056 $as_echo "$as_me: failed program was:" >&5
25057 sed 's/^/| /' conftest.$ac_ext >&5
25059 ac_cv_lib_c_r_pthread_create=no
25062 rm -rf conftest.dSYM
25063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25064 conftest$ac_exeext conftest.$ac_ext
25065 LIBS=$ac_check_lib_save_LIBS
25067 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
25068 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
25069 if test $ac_cv_lib_c_r_pthread_create = yes; then
25070 cat >>confdefs.h <<_ACEOF
25071 #define HAVE_LIBC_R 1
25078 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lc" >&5
25079 $as_echo_n "checking for pthread_create in -lc... " >&6; }
25080 if test "${ac_cv_lib_c_pthread_create+set}" = set; then
25081 $as_echo_n "(cached) " >&6
25083 ac_check_lib_save_LIBS=$LIBS
25085 cat >conftest.$ac_ext <<_ACEOF
25088 cat confdefs.h >>conftest.$ac_ext
25089 cat >>conftest.$ac_ext <<_ACEOF
25090 /* end confdefs.h. */
25092 /* Override any GCC internal prototype to avoid an error.
25093 Use char because int might match the return type of a GCC
25094 builtin and then its argument prototype would still apply. */
25098 char pthread_create ();
25102 return pthread_create ();
25107 rm -f conftest.$ac_objext conftest$ac_exeext
25108 if { (ac_try="$ac_link"
25109 case "(($ac_try" in
25110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25111 *) ac_try_echo=$ac_try;;
25113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25114 $as_echo "$ac_try_echo") >&5
25115 (eval "$ac_link") 2>conftest.er1
25117 grep -v '^ *+' conftest.er1 >conftest.err
25119 cat conftest.err >&5
25120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121 (exit $ac_status); } && {
25122 test -z "$ac_c_werror_flag" ||
25123 test ! -s conftest.err
25124 } && test -s conftest$ac_exeext && {
25125 test "$cross_compiling" = yes ||
25126 $as_test_x conftest$ac_exeext
25128 ac_cv_lib_c_pthread_create=yes
25130 $as_echo "$as_me: failed program was:" >&5
25131 sed 's/^/| /' conftest.$ac_ext >&5
25133 ac_cv_lib_c_pthread_create=no
25136 rm -rf conftest.dSYM
25137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25138 conftest$ac_exeext conftest.$ac_ext
25139 LIBS=$ac_check_lib_save_LIBS
25141 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_create" >&5
25142 $as_echo "$ac_cv_lib_c_pthread_create" >&6; }
25143 if test $ac_cv_lib_c_pthread_create = yes; then
25144 cat >>confdefs.h <<_ACEOF
25145 #define HAVE_LIBC 1
25151 { { $as_echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5
25152 $as_echo "$as_me: error: \"could not find thread libraries\"" >&2;}
25153 { (exit 1); exit 1; }; }
25170 if test "X$GCC" = "Xyes"; then
25174 CCOPT="$CCOPT -pthread"
25175 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
25179 CCOPT="$CCOPT -pthread"
25182 LIBS="$LIBS -lthread"
25185 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
25192 CCOPT="$CCOPT -pthread"
25199 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
25201 *-sco-sysv*uw*|*-*-sysv*UnixWare*)
25203 CCOPT="$CCOPT -Kthread"
25205 *-*-sysv*OpenUNIX*)
25207 CCOPT="$CCOPT -Kpthread"
25211 ALWAYS_DEFINES="-D_REENTRANT"
25212 ISC_PLATFORM_USETHREADS="#define ISC_PLATFORM_USETHREADS 1"
25213 thread_dir=pthreads
25215 # We'd like to use sigwait() too
25217 { $as_echo "$as_me:$LINENO: checking for sigwait" >&5
25218 $as_echo_n "checking for sigwait... " >&6; }
25219 if test "${ac_cv_func_sigwait+set}" = set; then
25220 $as_echo_n "(cached) " >&6
25222 cat >conftest.$ac_ext <<_ACEOF
25225 cat confdefs.h >>conftest.$ac_ext
25226 cat >>conftest.$ac_ext <<_ACEOF
25227 /* end confdefs.h. */
25228 /* Define sigwait to an innocuous variant, in case <limits.h> declares sigwait.
25229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25230 #define sigwait innocuous_sigwait
25232 /* System header to define __stub macros and hopefully few prototypes,
25233 which can conflict with char sigwait (); below.
25234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25235 <limits.h> exists even on freestanding compilers. */
25238 # include <limits.h>
25240 # include <assert.h>
25245 /* Override any GCC internal prototype to avoid an error.
25246 Use char because int might match the return type of a GCC
25247 builtin and then its argument prototype would still apply. */
25252 /* The GNU C library defines this for functions which it implements
25253 to always fail with ENOSYS. Some functions are actually named
25254 something starting with __ and the normal name is an alias. */
25255 #if defined __stub_sigwait || defined __stub___sigwait
25267 rm -f conftest.$ac_objext conftest$ac_exeext
25268 if { (ac_try="$ac_link"
25269 case "(($ac_try" in
25270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25271 *) ac_try_echo=$ac_try;;
25273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25274 $as_echo "$ac_try_echo") >&5
25275 (eval "$ac_link") 2>conftest.er1
25277 grep -v '^ *+' conftest.er1 >conftest.err
25279 cat conftest.err >&5
25280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25281 (exit $ac_status); } && {
25282 test -z "$ac_c_werror_flag" ||
25283 test ! -s conftest.err
25284 } && test -s conftest$ac_exeext && {
25285 test "$cross_compiling" = yes ||
25286 $as_test_x conftest$ac_exeext
25288 ac_cv_func_sigwait=yes
25290 $as_echo "$as_me: failed program was:" >&5
25291 sed 's/^/| /' conftest.$ac_ext >&5
25293 ac_cv_func_sigwait=no
25296 rm -rf conftest.dSYM
25297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25298 conftest$ac_exeext conftest.$ac_ext
25300 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_sigwait" >&5
25301 $as_echo "$ac_cv_func_sigwait" >&6; }
25302 if test $ac_cv_func_sigwait = yes; then
25303 cat >>confdefs.h <<\_ACEOF
25304 #define HAVE_SIGWAIT 1
25308 { $as_echo "$as_me:$LINENO: checking for sigwait in -lc" >&5
25309 $as_echo_n "checking for sigwait in -lc... " >&6; }
25310 if test "${ac_cv_lib_c_sigwait+set}" = set; then
25311 $as_echo_n "(cached) " >&6
25313 ac_check_lib_save_LIBS=$LIBS
25315 cat >conftest.$ac_ext <<_ACEOF
25318 cat confdefs.h >>conftest.$ac_ext
25319 cat >>conftest.$ac_ext <<_ACEOF
25320 /* end confdefs.h. */
25322 /* Override any GCC internal prototype to avoid an error.
25323 Use char because int might match the return type of a GCC
25324 builtin and then its argument prototype would still apply. */
25337 rm -f conftest.$ac_objext conftest$ac_exeext
25338 if { (ac_try="$ac_link"
25339 case "(($ac_try" in
25340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25341 *) ac_try_echo=$ac_try;;
25343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25344 $as_echo "$ac_try_echo") >&5
25345 (eval "$ac_link") 2>conftest.er1
25347 grep -v '^ *+' conftest.er1 >conftest.err
25349 cat conftest.err >&5
25350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351 (exit $ac_status); } && {
25352 test -z "$ac_c_werror_flag" ||
25353 test ! -s conftest.err
25354 } && test -s conftest$ac_exeext && {
25355 test "$cross_compiling" = yes ||
25356 $as_test_x conftest$ac_exeext
25358 ac_cv_lib_c_sigwait=yes
25360 $as_echo "$as_me: failed program was:" >&5
25361 sed 's/^/| /' conftest.$ac_ext >&5
25363 ac_cv_lib_c_sigwait=no
25366 rm -rf conftest.dSYM
25367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25368 conftest$ac_exeext conftest.$ac_ext
25369 LIBS=$ac_check_lib_save_LIBS
25371 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_sigwait" >&5
25372 $as_echo "$ac_cv_lib_c_sigwait" >&6; }
25373 if test $ac_cv_lib_c_sigwait = yes; then
25374 cat >>confdefs.h <<\_ACEOF
25375 #define HAVE_SIGWAIT 1
25379 { $as_echo "$as_me:$LINENO: checking for sigwait in -lpthread" >&5
25380 $as_echo_n "checking for sigwait in -lpthread... " >&6; }
25381 if test "${ac_cv_lib_pthread_sigwait+set}" = set; then
25382 $as_echo_n "(cached) " >&6
25384 ac_check_lib_save_LIBS=$LIBS
25385 LIBS="-lpthread $LIBS"
25386 cat >conftest.$ac_ext <<_ACEOF
25389 cat confdefs.h >>conftest.$ac_ext
25390 cat >>conftest.$ac_ext <<_ACEOF
25391 /* end confdefs.h. */
25393 /* Override any GCC internal prototype to avoid an error.
25394 Use char because int might match the return type of a GCC
25395 builtin and then its argument prototype would still apply. */
25408 rm -f conftest.$ac_objext conftest$ac_exeext
25409 if { (ac_try="$ac_link"
25410 case "(($ac_try" in
25411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25412 *) ac_try_echo=$ac_try;;
25414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25415 $as_echo "$ac_try_echo") >&5
25416 (eval "$ac_link") 2>conftest.er1
25418 grep -v '^ *+' conftest.er1 >conftest.err
25420 cat conftest.err >&5
25421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25422 (exit $ac_status); } && {
25423 test -z "$ac_c_werror_flag" ||
25424 test ! -s conftest.err
25425 } && test -s conftest$ac_exeext && {
25426 test "$cross_compiling" = yes ||
25427 $as_test_x conftest$ac_exeext
25429 ac_cv_lib_pthread_sigwait=yes
25431 $as_echo "$as_me: failed program was:" >&5
25432 sed 's/^/| /' conftest.$ac_ext >&5
25434 ac_cv_lib_pthread_sigwait=no
25437 rm -rf conftest.dSYM
25438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25439 conftest$ac_exeext conftest.$ac_ext
25440 LIBS=$ac_check_lib_save_LIBS
25442 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sigwait" >&5
25443 $as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
25444 if test $ac_cv_lib_pthread_sigwait = yes; then
25445 cat >>confdefs.h <<\_ACEOF
25446 #define HAVE_SIGWAIT 1
25450 { $as_echo "$as_me:$LINENO: checking for _Psigwait in -lpthread" >&5
25451 $as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
25452 if test "${ac_cv_lib_pthread__Psigwait+set}" = set; then
25453 $as_echo_n "(cached) " >&6
25455 ac_check_lib_save_LIBS=$LIBS
25456 LIBS="-lpthread $LIBS"
25457 cat >conftest.$ac_ext <<_ACEOF
25460 cat confdefs.h >>conftest.$ac_ext
25461 cat >>conftest.$ac_ext <<_ACEOF
25462 /* end confdefs.h. */
25464 /* Override any GCC internal prototype to avoid an error.
25465 Use char because int might match the return type of a GCC
25466 builtin and then its argument prototype would still apply. */
25474 return _Psigwait ();
25479 rm -f conftest.$ac_objext conftest$ac_exeext
25480 if { (ac_try="$ac_link"
25481 case "(($ac_try" in
25482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25483 *) ac_try_echo=$ac_try;;
25485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25486 $as_echo "$ac_try_echo") >&5
25487 (eval "$ac_link") 2>conftest.er1
25489 grep -v '^ *+' conftest.er1 >conftest.err
25491 cat conftest.err >&5
25492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493 (exit $ac_status); } && {
25494 test -z "$ac_c_werror_flag" ||
25495 test ! -s conftest.err
25496 } && test -s conftest$ac_exeext && {
25497 test "$cross_compiling" = yes ||
25498 $as_test_x conftest$ac_exeext
25500 ac_cv_lib_pthread__Psigwait=yes
25502 $as_echo "$as_me: failed program was:" >&5
25503 sed 's/^/| /' conftest.$ac_ext >&5
25505 ac_cv_lib_pthread__Psigwait=no
25508 rm -rf conftest.dSYM
25509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25510 conftest$ac_exeext conftest.$ac_ext
25511 LIBS=$ac_check_lib_save_LIBS
25513 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread__Psigwait" >&5
25514 $as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
25515 if test $ac_cv_lib_pthread__Psigwait = yes; then
25516 cat >>confdefs.h <<\_ACEOF
25517 #define HAVE_SIGWAIT 1
25529 { $as_echo "$as_me:$LINENO: checking for pthread_attr_getstacksize" >&5
25530 $as_echo_n "checking for pthread_attr_getstacksize... " >&6; }
25531 if test "${ac_cv_func_pthread_attr_getstacksize+set}" = set; then
25532 $as_echo_n "(cached) " >&6
25534 cat >conftest.$ac_ext <<_ACEOF
25537 cat confdefs.h >>conftest.$ac_ext
25538 cat >>conftest.$ac_ext <<_ACEOF
25539 /* end confdefs.h. */
25540 /* Define pthread_attr_getstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_getstacksize.
25541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25542 #define pthread_attr_getstacksize innocuous_pthread_attr_getstacksize
25544 /* System header to define __stub macros and hopefully few prototypes,
25545 which can conflict with char pthread_attr_getstacksize (); below.
25546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25547 <limits.h> exists even on freestanding compilers. */
25550 # include <limits.h>
25552 # include <assert.h>
25555 #undef pthread_attr_getstacksize
25557 /* Override any GCC internal prototype to avoid an error.
25558 Use char because int might match the return type of a GCC
25559 builtin and then its argument prototype would still apply. */
25563 char pthread_attr_getstacksize ();
25564 /* The GNU C library defines this for functions which it implements
25565 to always fail with ENOSYS. Some functions are actually named
25566 something starting with __ and the normal name is an alias. */
25567 #if defined __stub_pthread_attr_getstacksize || defined __stub___pthread_attr_getstacksize
25574 return pthread_attr_getstacksize ();
25579 rm -f conftest.$ac_objext conftest$ac_exeext
25580 if { (ac_try="$ac_link"
25581 case "(($ac_try" in
25582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25583 *) ac_try_echo=$ac_try;;
25585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25586 $as_echo "$ac_try_echo") >&5
25587 (eval "$ac_link") 2>conftest.er1
25589 grep -v '^ *+' conftest.er1 >conftest.err
25591 cat conftest.err >&5
25592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593 (exit $ac_status); } && {
25594 test -z "$ac_c_werror_flag" ||
25595 test ! -s conftest.err
25596 } && test -s conftest$ac_exeext && {
25597 test "$cross_compiling" = yes ||
25598 $as_test_x conftest$ac_exeext
25600 ac_cv_func_pthread_attr_getstacksize=yes
25602 $as_echo "$as_me: failed program was:" >&5
25603 sed 's/^/| /' conftest.$ac_ext >&5
25605 ac_cv_func_pthread_attr_getstacksize=no
25608 rm -rf conftest.dSYM
25609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25610 conftest$ac_exeext conftest.$ac_ext
25612 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getstacksize" >&5
25613 $as_echo "$ac_cv_func_pthread_attr_getstacksize" >&6; }
25614 if test $ac_cv_func_pthread_attr_getstacksize = yes; then
25615 cat >>confdefs.h <<\_ACEOF
25616 #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
25622 { $as_echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
25623 $as_echo_n "checking for pthread_attr_setstacksize... " >&6; }
25624 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
25625 $as_echo_n "(cached) " >&6
25627 cat >conftest.$ac_ext <<_ACEOF
25630 cat confdefs.h >>conftest.$ac_ext
25631 cat >>conftest.$ac_ext <<_ACEOF
25632 /* end confdefs.h. */
25633 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
25634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25635 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
25637 /* System header to define __stub macros and hopefully few prototypes,
25638 which can conflict with char pthread_attr_setstacksize (); below.
25639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25640 <limits.h> exists even on freestanding compilers. */
25643 # include <limits.h>
25645 # include <assert.h>
25648 #undef pthread_attr_setstacksize
25650 /* Override any GCC internal prototype to avoid an error.
25651 Use char because int might match the return type of a GCC
25652 builtin and then its argument prototype would still apply. */
25656 char pthread_attr_setstacksize ();
25657 /* The GNU C library defines this for functions which it implements
25658 to always fail with ENOSYS. Some functions are actually named
25659 something starting with __ and the normal name is an alias. */
25660 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
25667 return pthread_attr_setstacksize ();
25672 rm -f conftest.$ac_objext conftest$ac_exeext
25673 if { (ac_try="$ac_link"
25674 case "(($ac_try" in
25675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25676 *) ac_try_echo=$ac_try;;
25678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25679 $as_echo "$ac_try_echo") >&5
25680 (eval "$ac_link") 2>conftest.er1
25682 grep -v '^ *+' conftest.er1 >conftest.err
25684 cat conftest.err >&5
25685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25686 (exit $ac_status); } && {
25687 test -z "$ac_c_werror_flag" ||
25688 test ! -s conftest.err
25689 } && test -s conftest$ac_exeext && {
25690 test "$cross_compiling" = yes ||
25691 $as_test_x conftest$ac_exeext
25693 ac_cv_func_pthread_attr_setstacksize=yes
25695 $as_echo "$as_me: failed program was:" >&5
25696 sed 's/^/| /' conftest.$ac_ext >&5
25698 ac_cv_func_pthread_attr_setstacksize=no
25701 rm -rf conftest.dSYM
25702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25703 conftest$ac_exeext conftest.$ac_ext
25705 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
25706 $as_echo "$ac_cv_func_pthread_attr_setstacksize" >&6; }
25707 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
25708 cat >>confdefs.h <<\_ACEOF
25709 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
25716 # Additional OS-specific issues related to pthreads and sigwait.
25720 # One more place to look for sigwait.
25723 { $as_echo "$as_me:$LINENO: checking for sigwait in -lc_r" >&5
25724 $as_echo_n "checking for sigwait in -lc_r... " >&6; }
25725 if test "${ac_cv_lib_c_r_sigwait+set}" = set; then
25726 $as_echo_n "(cached) " >&6
25728 ac_check_lib_save_LIBS=$LIBS
25730 cat >conftest.$ac_ext <<_ACEOF
25733 cat confdefs.h >>conftest.$ac_ext
25734 cat >>conftest.$ac_ext <<_ACEOF
25735 /* end confdefs.h. */
25737 /* Override any GCC internal prototype to avoid an error.
25738 Use char because int might match the return type of a GCC
25739 builtin and then its argument prototype would still apply. */
25752 rm -f conftest.$ac_objext conftest$ac_exeext
25753 if { (ac_try="$ac_link"
25754 case "(($ac_try" in
25755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25756 *) ac_try_echo=$ac_try;;
25758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25759 $as_echo "$ac_try_echo") >&5
25760 (eval "$ac_link") 2>conftest.er1
25762 grep -v '^ *+' conftest.er1 >conftest.err
25764 cat conftest.err >&5
25765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766 (exit $ac_status); } && {
25767 test -z "$ac_c_werror_flag" ||
25768 test ! -s conftest.err
25769 } && test -s conftest$ac_exeext && {
25770 test "$cross_compiling" = yes ||
25771 $as_test_x conftest$ac_exeext
25773 ac_cv_lib_c_r_sigwait=yes
25775 $as_echo "$as_me: failed program was:" >&5
25776 sed 's/^/| /' conftest.$ac_ext >&5
25778 ac_cv_lib_c_r_sigwait=no
25781 rm -rf conftest.dSYM
25782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25783 conftest$ac_exeext conftest.$ac_ext
25784 LIBS=$ac_check_lib_save_LIBS
25786 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_sigwait" >&5
25787 $as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
25788 if test $ac_cv_lib_c_r_sigwait = yes; then
25789 cat >>confdefs.h <<\_ACEOF
25790 #define HAVE_SIGWAIT 1
25796 *-freebsd5.[012]|*-freebsd5.[012].*);;
25797 *-freebsd5.[3456789]|*-freebsd5.[3456789].*)
25798 cat >>confdefs.h <<\_ACEOF
25799 #define NEED_PTHREAD_SCOPE_SYSTEM 1
25804 cat >>confdefs.h <<\_ACEOF
25805 #define NEED_PTHREAD_SCOPE_SYSTEM 1
25812 # BSDI 3.0 through 4.0.1 needs pthread_init() to be
25813 # called before certain pthreads calls. This is deprecated
25816 *-bsdi3.*|*-bsdi4.0*)
25817 cat >>confdefs.h <<\_ACEOF
25818 #define NEED_PTHREAD_INIT 1
25823 # LinuxThreads requires some changes to the way we
25824 # deal with signals.
25827 cat >>confdefs.h <<\_ACEOF
25828 #define HAVE_LINUXTHREADS 1
25833 # Ensure the right sigwait() semantics on Solaris and make
25834 # sure we call pthread_setconcurrency.
25837 cat >>confdefs.h <<\_ACEOF
25838 #define _POSIX_PTHREAD_SEMANTICS 1
25841 { $as_echo "$as_me:$LINENO: checking for pthread_setconcurrency" >&5
25842 $as_echo_n "checking for pthread_setconcurrency... " >&6; }
25843 if test "${ac_cv_func_pthread_setconcurrency+set}" = set; then
25844 $as_echo_n "(cached) " >&6
25846 cat >conftest.$ac_ext <<_ACEOF
25849 cat confdefs.h >>conftest.$ac_ext
25850 cat >>conftest.$ac_ext <<_ACEOF
25851 /* end confdefs.h. */
25852 /* Define pthread_setconcurrency to an innocuous variant, in case <limits.h> declares pthread_setconcurrency.
25853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25854 #define pthread_setconcurrency innocuous_pthread_setconcurrency
25856 /* System header to define __stub macros and hopefully few prototypes,
25857 which can conflict with char pthread_setconcurrency (); below.
25858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25859 <limits.h> exists even on freestanding compilers. */
25862 # include <limits.h>
25864 # include <assert.h>
25867 #undef pthread_setconcurrency
25869 /* Override any GCC internal prototype to avoid an error.
25870 Use char because int might match the return type of a GCC
25871 builtin and then its argument prototype would still apply. */
25875 char pthread_setconcurrency ();
25876 /* The GNU C library defines this for functions which it implements
25877 to always fail with ENOSYS. Some functions are actually named
25878 something starting with __ and the normal name is an alias. */
25879 #if defined __stub_pthread_setconcurrency || defined __stub___pthread_setconcurrency
25886 return pthread_setconcurrency ();
25891 rm -f conftest.$ac_objext conftest$ac_exeext
25892 if { (ac_try="$ac_link"
25893 case "(($ac_try" in
25894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25895 *) ac_try_echo=$ac_try;;
25897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25898 $as_echo "$ac_try_echo") >&5
25899 (eval "$ac_link") 2>conftest.er1
25901 grep -v '^ *+' conftest.er1 >conftest.err
25903 cat conftest.err >&5
25904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905 (exit $ac_status); } && {
25906 test -z "$ac_c_werror_flag" ||
25907 test ! -s conftest.err
25908 } && test -s conftest$ac_exeext && {
25909 test "$cross_compiling" = yes ||
25910 $as_test_x conftest$ac_exeext
25912 ac_cv_func_pthread_setconcurrency=yes
25914 $as_echo "$as_me: failed program was:" >&5
25915 sed 's/^/| /' conftest.$ac_ext >&5
25917 ac_cv_func_pthread_setconcurrency=no
25920 rm -rf conftest.dSYM
25921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25922 conftest$ac_exeext conftest.$ac_ext
25924 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_setconcurrency" >&5
25925 $as_echo "$ac_cv_func_pthread_setconcurrency" >&6; }
25926 if test $ac_cv_func_pthread_setconcurrency = yes; then
25927 cat >>confdefs.h <<\_ACEOF
25928 #define CALL_PTHREAD_SETCONCURRENCY 1
25935 # UnixWare does things its own way.
25937 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
25938 cat >>confdefs.h <<\_ACEOF
25939 #define HAVE_UNIXWARE_SIGWAIT 1
25946 # Look for sysconf to allow detection of the number of processors.
25948 { $as_echo "$as_me:$LINENO: checking for sysconf" >&5
25949 $as_echo_n "checking for sysconf... " >&6; }
25950 if test "${ac_cv_func_sysconf+set}" = set; then
25951 $as_echo_n "(cached) " >&6
25953 cat >conftest.$ac_ext <<_ACEOF
25956 cat confdefs.h >>conftest.$ac_ext
25957 cat >>conftest.$ac_ext <<_ACEOF
25958 /* end confdefs.h. */
25959 /* Define sysconf to an innocuous variant, in case <limits.h> declares sysconf.
25960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25961 #define sysconf innocuous_sysconf
25963 /* System header to define __stub macros and hopefully few prototypes,
25964 which can conflict with char sysconf (); below.
25965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25966 <limits.h> exists even on freestanding compilers. */
25969 # include <limits.h>
25971 # include <assert.h>
25976 /* Override any GCC internal prototype to avoid an error.
25977 Use char because int might match the return type of a GCC
25978 builtin and then its argument prototype would still apply. */
25983 /* The GNU C library defines this for functions which it implements
25984 to always fail with ENOSYS. Some functions are actually named
25985 something starting with __ and the normal name is an alias. */
25986 #if defined __stub_sysconf || defined __stub___sysconf
25998 rm -f conftest.$ac_objext conftest$ac_exeext
25999 if { (ac_try="$ac_link"
26000 case "(($ac_try" in
26001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26002 *) ac_try_echo=$ac_try;;
26004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26005 $as_echo "$ac_try_echo") >&5
26006 (eval "$ac_link") 2>conftest.er1
26008 grep -v '^ *+' conftest.er1 >conftest.err
26010 cat conftest.err >&5
26011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012 (exit $ac_status); } && {
26013 test -z "$ac_c_werror_flag" ||
26014 test ! -s conftest.err
26015 } && test -s conftest$ac_exeext && {
26016 test "$cross_compiling" = yes ||
26017 $as_test_x conftest$ac_exeext
26019 ac_cv_func_sysconf=yes
26021 $as_echo "$as_me: failed program was:" >&5
26022 sed 's/^/| /' conftest.$ac_ext >&5
26024 ac_cv_func_sysconf=no
26027 rm -rf conftest.dSYM
26028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26029 conftest$ac_exeext conftest.$ac_ext
26031 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_sysconf" >&5
26032 $as_echo "$ac_cv_func_sysconf" >&6; }
26033 if test $ac_cv_func_sysconf = yes; then
26034 cat >>confdefs.h <<\_ACEOF
26035 #define HAVE_SYSCONF 1
26042 ISC_PLATFORM_USETHREADS="#undef ISC_PLATFORM_USETHREADS"
26043 thread_dir=nothreads
26049 ISC_THREAD_DIR=$thread_dir
26053 # was --with-libxml2 specified?
26055 { $as_echo "$as_me:$LINENO: checking for libxml2 library" >&5
26056 $as_echo_n "checking for libxml2 library... " >&6; }
26058 # Check whether --with-libxml2 was given.
26059 if test "${with_libxml2+set}" = set; then
26060 withval=$with_libxml2; use_libxml2="$withval"
26066 case "$use_libxml2" in
26071 case X`(xml2-config --version) 2>/dev/null` in
26073 libxml2_libs=`xml2-config --libs`
26074 libxml2_cflags=`xml2-config --cflags`
26083 if test -f "$use_libxml2/bin/xml2-config" ; then
26084 libxml2_libs=`$use_libxml2/bin/xml2-config --libs`
26085 libxml2_cflags=`$use_libxml2/bin/xml2-config --cflags`
26090 if test "X$libxml2_libs" != "X"
26092 { $as_echo "$as_me:$LINENO: result: yes" >&5
26093 $as_echo "yes" >&6; }
26094 CFLAGS="$CFLAGS $libxml2_cflags"
26095 LIBS="$LIBS $libxml2_libs"
26097 cat >>confdefs.h <<\_ACEOF
26098 #define HAVE_LIBXML2 1
26102 { $as_echo "$as_me:$LINENO: result: no" >&5
26103 $as_echo "no" >&6; }
26107 # In solaris 10, SMF can manage named service
26110 { $as_echo "$as_me:$LINENO: checking for smf_enable_instance in -lscf" >&5
26111 $as_echo_n "checking for smf_enable_instance in -lscf... " >&6; }
26112 if test "${ac_cv_lib_scf_smf_enable_instance+set}" = set; then
26113 $as_echo_n "(cached) " >&6
26115 ac_check_lib_save_LIBS=$LIBS
26117 cat >conftest.$ac_ext <<_ACEOF
26120 cat confdefs.h >>conftest.$ac_ext
26121 cat >>conftest.$ac_ext <<_ACEOF
26122 /* end confdefs.h. */
26124 /* Override any GCC internal prototype to avoid an error.
26125 Use char because int might match the return type of a GCC
26126 builtin and then its argument prototype would still apply. */
26130 char smf_enable_instance ();
26134 return smf_enable_instance ();
26139 rm -f conftest.$ac_objext conftest$ac_exeext
26140 if { (ac_try="$ac_link"
26141 case "(($ac_try" in
26142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26143 *) ac_try_echo=$ac_try;;
26145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26146 $as_echo "$ac_try_echo") >&5
26147 (eval "$ac_link") 2>conftest.er1
26149 grep -v '^ *+' conftest.er1 >conftest.err
26151 cat conftest.err >&5
26152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26153 (exit $ac_status); } && {
26154 test -z "$ac_c_werror_flag" ||
26155 test ! -s conftest.err
26156 } && test -s conftest$ac_exeext && {
26157 test "$cross_compiling" = yes ||
26158 $as_test_x conftest$ac_exeext
26160 ac_cv_lib_scf_smf_enable_instance=yes
26162 $as_echo "$as_me: failed program was:" >&5
26163 sed 's/^/| /' conftest.$ac_ext >&5
26165 ac_cv_lib_scf_smf_enable_instance=no
26168 rm -rf conftest.dSYM
26169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26170 conftest$ac_exeext conftest.$ac_ext
26171 LIBS=$ac_check_lib_save_LIBS
26173 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_scf_smf_enable_instance" >&5
26174 $as_echo "$ac_cv_lib_scf_smf_enable_instance" >&6; }
26175 if test $ac_cv_lib_scf_smf_enable_instance = yes; then
26176 cat >>confdefs.h <<_ACEOF
26177 #define HAVE_LIBSCF 1
26186 # flockfile is usually provided by pthreads, but we may want to use it
26187 # even if compiled with --disable-threads. getc_unlocked might also not
26190 { $as_echo "$as_me:$LINENO: checking for flockfile" >&5
26191 $as_echo_n "checking for flockfile... " >&6; }
26192 if test "${ac_cv_func_flockfile+set}" = set; then
26193 $as_echo_n "(cached) " >&6
26195 cat >conftest.$ac_ext <<_ACEOF
26198 cat confdefs.h >>conftest.$ac_ext
26199 cat >>conftest.$ac_ext <<_ACEOF
26200 /* end confdefs.h. */
26201 /* Define flockfile to an innocuous variant, in case <limits.h> declares flockfile.
26202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26203 #define flockfile innocuous_flockfile
26205 /* System header to define __stub macros and hopefully few prototypes,
26206 which can conflict with char flockfile (); below.
26207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26208 <limits.h> exists even on freestanding compilers. */
26211 # include <limits.h>
26213 # include <assert.h>
26218 /* Override any GCC internal prototype to avoid an error.
26219 Use char because int might match the return type of a GCC
26220 builtin and then its argument prototype would still apply. */
26225 /* The GNU C library defines this for functions which it implements
26226 to always fail with ENOSYS. Some functions are actually named
26227 something starting with __ and the normal name is an alias. */
26228 #if defined __stub_flockfile || defined __stub___flockfile
26235 return flockfile ();
26240 rm -f conftest.$ac_objext conftest$ac_exeext
26241 if { (ac_try="$ac_link"
26242 case "(($ac_try" in
26243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26244 *) ac_try_echo=$ac_try;;
26246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26247 $as_echo "$ac_try_echo") >&5
26248 (eval "$ac_link") 2>conftest.er1
26250 grep -v '^ *+' conftest.er1 >conftest.err
26252 cat conftest.err >&5
26253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254 (exit $ac_status); } && {
26255 test -z "$ac_c_werror_flag" ||
26256 test ! -s conftest.err
26257 } && test -s conftest$ac_exeext && {
26258 test "$cross_compiling" = yes ||
26259 $as_test_x conftest$ac_exeext
26261 ac_cv_func_flockfile=yes
26263 $as_echo "$as_me: failed program was:" >&5
26264 sed 's/^/| /' conftest.$ac_ext >&5
26266 ac_cv_func_flockfile=no
26269 rm -rf conftest.dSYM
26270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26271 conftest$ac_exeext conftest.$ac_ext
26273 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_flockfile" >&5
26274 $as_echo "$ac_cv_func_flockfile" >&6; }
26275 if test $ac_cv_func_flockfile = yes; then
26276 cat >>confdefs.h <<\_ACEOF
26277 #define HAVE_FLOCKFILE 1
26282 { $as_echo "$as_me:$LINENO: checking for getc_unlocked" >&5
26283 $as_echo_n "checking for getc_unlocked... " >&6; }
26284 if test "${ac_cv_func_getc_unlocked+set}" = set; then
26285 $as_echo_n "(cached) " >&6
26287 cat >conftest.$ac_ext <<_ACEOF
26290 cat confdefs.h >>conftest.$ac_ext
26291 cat >>conftest.$ac_ext <<_ACEOF
26292 /* end confdefs.h. */
26293 /* Define getc_unlocked to an innocuous variant, in case <limits.h> declares getc_unlocked.
26294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26295 #define getc_unlocked innocuous_getc_unlocked
26297 /* System header to define __stub macros and hopefully few prototypes,
26298 which can conflict with char getc_unlocked (); below.
26299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26300 <limits.h> exists even on freestanding compilers. */
26303 # include <limits.h>
26305 # include <assert.h>
26308 #undef getc_unlocked
26310 /* Override any GCC internal prototype to avoid an error.
26311 Use char because int might match the return type of a GCC
26312 builtin and then its argument prototype would still apply. */
26316 char getc_unlocked ();
26317 /* The GNU C library defines this for functions which it implements
26318 to always fail with ENOSYS. Some functions are actually named
26319 something starting with __ and the normal name is an alias. */
26320 #if defined __stub_getc_unlocked || defined __stub___getc_unlocked
26327 return getc_unlocked ();
26332 rm -f conftest.$ac_objext conftest$ac_exeext
26333 if { (ac_try="$ac_link"
26334 case "(($ac_try" in
26335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26336 *) ac_try_echo=$ac_try;;
26338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26339 $as_echo "$ac_try_echo") >&5
26340 (eval "$ac_link") 2>conftest.er1
26342 grep -v '^ *+' conftest.er1 >conftest.err
26344 cat conftest.err >&5
26345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346 (exit $ac_status); } && {
26347 test -z "$ac_c_werror_flag" ||
26348 test ! -s conftest.err
26349 } && test -s conftest$ac_exeext && {
26350 test "$cross_compiling" = yes ||
26351 $as_test_x conftest$ac_exeext
26353 ac_cv_func_getc_unlocked=yes
26355 $as_echo "$as_me: failed program was:" >&5
26356 sed 's/^/| /' conftest.$ac_ext >&5
26358 ac_cv_func_getc_unlocked=no
26361 rm -rf conftest.dSYM
26362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26363 conftest$ac_exeext conftest.$ac_ext
26365 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getc_unlocked" >&5
26366 $as_echo "$ac_cv_func_getc_unlocked" >&6; }
26367 if test $ac_cv_func_getc_unlocked = yes; then
26368 cat >>confdefs.h <<\_ACEOF
26369 #define HAVE_GETCUNLOCKED 1
26376 # Indicate what the final decision was regarding threads.
26378 { $as_echo "$as_me:$LINENO: checking whether to build with threads" >&5
26379 $as_echo_n "checking whether to build with threads... " >&6; }
26380 if $use_threads; then
26381 { $as_echo "$as_me:$LINENO: result: yes" >&5
26382 $as_echo "yes" >&6; }
26384 { $as_echo "$as_me:$LINENO: result: no" >&5
26385 $as_echo "no" >&6; }
26389 # End of pthreads stuff.
26395 # Check whether --enable-largefile was given.
26396 if test "${enable_largefile+set}" = set; then
26397 enableval=$enable_largefile; want_largefile="yes"
26399 want_largefile="no"
26402 case $want_largefile in
26404 ALWAYS_DEFINES="$ALWAYS_DEFINES -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
26411 # Additional compiler settings.
26415 IRIX_DNSSEC_WARNINGS_HACK=""
26417 if test "X$GCC" = "Xyes"; then
26418 { $as_echo "$as_me:$LINENO: checking if \"$CC\" supports -fno-strict-aliasing" >&5
26419 $as_echo_n "checking if \"$CC\" supports -fno-strict-aliasing... " >&6; }
26420 SAVE_CFLAGS=$CFLAGS
26421 CFLAGS="$CFLAGS -fno-strict-aliasing"
26422 cat >conftest.$ac_ext <<_ACEOF
26425 cat confdefs.h >>conftest.$ac_ext
26426 cat >>conftest.$ac_ext <<_ACEOF
26427 /* end confdefs.h. */
26437 rm -f conftest.$ac_objext
26438 if { (ac_try="$ac_compile"
26439 case "(($ac_try" in
26440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26441 *) ac_try_echo=$ac_try;;
26443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26444 $as_echo "$ac_try_echo") >&5
26445 (eval "$ac_compile") 2>conftest.er1
26447 grep -v '^ *+' conftest.er1 >conftest.err
26449 cat conftest.err >&5
26450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26451 (exit $ac_status); } && {
26452 test -z "$ac_c_werror_flag" ||
26453 test ! -s conftest.err
26454 } && test -s conftest.$ac_objext; then
26455 FNOSTRICTALIASING=yes
26457 $as_echo "$as_me: failed program was:" >&5
26458 sed 's/^/| /' conftest.$ac_ext >&5
26460 FNOSTRICTALIASING=no
26463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26464 CFLAGS=$SAVE_CFLAGS
26465 if test "$FNOSTRICTALIASING" = "yes"; then
26466 { $as_echo "$as_me:$LINENO: result: yes" >&5
26467 $as_echo "yes" >&6; }
26468 STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing"
26470 { $as_echo "$as_me:$LINENO: result: no" >&5
26471 $as_echo "no" >&6; }
26472 STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
26476 LDFLAGS="-Wl,+vnocompatwarnings $LDFLAGS"
26483 CCOPT="$CCOPT -std"
26488 # The version of the C compiler that constantly warns about
26489 # 'const' as well as alignment issues is unfortunately not
26490 # able to be discerned via the version of the operating
26491 # system, nor does cc have a version flag.
26492 case "`$CC +W 123 2>&1`" in
26494 STD_CWARNINGS="+w1"
26497 # Turn off the pointlessly noisy warnings.
26498 STD_CWARNINGS="+w1 +W 474,530,2193,2236"
26501 CCOPT="$CCOPT -Ae -z"
26502 LDFLAGS="-Wl,+vnocompatwarnings $LDFLAGS"
26503 MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
26506 STD_CWARNINGS="-fullwarn -woff 1209"
26508 # Silence more than 250 instances of
26509 # "prototyped function redeclared without prototype"
26510 # and 11 instances of
26511 # "variable ... was set but never used"
26512 # from lib/dns/sec/openssl.
26514 IRIX_DNSSEC_WARNINGS_HACK="-woff 1692,1552"
26519 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
26534 { $as_echo "$as_me:$LINENO: checking for catgets" >&5
26535 $as_echo_n "checking for catgets... " >&6; }
26536 if test "${ac_cv_func_catgets+set}" = set; then
26537 $as_echo_n "(cached) " >&6
26539 cat >conftest.$ac_ext <<_ACEOF
26542 cat confdefs.h >>conftest.$ac_ext
26543 cat >>conftest.$ac_ext <<_ACEOF
26544 /* end confdefs.h. */
26545 /* Define catgets to an innocuous variant, in case <limits.h> declares catgets.
26546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26547 #define catgets innocuous_catgets
26549 /* System header to define __stub macros and hopefully few prototypes,
26550 which can conflict with char catgets (); below.
26551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26552 <limits.h> exists even on freestanding compilers. */
26555 # include <limits.h>
26557 # include <assert.h>
26562 /* Override any GCC internal prototype to avoid an error.
26563 Use char because int might match the return type of a GCC
26564 builtin and then its argument prototype would still apply. */
26569 /* The GNU C library defines this for functions which it implements
26570 to always fail with ENOSYS. Some functions are actually named
26571 something starting with __ and the normal name is an alias. */
26572 #if defined __stub_catgets || defined __stub___catgets
26584 rm -f conftest.$ac_objext conftest$ac_exeext
26585 if { (ac_try="$ac_link"
26586 case "(($ac_try" in
26587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26588 *) ac_try_echo=$ac_try;;
26590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26591 $as_echo "$ac_try_echo") >&5
26592 (eval "$ac_link") 2>conftest.er1
26594 grep -v '^ *+' conftest.er1 >conftest.err
26596 cat conftest.err >&5
26597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26598 (exit $ac_status); } && {
26599 test -z "$ac_c_werror_flag" ||
26600 test ! -s conftest.err
26601 } && test -s conftest$ac_exeext && {
26602 test "$cross_compiling" = yes ||
26603 $as_test_x conftest$ac_exeext
26605 ac_cv_func_catgets=yes
26607 $as_echo "$as_me: failed program was:" >&5
26608 sed 's/^/| /' conftest.$ac_ext >&5
26610 ac_cv_func_catgets=no
26613 rm -rf conftest.dSYM
26614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26615 conftest$ac_exeext conftest.$ac_ext
26617 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_catgets" >&5
26618 $as_echo "$ac_cv_func_catgets" >&6; }
26619 if test $ac_cv_func_catgets = yes; then
26620 cat >>confdefs.h <<\_ACEOF
26621 #define HAVE_CATGETS 1
26628 # -lxnet buys us one big porting headache... standards, gotta love 'em.
26630 # AC_CHECK_LIB(xnet, socket, ,
26631 # AC_CHECK_LIB(socket, socket)
26634 # Use this for now, instead:
26643 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26644 $as_echo_n "checking for socket in -lsocket... " >&6; }
26645 if test "${ac_cv_lib_socket_socket+set}" = set; then
26646 $as_echo_n "(cached) " >&6
26648 ac_check_lib_save_LIBS=$LIBS
26649 LIBS="-lsocket $LIBS"
26650 cat >conftest.$ac_ext <<_ACEOF
26653 cat confdefs.h >>conftest.$ac_ext
26654 cat >>conftest.$ac_ext <<_ACEOF
26655 /* end confdefs.h. */
26657 /* Override any GCC internal prototype to avoid an error.
26658 Use char because int might match the return type of a GCC
26659 builtin and then its argument prototype would still apply. */
26672 rm -f conftest.$ac_objext conftest$ac_exeext
26673 if { (ac_try="$ac_link"
26674 case "(($ac_try" in
26675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26676 *) ac_try_echo=$ac_try;;
26678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26679 $as_echo "$ac_try_echo") >&5
26680 (eval "$ac_link") 2>conftest.er1
26682 grep -v '^ *+' conftest.er1 >conftest.err
26684 cat conftest.err >&5
26685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686 (exit $ac_status); } && {
26687 test -z "$ac_c_werror_flag" ||
26688 test ! -s conftest.err
26689 } && test -s conftest$ac_exeext && {
26690 test "$cross_compiling" = yes ||
26691 $as_test_x conftest$ac_exeext
26693 ac_cv_lib_socket_socket=yes
26695 $as_echo "$as_me: failed program was:" >&5
26696 sed 's/^/| /' conftest.$ac_ext >&5
26698 ac_cv_lib_socket_socket=no
26701 rm -rf conftest.dSYM
26702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26703 conftest$ac_exeext conftest.$ac_ext
26704 LIBS=$ac_check_lib_save_LIBS
26706 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26707 $as_echo "$ac_cv_lib_socket_socket" >&6; }
26708 if test $ac_cv_lib_socket_socket = yes; then
26709 cat >>confdefs.h <<_ACEOF
26710 #define HAVE_LIBSOCKET 1
26713 LIBS="-lsocket $LIBS"
26718 { $as_echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
26719 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
26720 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
26721 $as_echo_n "(cached) " >&6
26723 ac_check_lib_save_LIBS=$LIBS
26725 cat >conftest.$ac_ext <<_ACEOF
26728 cat confdefs.h >>conftest.$ac_ext
26729 cat >>conftest.$ac_ext <<_ACEOF
26730 /* end confdefs.h. */
26732 /* Override any GCC internal prototype to avoid an error.
26733 Use char because int might match the return type of a GCC
26734 builtin and then its argument prototype would still apply. */
26742 return inet_addr ();
26747 rm -f conftest.$ac_objext conftest$ac_exeext
26748 if { (ac_try="$ac_link"
26749 case "(($ac_try" in
26750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26751 *) ac_try_echo=$ac_try;;
26753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26754 $as_echo "$ac_try_echo") >&5
26755 (eval "$ac_link") 2>conftest.er1
26757 grep -v '^ *+' conftest.er1 >conftest.err
26759 cat conftest.err >&5
26760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26761 (exit $ac_status); } && {
26762 test -z "$ac_c_werror_flag" ||
26763 test ! -s conftest.err
26764 } && test -s conftest$ac_exeext && {
26765 test "$cross_compiling" = yes ||
26766 $as_test_x conftest$ac_exeext
26768 ac_cv_lib_nsl_inet_addr=yes
26770 $as_echo "$as_me: failed program was:" >&5
26771 sed 's/^/| /' conftest.$ac_ext >&5
26773 ac_cv_lib_nsl_inet_addr=no
26776 rm -rf conftest.dSYM
26777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26778 conftest$ac_exeext conftest.$ac_ext
26779 LIBS=$ac_check_lib_save_LIBS
26781 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
26782 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
26783 if test $ac_cv_lib_nsl_inet_addr = yes; then
26784 cat >>confdefs.h <<_ACEOF
26785 #define HAVE_LIBNSL 1
26796 # Work around Solaris's select() limitations.
26799 *-solaris2.[89]|*-solaris2.1?)
26801 cat >>confdefs.h <<\_ACEOF
26802 #define FD_SETSIZE 65536
26811 { $as_echo "$as_me:$LINENO: checking whether to use purify" >&5
26812 $as_echo_n "checking whether to use purify... " >&6; }
26814 # Check whether --with-purify was given.
26815 if test "${with_purify+set}" = set; then
26816 withval=$with_purify; use_purify="$withval"
26822 case "$use_purify" in
26826 # Extract the first word of "purify", so it can be a program name with args.
26827 set dummy purify; ac_word=$2
26828 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26829 $as_echo_n "checking for $ac_word... " >&6; }
26830 if test "${ac_cv_path_purify_path+set}" = set; then
26831 $as_echo_n "(cached) " >&6
26833 case $purify_path in
26835 ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
26838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26839 for as_dir in $PATH
26842 test -z "$as_dir" && as_dir=.
26843 for ac_exec_ext in '' $ac_executable_extensions; do
26844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26845 ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext"
26846 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26853 test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
26857 purify_path=$ac_cv_path_purify_path
26858 if test -n "$purify_path"; then
26859 { $as_echo "$as_me:$LINENO: result: $purify_path" >&5
26860 $as_echo "$purify_path" >&6; }
26862 { $as_echo "$as_me:$LINENO: result: no" >&5
26863 $as_echo "no" >&6; }
26869 purify_path="$use_purify"
26873 case "$use_purify" in
26875 { $as_echo "$as_me:$LINENO: result: no" >&5
26876 $as_echo "no" >&6; }
26880 if test -f $purify_path || test $purify_path = purify; then
26881 { $as_echo "$as_me:$LINENO: result: $purify_path" >&5
26882 $as_echo "$purify_path" >&6; }
26883 PURIFYFLAGS="`echo $PURIFYOPTIONS`"
26884 PURIFY="$purify_path $PURIFYFLAGS"
26886 { { $as_echo "$as_me:$LINENO: error: $purify_path not found.
26888 Please choose the proper path with the following command:
26890 configure --with-purify=PATH
26892 $as_echo "$as_me: error: $purify_path not found.
26894 Please choose the proper path with the following command:
26896 configure --with-purify=PATH
26898 { (exit 1); exit 1; }; }
26907 # Check whether --with-libtool was given.
26908 if test "${with_libtool+set}" = set; then
26909 withval=$with_libtool; use_libtool="$withval"
26915 case $use_libtool in
26920 LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
26921 LIBTOOL_MODE_COMPILE='--mode=compile'
26922 LIBTOOL_MODE_INSTALL='--mode=install'
26923 LIBTOOL_MODE_LINK='--mode=link'
26925 *) LIBTOOL_ALLOW_UNDEFINED= ;;
26928 *-ibm-aix*) LIBTOOL_IN_MAIN="-Wl,-bI:T_testlist.imp" ;;
26929 *) LIBTOOL_IN_MAIN= ;;
26938 LIBTOOL_MODE_COMPILE=
26939 LIBTOOL_MODE_INSTALL=
26941 LIBTOOL_ALLOW_UNDEFINED=
26947 # enable/disable dumping stack backtrace. Also check if the system supports
26948 # glibc-compatible backtrace() function.
26950 # Check whether --enable-backtrace was given.
26951 if test "${enable_backtrace+set}" = set; then
26952 enableval=$enable_backtrace; want_backtrace="$enableval"
26954 want_backtrace="yes"
26957 case $want_backtrace in
26959 ISC_PLATFORM_USEBACKTRACE="#define ISC_PLATFORM_USEBACKTRACE 1"
26960 cat >conftest.$ac_ext <<_ACEOF
26963 cat confdefs.h >>conftest.$ac_ext
26964 cat >>conftest.$ac_ext <<_ACEOF
26965 /* end confdefs.h. */
26966 #include <execinfo.h>
26970 return (backtrace((void **)0, 0));
26975 rm -f conftest.$ac_objext conftest$ac_exeext
26976 if { (ac_try="$ac_link"
26977 case "(($ac_try" in
26978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26979 *) ac_try_echo=$ac_try;;
26981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26982 $as_echo "$ac_try_echo") >&5
26983 (eval "$ac_link") 2>conftest.er1
26985 grep -v '^ *+' conftest.er1 >conftest.err
26987 cat conftest.err >&5
26988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989 (exit $ac_status); } && {
26990 test -z "$ac_c_werror_flag" ||
26991 test ! -s conftest.err
26992 } && test -s conftest$ac_exeext && {
26993 test "$cross_compiling" = yes ||
26994 $as_test_x conftest$ac_exeext
26997 cat >>confdefs.h <<\_ACEOF
26998 #define HAVE_LIBCTRACE /**/
27002 $as_echo "$as_me: failed program was:" >&5
27003 sed 's/^/| /' conftest.$ac_ext >&5
27008 rm -rf conftest.dSYM
27009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27010 conftest$ac_exeext conftest.$ac_ext
27013 ISC_PLATFORM_USEBACKTRACE="#undef ISC_PLATFORM_USEBACKTRACE"
27018 # Check whether --enable-symtable was given.
27019 if test "${enable_symtable+set}" = set; then
27020 enableval=$enable_symtable; want_symtable="$enableval"
27022 want_symtable="minimal"
27025 case $want_symtable in
27026 yes|all|minimal) # "yes" is a hidden value equivalent to "minimal"
27027 if test "$PERL" = ""
27029 { { $as_echo "$as_me:$LINENO: error: Internal symbol table requires perl but no perl is found.
27030 Install perl or explicitly disable the feature by --disable-symtable." >&5
27031 $as_echo "$as_me: error: Internal symbol table requires perl but no perl is found.
27032 Install perl or explicitly disable the feature by --disable-symtable." >&2;}
27033 { (exit 1); exit 1; }; }
27035 if test "$use_libtool" = "yes"; then
27036 { $as_echo "$as_me:$LINENO: WARNING: Internal symbol table does not work with libtool. Disabling symbol table." >&5
27037 $as_echo "$as_me: WARNING: Internal symbol table does not work with libtool. Disabling symbol table." >&2;}
27039 # we generate the internal symbol table only for those systems
27040 # known to work to avoid unexpected build failure. Also, warn
27041 # about unsupported systems when the feature is enabled
27044 freebsd*|netbsd*|openbsd*|linux*|solaris*|darwin*)
27045 MKSYMTBL_PROGRAM="$PERL"
27046 if test $want_symtable = all; then
27047 ALWAYS_MAKE_SYMTABLE="yes"
27051 if test $want_symtable = yes -o $want_symtable = all
27053 { $as_echo "$as_me:$LINENO: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&5
27054 $as_echo "$as_me: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&2;}
27066 # File name extension for static archive files, for those few places
27067 # where they are treated differently from dynamic ones.
27082 # build exportable DNS library?
27084 # Check whether --enable-exportlib was given.
27085 if test "${enable_exportlib+set}" = set; then
27086 enableval=$enable_exportlib;
27089 case "$enable_exportlib" in
27092 for x in gmake gnumake make; do
27093 if $x --version 2>/dev/null | grep GNU > /dev/null; then
27098 if test -z "$gmake"; then
27099 { { $as_echo "$as_me:$LINENO: error: exportlib requires GNU make. Install it or disable the feature." >&5
27100 $as_echo "$as_me: error: exportlib requires GNU make. Install it or disable the feature." >&2;}
27101 { (exit 1); exit 1; }; }
27103 LIBEXPORT=lib/export
27105 BIND9_CO_RULE="%.$O: \${srcdir}/%.c"
27108 BIND9_CO_RULE=".c.$O:"
27114 # Check whether --with-export-libdir was given.
27115 if test "${with_export_libdir+set}" = set; then
27116 withval=$with_export_libdir; export_libdir="$withval"
27119 if test -z "$export_libdir"; then
27120 export_libdir="\${exec_prefix}/lib/bind9/"
27125 # Check whether --with-export-includedir was given.
27126 if test "${with_export_includedir+set}" = set; then
27127 withval=$with_export_includedir; export_includedir="$withval"
27130 if test -z "$export_includedir"; then
27131 export_includedir="\${prefix}/include/bind9/"
27136 # Here begins a very long section to determine the system's networking
27137 # capabilities. The order of the tests is significant.
27143 # Check whether --enable-ipv6 was given.
27144 if test "${enable_ipv6+set}" = set; then
27145 enableval=$enable_ipv6;
27149 case "$enable_ipv6" in
27151 cat >>confdefs.h <<\_ACEOF
27152 #define WANT_IPV6 1
27161 # We do the IPv6 compilation checking after libtool so that we can put
27162 # the right suffix on the files.
27164 { $as_echo "$as_me:$LINENO: checking for IPv6 structures" >&5
27165 $as_echo_n "checking for IPv6 structures... " >&6; }
27166 cat >conftest.$ac_ext <<_ACEOF
27169 cat confdefs.h >>conftest.$ac_ext
27170 cat >>conftest.$ac_ext <<_ACEOF
27171 /* end confdefs.h. */
27173 #include <sys/types.h>
27174 #include <sys/socket.h>
27175 #include <netinet/in.h>
27179 struct sockaddr_in6 sin6; return (0);
27184 rm -f conftest.$ac_objext
27185 if { (ac_try="$ac_compile"
27186 case "(($ac_try" in
27187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27188 *) ac_try_echo=$ac_try;;
27190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27191 $as_echo "$ac_try_echo") >&5
27192 (eval "$ac_compile") 2>conftest.er1
27194 grep -v '^ *+' conftest.er1 >conftest.err
27196 cat conftest.err >&5
27197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198 (exit $ac_status); } && {
27199 test -z "$ac_c_werror_flag" ||
27200 test ! -s conftest.err
27201 } && test -s conftest.$ac_objext; then
27202 { $as_echo "$as_me:$LINENO: result: yes" >&5
27203 $as_echo "yes" >&6; }
27206 $as_echo "$as_me: failed program was:" >&5
27207 sed 's/^/| /' conftest.$ac_ext >&5
27209 { $as_echo "$as_me:$LINENO: result: no" >&5
27210 $as_echo "no" >&6; }
27214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27217 # See whether IPv6 support is provided via a Kame add-on.
27218 # This is done before other IPv6 linking tests to LIBS is properly set.
27220 { $as_echo "$as_me:$LINENO: checking for Kame IPv6 support" >&5
27221 $as_echo_n "checking for Kame IPv6 support... " >&6; }
27223 # Check whether --with-kame was given.
27224 if test "${with_kame+set}" = set; then
27225 withval=$with_kame; use_kame="$withval"
27231 case "$use_kame" in
27235 kame_path=/usr/local/v6
27238 kame_path="$use_kame"
27242 case "$use_kame" in
27244 { $as_echo "$as_me:$LINENO: result: no" >&5
27245 $as_echo "no" >&6; }
27248 if test -f $kame_path/lib/libinet6.a; then
27249 { $as_echo "$as_me:$LINENO: result: $kame_path/lib/libinet6.a" >&5
27250 $as_echo "$kame_path/lib/libinet6.a" >&6; }
27251 LIBS="-L$kame_path/lib -linet6 $LIBS"
27253 { { $as_echo "$as_me:$LINENO: error: $kame_path/lib/libinet6.a not found.
27255 Please choose the proper path with the following command:
27257 configure --with-kame=PATH
27259 $as_echo "$as_me: error: $kame_path/lib/libinet6.a not found.
27261 Please choose the proper path with the following command:
27263 configure --with-kame=PATH
27265 { (exit 1); exit 1; }; }
27271 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
27272 # Including it on Kame-using platforms is very bad, though, because
27273 # Kame uses #error against direct inclusion. So include it on only
27274 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
27275 # This is done before the in6_pktinfo check because that's what
27276 # netinet6/in6.h is needed for.
27281 ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1"
27282 LWRES_PLATFORM_NEEDNETINET6IN6H="#define LWRES_PLATFORM_NEEDNETINET6IN6H 1"
27283 isc_netinet6in6_hack="#include <netinet6/in6.h>"
27286 ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H"
27287 LWRES_PLATFORM_NEEDNETINET6IN6H="#undef LWRES_PLATFORM_NEEDNETINET6IN6H"
27288 isc_netinet6in6_hack=""
27294 # This is similar to the netinet6/in6.h issue.
27297 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
27299 ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1"
27300 LWRES_PLATFORM_NEEDNETINETIN6H="#define LWRES_PLATFORM_NEEDNETINETIN6H 1"
27301 ISC_PLATFORM_FIXIN6ISADDR="#define ISC_PLATFORM_FIXIN6ISADDR 1"
27302 isc_netinetin6_hack="#include <netinet/in6.h>"
27305 ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H"
27306 LWRES_PLATFORM_NEEDNETINETIN6H="#undef LWRES_PLATFORM_NEEDNETINETIN6H"
27307 ISC_PLATFORM_FIXIN6ISADDR="#undef ISC_PLATFORM_FIXIN6ISADDR"
27308 isc_netinetin6_hack=""
27313 # Now delve deeper into the suitability of the IPv6 support.
27315 case "$found_ipv6" in
27317 ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1"
27318 LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1"
27320 { $as_echo "$as_me:$LINENO: checking for in6_addr" >&5
27321 $as_echo_n "checking for in6_addr... " >&6; }
27322 cat >conftest.$ac_ext <<_ACEOF
27325 cat confdefs.h >>conftest.$ac_ext
27326 cat >>conftest.$ac_ext <<_ACEOF
27327 /* end confdefs.h. */
27329 #include <sys/types.h>
27330 #include <sys/socket.h>
27331 #include <netinet/in.h>
27332 $isc_netinetin6_hack
27333 $isc_netinet6in6_hack
27338 struct in6_addr in6; return (0);
27343 rm -f conftest.$ac_objext
27344 if { (ac_try="$ac_compile"
27345 case "(($ac_try" in
27346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27347 *) ac_try_echo=$ac_try;;
27349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27350 $as_echo "$ac_try_echo") >&5
27351 (eval "$ac_compile") 2>conftest.er1
27353 grep -v '^ *+' conftest.er1 >conftest.err
27355 cat conftest.err >&5
27356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357 (exit $ac_status); } && {
27358 test -z "$ac_c_werror_flag" ||
27359 test ! -s conftest.err
27360 } && test -s conftest.$ac_objext; then
27361 { $as_echo "$as_me:$LINENO: result: yes" >&5
27362 $as_echo "yes" >&6; }
27363 ISC_PLATFORM_HAVEINADDR6="#undef ISC_PLATFORM_HAVEINADDR6"
27364 LWRES_PLATFORM_HAVEINADDR6="#undef LWRES_PLATFORM_HAVEINADDR6"
27365 isc_in_addr6_hack=""
27367 $as_echo "$as_me: failed program was:" >&5
27368 sed 's/^/| /' conftest.$ac_ext >&5
27370 { $as_echo "$as_me:$LINENO: result: no" >&5
27371 $as_echo "no" >&6; }
27372 ISC_PLATFORM_HAVEINADDR6="#define ISC_PLATFORM_HAVEINADDR6 1"
27373 LWRES_PLATFORM_HAVEINADDR6="#define LWRES_PLATFORM_HAVEINADDR6 1"
27374 isc_in_addr6_hack="#define in6_addr in_addr6"
27377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27379 { $as_echo "$as_me:$LINENO: checking for in6addr_any" >&5
27380 $as_echo_n "checking for in6addr_any... " >&6; }
27381 cat >conftest.$ac_ext <<_ACEOF
27384 cat confdefs.h >>conftest.$ac_ext
27385 cat >>conftest.$ac_ext <<_ACEOF
27386 /* end confdefs.h. */
27388 #include <sys/types.h>
27389 #include <sys/socket.h>
27390 #include <netinet/in.h>
27391 $isc_netinetin6_hack
27392 $isc_netinet6in6_hack
27398 struct in6_addr in6; in6 = in6addr_any; return (in6.s6_addr[0]);
27403 rm -f conftest.$ac_objext conftest$ac_exeext
27404 if { (ac_try="$ac_link"
27405 case "(($ac_try" in
27406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27407 *) ac_try_echo=$ac_try;;
27409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27410 $as_echo "$ac_try_echo") >&5
27411 (eval "$ac_link") 2>conftest.er1
27413 grep -v '^ *+' conftest.er1 >conftest.err
27415 cat conftest.err >&5
27416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417 (exit $ac_status); } && {
27418 test -z "$ac_c_werror_flag" ||
27419 test ! -s conftest.err
27420 } && test -s conftest$ac_exeext && {
27421 test "$cross_compiling" = yes ||
27422 $as_test_x conftest$ac_exeext
27424 { $as_echo "$as_me:$LINENO: result: yes" >&5
27425 $as_echo "yes" >&6; }
27426 ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
27427 LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
27429 $as_echo "$as_me: failed program was:" >&5
27430 sed 's/^/| /' conftest.$ac_ext >&5
27432 { $as_echo "$as_me:$LINENO: result: no" >&5
27433 $as_echo "no" >&6; }
27434 ISC_PLATFORM_NEEDIN6ADDRANY="#define ISC_PLATFORM_NEEDIN6ADDRANY 1"
27435 LWRES_PLATFORM_NEEDIN6ADDRANY="#define LWRES_PLATFORM_NEEDIN6ADDRANY 1"
27438 rm -rf conftest.dSYM
27439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27440 conftest$ac_exeext conftest.$ac_ext
27442 { $as_echo "$as_me:$LINENO: checking for in6addr_loopback" >&5
27443 $as_echo_n "checking for in6addr_loopback... " >&6; }
27444 cat >conftest.$ac_ext <<_ACEOF
27447 cat confdefs.h >>conftest.$ac_ext
27448 cat >>conftest.$ac_ext <<_ACEOF
27449 /* end confdefs.h. */
27451 #include <sys/types.h>
27452 #include <sys/socket.h>
27453 #include <netinet/in.h>
27454 $isc_netinetin6_hack
27455 $isc_netinet6in6_hack
27461 struct in6_addr in6; in6 = in6addr_loopback; return (in6.s6_addr[0]);
27466 rm -f conftest.$ac_objext conftest$ac_exeext
27467 if { (ac_try="$ac_link"
27468 case "(($ac_try" in
27469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27470 *) ac_try_echo=$ac_try;;
27472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27473 $as_echo "$ac_try_echo") >&5
27474 (eval "$ac_link") 2>conftest.er1
27476 grep -v '^ *+' conftest.er1 >conftest.err
27478 cat conftest.err >&5
27479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480 (exit $ac_status); } && {
27481 test -z "$ac_c_werror_flag" ||
27482 test ! -s conftest.err
27483 } && test -s conftest$ac_exeext && {
27484 test "$cross_compiling" = yes ||
27485 $as_test_x conftest$ac_exeext
27487 { $as_echo "$as_me:$LINENO: result: yes" >&5
27488 $as_echo "yes" >&6; }
27489 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK="#undef ISC_PLATFORM_NEEDIN6ADDRLOOPBACK"
27490 LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK="#undef LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK"
27492 $as_echo "$as_me: failed program was:" >&5
27493 sed 's/^/| /' conftest.$ac_ext >&5
27495 { $as_echo "$as_me:$LINENO: result: no" >&5
27496 $as_echo "no" >&6; }
27497 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK="#define ISC_PLATFORM_NEEDIN6ADDRLOOPBACK 1"
27498 LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK="#define LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK 1"
27501 rm -rf conftest.dSYM
27502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27503 conftest$ac_exeext conftest.$ac_ext
27505 { $as_echo "$as_me:$LINENO: checking for sin6_scope_id in struct sockaddr_in6" >&5
27506 $as_echo_n "checking for sin6_scope_id in struct sockaddr_in6... " >&6; }
27507 cat >conftest.$ac_ext <<_ACEOF
27510 cat confdefs.h >>conftest.$ac_ext
27511 cat >>conftest.$ac_ext <<_ACEOF
27512 /* end confdefs.h. */
27514 #include <sys/types.h>
27515 #include <sys/socket.h>
27516 #include <netinet/in.h>
27517 $isc_netinetin6_hack
27518 $isc_netinet6in6_hack
27523 struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);
27528 rm -f conftest.$ac_objext
27529 if { (ac_try="$ac_compile"
27530 case "(($ac_try" in
27531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27532 *) ac_try_echo=$ac_try;;
27534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27535 $as_echo "$ac_try_echo") >&5
27536 (eval "$ac_compile") 2>conftest.er1
27538 grep -v '^ *+' conftest.er1 >conftest.err
27540 cat conftest.err >&5
27541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27542 (exit $ac_status); } && {
27543 test -z "$ac_c_werror_flag" ||
27544 test ! -s conftest.err
27545 } && test -s conftest.$ac_objext; then
27546 { $as_echo "$as_me:$LINENO: result: yes" >&5
27547 $as_echo "yes" >&6; }
27548 ISC_PLATFORM_HAVESCOPEID="#define ISC_PLATFORM_HAVESCOPEID 1"
27549 result="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
27551 $as_echo "$as_me: failed program was:" >&5
27552 sed 's/^/| /' conftest.$ac_ext >&5
27554 { $as_echo "$as_me:$LINENO: result: no" >&5
27555 $as_echo "no" >&6; }
27556 ISC_PLATFORM_HAVESCOPEID="#undef ISC_PLATFORM_HAVESCOPEID"
27557 result="#undef LWRES_HAVE_SIN6_SCOPE_ID"
27560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27561 LWRES_HAVE_SIN6_SCOPE_ID="$result"
27563 { $as_echo "$as_me:$LINENO: checking for in6_pktinfo" >&5
27564 $as_echo_n "checking for in6_pktinfo... " >&6; }
27565 cat >conftest.$ac_ext <<_ACEOF
27568 cat confdefs.h >>conftest.$ac_ext
27569 cat >>conftest.$ac_ext <<_ACEOF
27570 /* end confdefs.h. */
27572 #include <sys/types.h>
27573 #include <sys/socket.h>
27574 #include <netinet/in.h>
27575 $isc_netinetin6_hack
27576 $isc_netinet6in6_hack
27581 struct in6_pktinfo xyzzy; return (0);
27586 rm -f conftest.$ac_objext
27587 if { (ac_try="$ac_compile"
27588 case "(($ac_try" in
27589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27590 *) ac_try_echo=$ac_try;;
27592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27593 $as_echo "$ac_try_echo") >&5
27594 (eval "$ac_compile") 2>conftest.er1
27596 grep -v '^ *+' conftest.er1 >conftest.err
27598 cat conftest.err >&5
27599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600 (exit $ac_status); } && {
27601 test -z "$ac_c_werror_flag" ||
27602 test ! -s conftest.err
27603 } && test -s conftest.$ac_objext; then
27604 { $as_echo "$as_me:$LINENO: result: yes" >&5
27605 $as_echo "yes" >&6; }
27606 ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1"
27608 $as_echo "$as_me: failed program was:" >&5
27609 sed 's/^/| /' conftest.$ac_ext >&5
27611 { $as_echo "$as_me:$LINENO: result: no -- disabling runtime ipv6 support" >&5
27612 $as_echo "no -- disabling runtime ipv6 support" >&6; }
27613 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
27616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27619 ISC_PLATFORM_HAVEIPV6="#undef ISC_PLATFORM_HAVEIPV6"
27620 LWRES_PLATFORM_HAVEIPV6="#undef LWRES_PLATFORM_HAVEIPV6"
27621 ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
27622 LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
27623 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
27624 LWRES_HAVE_SIN6_SCOPE_ID="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
27625 ISC_PLATFORM_HAVESCOPEID="#define ISC_PLATFORM_HAVESCOPEID 1"
27626 ISC_IPV6_H="ipv6.h"
27627 ISC_IPV6_O="ipv6.$O"
27628 ISC_ISCIPV6_O="unix/ipv6.$O"
27629 ISC_IPV6_C="ipv6.c"
27654 { $as_echo "$as_me:$LINENO: checking for struct if_laddrreq" >&5
27655 $as_echo_n "checking for struct if_laddrreq... " >&6; }
27656 cat >conftest.$ac_ext <<_ACEOF
27659 cat confdefs.h >>conftest.$ac_ext
27660 cat >>conftest.$ac_ext <<_ACEOF
27661 /* end confdefs.h. */
27663 #include <sys/types.h>
27664 #include <net/if6.h>
27669 struct if_laddrreq a;
27674 rm -f conftest.$ac_objext conftest$ac_exeext
27675 if { (ac_try="$ac_link"
27676 case "(($ac_try" in
27677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27678 *) ac_try_echo=$ac_try;;
27680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27681 $as_echo "$ac_try_echo") >&5
27682 (eval "$ac_link") 2>conftest.er1
27684 grep -v '^ *+' conftest.er1 >conftest.err
27686 cat conftest.err >&5
27687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688 (exit $ac_status); } && {
27689 test -z "$ac_c_werror_flag" ||
27690 test ! -s conftest.err
27691 } && test -s conftest$ac_exeext && {
27692 test "$cross_compiling" = yes ||
27693 $as_test_x conftest$ac_exeext
27695 { $as_echo "$as_me:$LINENO: result: yes" >&5
27696 $as_echo "yes" >&6; }
27697 ISC_PLATFORM_HAVEIF_LADDRREQ="#define ISC_PLATFORM_HAVEIF_LADDRREQ 1"
27699 $as_echo "$as_me: failed program was:" >&5
27700 sed 's/^/| /' conftest.$ac_ext >&5
27702 { $as_echo "$as_me:$LINENO: result: no" >&5
27703 $as_echo "no" >&6; }
27704 ISC_PLATFORM_HAVEIF_LADDRREQ="#undef ISC_PLATFORM_HAVEIF_LADDRREQ"
27707 rm -rf conftest.dSYM
27708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27709 conftest$ac_exeext conftest.$ac_ext
27712 { $as_echo "$as_me:$LINENO: checking for struct if_laddrconf" >&5
27713 $as_echo_n "checking for struct if_laddrconf... " >&6; }
27714 cat >conftest.$ac_ext <<_ACEOF
27717 cat confdefs.h >>conftest.$ac_ext
27718 cat >>conftest.$ac_ext <<_ACEOF
27719 /* end confdefs.h. */
27721 #include <sys/types.h>
27722 #include <net/if6.h>
27727 struct if_laddrconf a;
27732 rm -f conftest.$ac_objext conftest$ac_exeext
27733 if { (ac_try="$ac_link"
27734 case "(($ac_try" in
27735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27736 *) ac_try_echo=$ac_try;;
27738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27739 $as_echo "$ac_try_echo") >&5
27740 (eval "$ac_link") 2>conftest.er1
27742 grep -v '^ *+' conftest.er1 >conftest.err
27744 cat conftest.err >&5
27745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27746 (exit $ac_status); } && {
27747 test -z "$ac_c_werror_flag" ||
27748 test ! -s conftest.err
27749 } && test -s conftest$ac_exeext && {
27750 test "$cross_compiling" = yes ||
27751 $as_test_x conftest$ac_exeext
27753 { $as_echo "$as_me:$LINENO: result: yes" >&5
27754 $as_echo "yes" >&6; }
27755 ISC_PLATFORM_HAVEIF_LADDRCONF="#define ISC_PLATFORM_HAVEIF_LADDRCONF 1"
27757 $as_echo "$as_me: failed program was:" >&5
27758 sed 's/^/| /' conftest.$ac_ext >&5
27760 { $as_echo "$as_me:$LINENO: result: no" >&5
27761 $as_echo "no" >&6; }
27762 ISC_PLATFORM_HAVEIF_LADDRCONF="#undef ISC_PLATFORM_HAVEIF_LADDRCONF"
27765 rm -rf conftest.dSYM
27766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27767 conftest$ac_exeext conftest.$ac_ext
27771 # Check for network functions that are often missing. We do this
27772 # after the libtool checking, so we can put the right suffix on
27773 # the files. It also needs to come after checking for a Kame add-on,
27774 # which provides some (all?) of the desired functions.
27777 { $as_echo "$as_me:$LINENO: checking for inet_ntop with IPv6 support" >&5
27778 $as_echo_n "checking for inet_ntop with IPv6 support... " >&6; }
27779 if test "$cross_compiling" = yes; then
27780 { $as_echo "$as_me:$LINENO: result: assuming inet_ntop needed" >&5
27781 $as_echo "assuming inet_ntop needed" >&6; }
27782 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
27783 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
27784 ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
27786 cat >conftest.$ac_ext <<_ACEOF
27789 cat confdefs.h >>conftest.$ac_ext
27790 cat >>conftest.$ac_ext <<_ACEOF
27791 /* end confdefs.h. */
27793 #include <sys/types.h>
27794 #include <sys/socket.h>
27795 #include <netinet/in.h>
27796 #include <arpa/inet.h>
27798 char a[16],b[64]; return(inet_ntop(AF_INET6, a, b, sizeof(b)) == (char*)0);}
27800 rm -f conftest$ac_exeext
27801 if { (ac_try="$ac_link"
27802 case "(($ac_try" in
27803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27804 *) ac_try_echo=$ac_try;;
27806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27807 $as_echo "$ac_try_echo") >&5
27808 (eval "$ac_link") 2>&5
27810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27812 { (case "(($ac_try" in
27813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27814 *) ac_try_echo=$ac_try;;
27816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27817 $as_echo "$ac_try_echo") >&5
27818 (eval "$ac_try") 2>&5
27820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821 (exit $ac_status); }; }; then
27822 { $as_echo "$as_me:$LINENO: result: yes" >&5
27823 $as_echo "yes" >&6; }
27824 ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
27826 $as_echo "$as_me: program exited with status $ac_status" >&5
27827 $as_echo "$as_me: failed program was:" >&5
27828 sed 's/^/| /' conftest.$ac_ext >&5
27830 ( exit $ac_status )
27831 { $as_echo "$as_me:$LINENO: result: no" >&5
27832 $as_echo "no" >&6; }
27833 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
27834 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
27835 ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
27837 rm -rf conftest.dSYM
27838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27844 # On NetBSD 1.4.2 and maybe others, inet_pton() incorrectly accepts
27845 # addresses with less than four octets, like "1.2.3". Also leading
27846 # zeros should also be rejected.
27848 { $as_echo "$as_me:$LINENO: checking for working inet_pton with IPv6 support" >&5
27849 $as_echo_n "checking for working inet_pton with IPv6 support... " >&6; }
27850 if test "$cross_compiling" = yes; then
27851 { $as_echo "$as_me:$LINENO: result: assuming target platform has working inet_pton" >&5
27852 $as_echo "assuming target platform has working inet_pton" >&6; }
27853 ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
27855 cat >conftest.$ac_ext <<_ACEOF
27858 cat confdefs.h >>conftest.$ac_ext
27859 cat >>conftest.$ac_ext <<_ACEOF
27860 /* end confdefs.h. */
27862 #include <sys/types.h>
27863 #include <sys/socket.h>
27864 #include <netinet/in.h>
27865 #include <arpa/inet.h>
27866 main() { char a[16]; return (inet_pton(AF_INET, "1.2.3", a) == 1 ? 1 :
27867 inet_pton(AF_INET, "1.2.3.04", a) == 1 ? 1 :
27868 (inet_pton(AF_INET6, "::1.2.3.4", a) != 1)); }
27870 rm -f conftest$ac_exeext
27871 if { (ac_try="$ac_link"
27872 case "(($ac_try" in
27873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27874 *) ac_try_echo=$ac_try;;
27876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27877 $as_echo "$ac_try_echo") >&5
27878 (eval "$ac_link") 2>&5
27880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27882 { (case "(($ac_try" in
27883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27884 *) ac_try_echo=$ac_try;;
27886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27887 $as_echo "$ac_try_echo") >&5
27888 (eval "$ac_try") 2>&5
27890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); }; }; then
27892 { $as_echo "$as_me:$LINENO: result: yes" >&5
27893 $as_echo "yes" >&6; }
27894 ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
27896 $as_echo "$as_me: program exited with status $ac_status" >&5
27897 $as_echo "$as_me: failed program was:" >&5
27898 sed 's/^/| /' conftest.$ac_ext >&5
27900 ( exit $ac_status )
27901 { $as_echo "$as_me:$LINENO: result: no" >&5
27902 $as_echo "no" >&6; }
27903 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
27904 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
27905 ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
27907 rm -rf conftest.dSYM
27908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27917 # Look for a 4.4BSD-style sa_len member in struct sockaddr.
27921 # Turn on 4.4BSD style sa_len support.
27922 cat >>confdefs.h <<\_ACEOF
27923 #define _SOCKADDR_LEN 1
27929 { $as_echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
27930 $as_echo_n "checking for sa_len in struct sockaddr... " >&6; }
27931 cat >conftest.$ac_ext <<_ACEOF
27934 cat confdefs.h >>conftest.$ac_ext
27935 cat >>conftest.$ac_ext <<_ACEOF
27936 /* end confdefs.h. */
27938 #include <sys/types.h>
27939 #include <sys/socket.h>
27943 struct sockaddr sa; sa.sa_len = 0; return (0);
27948 rm -f conftest.$ac_objext
27949 if { (ac_try="$ac_compile"
27950 case "(($ac_try" in
27951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27952 *) ac_try_echo=$ac_try;;
27954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27955 $as_echo "$ac_try_echo") >&5
27956 (eval "$ac_compile") 2>conftest.er1
27958 grep -v '^ *+' conftest.er1 >conftest.err
27960 cat conftest.err >&5
27961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962 (exit $ac_status); } && {
27963 test -z "$ac_c_werror_flag" ||
27964 test ! -s conftest.err
27965 } && test -s conftest.$ac_objext; then
27966 { $as_echo "$as_me:$LINENO: result: yes" >&5
27967 $as_echo "yes" >&6; }
27968 ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1"
27969 LWRES_PLATFORM_HAVESALEN="#define LWRES_PLATFORM_HAVESALEN 1"
27971 $as_echo "$as_me: failed program was:" >&5
27972 sed 's/^/| /' conftest.$ac_ext >&5
27974 { $as_echo "$as_me:$LINENO: result: no" >&5
27975 $as_echo "no" >&6; }
27976 ISC_PLATFORM_HAVESALEN="#undef ISC_PLATFORM_HAVESALEN"
27977 LWRES_PLATFORM_HAVESALEN="#undef LWRES_PLATFORM_HAVESALEN"
27980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27985 # Look for a 4.4BSD or 4.3BSD struct msghdr
27987 { $as_echo "$as_me:$LINENO: checking for struct msghdr flavor" >&5
27988 $as_echo_n "checking for struct msghdr flavor... " >&6; }
27989 cat >conftest.$ac_ext <<_ACEOF
27992 cat confdefs.h >>conftest.$ac_ext
27993 cat >>conftest.$ac_ext <<_ACEOF
27994 /* end confdefs.h. */
27996 #include <sys/types.h>
27997 #include <sys/socket.h>
28001 struct msghdr msg; msg.msg_flags = 0; return (0);
28006 rm -f conftest.$ac_objext
28007 if { (ac_try="$ac_compile"
28008 case "(($ac_try" in
28009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28010 *) ac_try_echo=$ac_try;;
28012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28013 $as_echo "$ac_try_echo") >&5
28014 (eval "$ac_compile") 2>conftest.er1
28016 grep -v '^ *+' conftest.er1 >conftest.err
28018 cat conftest.err >&5
28019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28020 (exit $ac_status); } && {
28021 test -z "$ac_c_werror_flag" ||
28022 test ! -s conftest.err
28023 } && test -s conftest.$ac_objext; then
28024 { $as_echo "$as_me:$LINENO: result: 4.4BSD" >&5
28025 $as_echo "4.4BSD" >&6; }
28026 ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
28028 $as_echo "$as_me: failed program was:" >&5
28029 sed 's/^/| /' conftest.$ac_ext >&5
28031 { $as_echo "$as_me:$LINENO: result: 4.3BSD" >&5
28032 $as_echo "4.3BSD" >&6; }
28033 ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1"
28036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28040 # Look for in_port_t.
28042 { $as_echo "$as_me:$LINENO: checking for type in_port_t" >&5
28043 $as_echo_n "checking for type in_port_t... " >&6; }
28044 cat >conftest.$ac_ext <<_ACEOF
28047 cat confdefs.h >>conftest.$ac_ext
28048 cat >>conftest.$ac_ext <<_ACEOF
28049 /* end confdefs.h. */
28051 #include <sys/types.h>
28052 #include <netinet/in.h>
28056 in_port_t port = 25; return (0);
28061 rm -f conftest.$ac_objext
28062 if { (ac_try="$ac_compile"
28063 case "(($ac_try" in
28064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28065 *) ac_try_echo=$ac_try;;
28067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28068 $as_echo "$ac_try_echo") >&5
28069 (eval "$ac_compile") 2>conftest.er1
28071 grep -v '^ *+' conftest.er1 >conftest.err
28073 cat conftest.err >&5
28074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075 (exit $ac_status); } && {
28076 test -z "$ac_c_werror_flag" ||
28077 test ! -s conftest.err
28078 } && test -s conftest.$ac_objext; then
28079 { $as_echo "$as_me:$LINENO: result: yes" >&5
28080 $as_echo "yes" >&6; }
28081 ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
28083 $as_echo "$as_me: failed program was:" >&5
28084 sed 's/^/| /' conftest.$ac_ext >&5
28086 { $as_echo "$as_me:$LINENO: result: no" >&5
28087 $as_echo "no" >&6; }
28088 ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"
28091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28095 # Check for addrinfo
28097 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
28098 $as_echo_n "checking for struct addrinfo... " >&6; }
28099 cat >conftest.$ac_ext <<_ACEOF
28102 cat confdefs.h >>conftest.$ac_ext
28103 cat >>conftest.$ac_ext <<_ACEOF
28104 /* end confdefs.h. */
28110 struct addrinfo a; return (0);
28115 rm -f conftest.$ac_objext
28116 if { (ac_try="$ac_compile"
28117 case "(($ac_try" in
28118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28119 *) ac_try_echo=$ac_try;;
28121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28122 $as_echo "$ac_try_echo") >&5
28123 (eval "$ac_compile") 2>conftest.er1
28125 grep -v '^ *+' conftest.er1 >conftest.err
28127 cat conftest.err >&5
28128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129 (exit $ac_status); } && {
28130 test -z "$ac_c_werror_flag" ||
28131 test ! -s conftest.err
28132 } && test -s conftest.$ac_objext; then
28133 { $as_echo "$as_me:$LINENO: result: yes" >&5
28134 $as_echo "yes" >&6; }
28135 ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO"
28136 ISC_IRS_NEEDADDRINFO="#undef ISC_IRS_NEEDADDRINFO"
28137 cat >>confdefs.h <<\_ACEOF
28138 #define HAVE_ADDRINFO 1
28142 $as_echo "$as_me: failed program was:" >&5
28143 sed 's/^/| /' conftest.$ac_ext >&5
28145 { $as_echo "$as_me:$LINENO: result: no" >&5
28146 $as_echo "no" >&6; }
28147 ISC_LWRES_NEEDADDRINFO="#define ISC_LWRES_NEEDADDRINFO 1"
28148 ISC_IRS_NEEDADDRINFO="#define ISC_IRS_NEEDADDRINFO 1"
28151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28156 # Check for rrsetinfo
28158 { $as_echo "$as_me:$LINENO: checking for struct rrsetinfo" >&5
28159 $as_echo_n "checking for struct rrsetinfo... " >&6; }
28160 cat >conftest.$ac_ext <<_ACEOF
28163 cat confdefs.h >>conftest.$ac_ext
28164 cat >>conftest.$ac_ext <<_ACEOF
28165 /* end confdefs.h. */
28171 struct rrsetinfo r; return (0);
28176 rm -f conftest.$ac_objext
28177 if { (ac_try="$ac_compile"
28178 case "(($ac_try" in
28179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28180 *) ac_try_echo=$ac_try;;
28182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28183 $as_echo "$ac_try_echo") >&5
28184 (eval "$ac_compile") 2>conftest.er1
28186 grep -v '^ *+' conftest.er1 >conftest.err
28188 cat conftest.err >&5
28189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190 (exit $ac_status); } && {
28191 test -z "$ac_c_werror_flag" ||
28192 test ! -s conftest.err
28193 } && test -s conftest.$ac_objext; then
28194 { $as_echo "$as_me:$LINENO: result: yes" >&5
28195 $as_echo "yes" >&6; }
28196 ISC_LWRES_NEEDRRSETINFO="#undef ISC_LWRES_NEEDRRSETINFO"
28198 $as_echo "$as_me: failed program was:" >&5
28199 sed 's/^/| /' conftest.$ac_ext >&5
28201 { $as_echo "$as_me:$LINENO: result: no" >&5
28202 $as_echo "no" >&6; }
28203 ISC_LWRES_NEEDRRSETINFO="#define ISC_LWRES_NEEDRRSETINFO 1"
28206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28209 { $as_echo "$as_me:$LINENO: checking for int sethostent" >&5
28210 $as_echo_n "checking for int sethostent... " >&6; }
28211 cat >conftest.$ac_ext <<_ACEOF
28214 cat confdefs.h >>conftest.$ac_ext
28215 cat >>conftest.$ac_ext <<_ACEOF
28216 /* end confdefs.h. */
28222 int i = sethostent(0); return(0);
28227 rm -f conftest.$ac_objext
28228 if { (ac_try="$ac_compile"
28229 case "(($ac_try" in
28230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28231 *) ac_try_echo=$ac_try;;
28233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28234 $as_echo "$ac_try_echo") >&5
28235 (eval "$ac_compile") 2>conftest.er1
28237 grep -v '^ *+' conftest.er1 >conftest.err
28239 cat conftest.err >&5
28240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28241 (exit $ac_status); } && {
28242 test -z "$ac_c_werror_flag" ||
28243 test ! -s conftest.err
28244 } && test -s conftest.$ac_objext; then
28245 { $as_echo "$as_me:$LINENO: result: yes" >&5
28246 $as_echo "yes" >&6; }
28247 ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1"
28249 $as_echo "$as_me: failed program was:" >&5
28250 sed 's/^/| /' conftest.$ac_ext >&5
28252 { $as_echo "$as_me:$LINENO: result: no" >&5
28253 $as_echo "no" >&6; }
28254 ISC_LWRES_SETHOSTENTINT="#undef ISC_LWRES_SETHOSTENTINT"
28257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28260 { $as_echo "$as_me:$LINENO: checking for int endhostent" >&5
28261 $as_echo_n "checking for int endhostent... " >&6; }
28262 cat >conftest.$ac_ext <<_ACEOF
28265 cat confdefs.h >>conftest.$ac_ext
28266 cat >>conftest.$ac_ext <<_ACEOF
28267 /* end confdefs.h. */
28273 int i = endhostent(); return(0);
28278 rm -f conftest.$ac_objext
28279 if { (ac_try="$ac_compile"
28280 case "(($ac_try" in
28281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28282 *) ac_try_echo=$ac_try;;
28284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28285 $as_echo "$ac_try_echo") >&5
28286 (eval "$ac_compile") 2>conftest.er1
28288 grep -v '^ *+' conftest.er1 >conftest.err
28290 cat conftest.err >&5
28291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292 (exit $ac_status); } && {
28293 test -z "$ac_c_werror_flag" ||
28294 test ! -s conftest.err
28295 } && test -s conftest.$ac_objext; then
28296 { $as_echo "$as_me:$LINENO: result: yes" >&5
28297 $as_echo "yes" >&6; }
28298 ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
28300 $as_echo "$as_me: failed program was:" >&5
28301 sed 's/^/| /' conftest.$ac_ext >&5
28303 { $as_echo "$as_me:$LINENO: result: no" >&5
28304 $as_echo "no" >&6; }
28305 ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT"
28308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28311 { $as_echo "$as_me:$LINENO: checking for getnetbyaddr(in_addr_t, ...)" >&5
28312 $as_echo_n "checking for getnetbyaddr(in_addr_t, ...)... " >&6; }
28313 cat >conftest.$ac_ext <<_ACEOF
28316 cat confdefs.h >>conftest.$ac_ext
28317 cat >>conftest.$ac_ext <<_ACEOF
28318 /* end confdefs.h. */
28321 struct netent *getnetbyaddr(in_addr_t, int);
28330 rm -f conftest.$ac_objext
28331 if { (ac_try="$ac_compile"
28332 case "(($ac_try" in
28333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28334 *) ac_try_echo=$ac_try;;
28336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28337 $as_echo "$ac_try_echo") >&5
28338 (eval "$ac_compile") 2>conftest.er1
28340 grep -v '^ *+' conftest.er1 >conftest.err
28342 cat conftest.err >&5
28343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28344 (exit $ac_status); } && {
28345 test -z "$ac_c_werror_flag" ||
28346 test ! -s conftest.err
28347 } && test -s conftest.$ac_objext; then
28348 { $as_echo "$as_me:$LINENO: result: yes" >&5
28349 $as_echo "yes" >&6; }
28350 ISC_LWRES_GETNETBYADDRINADDR="#define ISC_LWRES_GETNETBYADDRINADDR 1"
28352 $as_echo "$as_me: failed program was:" >&5
28353 sed 's/^/| /' conftest.$ac_ext >&5
28355 { $as_echo "$as_me:$LINENO: result: no" >&5
28356 $as_echo "no" >&6; }
28357 ISC_LWRES_GETNETBYADDRINADDR="#undef ISC_LWRES_GETNETBYADDRINADDR"
28360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28363 { $as_echo "$as_me:$LINENO: checking for int setnetent" >&5
28364 $as_echo_n "checking for int setnetent... " >&6; }
28365 cat >conftest.$ac_ext <<_ACEOF
28368 cat confdefs.h >>conftest.$ac_ext
28369 cat >>conftest.$ac_ext <<_ACEOF
28370 /* end confdefs.h. */
28376 int i = setnetent(0); return(0);
28381 rm -f conftest.$ac_objext
28382 if { (ac_try="$ac_compile"
28383 case "(($ac_try" in
28384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28385 *) ac_try_echo=$ac_try;;
28387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28388 $as_echo "$ac_try_echo") >&5
28389 (eval "$ac_compile") 2>conftest.er1
28391 grep -v '^ *+' conftest.er1 >conftest.err
28393 cat conftest.err >&5
28394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395 (exit $ac_status); } && {
28396 test -z "$ac_c_werror_flag" ||
28397 test ! -s conftest.err
28398 } && test -s conftest.$ac_objext; then
28399 { $as_echo "$as_me:$LINENO: result: yes" >&5
28400 $as_echo "yes" >&6; }
28401 ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
28403 $as_echo "$as_me: failed program was:" >&5
28404 sed 's/^/| /' conftest.$ac_ext >&5
28406 { $as_echo "$as_me:$LINENO: result: no" >&5
28407 $as_echo "no" >&6; }
28408 ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"
28411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28414 { $as_echo "$as_me:$LINENO: checking for int endnetent" >&5
28415 $as_echo_n "checking for int endnetent... " >&6; }
28416 cat >conftest.$ac_ext <<_ACEOF
28419 cat confdefs.h >>conftest.$ac_ext
28420 cat >>conftest.$ac_ext <<_ACEOF
28421 /* end confdefs.h. */
28427 int i = endnetent(); return(0);
28432 rm -f conftest.$ac_objext
28433 if { (ac_try="$ac_compile"
28434 case "(($ac_try" in
28435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28436 *) ac_try_echo=$ac_try;;
28438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28439 $as_echo "$ac_try_echo") >&5
28440 (eval "$ac_compile") 2>conftest.er1
28442 grep -v '^ *+' conftest.er1 >conftest.err
28444 cat conftest.err >&5
28445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446 (exit $ac_status); } && {
28447 test -z "$ac_c_werror_flag" ||
28448 test ! -s conftest.err
28449 } && test -s conftest.$ac_objext; then
28450 { $as_echo "$as_me:$LINENO: result: yes" >&5
28451 $as_echo "yes" >&6; }
28452 ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
28454 $as_echo "$as_me: failed program was:" >&5
28455 sed 's/^/| /' conftest.$ac_ext >&5
28457 { $as_echo "$as_me:$LINENO: result: no" >&5
28458 $as_echo "no" >&6; }
28459 ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT"
28462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28465 { $as_echo "$as_me:$LINENO: checking for gethostbyaddr(const void *, size_t, ...)" >&5
28466 $as_echo_n "checking for gethostbyaddr(const void *, size_t, ...)... " >&6; }
28467 cat >conftest.$ac_ext <<_ACEOF
28470 cat confdefs.h >>conftest.$ac_ext
28471 cat >>conftest.$ac_ext <<_ACEOF
28472 /* end confdefs.h. */
28475 struct hostent *gethostbyaddr(const void *, size_t, int);
28484 rm -f conftest.$ac_objext
28485 if { (ac_try="$ac_compile"
28486 case "(($ac_try" in
28487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28488 *) ac_try_echo=$ac_try;;
28490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28491 $as_echo "$ac_try_echo") >&5
28492 (eval "$ac_compile") 2>conftest.er1
28494 grep -v '^ *+' conftest.er1 >conftest.err
28496 cat conftest.err >&5
28497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28498 (exit $ac_status); } && {
28499 test -z "$ac_c_werror_flag" ||
28500 test ! -s conftest.err
28501 } && test -s conftest.$ac_objext; then
28502 { $as_echo "$as_me:$LINENO: result: yes" >&5
28503 $as_echo "yes" >&6; }
28504 ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
28506 $as_echo "$as_me: failed program was:" >&5
28507 sed 's/^/| /' conftest.$ac_ext >&5
28509 { $as_echo "$as_me:$LINENO: result: no" >&5
28510 $as_echo "no" >&6; }
28511 ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID"
28514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28517 { $as_echo "$as_me:$LINENO: checking for h_errno in netdb.h" >&5
28518 $as_echo_n "checking for h_errno in netdb.h... " >&6; }
28519 cat >conftest.$ac_ext <<_ACEOF
28522 cat confdefs.h >>conftest.$ac_ext
28523 cat >>conftest.$ac_ext <<_ACEOF
28524 /* end confdefs.h. */
28530 h_errno = 1; return(0);
28535 rm -f conftest.$ac_objext
28536 if { (ac_try="$ac_compile"
28537 case "(($ac_try" in
28538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28539 *) ac_try_echo=$ac_try;;
28541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28542 $as_echo "$ac_try_echo") >&5
28543 (eval "$ac_compile") 2>conftest.er1
28545 grep -v '^ *+' conftest.er1 >conftest.err
28547 cat conftest.err >&5
28548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549 (exit $ac_status); } && {
28550 test -z "$ac_c_werror_flag" ||
28551 test ! -s conftest.err
28552 } && test -s conftest.$ac_objext; then
28553 { $as_echo "$as_me:$LINENO: result: yes" >&5
28554 $as_echo "yes" >&6; }
28555 ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
28557 $as_echo "$as_me: failed program was:" >&5
28558 sed 's/^/| /' conftest.$ac_ext >&5
28560 { $as_echo "$as_me:$LINENO: result: no" >&5
28561 $as_echo "no" >&6; }
28562 ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1"
28565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28569 # Sadly, the definitions of system-supplied getnameinfo(3) vary. Try to catch
28570 # known variations here:
28572 { $as_echo "$as_me:$LINENO: checking for getnameinfo prototype definitions" >&5
28573 $as_echo_n "checking for getnameinfo prototype definitions... " >&6; }
28574 cat >conftest.$ac_ext <<_ACEOF
28577 cat confdefs.h >>conftest.$ac_ext
28578 cat >>conftest.$ac_ext <<_ACEOF
28579 /* end confdefs.h. */
28581 #include <sys/types.h>
28582 #include <sys/socket.h>
28584 int getnameinfo(const struct sockaddr *, socklen_t, char *,
28585 socklen_t, char *, socklen_t, unsigned int);
28594 rm -f conftest.$ac_objext
28595 if { (ac_try="$ac_compile"
28596 case "(($ac_try" in
28597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28598 *) ac_try_echo=$ac_try;;
28600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28601 $as_echo "$ac_try_echo") >&5
28602 (eval "$ac_compile") 2>conftest.er1
28604 grep -v '^ *+' conftest.er1 >conftest.err
28606 cat conftest.err >&5
28607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); } && {
28609 test -z "$ac_c_werror_flag" ||
28610 test ! -s conftest.err
28611 } && test -s conftest.$ac_objext; then
28612 { $as_echo "$as_me:$LINENO: result: socklen_t for buflen; u_int for flags" >&5
28613 $as_echo "socklen_t for buflen; u_int for flags" >&6; }
28615 cat >>confdefs.h <<\_ACEOF
28616 #define IRS_GETNAMEINFO_BUFLEN_T socklen_t
28620 cat >>confdefs.h <<\_ACEOF
28621 #define IRS_GETNAMEINFO_FLAGS_T unsigned int
28625 $as_echo "$as_me: failed program was:" >&5
28626 sed 's/^/| /' conftest.$ac_ext >&5
28628 cat >conftest.$ac_ext <<_ACEOF
28631 cat confdefs.h >>conftest.$ac_ext
28632 cat >>conftest.$ac_ext <<_ACEOF
28633 /* end confdefs.h. */
28635 #include <sys/types.h>
28636 #include <sys/socket.h>
28638 int getnameinfo(const struct sockaddr *, socklen_t, char *,
28639 size_t, char *, size_t, int);
28648 rm -f conftest.$ac_objext
28649 if { (ac_try="$ac_compile"
28650 case "(($ac_try" in
28651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28652 *) ac_try_echo=$ac_try;;
28654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28655 $as_echo "$ac_try_echo") >&5
28656 (eval "$ac_compile") 2>conftest.er1
28658 grep -v '^ *+' conftest.er1 >conftest.err
28660 cat conftest.err >&5
28661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662 (exit $ac_status); } && {
28663 test -z "$ac_c_werror_flag" ||
28664 test ! -s conftest.err
28665 } && test -s conftest.$ac_objext; then
28666 { $as_echo "$as_me:$LINENO: result: size_t for buflen; int for flags" >&5
28667 $as_echo "size_t for buflen; int for flags" >&6; }
28668 cat >>confdefs.h <<\_ACEOF
28669 #define IRS_GETNAMEINFO_BUFLEN_T size_t
28672 cat >>confdefs.h <<\_ACEOF
28673 #define IRS_GETNAMEINFO_FLAGS_T int
28677 $as_echo "$as_me: failed program was:" >&5
28678 sed 's/^/| /' conftest.$ac_ext >&5
28680 { $as_echo "$as_me:$LINENO: result: not match any subspecies; assume standard definition" >&5
28681 $as_echo "not match any subspecies; assume standard definition" >&6; }
28682 cat >>confdefs.h <<\_ACEOF
28683 #define IRS_GETNAMEINFO_BUFLEN_T socklen_t
28686 cat >>confdefs.h <<\_ACEOF
28687 #define IRS_GETNAMEINFO_FLAGS_T int
28692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28698 # ...and same for gai_strerror().
28700 { $as_echo "$as_me:$LINENO: checking for gai_strerror prototype definitions" >&5
28701 $as_echo_n "checking for gai_strerror prototype definitions... " >&6; }
28702 cat >conftest.$ac_ext <<_ACEOF
28705 cat confdefs.h >>conftest.$ac_ext
28706 cat >>conftest.$ac_ext <<_ACEOF
28707 /* end confdefs.h. */
28709 #include <sys/types.h>
28710 #include <sys/socket.h>
28712 char *gai_strerror(int ecode);
28721 rm -f conftest.$ac_objext
28722 if { (ac_try="$ac_compile"
28723 case "(($ac_try" in
28724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28725 *) ac_try_echo=$ac_try;;
28727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28728 $as_echo "$ac_try_echo") >&5
28729 (eval "$ac_compile") 2>conftest.er1
28731 grep -v '^ *+' conftest.er1 >conftest.err
28733 cat conftest.err >&5
28734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735 (exit $ac_status); } && {
28736 test -z "$ac_c_werror_flag" ||
28737 test ! -s conftest.err
28738 } && test -s conftest.$ac_objext; then
28739 { $as_echo "$as_me:$LINENO: result: returning char *" >&5
28740 $as_echo "returning char *" >&6; }
28742 cat >>confdefs.h <<\_ACEOF
28743 #define IRS_GAISTRERROR_RETURN_T char *
28747 $as_echo "$as_me: failed program was:" >&5
28748 sed 's/^/| /' conftest.$ac_ext >&5
28750 { $as_echo "$as_me:$LINENO: result: not match any subspecies; assume standard definition" >&5
28751 $as_echo "not match any subspecies; assume standard definition" >&6; }
28752 cat >>confdefs.h <<\_ACEOF
28753 #define IRS_GAISTRERROR_RETURN_T const char *
28758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28760 { $as_echo "$as_me:$LINENO: checking for getipnodebyname" >&5
28761 $as_echo_n "checking for getipnodebyname... " >&6; }
28762 if test "${ac_cv_func_getipnodebyname+set}" = set; then
28763 $as_echo_n "(cached) " >&6
28765 cat >conftest.$ac_ext <<_ACEOF
28768 cat confdefs.h >>conftest.$ac_ext
28769 cat >>conftest.$ac_ext <<_ACEOF
28770 /* end confdefs.h. */
28771 /* Define getipnodebyname to an innocuous variant, in case <limits.h> declares getipnodebyname.
28772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28773 #define getipnodebyname innocuous_getipnodebyname
28775 /* System header to define __stub macros and hopefully few prototypes,
28776 which can conflict with char getipnodebyname (); below.
28777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28778 <limits.h> exists even on freestanding compilers. */
28781 # include <limits.h>
28783 # include <assert.h>
28786 #undef getipnodebyname
28788 /* Override any GCC internal prototype to avoid an error.
28789 Use char because int might match the return type of a GCC
28790 builtin and then its argument prototype would still apply. */
28794 char getipnodebyname ();
28795 /* The GNU C library defines this for functions which it implements
28796 to always fail with ENOSYS. Some functions are actually named
28797 something starting with __ and the normal name is an alias. */
28798 #if defined __stub_getipnodebyname || defined __stub___getipnodebyname
28805 return getipnodebyname ();
28810 rm -f conftest.$ac_objext conftest$ac_exeext
28811 if { (ac_try="$ac_link"
28812 case "(($ac_try" in
28813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28814 *) ac_try_echo=$ac_try;;
28816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28817 $as_echo "$ac_try_echo") >&5
28818 (eval "$ac_link") 2>conftest.er1
28820 grep -v '^ *+' conftest.er1 >conftest.err
28822 cat conftest.err >&5
28823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28824 (exit $ac_status); } && {
28825 test -z "$ac_c_werror_flag" ||
28826 test ! -s conftest.err
28827 } && test -s conftest$ac_exeext && {
28828 test "$cross_compiling" = yes ||
28829 $as_test_x conftest$ac_exeext
28831 ac_cv_func_getipnodebyname=yes
28833 $as_echo "$as_me: failed program was:" >&5
28834 sed 's/^/| /' conftest.$ac_ext >&5
28836 ac_cv_func_getipnodebyname=no
28839 rm -rf conftest.dSYM
28840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28841 conftest$ac_exeext conftest.$ac_ext
28843 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5
28844 $as_echo "$ac_cv_func_getipnodebyname" >&6; }
28845 if test $ac_cv_func_getipnodebyname = yes; then
28846 ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO"
28848 ISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1"
28851 { $as_echo "$as_me:$LINENO: checking for getnameinfo" >&5
28852 $as_echo_n "checking for getnameinfo... " >&6; }
28853 if test "${ac_cv_func_getnameinfo+set}" = set; then
28854 $as_echo_n "(cached) " >&6
28856 cat >conftest.$ac_ext <<_ACEOF
28859 cat confdefs.h >>conftest.$ac_ext
28860 cat >>conftest.$ac_ext <<_ACEOF
28861 /* end confdefs.h. */
28862 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
28863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28864 #define getnameinfo innocuous_getnameinfo
28866 /* System header to define __stub macros and hopefully few prototypes,
28867 which can conflict with char getnameinfo (); below.
28868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28869 <limits.h> exists even on freestanding compilers. */
28872 # include <limits.h>
28874 # include <assert.h>
28879 /* Override any GCC internal prototype to avoid an error.
28880 Use char because int might match the return type of a GCC
28881 builtin and then its argument prototype would still apply. */
28885 char getnameinfo ();
28886 /* The GNU C library defines this for functions which it implements
28887 to always fail with ENOSYS. Some functions are actually named
28888 something starting with __ and the normal name is an alias. */
28889 #if defined __stub_getnameinfo || defined __stub___getnameinfo
28896 return getnameinfo ();
28901 rm -f conftest.$ac_objext conftest$ac_exeext
28902 if { (ac_try="$ac_link"
28903 case "(($ac_try" in
28904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28905 *) ac_try_echo=$ac_try;;
28907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28908 $as_echo "$ac_try_echo") >&5
28909 (eval "$ac_link") 2>conftest.er1
28911 grep -v '^ *+' conftest.er1 >conftest.err
28913 cat conftest.err >&5
28914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915 (exit $ac_status); } && {
28916 test -z "$ac_c_werror_flag" ||
28917 test ! -s conftest.err
28918 } && test -s conftest$ac_exeext && {
28919 test "$cross_compiling" = yes ||
28920 $as_test_x conftest$ac_exeext
28922 ac_cv_func_getnameinfo=yes
28924 $as_echo "$as_me: failed program was:" >&5
28925 sed 's/^/| /' conftest.$ac_ext >&5
28927 ac_cv_func_getnameinfo=no
28930 rm -rf conftest.dSYM
28931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28932 conftest$ac_exeext conftest.$ac_ext
28934 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
28935 $as_echo "$ac_cv_func_getnameinfo" >&6; }
28936 if test $ac_cv_func_getnameinfo = yes; then
28937 ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO"
28939 ISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1"
28942 { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
28943 $as_echo_n "checking for getaddrinfo... " >&6; }
28944 if test "${ac_cv_func_getaddrinfo+set}" = set; then
28945 $as_echo_n "(cached) " >&6
28947 cat >conftest.$ac_ext <<_ACEOF
28950 cat confdefs.h >>conftest.$ac_ext
28951 cat >>conftest.$ac_ext <<_ACEOF
28952 /* end confdefs.h. */
28953 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
28954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28955 #define getaddrinfo innocuous_getaddrinfo
28957 /* System header to define __stub macros and hopefully few prototypes,
28958 which can conflict with char getaddrinfo (); below.
28959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28960 <limits.h> exists even on freestanding compilers. */
28963 # include <limits.h>
28965 # include <assert.h>
28970 /* Override any GCC internal prototype to avoid an error.
28971 Use char because int might match the return type of a GCC
28972 builtin and then its argument prototype would still apply. */
28976 char getaddrinfo ();
28977 /* The GNU C library defines this for functions which it implements
28978 to always fail with ENOSYS. Some functions are actually named
28979 something starting with __ and the normal name is an alias. */
28980 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
28987 return getaddrinfo ();
28992 rm -f conftest.$ac_objext conftest$ac_exeext
28993 if { (ac_try="$ac_link"
28994 case "(($ac_try" in
28995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28996 *) ac_try_echo=$ac_try;;
28998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28999 $as_echo "$ac_try_echo") >&5
29000 (eval "$ac_link") 2>conftest.er1
29002 grep -v '^ *+' conftest.er1 >conftest.err
29004 cat conftest.err >&5
29005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29006 (exit $ac_status); } && {
29007 test -z "$ac_c_werror_flag" ||
29008 test ! -s conftest.err
29009 } && test -s conftest$ac_exeext && {
29010 test "$cross_compiling" = yes ||
29011 $as_test_x conftest$ac_exeext
29013 ac_cv_func_getaddrinfo=yes
29015 $as_echo "$as_me: failed program was:" >&5
29016 sed 's/^/| /' conftest.$ac_ext >&5
29018 ac_cv_func_getaddrinfo=no
29021 rm -rf conftest.dSYM
29022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29023 conftest$ac_exeext conftest.$ac_ext
29025 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
29026 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
29027 if test $ac_cv_func_getaddrinfo = yes; then
29028 ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO"
29029 cat >>confdefs.h <<\_ACEOF
29030 #define HAVE_GETADDRINFO 1
29034 ISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1"
29037 { $as_echo "$as_me:$LINENO: checking for gai_strerror" >&5
29038 $as_echo_n "checking for gai_strerror... " >&6; }
29039 if test "${ac_cv_func_gai_strerror+set}" = set; then
29040 $as_echo_n "(cached) " >&6
29042 cat >conftest.$ac_ext <<_ACEOF
29045 cat confdefs.h >>conftest.$ac_ext
29046 cat >>conftest.$ac_ext <<_ACEOF
29047 /* end confdefs.h. */
29048 /* Define gai_strerror to an innocuous variant, in case <limits.h> declares gai_strerror.
29049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29050 #define gai_strerror innocuous_gai_strerror
29052 /* System header to define __stub macros and hopefully few prototypes,
29053 which can conflict with char gai_strerror (); below.
29054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29055 <limits.h> exists even on freestanding compilers. */
29058 # include <limits.h>
29060 # include <assert.h>
29063 #undef gai_strerror
29065 /* Override any GCC internal prototype to avoid an error.
29066 Use char because int might match the return type of a GCC
29067 builtin and then its argument prototype would still apply. */
29071 char gai_strerror ();
29072 /* The GNU C library defines this for functions which it implements
29073 to always fail with ENOSYS. Some functions are actually named
29074 something starting with __ and the normal name is an alias. */
29075 #if defined __stub_gai_strerror || defined __stub___gai_strerror
29082 return gai_strerror ();
29087 rm -f conftest.$ac_objext conftest$ac_exeext
29088 if { (ac_try="$ac_link"
29089 case "(($ac_try" in
29090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29091 *) ac_try_echo=$ac_try;;
29093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29094 $as_echo "$ac_try_echo") >&5
29095 (eval "$ac_link") 2>conftest.er1
29097 grep -v '^ *+' conftest.er1 >conftest.err
29099 cat conftest.err >&5
29100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101 (exit $ac_status); } && {
29102 test -z "$ac_c_werror_flag" ||
29103 test ! -s conftest.err
29104 } && test -s conftest$ac_exeext && {
29105 test "$cross_compiling" = yes ||
29106 $as_test_x conftest$ac_exeext
29108 ac_cv_func_gai_strerror=yes
29110 $as_echo "$as_me: failed program was:" >&5
29111 sed 's/^/| /' conftest.$ac_ext >&5
29113 ac_cv_func_gai_strerror=no
29116 rm -rf conftest.dSYM
29117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29118 conftest$ac_exeext conftest.$ac_ext
29120 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gai_strerror" >&5
29121 $as_echo "$ac_cv_func_gai_strerror" >&6; }
29122 if test $ac_cv_func_gai_strerror = yes; then
29123 cat >>confdefs.h <<\_ACEOF
29124 #define HAVE_GAISTRERROR 1
29134 # Check whether --enable-getifaddrs was given.
29135 if test "${enable_getifaddrs+set}" = set; then
29136 enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
29138 want_getifaddrs="yes"
29143 # This interface iteration code for getifaddrs() will fall back to using
29144 # /proc/net/if_inet6 if getifaddrs() in glibc doesn't return any IPv6
29147 case $want_getifaddrs in
29149 { $as_echo "$as_me:$LINENO: WARNING: \"--enable-getifaddrs=glibc is no longer required\"" >&5
29150 $as_echo "$as_me: WARNING: \"--enable-getifaddrs=glibc is no longer required\"" >&2;}
29151 { $as_echo "$as_me:$LINENO: checking for getifaddrs" >&5
29152 $as_echo_n "checking for getifaddrs... " >&6; }
29153 if test "${ac_cv_func_getifaddrs+set}" = set; then
29154 $as_echo_n "(cached) " >&6
29156 cat >conftest.$ac_ext <<_ACEOF
29159 cat confdefs.h >>conftest.$ac_ext
29160 cat >>conftest.$ac_ext <<_ACEOF
29161 /* end confdefs.h. */
29162 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
29163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29164 #define getifaddrs innocuous_getifaddrs
29166 /* System header to define __stub macros and hopefully few prototypes,
29167 which can conflict with char getifaddrs (); below.
29168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29169 <limits.h> exists even on freestanding compilers. */
29172 # include <limits.h>
29174 # include <assert.h>
29179 /* Override any GCC internal prototype to avoid an error.
29180 Use char because int might match the return type of a GCC
29181 builtin and then its argument prototype would still apply. */
29185 char getifaddrs ();
29186 /* The GNU C library defines this for functions which it implements
29187 to always fail with ENOSYS. Some functions are actually named
29188 something starting with __ and the normal name is an alias. */
29189 #if defined __stub_getifaddrs || defined __stub___getifaddrs
29196 return getifaddrs ();
29201 rm -f conftest.$ac_objext conftest$ac_exeext
29202 if { (ac_try="$ac_link"
29203 case "(($ac_try" in
29204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29205 *) ac_try_echo=$ac_try;;
29207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29208 $as_echo "$ac_try_echo") >&5
29209 (eval "$ac_link") 2>conftest.er1
29211 grep -v '^ *+' conftest.er1 >conftest.err
29213 cat conftest.err >&5
29214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215 (exit $ac_status); } && {
29216 test -z "$ac_c_werror_flag" ||
29217 test ! -s conftest.err
29218 } && test -s conftest$ac_exeext && {
29219 test "$cross_compiling" = yes ||
29220 $as_test_x conftest$ac_exeext
29222 ac_cv_func_getifaddrs=yes
29224 $as_echo "$as_me: failed program was:" >&5
29225 sed 's/^/| /' conftest.$ac_ext >&5
29227 ac_cv_func_getifaddrs=no
29230 rm -rf conftest.dSYM
29231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29232 conftest$ac_exeext conftest.$ac_ext
29234 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
29235 $as_echo "$ac_cv_func_getifaddrs" >&6; }
29236 if test $ac_cv_func_getifaddrs = yes; then
29237 cat >>confdefs.h <<\_ACEOF
29238 #define HAVE_GETIFADDRS 1
29245 { $as_echo "$as_me:$LINENO: checking for getifaddrs" >&5
29246 $as_echo_n "checking for getifaddrs... " >&6; }
29247 if test "${ac_cv_func_getifaddrs+set}" = set; then
29248 $as_echo_n "(cached) " >&6
29250 cat >conftest.$ac_ext <<_ACEOF
29253 cat confdefs.h >>conftest.$ac_ext
29254 cat >>conftest.$ac_ext <<_ACEOF
29255 /* end confdefs.h. */
29256 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
29257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29258 #define getifaddrs innocuous_getifaddrs
29260 /* System header to define __stub macros and hopefully few prototypes,
29261 which can conflict with char getifaddrs (); below.
29262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29263 <limits.h> exists even on freestanding compilers. */
29266 # include <limits.h>
29268 # include <assert.h>
29273 /* Override any GCC internal prototype to avoid an error.
29274 Use char because int might match the return type of a GCC
29275 builtin and then its argument prototype would still apply. */
29279 char getifaddrs ();
29280 /* The GNU C library defines this for functions which it implements
29281 to always fail with ENOSYS. Some functions are actually named
29282 something starting with __ and the normal name is an alias. */
29283 #if defined __stub_getifaddrs || defined __stub___getifaddrs
29290 return getifaddrs ();
29295 rm -f conftest.$ac_objext conftest$ac_exeext
29296 if { (ac_try="$ac_link"
29297 case "(($ac_try" in
29298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29299 *) ac_try_echo=$ac_try;;
29301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29302 $as_echo "$ac_try_echo") >&5
29303 (eval "$ac_link") 2>conftest.er1
29305 grep -v '^ *+' conftest.er1 >conftest.err
29307 cat conftest.err >&5
29308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309 (exit $ac_status); } && {
29310 test -z "$ac_c_werror_flag" ||
29311 test ! -s conftest.err
29312 } && test -s conftest$ac_exeext && {
29313 test "$cross_compiling" = yes ||
29314 $as_test_x conftest$ac_exeext
29316 ac_cv_func_getifaddrs=yes
29318 $as_echo "$as_me: failed program was:" >&5
29319 sed 's/^/| /' conftest.$ac_ext >&5
29321 ac_cv_func_getifaddrs=no
29324 rm -rf conftest.dSYM
29325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29326 conftest$ac_exeext conftest.$ac_ext
29328 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
29329 $as_echo "$ac_cv_func_getifaddrs" >&6; }
29330 if test $ac_cv_func_getifaddrs = yes; then
29331 cat >>confdefs.h <<\_ACEOF
29332 #define HAVE_GETIFADDRS 1
29343 # Look for a sysctl call to get the list of network interfaces.
29345 case $ac_cv_header_sys_sysctl_h in
29347 { $as_echo "$as_me:$LINENO: checking for interface list sysctl" >&5
29348 $as_echo_n "checking for interface list sysctl... " >&6; }
29349 cat >conftest.$ac_ext <<_ACEOF
29352 cat confdefs.h >>conftest.$ac_ext
29353 cat >>conftest.$ac_ext <<_ACEOF
29354 /* end confdefs.h. */
29356 #include <sys/param.h>
29357 #include <sys/sysctl.h>
29358 #include <sys/socket.h>
29359 #ifdef NET_RT_IFLIST
29364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29365 $EGREP "found_rt_iflist" >/dev/null 2>&1; then
29366 { $as_echo "$as_me:$LINENO: result: yes" >&5
29367 $as_echo "yes" >&6; }
29368 cat >>confdefs.h <<\_ACEOF
29369 #define HAVE_IFLIST_SYSCTL 1
29373 { $as_echo "$as_me:$LINENO: result: no" >&5
29374 $as_echo "no" >&6; }
29382 # Check for some other useful functions that are not ever-present.
29385 # We test for strsep() using AC_TRY_LINK instead of AC_CHECK_FUNC
29386 # because AIX 4.3.3 with patches for bos.adt.include to version 4.3.3.77
29387 # reportedly defines strsep() without declaring it in <string.h> when
29388 # -D_LINUX_SOURCE_COMPAT is not defined [RT #2190], and
29389 # AC_CHECK_FUNC() incorrectly succeeds because it declares
29390 # the function itself.
29391 { $as_echo "$as_me:$LINENO: checking for correctly declared strsep()" >&5
29392 $as_echo_n "checking for correctly declared strsep()... " >&6; }
29393 cat >conftest.$ac_ext <<_ACEOF
29396 cat confdefs.h >>conftest.$ac_ext
29397 cat >>conftest.$ac_ext <<_ACEOF
29398 /* end confdefs.h. */
29399 #include <string.h>
29403 char *sp; char *foo = strsep(&sp, ".");
29408 rm -f conftest.$ac_objext conftest$ac_exeext
29409 if { (ac_try="$ac_link"
29410 case "(($ac_try" in
29411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29412 *) ac_try_echo=$ac_try;;
29414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29415 $as_echo "$ac_try_echo") >&5
29416 (eval "$ac_link") 2>conftest.er1
29418 grep -v '^ *+' conftest.er1 >conftest.err
29420 cat conftest.err >&5
29421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29422 (exit $ac_status); } && {
29423 test -z "$ac_c_werror_flag" ||
29424 test ! -s conftest.err
29425 } && test -s conftest$ac_exeext && {
29426 test "$cross_compiling" = yes ||
29427 $as_test_x conftest$ac_exeext
29429 { $as_echo "$as_me:$LINENO: result: yes" >&5
29430 $as_echo "yes" >&6; }; ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"
29432 $as_echo "$as_me: failed program was:" >&5
29433 sed 's/^/| /' conftest.$ac_ext >&5
29435 { $as_echo "$as_me:$LINENO: result: no" >&5
29436 $as_echo "no" >&6; }; ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"
29439 rm -rf conftest.dSYM
29440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29441 conftest$ac_exeext conftest.$ac_ext
29444 { $as_echo "$as_me:$LINENO: checking for memmove" >&5
29445 $as_echo_n "checking for memmove... " >&6; }
29446 if test "${ac_cv_func_memmove+set}" = set; then
29447 $as_echo_n "(cached) " >&6
29449 cat >conftest.$ac_ext <<_ACEOF
29452 cat confdefs.h >>conftest.$ac_ext
29453 cat >>conftest.$ac_ext <<_ACEOF
29454 /* end confdefs.h. */
29455 /* Define memmove to an innocuous variant, in case <limits.h> declares memmove.
29456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29457 #define memmove innocuous_memmove
29459 /* System header to define __stub macros and hopefully few prototypes,
29460 which can conflict with char memmove (); below.
29461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29462 <limits.h> exists even on freestanding compilers. */
29465 # include <limits.h>
29467 # include <assert.h>
29472 /* Override any GCC internal prototype to avoid an error.
29473 Use char because int might match the return type of a GCC
29474 builtin and then its argument prototype would still apply. */
29479 /* The GNU C library defines this for functions which it implements
29480 to always fail with ENOSYS. Some functions are actually named
29481 something starting with __ and the normal name is an alias. */
29482 #if defined __stub_memmove || defined __stub___memmove
29494 rm -f conftest.$ac_objext conftest$ac_exeext
29495 if { (ac_try="$ac_link"
29496 case "(($ac_try" in
29497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29498 *) ac_try_echo=$ac_try;;
29500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29501 $as_echo "$ac_try_echo") >&5
29502 (eval "$ac_link") 2>conftest.er1
29504 grep -v '^ *+' conftest.er1 >conftest.err
29506 cat conftest.err >&5
29507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29508 (exit $ac_status); } && {
29509 test -z "$ac_c_werror_flag" ||
29510 test ! -s conftest.err
29511 } && test -s conftest$ac_exeext && {
29512 test "$cross_compiling" = yes ||
29513 $as_test_x conftest$ac_exeext
29515 ac_cv_func_memmove=yes
29517 $as_echo "$as_me: failed program was:" >&5
29518 sed 's/^/| /' conftest.$ac_ext >&5
29520 ac_cv_func_memmove=no
29523 rm -rf conftest.dSYM
29524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29525 conftest$ac_exeext conftest.$ac_ext
29527 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5
29528 $as_echo "$ac_cv_func_memmove" >&6; }
29529 if test $ac_cv_func_memmove = yes; then
29530 ISC_PLATFORM_NEEDMEMMOVE="#undef ISC_PLATFORM_NEEDMEMMOVE"
29532 ISC_PLATFORM_NEEDMEMMOVE="#define ISC_PLATFORM_NEEDMEMMOVE 1"
29537 { $as_echo "$as_me:$LINENO: checking for strtoul" >&5
29538 $as_echo_n "checking for strtoul... " >&6; }
29539 if test "${ac_cv_func_strtoul+set}" = set; then
29540 $as_echo_n "(cached) " >&6
29542 cat >conftest.$ac_ext <<_ACEOF
29545 cat confdefs.h >>conftest.$ac_ext
29546 cat >>conftest.$ac_ext <<_ACEOF
29547 /* end confdefs.h. */
29548 /* Define strtoul to an innocuous variant, in case <limits.h> declares strtoul.
29549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29550 #define strtoul innocuous_strtoul
29552 /* System header to define __stub macros and hopefully few prototypes,
29553 which can conflict with char strtoul (); below.
29554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29555 <limits.h> exists even on freestanding compilers. */
29558 # include <limits.h>
29560 # include <assert.h>
29565 /* Override any GCC internal prototype to avoid an error.
29566 Use char because int might match the return type of a GCC
29567 builtin and then its argument prototype would still apply. */
29572 /* The GNU C library defines this for functions which it implements
29573 to always fail with ENOSYS. Some functions are actually named
29574 something starting with __ and the normal name is an alias. */
29575 #if defined __stub_strtoul || defined __stub___strtoul
29587 rm -f conftest.$ac_objext conftest$ac_exeext
29588 if { (ac_try="$ac_link"
29589 case "(($ac_try" in
29590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29591 *) ac_try_echo=$ac_try;;
29593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29594 $as_echo "$ac_try_echo") >&5
29595 (eval "$ac_link") 2>conftest.er1
29597 grep -v '^ *+' conftest.er1 >conftest.err
29599 cat conftest.err >&5
29600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29601 (exit $ac_status); } && {
29602 test -z "$ac_c_werror_flag" ||
29603 test ! -s conftest.err
29604 } && test -s conftest$ac_exeext && {
29605 test "$cross_compiling" = yes ||
29606 $as_test_x conftest$ac_exeext
29608 ac_cv_func_strtoul=yes
29610 $as_echo "$as_me: failed program was:" >&5
29611 sed 's/^/| /' conftest.$ac_ext >&5
29613 ac_cv_func_strtoul=no
29616 rm -rf conftest.dSYM
29617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29618 conftest$ac_exeext conftest.$ac_ext
29620 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtoul" >&5
29621 $as_echo "$ac_cv_func_strtoul" >&6; }
29622 if test $ac_cv_func_strtoul = yes; then
29623 ISC_PLATFORM_NEEDSTRTOUL="#undef ISC_PLATFORM_NEEDSTRTOUL"
29624 LWRES_PLATFORM_NEEDSTRTOUL="#undef LWRES_PLATFORM_NEEDSTRTOUL"
29627 ISC_PLATFORM_NEEDSTRTOUL="#define ISC_PLATFORM_NEEDSTRTOUL 1"
29628 LWRES_PLATFORM_NEEDSTRTOUL="#define LWRES_PLATFORM_NEEDSTRTOUL 1"
29629 GENRANDOMLIB='${ISCLIBS}'
29636 { $as_echo "$as_me:$LINENO: checking for strlcpy" >&5
29637 $as_echo_n "checking for strlcpy... " >&6; }
29638 if test "${ac_cv_func_strlcpy+set}" = set; then
29639 $as_echo_n "(cached) " >&6
29641 cat >conftest.$ac_ext <<_ACEOF
29644 cat confdefs.h >>conftest.$ac_ext
29645 cat >>conftest.$ac_ext <<_ACEOF
29646 /* end confdefs.h. */
29647 /* Define strlcpy to an innocuous variant, in case <limits.h> declares strlcpy.
29648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29649 #define strlcpy innocuous_strlcpy
29651 /* System header to define __stub macros and hopefully few prototypes,
29652 which can conflict with char strlcpy (); below.
29653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29654 <limits.h> exists even on freestanding compilers. */
29657 # include <limits.h>
29659 # include <assert.h>
29664 /* Override any GCC internal prototype to avoid an error.
29665 Use char because int might match the return type of a GCC
29666 builtin and then its argument prototype would still apply. */
29671 /* The GNU C library defines this for functions which it implements
29672 to always fail with ENOSYS. Some functions are actually named
29673 something starting with __ and the normal name is an alias. */
29674 #if defined __stub_strlcpy || defined __stub___strlcpy
29686 rm -f conftest.$ac_objext conftest$ac_exeext
29687 if { (ac_try="$ac_link"
29688 case "(($ac_try" in
29689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29690 *) ac_try_echo=$ac_try;;
29692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29693 $as_echo "$ac_try_echo") >&5
29694 (eval "$ac_link") 2>conftest.er1
29696 grep -v '^ *+' conftest.er1 >conftest.err
29698 cat conftest.err >&5
29699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700 (exit $ac_status); } && {
29701 test -z "$ac_c_werror_flag" ||
29702 test ! -s conftest.err
29703 } && test -s conftest$ac_exeext && {
29704 test "$cross_compiling" = yes ||
29705 $as_test_x conftest$ac_exeext
29707 ac_cv_func_strlcpy=yes
29709 $as_echo "$as_me: failed program was:" >&5
29710 sed 's/^/| /' conftest.$ac_ext >&5
29712 ac_cv_func_strlcpy=no
29715 rm -rf conftest.dSYM
29716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29717 conftest$ac_exeext conftest.$ac_ext
29719 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
29720 $as_echo "$ac_cv_func_strlcpy" >&6; }
29721 if test $ac_cv_func_strlcpy = yes; then
29722 ISC_PLATFORM_NEEDSTRLCPY="#undef ISC_PLATFORM_NEEDSTRLCPY"
29724 ISC_PLATFORM_NEEDSTRLCPY="#define ISC_PLATFORM_NEEDSTRLCPY 1"
29729 { $as_echo "$as_me:$LINENO: checking for strlcat" >&5
29730 $as_echo_n "checking for strlcat... " >&6; }
29731 if test "${ac_cv_func_strlcat+set}" = set; then
29732 $as_echo_n "(cached) " >&6
29734 cat >conftest.$ac_ext <<_ACEOF
29737 cat confdefs.h >>conftest.$ac_ext
29738 cat >>conftest.$ac_ext <<_ACEOF
29739 /* end confdefs.h. */
29740 /* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat.
29741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29742 #define strlcat innocuous_strlcat
29744 /* System header to define __stub macros and hopefully few prototypes,
29745 which can conflict with char strlcat (); below.
29746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29747 <limits.h> exists even on freestanding compilers. */
29750 # include <limits.h>
29752 # include <assert.h>
29757 /* Override any GCC internal prototype to avoid an error.
29758 Use char because int might match the return type of a GCC
29759 builtin and then its argument prototype would still apply. */
29764 /* The GNU C library defines this for functions which it implements
29765 to always fail with ENOSYS. Some functions are actually named
29766 something starting with __ and the normal name is an alias. */
29767 #if defined __stub_strlcat || defined __stub___strlcat
29779 rm -f conftest.$ac_objext conftest$ac_exeext
29780 if { (ac_try="$ac_link"
29781 case "(($ac_try" in
29782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29783 *) ac_try_echo=$ac_try;;
29785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29786 $as_echo "$ac_try_echo") >&5
29787 (eval "$ac_link") 2>conftest.er1
29789 grep -v '^ *+' conftest.er1 >conftest.err
29791 cat conftest.err >&5
29792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29793 (exit $ac_status); } && {
29794 test -z "$ac_c_werror_flag" ||
29795 test ! -s conftest.err
29796 } && test -s conftest$ac_exeext && {
29797 test "$cross_compiling" = yes ||
29798 $as_test_x conftest$ac_exeext
29800 ac_cv_func_strlcat=yes
29802 $as_echo "$as_me: failed program was:" >&5
29803 sed 's/^/| /' conftest.$ac_ext >&5
29805 ac_cv_func_strlcat=no
29808 rm -rf conftest.dSYM
29809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29810 conftest$ac_exeext conftest.$ac_ext
29812 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
29813 $as_echo "$ac_cv_func_strlcat" >&6; }
29814 if test $ac_cv_func_strlcat = yes; then
29815 ISC_PLATFORM_NEEDSTRLCAT="#undef ISC_PLATFORM_NEEDSTRLCAT"
29817 ISC_PLATFORM_NEEDSTRLCAT="#define ISC_PLATFORM_NEEDSTRLCAT 1"
29824 { $as_echo "$as_me:$LINENO: checking sprintf" >&5
29825 $as_echo_n "checking sprintf... " >&6; }
29826 cat >conftest.$ac_ext <<_ACEOF
29829 cat confdefs.h >>conftest.$ac_ext
29830 cat >>conftest.$ac_ext <<_ACEOF
29831 /* end confdefs.h. */
29838 char buf[2]; return(*sprintf(buf,"x"));
29843 rm -f conftest.$ac_objext
29844 if { (ac_try="$ac_compile"
29845 case "(($ac_try" in
29846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29847 *) ac_try_echo=$ac_try;;
29849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29850 $as_echo "$ac_try_echo") >&5
29851 (eval "$ac_compile") 2>conftest.er1
29853 grep -v '^ *+' conftest.er1 >conftest.err
29855 cat conftest.err >&5
29856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29857 (exit $ac_status); } && {
29858 test -z "$ac_c_werror_flag" ||
29859 test ! -s conftest.err
29860 } && test -s conftest.$ac_objext; then
29862 ISC_PRINT_OBJS="print.$O"
29863 ISC_PRINT_SRCS="print.c"
29864 ISC_PLATFORM_NEEDSPRINTF="#define ISC_PLATFORM_NEEDSPRINTF"
29865 LWRES_PLATFORM_NEEDSPRINTF="#define LWRES_PLATFORM_NEEDSPRINTF"
29868 $as_echo "$as_me: failed program was:" >&5
29869 sed 's/^/| /' conftest.$ac_ext >&5
29871 ISC_PLATFORM_NEEDSPRINTF="#undef ISC_PLATFORM_NEEDSPRINTF"
29872 LWRES_PLATFORM_NEEDSPRINTF="#undef LWRES_PLATFORM_NEEDSPRINTF"
29876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29880 { $as_echo "$as_me:$LINENO: checking for vsnprintf" >&5
29881 $as_echo_n "checking for vsnprintf... " >&6; }
29882 if test "${ac_cv_func_vsnprintf+set}" = set; then
29883 $as_echo_n "(cached) " >&6
29885 cat >conftest.$ac_ext <<_ACEOF
29888 cat confdefs.h >>conftest.$ac_ext
29889 cat >>conftest.$ac_ext <<_ACEOF
29890 /* end confdefs.h. */
29891 /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
29892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29893 #define vsnprintf innocuous_vsnprintf
29895 /* System header to define __stub macros and hopefully few prototypes,
29896 which can conflict with char vsnprintf (); below.
29897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29898 <limits.h> exists even on freestanding compilers. */
29901 # include <limits.h>
29903 # include <assert.h>
29908 /* Override any GCC internal prototype to avoid an error.
29909 Use char because int might match the return type of a GCC
29910 builtin and then its argument prototype would still apply. */
29915 /* The GNU C library defines this for functions which it implements
29916 to always fail with ENOSYS. Some functions are actually named
29917 something starting with __ and the normal name is an alias. */
29918 #if defined __stub_vsnprintf || defined __stub___vsnprintf
29925 return vsnprintf ();
29930 rm -f conftest.$ac_objext conftest$ac_exeext
29931 if { (ac_try="$ac_link"
29932 case "(($ac_try" in
29933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29934 *) ac_try_echo=$ac_try;;
29936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29937 $as_echo "$ac_try_echo") >&5
29938 (eval "$ac_link") 2>conftest.er1
29940 grep -v '^ *+' conftest.er1 >conftest.err
29942 cat conftest.err >&5
29943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944 (exit $ac_status); } && {
29945 test -z "$ac_c_werror_flag" ||
29946 test ! -s conftest.err
29947 } && test -s conftest$ac_exeext && {
29948 test "$cross_compiling" = yes ||
29949 $as_test_x conftest$ac_exeext
29951 ac_cv_func_vsnprintf=yes
29953 $as_echo "$as_me: failed program was:" >&5
29954 sed 's/^/| /' conftest.$ac_ext >&5
29956 ac_cv_func_vsnprintf=no
29959 rm -rf conftest.dSYM
29960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29961 conftest$ac_exeext conftest.$ac_ext
29963 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
29964 $as_echo "$ac_cv_func_vsnprintf" >&6; }
29965 if test $ac_cv_func_vsnprintf = yes; then
29966 ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF"
29967 LWRES_PLATFORM_NEEDVSNPRINTF="#undef LWRES_PLATFORM_NEEDVSNPRINTF"
29969 ISC_PRINT_OBJS="print.$O"
29970 ISC_PRINT_SRCS="print.c"
29971 ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
29972 LWRES_PLATFORM_NEEDVSNPRINTF="#define LWRES_PLATFORM_NEEDVSNPRINTF 1"
29977 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS $ISC_PRINT_OBJS"
29978 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS $ISC_PRINT_SRCS"
29980 { $as_echo "$as_me:$LINENO: checking for strerror" >&5
29981 $as_echo_n "checking for strerror... " >&6; }
29982 if test "${ac_cv_func_strerror+set}" = set; then
29983 $as_echo_n "(cached) " >&6
29985 cat >conftest.$ac_ext <<_ACEOF
29988 cat confdefs.h >>conftest.$ac_ext
29989 cat >>conftest.$ac_ext <<_ACEOF
29990 /* end confdefs.h. */
29991 /* Define strerror to an innocuous variant, in case <limits.h> declares strerror.
29992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29993 #define strerror innocuous_strerror
29995 /* System header to define __stub macros and hopefully few prototypes,
29996 which can conflict with char strerror (); below.
29997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29998 <limits.h> exists even on freestanding compilers. */
30001 # include <limits.h>
30003 # include <assert.h>
30008 /* Override any GCC internal prototype to avoid an error.
30009 Use char because int might match the return type of a GCC
30010 builtin and then its argument prototype would still apply. */
30015 /* The GNU C library defines this for functions which it implements
30016 to always fail with ENOSYS. Some functions are actually named
30017 something starting with __ and the normal name is an alias. */
30018 #if defined __stub_strerror || defined __stub___strerror
30025 return strerror ();
30030 rm -f conftest.$ac_objext conftest$ac_exeext
30031 if { (ac_try="$ac_link"
30032 case "(($ac_try" in
30033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30034 *) ac_try_echo=$ac_try;;
30036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30037 $as_echo "$ac_try_echo") >&5
30038 (eval "$ac_link") 2>conftest.er1
30040 grep -v '^ *+' conftest.er1 >conftest.err
30042 cat conftest.err >&5
30043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044 (exit $ac_status); } && {
30045 test -z "$ac_c_werror_flag" ||
30046 test ! -s conftest.err
30047 } && test -s conftest$ac_exeext && {
30048 test "$cross_compiling" = yes ||
30049 $as_test_x conftest$ac_exeext
30051 ac_cv_func_strerror=yes
30053 $as_echo "$as_me: failed program was:" >&5
30054 sed 's/^/| /' conftest.$ac_ext >&5
30056 ac_cv_func_strerror=no
30059 rm -rf conftest.dSYM
30060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30061 conftest$ac_exeext conftest.$ac_ext
30063 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
30064 $as_echo "$ac_cv_func_strerror" >&6; }
30065 if test $ac_cv_func_strerror = yes; then
30066 cat >>confdefs.h <<\_ACEOF
30067 #define HAVE_STRERROR 1
30077 # Use our own SPNEGO implementation?
30079 # Check whether --enable-isc-spnego was given.
30080 if test "${enable_isc_spnego+set}" = set; then
30081 enableval=$enable_isc_spnego;
30085 if test -n "$USE_GSSAPI"
30087 case "$enable_isc_spnego" in
30089 USE_ISC_SPNEGO='-DUSE_ISC_SPNEGO'
30090 DST_EXTRA_OBJS="$DST_EXTRA_OBJS spnego.$O"
30091 DST_EXTRA_SRCS="$DST_EXTRA_SRCS spnego.c"
30092 { $as_echo "$as_me:$LINENO: result: using SPNEGO from lib/dns" >&5
30093 $as_echo "using SPNEGO from lib/dns" >&6; }
30096 { $as_echo "$as_me:$LINENO: result: using SPNEGO from GSSAPI library" >&5
30097 $as_echo "using SPNEGO from GSSAPI library" >&6; }
30107 # Determine the printf format characters to use when printing
30108 # values of type isc_int64_t. This will normally be "ll", but where
30109 # the compiler treats "long long" as a alias for "long" and printf
30110 # doesn't know about "long long" use "l". Hopefully the sprintf
30111 # will produce a inconsistent result in the later case. If the compiler
30112 # fails due to seeing "%lld" we fall back to "l".
30114 # Digital Unix 4.0 (gcc?) (long long) is 64 bits as is its long. It uses
30115 # %ld even for (long long)/
30117 # Win32 uses "%I64d", but that's defined elsewhere since we don't use
30118 # configure on Win32.
30120 { $as_echo "$as_me:$LINENO: checking printf format modifier for 64-bit integers" >&5
30121 $as_echo_n "checking printf format modifier for 64-bit integers... " >&6; }
30122 if test "$cross_compiling" = yes; then
30123 { $as_echo "$as_me:$LINENO: result: assuming target platform uses ll" >&5
30124 $as_echo "assuming target platform uses ll" >&6; }
30125 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
30126 LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "ll"'
30128 cat >conftest.$ac_ext <<_ACEOF
30131 cat confdefs.h >>conftest.$ac_ext
30132 cat >>conftest.$ac_ext <<_ACEOF
30133 /* end confdefs.h. */
30137 long long int j = 0;
30140 sprintf(buf, "%lld", j);
30141 exit((sizeof(long long int) != sizeof(long int))? 0 :
30142 (strcmp(buf, "0") != 0));
30146 rm -f conftest$ac_exeext
30147 if { (ac_try="$ac_link"
30148 case "(($ac_try" in
30149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30150 *) ac_try_echo=$ac_try;;
30152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30153 $as_echo "$ac_try_echo") >&5
30154 (eval "$ac_link") 2>&5
30156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30158 { (case "(($ac_try" in
30159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30160 *) ac_try_echo=$ac_try;;
30162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30163 $as_echo "$ac_try_echo") >&5
30164 (eval "$ac_try") 2>&5
30166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30167 (exit $ac_status); }; }; then
30168 { $as_echo "$as_me:$LINENO: result: ll" >&5
30169 $as_echo "ll" >&6; }
30170 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
30171 LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "ll"'
30173 $as_echo "$as_me: program exited with status $ac_status" >&5
30174 $as_echo "$as_me: failed program was:" >&5
30175 sed 's/^/| /' conftest.$ac_ext >&5
30177 ( exit $ac_status )
30178 { $as_echo "$as_me:$LINENO: result: l" >&5
30179 $as_echo "l" >&6; }
30180 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "l"'
30181 LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "l"'
30183 rm -rf conftest.dSYM
30184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30194 # Note it is very recommended to *not* disable chroot(),
30195 # this is only because chroot() was made obsolete by Posix.
30196 # Check whether --enable-chroot was given.
30197 if test "${enable_chroot+set}" = set; then
30198 enableval=$enable_chroot;
30201 case "$enable_chroot" in
30204 for ac_func in chroot
30206 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30207 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30208 $as_echo_n "checking for $ac_func... " >&6; }
30209 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30210 $as_echo_n "(cached) " >&6
30212 cat >conftest.$ac_ext <<_ACEOF
30215 cat confdefs.h >>conftest.$ac_ext
30216 cat >>conftest.$ac_ext <<_ACEOF
30217 /* end confdefs.h. */
30218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30220 #define $ac_func innocuous_$ac_func
30222 /* System header to define __stub macros and hopefully few prototypes,
30223 which can conflict with char $ac_func (); below.
30224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30225 <limits.h> exists even on freestanding compilers. */
30228 # include <limits.h>
30230 # include <assert.h>
30235 /* Override any GCC internal prototype to avoid an error.
30236 Use char because int might match the return type of a GCC
30237 builtin and then its argument prototype would still apply. */
30242 /* The GNU C library defines this for functions which it implements
30243 to always fail with ENOSYS. Some functions are actually named
30244 something starting with __ and the normal name is an alias. */
30245 #if defined __stub_$ac_func || defined __stub___$ac_func
30252 return $ac_func ();
30257 rm -f conftest.$ac_objext conftest$ac_exeext
30258 if { (ac_try="$ac_link"
30259 case "(($ac_try" in
30260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30261 *) ac_try_echo=$ac_try;;
30263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30264 $as_echo "$ac_try_echo") >&5
30265 (eval "$ac_link") 2>conftest.er1
30267 grep -v '^ *+' conftest.er1 >conftest.err
30269 cat conftest.err >&5
30270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271 (exit $ac_status); } && {
30272 test -z "$ac_c_werror_flag" ||
30273 test ! -s conftest.err
30274 } && test -s conftest$ac_exeext && {
30275 test "$cross_compiling" = yes ||
30276 $as_test_x conftest$ac_exeext
30278 eval "$as_ac_var=yes"
30280 $as_echo "$as_me: failed program was:" >&5
30281 sed 's/^/| /' conftest.$ac_ext >&5
30283 eval "$as_ac_var=no"
30286 rm -rf conftest.dSYM
30287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30288 conftest$ac_exeext conftest.$ac_ext
30290 ac_res=`eval 'as_val=${'$as_ac_var'}
30291 $as_echo "$as_val"'`
30292 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30293 $as_echo "$ac_res" >&6; }
30294 if test `eval 'as_val=${'$as_ac_var'}
30295 $as_echo "$as_val"'` = yes; then
30296 cat >>confdefs.h <<_ACEOF
30297 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30307 # Check whether --enable-linux-caps was given.
30308 if test "${enable_linux_caps+set}" = set; then
30309 enableval=$enable_linux_caps;
30312 case "$enable_linux_caps" in
30316 for ac_header in linux/capability.h sys/capability.h
30318 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30320 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30321 $as_echo_n "checking for $ac_header... " >&6; }
30322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30323 $as_echo_n "(cached) " >&6
30325 ac_res=`eval 'as_val=${'$as_ac_Header'}
30326 $as_echo "$as_val"'`
30327 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30328 $as_echo "$ac_res" >&6; }
30330 # Is the header compilable?
30331 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30332 $as_echo_n "checking $ac_header usability... " >&6; }
30333 cat >conftest.$ac_ext <<_ACEOF
30336 cat confdefs.h >>conftest.$ac_ext
30337 cat >>conftest.$ac_ext <<_ACEOF
30338 /* end confdefs.h. */
30339 $ac_includes_default
30340 #include <$ac_header>
30342 rm -f conftest.$ac_objext
30343 if { (ac_try="$ac_compile"
30344 case "(($ac_try" in
30345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30346 *) ac_try_echo=$ac_try;;
30348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30349 $as_echo "$ac_try_echo") >&5
30350 (eval "$ac_compile") 2>conftest.er1
30352 grep -v '^ *+' conftest.er1 >conftest.err
30354 cat conftest.err >&5
30355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356 (exit $ac_status); } && {
30357 test -z "$ac_c_werror_flag" ||
30358 test ! -s conftest.err
30359 } && test -s conftest.$ac_objext; then
30360 ac_header_compiler=yes
30362 $as_echo "$as_me: failed program was:" >&5
30363 sed 's/^/| /' conftest.$ac_ext >&5
30365 ac_header_compiler=no
30368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30369 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30370 $as_echo "$ac_header_compiler" >&6; }
30372 # Is the header present?
30373 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30374 $as_echo_n "checking $ac_header presence... " >&6; }
30375 cat >conftest.$ac_ext <<_ACEOF
30378 cat confdefs.h >>conftest.$ac_ext
30379 cat >>conftest.$ac_ext <<_ACEOF
30380 /* end confdefs.h. */
30381 #include <$ac_header>
30383 if { (ac_try="$ac_cpp conftest.$ac_ext"
30384 case "(($ac_try" in
30385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30386 *) ac_try_echo=$ac_try;;
30388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30389 $as_echo "$ac_try_echo") >&5
30390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30392 grep -v '^ *+' conftest.er1 >conftest.err
30394 cat conftest.err >&5
30395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30396 (exit $ac_status); } >/dev/null && {
30397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30398 test ! -s conftest.err
30400 ac_header_preproc=yes
30402 $as_echo "$as_me: failed program was:" >&5
30403 sed 's/^/| /' conftest.$ac_ext >&5
30405 ac_header_preproc=no
30408 rm -f conftest.err conftest.$ac_ext
30409 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30410 $as_echo "$ac_header_preproc" >&6; }
30412 # So? What about this header?
30413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30416 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30418 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30419 ac_header_preproc=yes
30422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30423 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30425 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30427 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30429 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30431 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30433 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30437 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30438 $as_echo_n "checking for $ac_header... " >&6; }
30439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30440 $as_echo_n "(cached) " >&6
30442 eval "$as_ac_Header=\$ac_header_preproc"
30444 ac_res=`eval 'as_val=${'$as_ac_Header'}
30445 $as_echo "$as_val"'`
30446 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30447 $as_echo "$ac_res" >&6; }
30450 if test `eval 'as_val=${'$as_ac_Header'}
30451 $as_echo "$as_val"'` = yes; then
30452 cat >>confdefs.h <<_ACEOF
30453 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30461 { $as_echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
30462 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30463 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
30464 $as_echo_n "(cached) " >&6
30466 ac_check_lib_save_LIBS=$LIBS
30468 cat >conftest.$ac_ext <<_ACEOF
30471 cat confdefs.h >>conftest.$ac_ext
30472 cat >>conftest.$ac_ext <<_ACEOF
30473 /* end confdefs.h. */
30475 /* Override any GCC internal prototype to avoid an error.
30476 Use char because int might match the return type of a GCC
30477 builtin and then its argument prototype would still apply. */
30481 char cap_set_proc ();
30485 return cap_set_proc ();
30490 rm -f conftest.$ac_objext conftest$ac_exeext
30491 if { (ac_try="$ac_link"
30492 case "(($ac_try" in
30493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30494 *) ac_try_echo=$ac_try;;
30496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30497 $as_echo "$ac_try_echo") >&5
30498 (eval "$ac_link") 2>conftest.er1
30500 grep -v '^ *+' conftest.er1 >conftest.err
30502 cat conftest.err >&5
30503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30504 (exit $ac_status); } && {
30505 test -z "$ac_c_werror_flag" ||
30506 test ! -s conftest.err
30507 } && test -s conftest$ac_exeext && {
30508 test "$cross_compiling" = yes ||
30509 $as_test_x conftest$ac_exeext
30511 ac_cv_lib_cap_cap_set_proc=yes
30513 $as_echo "$as_me: failed program was:" >&5
30514 sed 's/^/| /' conftest.$ac_ext >&5
30516 ac_cv_lib_cap_cap_set_proc=no
30519 rm -rf conftest.dSYM
30520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30521 conftest$ac_exeext conftest.$ac_ext
30522 LIBS=$ac_check_lib_save_LIBS
30524 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
30525 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30526 if test $ac_cv_lib_cap_cap_set_proc = yes; then
30527 cat >>confdefs.h <<_ACEOF
30528 #define HAVE_LIBCAP 1
30540 for ac_header in sys/prctl.h
30542 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30544 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30545 $as_echo_n "checking for $ac_header... " >&6; }
30546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30547 $as_echo_n "(cached) " >&6
30549 ac_res=`eval 'as_val=${'$as_ac_Header'}
30550 $as_echo "$as_val"'`
30551 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30552 $as_echo "$ac_res" >&6; }
30554 # Is the header compilable?
30555 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30556 $as_echo_n "checking $ac_header usability... " >&6; }
30557 cat >conftest.$ac_ext <<_ACEOF
30560 cat confdefs.h >>conftest.$ac_ext
30561 cat >>conftest.$ac_ext <<_ACEOF
30562 /* end confdefs.h. */
30563 $ac_includes_default
30564 #include <$ac_header>
30566 rm -f conftest.$ac_objext
30567 if { (ac_try="$ac_compile"
30568 case "(($ac_try" in
30569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30570 *) ac_try_echo=$ac_try;;
30572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30573 $as_echo "$ac_try_echo") >&5
30574 (eval "$ac_compile") 2>conftest.er1
30576 grep -v '^ *+' conftest.er1 >conftest.err
30578 cat conftest.err >&5
30579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30580 (exit $ac_status); } && {
30581 test -z "$ac_c_werror_flag" ||
30582 test ! -s conftest.err
30583 } && test -s conftest.$ac_objext; then
30584 ac_header_compiler=yes
30586 $as_echo "$as_me: failed program was:" >&5
30587 sed 's/^/| /' conftest.$ac_ext >&5
30589 ac_header_compiler=no
30592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30593 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30594 $as_echo "$ac_header_compiler" >&6; }
30596 # Is the header present?
30597 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30598 $as_echo_n "checking $ac_header presence... " >&6; }
30599 cat >conftest.$ac_ext <<_ACEOF
30602 cat confdefs.h >>conftest.$ac_ext
30603 cat >>conftest.$ac_ext <<_ACEOF
30604 /* end confdefs.h. */
30605 #include <$ac_header>
30607 if { (ac_try="$ac_cpp conftest.$ac_ext"
30608 case "(($ac_try" in
30609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30610 *) ac_try_echo=$ac_try;;
30612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30613 $as_echo "$ac_try_echo") >&5
30614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30616 grep -v '^ *+' conftest.er1 >conftest.err
30618 cat conftest.err >&5
30619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30620 (exit $ac_status); } >/dev/null && {
30621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30622 test ! -s conftest.err
30624 ac_header_preproc=yes
30626 $as_echo "$as_me: failed program was:" >&5
30627 sed 's/^/| /' conftest.$ac_ext >&5
30629 ac_header_preproc=no
30632 rm -f conftest.err conftest.$ac_ext
30633 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30634 $as_echo "$ac_header_preproc" >&6; }
30636 # So? What about this header?
30637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30640 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30642 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30643 ac_header_preproc=yes
30646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30647 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30649 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30651 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30653 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30655 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30657 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30661 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30662 $as_echo_n "checking for $ac_header... " >&6; }
30663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30664 $as_echo_n "(cached) " >&6
30666 eval "$as_ac_Header=\$ac_header_preproc"
30668 ac_res=`eval 'as_val=${'$as_ac_Header'}
30669 $as_echo "$as_val"'`
30670 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30671 $as_echo "$ac_res" >&6; }
30674 if test `eval 'as_val=${'$as_ac_Header'}
30675 $as_echo "$as_val"'` = yes; then
30676 cat >>confdefs.h <<_ACEOF
30677 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30686 for ac_header in sys/un.h
30688 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30690 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30691 $as_echo_n "checking for $ac_header... " >&6; }
30692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30693 $as_echo_n "(cached) " >&6
30695 ac_res=`eval 'as_val=${'$as_ac_Header'}
30696 $as_echo "$as_val"'`
30697 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30698 $as_echo "$ac_res" >&6; }
30700 # Is the header compilable?
30701 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30702 $as_echo_n "checking $ac_header usability... " >&6; }
30703 cat >conftest.$ac_ext <<_ACEOF
30706 cat confdefs.h >>conftest.$ac_ext
30707 cat >>conftest.$ac_ext <<_ACEOF
30708 /* end confdefs.h. */
30709 $ac_includes_default
30710 #include <$ac_header>
30712 rm -f conftest.$ac_objext
30713 if { (ac_try="$ac_compile"
30714 case "(($ac_try" in
30715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30716 *) ac_try_echo=$ac_try;;
30718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30719 $as_echo "$ac_try_echo") >&5
30720 (eval "$ac_compile") 2>conftest.er1
30722 grep -v '^ *+' conftest.er1 >conftest.err
30724 cat conftest.err >&5
30725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30726 (exit $ac_status); } && {
30727 test -z "$ac_c_werror_flag" ||
30728 test ! -s conftest.err
30729 } && test -s conftest.$ac_objext; then
30730 ac_header_compiler=yes
30732 $as_echo "$as_me: failed program was:" >&5
30733 sed 's/^/| /' conftest.$ac_ext >&5
30735 ac_header_compiler=no
30738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30739 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30740 $as_echo "$ac_header_compiler" >&6; }
30742 # Is the header present?
30743 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30744 $as_echo_n "checking $ac_header presence... " >&6; }
30745 cat >conftest.$ac_ext <<_ACEOF
30748 cat confdefs.h >>conftest.$ac_ext
30749 cat >>conftest.$ac_ext <<_ACEOF
30750 /* end confdefs.h. */
30751 #include <$ac_header>
30753 if { (ac_try="$ac_cpp conftest.$ac_ext"
30754 case "(($ac_try" in
30755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30756 *) ac_try_echo=$ac_try;;
30758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30759 $as_echo "$ac_try_echo") >&5
30760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30762 grep -v '^ *+' conftest.er1 >conftest.err
30764 cat conftest.err >&5
30765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30766 (exit $ac_status); } >/dev/null && {
30767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30768 test ! -s conftest.err
30770 ac_header_preproc=yes
30772 $as_echo "$as_me: failed program was:" >&5
30773 sed 's/^/| /' conftest.$ac_ext >&5
30775 ac_header_preproc=no
30778 rm -f conftest.err conftest.$ac_ext
30779 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30780 $as_echo "$ac_header_preproc" >&6; }
30782 # So? What about this header?
30783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30786 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30788 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30789 ac_header_preproc=yes
30792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30793 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30795 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30797 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30799 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30801 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30803 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30807 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30808 $as_echo_n "checking for $ac_header... " >&6; }
30809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30810 $as_echo_n "(cached) " >&6
30812 eval "$as_ac_Header=\$ac_header_preproc"
30814 ac_res=`eval 'as_val=${'$as_ac_Header'}
30815 $as_echo "$as_val"'`
30816 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30817 $as_echo "$ac_res" >&6; }
30820 if test `eval 'as_val=${'$as_ac_Header'}
30821 $as_echo "$as_val"'` = yes; then
30822 cat >>confdefs.h <<_ACEOF
30823 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30825 ISC_PLATFORM_HAVESYSUNH="#define ISC_PLATFORM_HAVESYSUNH 1"
30828 ISC_PLATFORM_HAVESYSUNH="#undef ISC_PLATFORM_HAVESYSUNH"
30839 cat >>confdefs.h <<\_ACEOF
30840 #define NEED_SECURE_DIRECTORY 1
30846 cat >>confdefs.h <<\_ACEOF
30847 #define NEED_SECURE_DIRECTORY 1
30856 { $as_echo "$as_me:$LINENO: checking for tzset" >&5
30857 $as_echo_n "checking for tzset... " >&6; }
30858 if test "${ac_cv_func_tzset+set}" = set; then
30859 $as_echo_n "(cached) " >&6
30861 cat >conftest.$ac_ext <<_ACEOF
30864 cat confdefs.h >>conftest.$ac_ext
30865 cat >>conftest.$ac_ext <<_ACEOF
30866 /* end confdefs.h. */
30867 /* Define tzset to an innocuous variant, in case <limits.h> declares tzset.
30868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30869 #define tzset innocuous_tzset
30871 /* System header to define __stub macros and hopefully few prototypes,
30872 which can conflict with char tzset (); below.
30873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30874 <limits.h> exists even on freestanding compilers. */
30877 # include <limits.h>
30879 # include <assert.h>
30884 /* Override any GCC internal prototype to avoid an error.
30885 Use char because int might match the return type of a GCC
30886 builtin and then its argument prototype would still apply. */
30891 /* The GNU C library defines this for functions which it implements
30892 to always fail with ENOSYS. Some functions are actually named
30893 something starting with __ and the normal name is an alias. */
30894 #if defined __stub_tzset || defined __stub___tzset
30906 rm -f conftest.$ac_objext conftest$ac_exeext
30907 if { (ac_try="$ac_link"
30908 case "(($ac_try" in
30909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30910 *) ac_try_echo=$ac_try;;
30912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30913 $as_echo "$ac_try_echo") >&5
30914 (eval "$ac_link") 2>conftest.er1
30916 grep -v '^ *+' conftest.er1 >conftest.err
30918 cat conftest.err >&5
30919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30920 (exit $ac_status); } && {
30921 test -z "$ac_c_werror_flag" ||
30922 test ! -s conftest.err
30923 } && test -s conftest$ac_exeext && {
30924 test "$cross_compiling" = yes ||
30925 $as_test_x conftest$ac_exeext
30927 ac_cv_func_tzset=yes
30929 $as_echo "$as_me: failed program was:" >&5
30930 sed 's/^/| /' conftest.$ac_ext >&5
30932 ac_cv_func_tzset=no
30935 rm -rf conftest.dSYM
30936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30937 conftest$ac_exeext conftest.$ac_ext
30939 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_tzset" >&5
30940 $as_echo "$ac_cv_func_tzset" >&6; }
30941 if test $ac_cv_func_tzset = yes; then
30942 cat >>confdefs.h <<\_ACEOF
30943 #define HAVE_TZSET 1
30949 { $as_echo "$as_me:$LINENO: checking for optarg declaration" >&5
30950 $as_echo_n "checking for optarg declaration... " >&6; }
30951 cat >conftest.$ac_ext <<_ACEOF
30954 cat confdefs.h >>conftest.$ac_ext
30955 cat >>conftest.$ac_ext <<_ACEOF
30956 /* end confdefs.h. */
30958 #include <unistd.h>
30968 rm -f conftest.$ac_objext
30969 if { (ac_try="$ac_compile"
30970 case "(($ac_try" in
30971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30972 *) ac_try_echo=$ac_try;;
30974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30975 $as_echo "$ac_try_echo") >&5
30976 (eval "$ac_compile") 2>conftest.er1
30978 grep -v '^ *+' conftest.er1 >conftest.err
30980 cat conftest.err >&5
30981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30982 (exit $ac_status); } && {
30983 test -z "$ac_c_werror_flag" ||
30984 test ! -s conftest.err
30985 } && test -s conftest.$ac_objext; then
30986 { $as_echo "$as_me:$LINENO: result: yes" >&5
30987 $as_echo "yes" >&6; }
30989 $as_echo "$as_me: failed program was:" >&5
30990 sed 's/^/| /' conftest.$ac_ext >&5
30992 { $as_echo "$as_me:$LINENO: result: no" >&5
30993 $as_echo "no" >&6; }
30994 GEN_NEED_OPTARG="-DNEED_OPTARG=1"
30996 cat >>confdefs.h <<\_ACEOF
30997 #define NEED_OPTARG 1
31002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31005 # BSD/OS, and perhaps some others, don't define rlim_t.
31007 { $as_echo "$as_me:$LINENO: checking for type rlim_t" >&5
31008 $as_echo_n "checking for type rlim_t... " >&6; }
31009 cat >conftest.$ac_ext <<_ACEOF
31012 cat confdefs.h >>conftest.$ac_ext
31013 cat >>conftest.$ac_ext <<_ACEOF
31014 /* end confdefs.h. */
31016 #include <sys/types.h>
31017 #include <sys/time.h>
31018 #include <sys/resource.h>
31022 rlim_t rl = 19671212; return (0);
31027 rm -f conftest.$ac_objext
31028 if { (ac_try="$ac_compile"
31029 case "(($ac_try" in
31030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31031 *) ac_try_echo=$ac_try;;
31033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31034 $as_echo "$ac_try_echo") >&5
31035 (eval "$ac_compile") 2>conftest.er1
31037 grep -v '^ *+' conftest.er1 >conftest.err
31039 cat conftest.err >&5
31040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31041 (exit $ac_status); } && {
31042 test -z "$ac_c_werror_flag" ||
31043 test ! -s conftest.err
31044 } && test -s conftest.$ac_objext; then
31045 { $as_echo "$as_me:$LINENO: result: yes" >&5
31046 $as_echo "yes" >&6; }
31047 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE rlim_t"
31049 $as_echo "$as_me: failed program was:" >&5
31050 sed 's/^/| /' conftest.$ac_ext >&5
31052 { $as_echo "$as_me:$LINENO: result: no" >&5
31053 $as_echo "no" >&6; }
31055 { $as_echo "$as_me:$LINENO: checking type of rlim_cur" >&5
31056 $as_echo_n "checking type of rlim_cur... " >&6; }
31057 if test "$cross_compiling" = yes; then
31059 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long long int"
31060 { $as_echo "$as_me:$LINENO: result: cannot determine type of rlim_cur when cross compiling - assuming long long int" >&5
31061 $as_echo "cannot determine type of rlim_cur when cross compiling - assuming long long int" >&6; }
31063 cat >conftest.$ac_ext <<_ACEOF
31066 cat confdefs.h >>conftest.$ac_ext
31067 cat >>conftest.$ac_ext <<_ACEOF
31068 /* end confdefs.h. */
31070 #include <sys/types.h>
31071 #include <sys/time.h>
31072 #include <sys/resource.h>
31073 main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(int)));}
31075 rm -f conftest$ac_exeext
31076 if { (ac_try="$ac_link"
31077 case "(($ac_try" in
31078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31079 *) ac_try_echo=$ac_try;;
31081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31082 $as_echo "$ac_try_echo") >&5
31083 (eval "$ac_link") 2>&5
31085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31087 { (case "(($ac_try" in
31088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31089 *) ac_try_echo=$ac_try;;
31091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31092 $as_echo "$ac_try_echo") >&5
31093 (eval "$ac_try") 2>&5
31095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31096 (exit $ac_status); }; }; then
31097 { $as_echo "$as_me:$LINENO: result: int" >&5
31098 $as_echo "int" >&6; }
31099 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE int"
31101 $as_echo "$as_me: program exited with status $ac_status" >&5
31102 $as_echo "$as_me: failed program was:" >&5
31103 sed 's/^/| /' conftest.$ac_ext >&5
31105 ( exit $ac_status )
31107 if test "$cross_compiling" = yes; then
31108 { { $as_echo "$as_me:$LINENO: error: this cannot happen" >&5
31109 $as_echo "$as_me: error: this cannot happen" >&2;}
31110 { (exit 1); exit 1; }; }
31112 cat >conftest.$ac_ext <<_ACEOF
31115 cat confdefs.h >>conftest.$ac_ext
31116 cat >>conftest.$ac_ext <<_ACEOF
31117 /* end confdefs.h. */
31119 #include <sys/types.h>
31120 #include <sys/time.h>
31121 #include <sys/resource.h>
31122 main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(long int)));}
31124 rm -f conftest$ac_exeext
31125 if { (ac_try="$ac_link"
31126 case "(($ac_try" in
31127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31128 *) ac_try_echo=$ac_try;;
31130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31131 $as_echo "$ac_try_echo") >&5
31132 (eval "$ac_link") 2>&5
31134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31136 { (case "(($ac_try" in
31137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31138 *) ac_try_echo=$ac_try;;
31140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31141 $as_echo "$ac_try_echo") >&5
31142 (eval "$ac_try") 2>&5
31144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145 (exit $ac_status); }; }; then
31146 { $as_echo "$as_me:$LINENO: result: long int" >&5
31147 $as_echo "long int" >&6; }
31148 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long int"
31150 $as_echo "$as_me: program exited with status $ac_status" >&5
31151 $as_echo "$as_me: failed program was:" >&5
31152 sed 's/^/| /' conftest.$ac_ext >&5
31154 ( exit $ac_status )
31156 if test "$cross_compiling" = yes; then
31157 { { $as_echo "$as_me:$LINENO: error: this cannot happen" >&5
31158 $as_echo "$as_me: error: this cannot happen" >&2;}
31159 { (exit 1); exit 1; }; }
31161 cat >conftest.$ac_ext <<_ACEOF
31164 cat confdefs.h >>conftest.$ac_ext
31165 cat >>conftest.$ac_ext <<_ACEOF
31166 /* end confdefs.h. */
31168 #include <sys/types.h>
31169 #include <sys/time.h>
31170 #include <sys/resource.h>
31171 main() { struct rlimit r; exit((!sizeof(r.rlim_cur) == sizeof(long long int)));}
31173 rm -f conftest$ac_exeext
31174 if { (ac_try="$ac_link"
31175 case "(($ac_try" in
31176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31177 *) ac_try_echo=$ac_try;;
31179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31180 $as_echo "$ac_try_echo") >&5
31181 (eval "$ac_link") 2>&5
31183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31185 { (case "(($ac_try" in
31186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31187 *) ac_try_echo=$ac_try;;
31189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31190 $as_echo "$ac_try_echo") >&5
31191 (eval "$ac_try") 2>&5
31193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31194 (exit $ac_status); }; }; then
31195 { $as_echo "$as_me:$LINENO: result: long long int" >&5
31196 $as_echo "long long int" >&6; }
31197 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long long int"
31199 $as_echo "$as_me: program exited with status $ac_status" >&5
31200 $as_echo "$as_me: failed program was:" >&5
31201 sed 's/^/| /' conftest.$ac_ext >&5
31203 ( exit $ac_status )
31204 { { $as_echo "$as_me:$LINENO: error: unable to determine sizeof rlim_cur" >&5
31205 $as_echo "$as_me: error: unable to determine sizeof rlim_cur" >&2;}
31206 { (exit 1); exit 1; }; }
31209 rm -rf conftest.dSYM
31210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31216 rm -rf conftest.dSYM
31217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31223 rm -rf conftest.dSYM
31224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31235 # Older HP-UX doesn't have gettune
31240 for ac_header in sys/dyntune.h
31242 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31244 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31245 $as_echo_n "checking for $ac_header... " >&6; }
31246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31247 $as_echo_n "(cached) " >&6
31249 ac_res=`eval 'as_val=${'$as_ac_Header'}
31250 $as_echo "$as_val"'`
31251 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31252 $as_echo "$ac_res" >&6; }
31254 # Is the header compilable?
31255 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31256 $as_echo_n "checking $ac_header usability... " >&6; }
31257 cat >conftest.$ac_ext <<_ACEOF
31260 cat confdefs.h >>conftest.$ac_ext
31261 cat >>conftest.$ac_ext <<_ACEOF
31262 /* end confdefs.h. */
31263 $ac_includes_default
31264 #include <$ac_header>
31266 rm -f conftest.$ac_objext
31267 if { (ac_try="$ac_compile"
31268 case "(($ac_try" in
31269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31270 *) ac_try_echo=$ac_try;;
31272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31273 $as_echo "$ac_try_echo") >&5
31274 (eval "$ac_compile") 2>conftest.er1
31276 grep -v '^ *+' conftest.er1 >conftest.err
31278 cat conftest.err >&5
31279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31280 (exit $ac_status); } && {
31281 test -z "$ac_c_werror_flag" ||
31282 test ! -s conftest.err
31283 } && test -s conftest.$ac_objext; then
31284 ac_header_compiler=yes
31286 $as_echo "$as_me: failed program was:" >&5
31287 sed 's/^/| /' conftest.$ac_ext >&5
31289 ac_header_compiler=no
31292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31293 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31294 $as_echo "$ac_header_compiler" >&6; }
31296 # Is the header present?
31297 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31298 $as_echo_n "checking $ac_header presence... " >&6; }
31299 cat >conftest.$ac_ext <<_ACEOF
31302 cat confdefs.h >>conftest.$ac_ext
31303 cat >>conftest.$ac_ext <<_ACEOF
31304 /* end confdefs.h. */
31305 #include <$ac_header>
31307 if { (ac_try="$ac_cpp conftest.$ac_ext"
31308 case "(($ac_try" in
31309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31310 *) ac_try_echo=$ac_try;;
31312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31313 $as_echo "$ac_try_echo") >&5
31314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31316 grep -v '^ *+' conftest.er1 >conftest.err
31318 cat conftest.err >&5
31319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31320 (exit $ac_status); } >/dev/null && {
31321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31322 test ! -s conftest.err
31324 ac_header_preproc=yes
31326 $as_echo "$as_me: failed program was:" >&5
31327 sed 's/^/| /' conftest.$ac_ext >&5
31329 ac_header_preproc=no
31332 rm -f conftest.err conftest.$ac_ext
31333 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31334 $as_echo "$ac_header_preproc" >&6; }
31336 # So? What about this header?
31337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31340 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31342 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31343 ac_header_preproc=yes
31346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31347 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31349 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31351 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31353 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31355 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31357 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31361 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31362 $as_echo_n "checking for $ac_header... " >&6; }
31363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31364 $as_echo_n "(cached) " >&6
31366 eval "$as_ac_Header=\$ac_header_preproc"
31368 ac_res=`eval 'as_val=${'$as_ac_Header'}
31369 $as_echo "$as_val"'`
31370 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31371 $as_echo "$ac_res" >&6; }
31374 if test `eval 'as_val=${'$as_ac_Header'}
31375 $as_echo "$as_val"'` = yes; then
31376 cat >>confdefs.h <<_ACEOF
31377 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31391 # Compaq TruCluster requires more code for handling cluster IP aliases
31395 { $as_echo "$as_me:$LINENO: checking for clua_getaliasaddress in -lclua" >&5
31396 $as_echo_n "checking for clua_getaliasaddress in -lclua... " >&6; }
31397 if test "${ac_cv_lib_clua_clua_getaliasaddress+set}" = set; then
31398 $as_echo_n "(cached) " >&6
31400 ac_check_lib_save_LIBS=$LIBS
31401 LIBS="-lclua $LIBS"
31402 cat >conftest.$ac_ext <<_ACEOF
31405 cat confdefs.h >>conftest.$ac_ext
31406 cat >>conftest.$ac_ext <<_ACEOF
31407 /* end confdefs.h. */
31409 /* Override any GCC internal prototype to avoid an error.
31410 Use char because int might match the return type of a GCC
31411 builtin and then its argument prototype would still apply. */
31415 char clua_getaliasaddress ();
31419 return clua_getaliasaddress ();
31424 rm -f conftest.$ac_objext conftest$ac_exeext
31425 if { (ac_try="$ac_link"
31426 case "(($ac_try" in
31427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31428 *) ac_try_echo=$ac_try;;
31430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31431 $as_echo "$ac_try_echo") >&5
31432 (eval "$ac_link") 2>conftest.er1
31434 grep -v '^ *+' conftest.er1 >conftest.err
31436 cat conftest.err >&5
31437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31438 (exit $ac_status); } && {
31439 test -z "$ac_c_werror_flag" ||
31440 test ! -s conftest.err
31441 } && test -s conftest$ac_exeext && {
31442 test "$cross_compiling" = yes ||
31443 $as_test_x conftest$ac_exeext
31445 ac_cv_lib_clua_clua_getaliasaddress=yes
31447 $as_echo "$as_me: failed program was:" >&5
31448 sed 's/^/| /' conftest.$ac_ext >&5
31450 ac_cv_lib_clua_clua_getaliasaddress=no
31453 rm -rf conftest.dSYM
31454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31455 conftest$ac_exeext conftest.$ac_ext
31456 LIBS=$ac_check_lib_save_LIBS
31458 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_clua_clua_getaliasaddress" >&5
31459 $as_echo "$ac_cv_lib_clua_clua_getaliasaddress" >&6; }
31460 if test $ac_cv_lib_clua_clua_getaliasaddress = yes; then
31461 LIBS="-lclua $LIBS"
31464 { $as_echo "$as_me:$LINENO: checking for clua_getaliasaddress" >&5
31465 $as_echo_n "checking for clua_getaliasaddress... " >&6; }
31466 if test "${ac_cv_func_clua_getaliasaddress+set}" = set; then
31467 $as_echo_n "(cached) " >&6
31469 cat >conftest.$ac_ext <<_ACEOF
31472 cat confdefs.h >>conftest.$ac_ext
31473 cat >>conftest.$ac_ext <<_ACEOF
31474 /* end confdefs.h. */
31475 /* Define clua_getaliasaddress to an innocuous variant, in case <limits.h> declares clua_getaliasaddress.
31476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31477 #define clua_getaliasaddress innocuous_clua_getaliasaddress
31479 /* System header to define __stub macros and hopefully few prototypes,
31480 which can conflict with char clua_getaliasaddress (); below.
31481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31482 <limits.h> exists even on freestanding compilers. */
31485 # include <limits.h>
31487 # include <assert.h>
31490 #undef clua_getaliasaddress
31492 /* Override any GCC internal prototype to avoid an error.
31493 Use char because int might match the return type of a GCC
31494 builtin and then its argument prototype would still apply. */
31498 char clua_getaliasaddress ();
31499 /* The GNU C library defines this for functions which it implements
31500 to always fail with ENOSYS. Some functions are actually named
31501 something starting with __ and the normal name is an alias. */
31502 #if defined __stub_clua_getaliasaddress || defined __stub___clua_getaliasaddress
31509 return clua_getaliasaddress ();
31514 rm -f conftest.$ac_objext conftest$ac_exeext
31515 if { (ac_try="$ac_link"
31516 case "(($ac_try" in
31517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31518 *) ac_try_echo=$ac_try;;
31520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31521 $as_echo "$ac_try_echo") >&5
31522 (eval "$ac_link") 2>conftest.er1
31524 grep -v '^ *+' conftest.er1 >conftest.err
31526 cat conftest.err >&5
31527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31528 (exit $ac_status); } && {
31529 test -z "$ac_c_werror_flag" ||
31530 test ! -s conftest.err
31531 } && test -s conftest$ac_exeext && {
31532 test "$cross_compiling" = yes ||
31533 $as_test_x conftest$ac_exeext
31535 ac_cv_func_clua_getaliasaddress=yes
31537 $as_echo "$as_me: failed program was:" >&5
31538 sed 's/^/| /' conftest.$ac_ext >&5
31540 ac_cv_func_clua_getaliasaddress=no
31543 rm -rf conftest.dSYM
31544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31545 conftest$ac_exeext conftest.$ac_ext
31547 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_clua_getaliasaddress" >&5
31548 $as_echo "$ac_cv_func_clua_getaliasaddress" >&6; }
31549 if test $ac_cv_func_clua_getaliasaddress = yes; then
31551 cat >>confdefs.h <<\_ACEOF
31552 #define HAVE_TRUCLUSTER 1
31563 # Some hosts need msg_namelen to match the size of the socket structure.
31564 # Some hosts don't set msg_namelen appropriately on return from recvmsg().
31569 cat >>confdefs.h <<\_ACEOF
31570 #define BROKEN_RECVMSG 1
31577 # Microsoft has their own way of handling shared libraries that requires
31578 # additional qualifiers on extern variables. Unix systems don't need it.
31581 ISC_PLATFORM_USEDECLSPEC="#undef ISC_PLATFORM_USEDECLSPEC"
31583 LWRES_PLATFORM_USEDECLSPEC="#undef LWRES_PLATFORM_USEDECLSPEC"
31585 IRS_PLATFORM_USEDECLSPEC="#undef IRS_PLATFORM_USEDECLSPEC"
31588 # Random remaining OS-specific issues involving compiler warnings.
31589 # XXXDCL print messages to indicate some compensation is being done?
31592 ISC_PLATFORM_BRACEPTHREADONCEINIT="#undef ISC_PLATFORM_BRACEPTHREADONCEINIT"
31596 hack_shutup_pthreadonceinit=yes
31599 hack_shutup_sputaux=yes
31602 hack_shutup_sigwait=yes
31603 hack_shutup_sputaux=yes
31606 hack_shutup_stdargcast=yes
31609 hack_shutup_pthreadonceinit=yes
31612 cat >conftest.$ac_ext <<_ACEOF
31615 cat confdefs.h >>conftest.$ac_ext
31616 cat >>conftest.$ac_ext <<_ACEOF
31617 /* end confdefs.h. */
31618 #include <pthread.h>
31622 static pthread_once_t once_test = { PTHREAD_ONCE_INIT };
31627 rm -f conftest.$ac_objext
31628 if { (ac_try="$ac_compile"
31629 case "(($ac_try" in
31630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31631 *) ac_try_echo=$ac_try;;
31633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31634 $as_echo "$ac_try_echo") >&5
31635 (eval "$ac_compile") 2>conftest.er1
31637 grep -v '^ *+' conftest.er1 >conftest.err
31639 cat conftest.err >&5
31640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31641 (exit $ac_status); } && {
31642 test -z "$ac_c_werror_flag" ||
31643 test ! -s conftest.err
31644 } && test -s conftest.$ac_objext; then
31645 hack_shutup_pthreadonceinit=yes
31647 $as_echo "$as_me: failed program was:" >&5
31648 sed 's/^/| /' conftest.$ac_ext >&5
31653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31657 case "$hack_shutup_pthreadonceinit" in
31660 # Shut up PTHREAD_ONCE_INIT unbraced initializer warnings.
31662 ISC_PLATFORM_BRACEPTHREADONCEINIT="#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1"
31666 case "$hack_shutup_sigwait" in
31669 # Shut up a -Wmissing-prototypes warning for sigwait().
31671 cat >>confdefs.h <<\_ACEOF
31672 #define SHUTUP_SIGWAIT 1
31678 case "$hack_shutup_sputaux" in
31681 # Shut up a -Wmissing-prototypes warning from <stdio.h>.
31683 cat >>confdefs.h <<\_ACEOF
31684 #define SHUTUP_SPUTAUX 1
31690 case "$hack_shutup_stdargcast" in
31693 # Shut up a -Wcast-qual warning from va_start().
31695 cat >>confdefs.h <<\_ACEOF
31696 #define SHUTUP_STDARG_CAST 1
31703 for ac_header in strings.h
31705 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31707 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31708 $as_echo_n "checking for $ac_header... " >&6; }
31709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31710 $as_echo_n "(cached) " >&6
31712 ac_res=`eval 'as_val=${'$as_ac_Header'}
31713 $as_echo "$as_val"'`
31714 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31715 $as_echo "$ac_res" >&6; }
31717 # Is the header compilable?
31718 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31719 $as_echo_n "checking $ac_header usability... " >&6; }
31720 cat >conftest.$ac_ext <<_ACEOF
31723 cat confdefs.h >>conftest.$ac_ext
31724 cat >>conftest.$ac_ext <<_ACEOF
31725 /* end confdefs.h. */
31726 $ac_includes_default
31727 #include <$ac_header>
31729 rm -f conftest.$ac_objext
31730 if { (ac_try="$ac_compile"
31731 case "(($ac_try" in
31732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31733 *) ac_try_echo=$ac_try;;
31735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31736 $as_echo "$ac_try_echo") >&5
31737 (eval "$ac_compile") 2>conftest.er1
31739 grep -v '^ *+' conftest.er1 >conftest.err
31741 cat conftest.err >&5
31742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31743 (exit $ac_status); } && {
31744 test -z "$ac_c_werror_flag" ||
31745 test ! -s conftest.err
31746 } && test -s conftest.$ac_objext; then
31747 ac_header_compiler=yes
31749 $as_echo "$as_me: failed program was:" >&5
31750 sed 's/^/| /' conftest.$ac_ext >&5
31752 ac_header_compiler=no
31755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31756 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31757 $as_echo "$ac_header_compiler" >&6; }
31759 # Is the header present?
31760 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31761 $as_echo_n "checking $ac_header presence... " >&6; }
31762 cat >conftest.$ac_ext <<_ACEOF
31765 cat confdefs.h >>conftest.$ac_ext
31766 cat >>conftest.$ac_ext <<_ACEOF
31767 /* end confdefs.h. */
31768 #include <$ac_header>
31770 if { (ac_try="$ac_cpp conftest.$ac_ext"
31771 case "(($ac_try" in
31772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31773 *) ac_try_echo=$ac_try;;
31775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31776 $as_echo "$ac_try_echo") >&5
31777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31779 grep -v '^ *+' conftest.er1 >conftest.err
31781 cat conftest.err >&5
31782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31783 (exit $ac_status); } >/dev/null && {
31784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31785 test ! -s conftest.err
31787 ac_header_preproc=yes
31789 $as_echo "$as_me: failed program was:" >&5
31790 sed 's/^/| /' conftest.$ac_ext >&5
31792 ac_header_preproc=no
31795 rm -f conftest.err conftest.$ac_ext
31796 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31797 $as_echo "$ac_header_preproc" >&6; }
31799 # So? What about this header?
31800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31803 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31804 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31805 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31806 ac_header_preproc=yes
31809 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31810 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31811 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31812 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31813 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31814 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31815 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31816 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31817 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31818 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31820 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31824 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31825 $as_echo_n "checking for $ac_header... " >&6; }
31826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31827 $as_echo_n "(cached) " >&6
31829 eval "$as_ac_Header=\$ac_header_preproc"
31831 ac_res=`eval 'as_val=${'$as_ac_Header'}
31832 $as_echo "$as_val"'`
31833 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31834 $as_echo "$ac_res" >&6; }
31837 if test `eval 'as_val=${'$as_ac_Header'}
31838 $as_echo "$as_val"'` = yes; then
31839 cat >>confdefs.h <<_ACEOF
31840 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31842 ISC_PLATFORM_HAVESTRINGSH="#define ISC_PLATFORM_HAVESTRINGSH 1"
31845 ISC_PLATFORM_HAVESTRINGSH="#undef ISC_PLATFORM_HAVESTRINGSH"
31854 # Check for if_nametoindex() for IPv6 scoped addresses support
31856 { $as_echo "$as_me:$LINENO: checking for if_nametoindex" >&5
31857 $as_echo_n "checking for if_nametoindex... " >&6; }
31858 if test "${ac_cv_func_if_nametoindex+set}" = set; then
31859 $as_echo_n "(cached) " >&6
31861 cat >conftest.$ac_ext <<_ACEOF
31864 cat confdefs.h >>conftest.$ac_ext
31865 cat >>conftest.$ac_ext <<_ACEOF
31866 /* end confdefs.h. */
31867 /* Define if_nametoindex to an innocuous variant, in case <limits.h> declares if_nametoindex.
31868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31869 #define if_nametoindex innocuous_if_nametoindex
31871 /* System header to define __stub macros and hopefully few prototypes,
31872 which can conflict with char if_nametoindex (); below.
31873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31874 <limits.h> exists even on freestanding compilers. */
31877 # include <limits.h>
31879 # include <assert.h>
31882 #undef if_nametoindex
31884 /* Override any GCC internal prototype to avoid an error.
31885 Use char because int might match the return type of a GCC
31886 builtin and then its argument prototype would still apply. */
31890 char if_nametoindex ();
31891 /* The GNU C library defines this for functions which it implements
31892 to always fail with ENOSYS. Some functions are actually named
31893 something starting with __ and the normal name is an alias. */
31894 #if defined __stub_if_nametoindex || defined __stub___if_nametoindex
31901 return if_nametoindex ();
31906 rm -f conftest.$ac_objext conftest$ac_exeext
31907 if { (ac_try="$ac_link"
31908 case "(($ac_try" in
31909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31910 *) ac_try_echo=$ac_try;;
31912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31913 $as_echo "$ac_try_echo") >&5
31914 (eval "$ac_link") 2>conftest.er1
31916 grep -v '^ *+' conftest.er1 >conftest.err
31918 cat conftest.err >&5
31919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31920 (exit $ac_status); } && {
31921 test -z "$ac_c_werror_flag" ||
31922 test ! -s conftest.err
31923 } && test -s conftest$ac_exeext && {
31924 test "$cross_compiling" = yes ||
31925 $as_test_x conftest$ac_exeext
31927 ac_cv_func_if_nametoindex=yes
31929 $as_echo "$as_me: failed program was:" >&5
31930 sed 's/^/| /' conftest.$ac_ext >&5
31932 ac_cv_func_if_nametoindex=no
31935 rm -rf conftest.dSYM
31936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31937 conftest$ac_exeext conftest.$ac_ext
31939 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_if_nametoindex" >&5
31940 $as_echo "$ac_cv_func_if_nametoindex" >&6; }
31941 if test $ac_cv_func_if_nametoindex = yes; then
31942 ac_cv_have_if_nametoindex=yes
31944 ac_cv_have_if_nametoindex=no
31947 case $ac_cv_have_if_nametoindex in
31951 { $as_echo "$as_me:$LINENO: checking for if_nametoindex in -lipv6" >&5
31952 $as_echo_n "checking for if_nametoindex in -lipv6... " >&6; }
31953 if test "${ac_cv_lib_ipv6_if_nametoindex+set}" = set; then
31954 $as_echo_n "(cached) " >&6
31956 ac_check_lib_save_LIBS=$LIBS
31957 LIBS="-lipv6 $LIBS"
31958 cat >conftest.$ac_ext <<_ACEOF
31961 cat confdefs.h >>conftest.$ac_ext
31962 cat >>conftest.$ac_ext <<_ACEOF
31963 /* end confdefs.h. */
31965 /* Override any GCC internal prototype to avoid an error.
31966 Use char because int might match the return type of a GCC
31967 builtin and then its argument prototype would still apply. */
31971 char if_nametoindex ();
31975 return if_nametoindex ();
31980 rm -f conftest.$ac_objext conftest$ac_exeext
31981 if { (ac_try="$ac_link"
31982 case "(($ac_try" in
31983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31984 *) ac_try_echo=$ac_try;;
31986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31987 $as_echo "$ac_try_echo") >&5
31988 (eval "$ac_link") 2>conftest.er1
31990 grep -v '^ *+' conftest.er1 >conftest.err
31992 cat conftest.err >&5
31993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31994 (exit $ac_status); } && {
31995 test -z "$ac_c_werror_flag" ||
31996 test ! -s conftest.err
31997 } && test -s conftest$ac_exeext && {
31998 test "$cross_compiling" = yes ||
31999 $as_test_x conftest$ac_exeext
32001 ac_cv_lib_ipv6_if_nametoindex=yes
32003 $as_echo "$as_me: failed program was:" >&5
32004 sed 's/^/| /' conftest.$ac_ext >&5
32006 ac_cv_lib_ipv6_if_nametoindex=no
32009 rm -rf conftest.dSYM
32010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32011 conftest$ac_exeext conftest.$ac_ext
32012 LIBS=$ac_check_lib_save_LIBS
32014 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipv6_if_nametoindex" >&5
32015 $as_echo "$ac_cv_lib_ipv6_if_nametoindex" >&6; }
32016 if test $ac_cv_lib_ipv6_if_nametoindex = yes; then
32017 ac_cv_have_if_nametoindex=yes
32018 LIBS="-lipv6 $LIBS"
32024 case $ac_cv_have_if_nametoindex in
32026 ISC_PLATFORM_HAVEIFNAMETOINDEX="#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1"
32029 ISC_PLATFORM_HAVEIFNAMETOINDEX="#undef ISC_PLATFORM_HAVEIFNAMETOINDEX"
32035 for ac_func in nanosleep
32037 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32038 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32039 $as_echo_n "checking for $ac_func... " >&6; }
32040 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32041 $as_echo_n "(cached) " >&6
32043 cat >conftest.$ac_ext <<_ACEOF
32046 cat confdefs.h >>conftest.$ac_ext
32047 cat >>conftest.$ac_ext <<_ACEOF
32048 /* end confdefs.h. */
32049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32051 #define $ac_func innocuous_$ac_func
32053 /* System header to define __stub macros and hopefully few prototypes,
32054 which can conflict with char $ac_func (); below.
32055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32056 <limits.h> exists even on freestanding compilers. */
32059 # include <limits.h>
32061 # include <assert.h>
32066 /* Override any GCC internal prototype to avoid an error.
32067 Use char because int might match the return type of a GCC
32068 builtin and then its argument prototype would still apply. */
32073 /* The GNU C library defines this for functions which it implements
32074 to always fail with ENOSYS. Some functions are actually named
32075 something starting with __ and the normal name is an alias. */
32076 #if defined __stub_$ac_func || defined __stub___$ac_func
32083 return $ac_func ();
32088 rm -f conftest.$ac_objext conftest$ac_exeext
32089 if { (ac_try="$ac_link"
32090 case "(($ac_try" in
32091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32092 *) ac_try_echo=$ac_try;;
32094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32095 $as_echo "$ac_try_echo") >&5
32096 (eval "$ac_link") 2>conftest.er1
32098 grep -v '^ *+' conftest.er1 >conftest.err
32100 cat conftest.err >&5
32101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102 (exit $ac_status); } && {
32103 test -z "$ac_c_werror_flag" ||
32104 test ! -s conftest.err
32105 } && test -s conftest$ac_exeext && {
32106 test "$cross_compiling" = yes ||
32107 $as_test_x conftest$ac_exeext
32109 eval "$as_ac_var=yes"
32111 $as_echo "$as_me: failed program was:" >&5
32112 sed 's/^/| /' conftest.$ac_ext >&5
32114 eval "$as_ac_var=no"
32117 rm -rf conftest.dSYM
32118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32119 conftest$ac_exeext conftest.$ac_ext
32121 ac_res=`eval 'as_val=${'$as_ac_var'}
32122 $as_echo "$as_val"'`
32123 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32124 $as_echo "$ac_res" >&6; }
32125 if test `eval 'as_val=${'$as_ac_var'}
32126 $as_echo "$as_val"'` = yes; then
32127 cat >>confdefs.h <<_ACEOF
32128 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32136 # Machine architecture dependent features
32138 # Check whether --enable-atomic was given.
32139 if test "${enable_atomic+set}" = set; then
32140 enableval=$enable_atomic; enable_atomic="$enableval"
32142 enable_atomic="autodetect"
32145 case "$enable_atomic" in
32149 if test "X$GCC" = "Xyes"; then
32150 { $as_echo "$as_me:$LINENO: checking if asm(\"isc\"); works" >&5
32151 $as_echo_n "checking if asm(\"isc\"); works... " >&6; }
32152 cat >conftest.$ac_ext <<_ACEOF
32155 cat confdefs.h >>conftest.$ac_ext
32156 cat >>conftest.$ac_ext <<_ACEOF
32157 /* end confdefs.h. */
32163 main() { asm("ics"); exit(0); }
32169 rm -f conftest.$ac_objext
32170 if { (ac_try="$ac_compile"
32171 case "(($ac_try" in
32172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32173 *) ac_try_echo=$ac_try;;
32175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32176 $as_echo "$ac_try_echo") >&5
32177 (eval "$ac_compile") 2>conftest.er1
32179 grep -v '^ *+' conftest.er1 >conftest.err
32181 cat conftest.err >&5
32182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183 (exit $ac_status); } && {
32184 test -z "$ac_c_werror_flag" ||
32185 test ! -s conftest.err
32186 } && test -s conftest.$ac_objext; then
32187 { $as_echo "$as_me:$LINENO: result: yes" >&5
32188 $as_echo "yes" >&6; }
32191 $as_echo "$as_me: failed program was:" >&5
32192 sed 's/^/| /' conftest.$ac_ext >&5
32195 saved_cflags="$CFLAGS"
32196 CFLAGS="$CFLAGS -Wa,-many"
32197 if test "$cross_compiling" = yes; then
32198 { $as_echo "$as_me:$LINENO: result: cross compile, assume yes" >&5
32199 $as_echo "cross compile, assume yes" >&6; }
32200 CFLAGS="$saved_cflags"
32203 cat >conftest.$ac_ext <<_ACEOF
32206 cat confdefs.h >>conftest.$ac_ext
32207 cat >>conftest.$ac_ext <<_ACEOF
32208 /* end confdefs.h. */
32210 main() { asm("ics"); exit(0); }
32213 rm -f conftest$ac_exeext
32214 if { (ac_try="$ac_link"
32215 case "(($ac_try" in
32216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32217 *) ac_try_echo=$ac_try;;
32219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32220 $as_echo "$ac_try_echo") >&5
32221 (eval "$ac_link") 2>&5
32223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32225 { (case "(($ac_try" in
32226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32227 *) ac_try_echo=$ac_try;;
32229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32230 $as_echo "$ac_try_echo") >&5
32231 (eval "$ac_try") 2>&5
32233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32234 (exit $ac_status); }; }; then
32235 { $as_echo "$as_me:$LINENO: result: yes, required -Wa,-many" >&5
32236 $as_echo "yes, required -Wa,-many" >&6; }
32239 $as_echo "$as_me: program exited with status $ac_status" >&5
32240 $as_echo "$as_me: failed program was:" >&5
32241 sed 's/^/| /' conftest.$ac_ext >&5
32243 ( exit $ac_status )
32244 { $as_echo "$as_me:$LINENO: result: no, use_atomic disabled" >&5
32245 $as_echo "no, use_atomic disabled" >&6; }
32246 CFLAGS="$saved_cflags"
32249 rm -rf conftest.dSYM
32250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32274 ISC_PLATFORM_USEOSFASM="#undef ISC_PLATFORM_USEOSFASM"
32275 if test "$use_atomic" = "yes"; then
32276 { $as_echo "$as_me:$LINENO: checking architecture type for atomic operations" >&5
32277 $as_echo_n "checking architecture type for atomic operations... " >&6; }
32278 have_atomic=yes # set default
32281 # XXX: some old x86 architectures actually do not support
32282 # (some of) these operations. Do we need stricter checks?
32283 if test "$cross_compiling" = yes; then
32286 cat >conftest.$ac_ext <<_ACEOF
32289 cat confdefs.h >>conftest.$ac_ext
32290 cat >>conftest.$ac_ext <<_ACEOF
32291 /* end confdefs.h. */
32294 exit((sizeof(void *) == 8) ? 0 : 1);
32298 rm -f conftest$ac_exeext
32299 if { (ac_try="$ac_link"
32300 case "(($ac_try" in
32301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32302 *) ac_try_echo=$ac_try;;
32304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32305 $as_echo "$ac_try_echo") >&5
32306 (eval "$ac_link") 2>&5
32308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32310 { (case "(($ac_try" in
32311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32312 *) ac_try_echo=$ac_try;;
32314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32315 $as_echo "$ac_try_echo") >&5
32316 (eval "$ac_try") 2>&5
32318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32319 (exit $ac_status); }; }; then
32323 $as_echo "$as_me: program exited with status $ac_status" >&5
32324 $as_echo "$as_me: failed program was:" >&5
32325 sed 's/^/| /' conftest.$ac_ext >&5
32327 ( exit $ac_status )
32330 rm -rf conftest.dSYM
32331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32337 if test "$cross_compiling" = yes; then
32341 cat >conftest.$ac_ext <<_ACEOF
32344 cat confdefs.h >>conftest.$ac_ext
32345 cat >>conftest.$ac_ext <<_ACEOF
32346 /* end confdefs.h. */
32349 exit((sizeof(void *) == 8) ? 0 : 1);
32353 rm -f conftest$ac_exeext
32354 if { (ac_try="$ac_link"
32355 case "(($ac_try" in
32356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32357 *) ac_try_echo=$ac_try;;
32359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32360 $as_echo "$ac_try_echo") >&5
32361 (eval "$ac_link") 2>&5
32363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32365 { (case "(($ac_try" in
32366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32367 *) ac_try_echo=$ac_try;;
32369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32370 $as_echo "$ac_try_echo") >&5
32371 (eval "$ac_try") 2>&5
32373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32374 (exit $ac_status); }; }; then
32378 $as_echo "$as_me: program exited with status $ac_status" >&5
32379 $as_echo "$as_me: failed program was:" >&5
32380 sed 's/^/| /' conftest.$ac_ext >&5
32382 ( exit $ac_status )
32385 rm -rf conftest.dSYM
32386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32397 mips-*|mipsel-*|mips64-*|mips64el-*)
32408 { $as_echo "$as_me:$LINENO: result: $arch" >&5
32409 $as_echo "$arch" >&6; }
32412 if test "$have_atomic" = "yes"; then
32413 { $as_echo "$as_me:$LINENO: checking compiler support for inline assembly code" >&5
32414 $as_echo_n "checking compiler support for inline assembly code... " >&6; }
32417 # Check whether the compiler supports the assembly syntax we provide.
32418 if test "X$GCC" = "Xyes"; then
32419 # GCC's ASM extension always works
32421 if test $arch = "x86_64"; then
32422 # We can share the same code for gcc with x86_32
32425 if test $arch = "powerpc"; then
32427 # The MacOS (and maybe others) uses "r0" for register
32428 # zero. Under linux/ibm it is "0" for register 0.
32429 # Probe to see if we have a MacOS style assembler.
32431 { $as_echo "$as_me:$LINENO: checking Checking for MacOS style assembler syntax" >&5
32432 $as_echo_n "checking Checking for MacOS style assembler syntax... " >&6; }
32433 cat >conftest.$ac_ext <<_ACEOF
32436 cat confdefs.h >>conftest.$ac_ext
32437 cat >>conftest.$ac_ext <<_ACEOF
32438 /* end confdefs.h. */
32444 __asm__ volatile ("li r0, 0x0\n"::);
32450 rm -f conftest.$ac_objext
32451 if { (ac_try="$ac_compile"
32452 case "(($ac_try" in
32453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32454 *) ac_try_echo=$ac_try;;
32456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32457 $as_echo "$ac_try_echo") >&5
32458 (eval "$ac_compile") 2>conftest.er1
32460 grep -v '^ *+' conftest.er1 >conftest.err
32462 cat conftest.err >&5
32463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464 (exit $ac_status); } && {
32465 test -z "$ac_c_werror_flag" ||
32466 test ! -s conftest.err
32467 } && test -s conftest.$ac_objext; then
32469 { $as_echo "$as_me:$LINENO: result: yes" >&5
32470 $as_echo "yes" >&6; }
32472 ISC_PLATFORM_USEMACASM="#define ISC_PLATFORM_USEMACASM 1"
32475 $as_echo "$as_me: failed program was:" >&5
32476 sed 's/^/| /' conftest.$ac_ext >&5
32478 { $as_echo "$as_me:$LINENO: result: no" >&5
32479 $as_echo "no" >&6; }
32482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32487 # Tru64 compiler has its own syntax for inline
32489 cat >conftest.$ac_ext <<_ACEOF
32492 cat confdefs.h >>conftest.$ac_ext
32493 cat >>conftest.$ac_ext <<_ACEOF
32494 /* end confdefs.h. */
32501 #error "unexpected compiler"
32508 rm -f conftest.$ac_objext
32509 if { (ac_try="$ac_compile"
32510 case "(($ac_try" in
32511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32512 *) ac_try_echo=$ac_try;;
32514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32515 $as_echo "$ac_try_echo") >&5
32516 (eval "$ac_compile") 2>conftest.er1
32518 grep -v '^ *+' conftest.er1 >conftest.err
32520 cat conftest.err >&5
32521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32522 (exit $ac_status); } && {
32523 test -z "$ac_c_werror_flag" ||
32524 test ! -s conftest.err
32525 } && test -s conftest.$ac_objext; then
32528 $as_echo "$as_me: failed program was:" >&5
32529 sed 's/^/| /' conftest.$ac_ext >&5
32534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32541 case "$compiler" in
32543 ISC_PLATFORM_USEGCCASM="#define ISC_PLATFORM_USEGCCASM 1"
32546 ISC_PLATFORM_USEOSFASM="#define ISC_PLATFORM_USEOSFASM 1"
32553 # See if the generic __asm function works. If not,
32554 # we need to disable the atomic operations.
32555 cat >conftest.$ac_ext <<_ACEOF
32558 cat confdefs.h >>conftest.$ac_ext
32559 cat >>conftest.$ac_ext <<_ACEOF
32560 /* end confdefs.h. */
32572 rm -f conftest.$ac_objext conftest$ac_exeext
32573 if { (ac_try="$ac_link"
32574 case "(($ac_try" in
32575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32576 *) ac_try_echo=$ac_try;;
32578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32579 $as_echo "$ac_try_echo") >&5
32580 (eval "$ac_link") 2>conftest.er1
32582 grep -v '^ *+' conftest.er1 >conftest.err
32584 cat conftest.err >&5
32585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32586 (exit $ac_status); } && {
32587 test -z "$ac_c_werror_flag" ||
32588 test ! -s conftest.err
32589 } && test -s conftest$ac_exeext && {
32590 test "$cross_compiling" = yes ||
32591 $as_test_x conftest$ac_exeext
32593 compiler="standard"
32594 ISC_PLATFORM_USESTDASM="#define ISC_PLATFORM_USESTDASM 1"
32596 $as_echo "$as_me: failed program was:" >&5
32597 sed 's/^/| /' conftest.$ac_ext >&5
32599 compiler="not supported (atomic operations disabled)"
32604 rm -rf conftest.dSYM
32605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32606 conftest$ac_exeext conftest.$ac_ext;
32610 { $as_echo "$as_me:$LINENO: result: $compiler" >&5
32611 $as_echo "$compiler" >&6; }
32614 if test "$have_atomic" = "yes"; then
32615 ISC_PLATFORM_HAVEXADD="#define ISC_PLATFORM_HAVEXADD 1"
32616 ISC_PLATFORM_HAVECMPXCHG="#define ISC_PLATFORM_HAVECMPXCHG 1"
32617 ISC_PLATFORM_HAVEATOMICSTORE="#define ISC_PLATFORM_HAVEATOMICSTORE 1"
32619 ISC_PLATFORM_HAVEXADD="#undef ISC_PLATFORM_HAVEXADD"
32620 ISC_PLATFORM_HAVECMPXCHG="#undef ISC_PLATFORM_HAVECMPXCHG"
32621 ISC_PLATFORM_HAVEATOMICSTORE="#undef ISC_PLATFORM_HAVEATOMICSTORE"
32624 if test "$have_xaddq" = "yes"; then
32625 ISC_PLATFORM_HAVEXADDQ="#define ISC_PLATFORM_HAVEXADDQ 1"
32627 ISC_PLATFORM_HAVEXADDQ="#undef ISC_PLATFORM_HAVEXADDQ"
32644 # Activate "rrset-order fixed" or not?
32646 # Check whether --enable-fixed-rrset was given.
32647 if test "${enable_fixed_rrset+set}" = set; then
32648 enableval=$enable_fixed_rrset; enable_fixed="$enableval"
32653 case "$enable_fixed" in
32656 cat >>confdefs.h <<\_ACEOF
32657 #define DNS_RDATASET_FIXED 1
32668 # Activate "filter-aaaa-on-v4" or not?
32670 # Check whether --enable-filter-aaaa was given.
32671 if test "${enable_filter_aaaa+set}" = set; then
32672 enableval=$enable_filter_aaaa; enable_filter="$enableval"
32677 case "$enable_filter" in
32680 cat >>confdefs.h <<\_ACEOF
32681 #define ALLOW_FILTER_AAAA_ON_V4 1
32692 # The following sets up how non-blocking i/o is established.
32693 # Sunos, cygwin and solaris 2.x (x<5) require special handling.
32696 *-sunos*) cat >>confdefs.h <<\_ACEOF
32697 #define PORT_NONBLOCK O_NDELAY
32700 *-cygwin*) cat >>confdefs.h <<\_ACEOF
32701 #define PORT_NONBLOCK O_NDELAY
32704 *-solaris2.[01234])
32705 cat >>confdefs.h <<\_ACEOF
32706 #define PORT_NONBLOCK O_NONBLOCK
32710 cat >>confdefs.h <<\_ACEOF
32711 #define USE_FIONBIO_IOCTL 1
32716 cat >>confdefs.h <<\_ACEOF
32717 #define PORT_NONBLOCK O_NONBLOCK
32723 # Solaris 2.5.1 and earlier cannot bind() then connect() a TCP socket.
32724 # This prevents the source address being set.
32727 *-solaris2.[012345]|*-solaris2.5.1)
32729 cat >>confdefs.h <<\_ACEOF
32730 #define BROKEN_TCP_BIND_BEFORE_CONNECT 1
32736 # The following sections deal with tools used for formatting
32737 # the documentation. They are all optional, unless you are
32738 # a developer editing the documentation source.
32745 for ac_prog in latex
32747 # Extract the first word of "$ac_prog", so it can be a program name with args.
32748 set dummy $ac_prog; ac_word=$2
32749 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32750 $as_echo_n "checking for $ac_word... " >&6; }
32751 if test "${ac_cv_path_LATEX+set}" = set; then
32752 $as_echo_n "(cached) " >&6
32756 ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
32759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32760 for as_dir in $PATH
32763 test -z "$as_dir" && as_dir=.
32764 for ac_exec_ext in '' $ac_executable_extensions; do
32765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32766 ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
32767 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32777 LATEX=$ac_cv_path_LATEX
32778 if test -n "$LATEX"; then
32779 { $as_echo "$as_me:$LINENO: result: $LATEX" >&5
32780 $as_echo "$LATEX" >&6; }
32782 { $as_echo "$as_me:$LINENO: result: no" >&5
32783 $as_echo "no" >&6; }
32787 test -n "$LATEX" && break
32789 test -n "$LATEX" || LATEX="latex"
32793 for ac_prog in pdflatex
32795 # Extract the first word of "$ac_prog", so it can be a program name with args.
32796 set dummy $ac_prog; ac_word=$2
32797 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32798 $as_echo_n "checking for $ac_word... " >&6; }
32799 if test "${ac_cv_path_PDFLATEX+set}" = set; then
32800 $as_echo_n "(cached) " >&6
32804 ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
32807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32808 for as_dir in $PATH
32811 test -z "$as_dir" && as_dir=.
32812 for ac_exec_ext in '' $ac_executable_extensions; do
32813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32814 ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
32815 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32825 PDFLATEX=$ac_cv_path_PDFLATEX
32826 if test -n "$PDFLATEX"; then
32827 { $as_echo "$as_me:$LINENO: result: $PDFLATEX" >&5
32828 $as_echo "$PDFLATEX" >&6; }
32830 { $as_echo "$as_me:$LINENO: result: no" >&5
32831 $as_echo "no" >&6; }
32835 test -n "$PDFLATEX" && break
32837 test -n "$PDFLATEX" || PDFLATEX="pdflatex"
32847 # Extract the first word of "$ac_prog", so it can be a program name with args.
32848 set dummy $ac_prog; ac_word=$2
32849 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32850 $as_echo_n "checking for $ac_word... " >&6; }
32851 if test "${ac_cv_path_W3M+set}" = set; then
32852 $as_echo_n "(cached) " >&6
32856 ac_cv_path_W3M="$W3M" # Let the user override the test with a path.
32859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32860 for as_dir in $PATH
32863 test -z "$as_dir" && as_dir=.
32864 for ac_exec_ext in '' $ac_executable_extensions; do
32865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32866 ac_cv_path_W3M="$as_dir/$ac_word$ac_exec_ext"
32867 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32877 W3M=$ac_cv_path_W3M
32878 if test -n "$W3M"; then
32879 { $as_echo "$as_me:$LINENO: result: $W3M" >&5
32880 $as_echo "$W3M" >&6; }
32882 { $as_echo "$as_me:$LINENO: result: no" >&5
32883 $as_echo "no" >&6; }
32887 test -n "$W3M" && break
32889 test -n "$W3M" || W3M="w3m"
32894 # Look for xsltproc (libxslt)
32897 # Extract the first word of "xsltproc", so it can be a program name with args.
32898 set dummy xsltproc; ac_word=$2
32899 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32900 $as_echo_n "checking for $ac_word... " >&6; }
32901 if test "${ac_cv_path_XSLTPROC+set}" = set; then
32902 $as_echo_n "(cached) " >&6
32906 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
32909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32910 for as_dir in $PATH
32913 test -z "$as_dir" && as_dir=.
32914 for ac_exec_ext in '' $ac_executable_extensions; do
32915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32916 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
32917 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32924 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="xsltproc"
32928 XSLTPROC=$ac_cv_path_XSLTPROC
32929 if test -n "$XSLTPROC"; then
32930 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
32931 $as_echo "$XSLTPROC" >&6; }
32933 { $as_echo "$as_me:$LINENO: result: no" >&5
32934 $as_echo "no" >&6; }
32941 # Look for xmllint (libxml2)
32944 # Extract the first word of "xmllint", so it can be a program name with args.
32945 set dummy xmllint; ac_word=$2
32946 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32947 $as_echo_n "checking for $ac_word... " >&6; }
32948 if test "${ac_cv_path_XMLLINT+set}" = set; then
32949 $as_echo_n "(cached) " >&6
32953 ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
32956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32957 for as_dir in $PATH
32960 test -z "$as_dir" && as_dir=.
32961 for ac_exec_ext in '' $ac_executable_extensions; do
32962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32963 ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
32964 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32971 test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="xmllint"
32975 XMLLINT=$ac_cv_path_XMLLINT
32976 if test -n "$XMLLINT"; then
32977 { $as_echo "$as_me:$LINENO: result: $XMLLINT" >&5
32978 $as_echo "$XMLLINT" >&6; }
32980 { $as_echo "$as_me:$LINENO: result: no" >&5
32981 $as_echo "no" >&6; }
32991 # Extract the first word of "doxygen", so it can be a program name with args.
32992 set dummy doxygen; ac_word=$2
32993 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32994 $as_echo_n "checking for $ac_word... " >&6; }
32995 if test "${ac_cv_path_DOXYGEN+set}" = set; then
32996 $as_echo_n "(cached) " >&6
33000 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
33003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33004 for as_dir in $PATH
33007 test -z "$as_dir" && as_dir=.
33008 for ac_exec_ext in '' $ac_executable_extensions; do
33009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33010 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
33011 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33018 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="doxygen"
33022 DOXYGEN=$ac_cv_path_DOXYGEN
33023 if test -n "$DOXYGEN"; then
33024 { $as_echo "$as_me:$LINENO: result: $DOXYGEN" >&5
33025 $as_echo "$DOXYGEN" >&6; }
33027 { $as_echo "$as_me:$LINENO: result: no" >&5
33028 $as_echo "no" >&6; }
33035 # Subroutine for searching for an ordinary file (e.g., a stylesheet)
33036 # in a number of directories:
33038 # NOM_PATH_FILE(VARIABLE, FILENAME, DIRECTORIES)
33040 # If the file FILENAME is found in one of the DIRECTORIES, the shell
33041 # variable VARIABLE is defined to its absolute pathname. Otherwise,
33042 # it is set to FILENAME, with no directory prefix (that's not terribly
33043 # useful, but looks less confusing in substitutions than leaving it
33044 # empty). The variable VARIABLE will be substituted into output files.
33050 # Look for Docbook-XSL stylesheets. Location probably varies by system.
33051 # If it's not explicitly specified, guess where it might be found, based on
33052 # where SGML stuff lives on some systems (FreeBSD is the only one we're sure
33053 # of at the moment).
33055 { $as_echo "$as_me:$LINENO: checking for Docbook-XSL path" >&5
33056 $as_echo_n "checking for Docbook-XSL path... " >&6; }
33058 # Check whether --with-docbook-xsl was given.
33059 if test "${with_docbook_xsl+set}" = set; then
33060 withval=$with_docbook_xsl; docbook_path="$withval"
33062 docbook_path="auto"
33065 case "$docbook_path" in
33067 { $as_echo "$as_me:$LINENO: result: auto" >&5
33068 $as_echo "auto" >&6; }
33069 docbook_xsl_trees="/usr/pkg/share/xsl/docbook /usr/local/share/xsl/docbook /usr/share/xsl/docbook"
33072 docbook_xsl_trees="$withval"
33073 { $as_echo "$as_me:$LINENO: result: $docbook_xsl_trees" >&5
33074 $as_echo "$docbook_xsl_trees" >&6; }
33079 # Look for stylesheets we need.
33083 XSLT_DOCBOOK_STYLE_HTML=""
33084 { $as_echo "$as_me:$LINENO: checking for html/docbook.xsl" >&5
33085 $as_echo_n "checking for html/docbook.xsl... " >&6; }
33086 for d in $docbook_xsl_trees
33088 f=$d/html/docbook.xsl
33091 XSLT_DOCBOOK_STYLE_HTML=$f
33092 { $as_echo "$as_me:$LINENO: result: $f" >&5
33093 $as_echo "$f" >&6; }
33097 if test "X$XSLT_DOCBOOK_STYLE_HTML" = "X"
33099 { $as_echo "$as_me:$LINENO: result: \"not found\"" >&5
33100 $as_echo "\"not found\"" >&6; };
33101 XSLT_DOCBOOK_STYLE_HTML=html/docbook.xsl
33106 XSLT_DOCBOOK_STYLE_XHTML=""
33107 { $as_echo "$as_me:$LINENO: checking for xhtml/docbook.xsl" >&5
33108 $as_echo_n "checking for xhtml/docbook.xsl... " >&6; }
33109 for d in $docbook_xsl_trees
33111 f=$d/xhtml/docbook.xsl
33114 XSLT_DOCBOOK_STYLE_XHTML=$f
33115 { $as_echo "$as_me:$LINENO: result: $f" >&5
33116 $as_echo "$f" >&6; }
33120 if test "X$XSLT_DOCBOOK_STYLE_XHTML" = "X"
33122 { $as_echo "$as_me:$LINENO: result: \"not found\"" >&5
33123 $as_echo "\"not found\"" >&6; };
33124 XSLT_DOCBOOK_STYLE_XHTML=xhtml/docbook.xsl
33129 XSLT_DOCBOOK_STYLE_MAN=""
33130 { $as_echo "$as_me:$LINENO: checking for manpages/docbook.xsl" >&5
33131 $as_echo_n "checking for manpages/docbook.xsl... " >&6; }
33132 for d in $docbook_xsl_trees
33134 f=$d/manpages/docbook.xsl
33137 XSLT_DOCBOOK_STYLE_MAN=$f
33138 { $as_echo "$as_me:$LINENO: result: $f" >&5
33139 $as_echo "$f" >&6; }
33143 if test "X$XSLT_DOCBOOK_STYLE_MAN" = "X"
33145 { $as_echo "$as_me:$LINENO: result: \"not found\"" >&5
33146 $as_echo "\"not found\"" >&6; };
33147 XSLT_DOCBOOK_STYLE_MAN=manpages/docbook.xsl
33152 XSLT_DOCBOOK_CHUNK_HTML=""
33153 { $as_echo "$as_me:$LINENO: checking for html/chunk.xsl" >&5
33154 $as_echo_n "checking for html/chunk.xsl... " >&6; }
33155 for d in $docbook_xsl_trees
33157 f=$d/html/chunk.xsl
33160 XSLT_DOCBOOK_CHUNK_HTML=$f
33161 { $as_echo "$as_me:$LINENO: result: $f" >&5
33162 $as_echo "$f" >&6; }
33166 if test "X$XSLT_DOCBOOK_CHUNK_HTML" = "X"
33168 { $as_echo "$as_me:$LINENO: result: \"not found\"" >&5
33169 $as_echo "\"not found\"" >&6; };
33170 XSLT_DOCBOOK_CHUNK_HTML=html/chunk.xsl
33175 XSLT_DOCBOOK_CHUNK_XHTML=""
33176 { $as_echo "$as_me:$LINENO: checking for xhtml/chunk.xsl" >&5
33177 $as_echo_n "checking for xhtml/chunk.xsl... " >&6; }
33178 for d in $docbook_xsl_trees
33180 f=$d/xhtml/chunk.xsl
33183 XSLT_DOCBOOK_CHUNK_XHTML=$f
33184 { $as_echo "$as_me:$LINENO: result: $f" >&5
33185 $as_echo "$f" >&6; }
33189 if test "X$XSLT_DOCBOOK_CHUNK_XHTML" = "X"
33191 { $as_echo "$as_me:$LINENO: result: \"not found\"" >&5
33192 $as_echo "\"not found\"" >&6; };
33193 XSLT_DOCBOOK_CHUNK_XHTML=xhtml/chunk.xsl
33198 XSLT_DOCBOOK_CHUNKTOC_HTML=""
33199 { $as_echo "$as_me:$LINENO: checking for html/chunktoc.xsl" >&5
33200 $as_echo_n "checking for html/chunktoc.xsl... " >&6; }
33201 for d in $docbook_xsl_trees
33203 f=$d/html/chunktoc.xsl
33206 XSLT_DOCBOOK_CHUNKTOC_HTML=$f
33207 { $as_echo "$as_me:$LINENO: result: $f" >&5
33208 $as_echo "$f" >&6; }
33212 if test "X$XSLT_DOCBOOK_CHUNKTOC_HTML" = "X"
33214 { $as_echo "$as_me:$LINENO: result: \"not found\"" >&5
33215 $as_echo "\"not found\"" >&6; };
33216 XSLT_DOCBOOK_CHUNKTOC_HTML=html/chunktoc.xsl
33221 XSLT_DOCBOOK_CHUNKTOC_XHTML=""
33222 { $as_echo "$as_me:$LINENO: checking for xhtml/chunktoc.xsl" >&5
33223 $as_echo_n "checking for xhtml/chunktoc.xsl... " >&6; }
33224 for d in $docbook_xsl_trees
33226 f=$d/xhtml/chunktoc.xsl
33229 XSLT_DOCBOOK_CHUNKTOC_XHTML=$f
33230 { $as_echo "$as_me:$LINENO: result: $f" >&5
33231 $as_echo "$f" >&6; }
33235 if test "X$XSLT_DOCBOOK_CHUNKTOC_XHTML" = "X"
33237 { $as_echo "$as_me:$LINENO: result: \"not found\"" >&5
33238 $as_echo "\"not found\"" >&6; };
33239 XSLT_DOCBOOK_CHUNKTOC_XHTML=xhtml/chunktoc.xsl
33244 XSLT_DOCBOOK_MAKETOC_HTML=""
33245 { $as_echo "$as_me:$LINENO: checking for html/maketoc.xsl" >&5
33246 $as_echo_n "checking for html/maketoc.xsl... " >&6; }
33247 for d in $docbook_xsl_trees
33249 f=$d/html/maketoc.xsl
33252 XSLT_DOCBOOK_MAKETOC_HTML=$f
33253 { $as_echo "$as_me:$LINENO: result: $f" >&5
33254 $as_echo "$f" >&6; }
33258 if test "X$XSLT_DOCBOOK_MAKETOC_HTML" = "X"
33260 { $as_echo "$as_me:$LINENO: result: \"not found\"" >&5
33261 $as_echo "\"not found\"" >&6; };
33262 XSLT_DOCBOOK_MAKETOC_HTML=html/maketoc.xsl
33267 XSLT_DOCBOOK_MAKETOC_XHTML=""
33268 { $as_echo "$as_me:$LINENO: checking for xhtml/maketoc.xsl" >&5
33269 $as_echo_n "checking for xhtml/maketoc.xsl... " >&6; }
33270 for d in $docbook_xsl_trees
33272 f=$d/xhtml/maketoc.xsl
33275 XSLT_DOCBOOK_MAKETOC_XHTML=$f
33276 { $as_echo "$as_me:$LINENO: result: $f" >&5
33277 $as_echo "$f" >&6; }
33281 if test "X$XSLT_DOCBOOK_MAKETOC_XHTML" = "X"
33283 { $as_echo "$as_me:$LINENO: result: \"not found\"" >&5
33284 $as_echo "\"not found\"" >&6; };
33285 XSLT_DOCBOOK_MAKETOC_XHTML=xhtml/maketoc.xsl
33291 # Same dance for db2latex
33293 # No idea where this lives except on FreeBSD.
33296 db2latex_xsl_trees="/usr/local/share"
33299 # Look for stylesheets we need.
33303 XSLT_DB2LATEX_STYLE=""
33304 { $as_echo "$as_me:$LINENO: checking for db2latex/xsl/docbook.xsl" >&5
33305 $as_echo_n "checking for db2latex/xsl/docbook.xsl... " >&6; }
33306 for d in $db2latex_xsl_trees
33308 f=$d/db2latex/xsl/docbook.xsl
33311 XSLT_DB2LATEX_STYLE=$f
33312 { $as_echo "$as_me:$LINENO: result: $f" >&5
33313 $as_echo "$f" >&6; }
33317 if test "X$XSLT_DB2LATEX_STYLE" = "X"
33319 { $as_echo "$as_me:$LINENO: result: \"not found\"" >&5
33320 $as_echo "\"not found\"" >&6; };
33321 XSLT_DB2LATEX_STYLE=db2latex/xsl/docbook.xsl
33327 # Look for "admonition" image directory. Can't use NOM_PATH_FILE()
33328 # because it's a directory, so just do the same things, inline.
33331 { $as_echo "$as_me:$LINENO: checking for db2latex/xsl/figures" >&5
33332 $as_echo_n "checking for db2latex/xsl/figures... " >&6; }
33333 for d in $db2latex_xsl_trees
33335 dd=$d/db2latex/xsl/figures
33338 XSLT_DB2LATEX_ADMONITIONS=$dd
33339 { $as_echo "$as_me:$LINENO: result: $dd" >&5
33340 $as_echo "$dd" >&6; }
33344 if test "X$XSLT_DB2LATEX_ADMONITIONS" = "X"
33346 { $as_echo "$as_me:$LINENO: result: not found" >&5
33347 $as_echo "not found" >&6; }
33348 XSLT_DB2LATEX_ADMONITIONS=db2latex/xsl/figures
33356 # Check whether --with-idn was given.
33357 if test "${with_idn+set}" = set; then
33358 withval=$with_idn; use_idn="$withval"
33365 if test X$prefix = XNONE ; then
33366 idn_path=/usr/local
33374 idn_path="$use_idn"
33381 # Check whether --with-libiconv was given.
33382 if test "${with_libiconv+set}" = set; then
33383 withval=$with_libiconv; use_libiconv="$withval"
33388 case "$use_libiconv" in
33390 if test X$prefix = XNONE ; then
33391 iconvlib="-L/usr/local/lib -R/usr/local/lib -liconv"
33393 iconvlib="-L$prefix/lib -R$prefix/lib -liconv"
33400 iconvlib="-L$use_libiconv/lib -R$use_libiconv/lib -liconv"
33405 # Check whether --with-iconv was given.
33406 if test "${with_iconv+set}" = set; then
33407 withval=$with_iconv; iconvlib="$withval"
33410 case "$iconvlib" in
33420 # Check whether --with-idnlib was given.
33421 if test "${with_idnlib+set}" = set; then
33422 withval=$with_idnlib; idnlib="$withval"
33427 if test "$idnlib" = yes; then
33428 { { $as_echo "$as_me:$LINENO: error: You must specify ARG for --with-idnlib." >&5
33429 $as_echo "$as_me: error: You must specify ARG for --with-idnlib." >&2;}
33430 { (exit 1); exit 1; }; }
33434 if test "$use_idn" != no; then
33436 cat >>confdefs.h <<\_ACEOF
33440 STD_CINCLUDES="$STD_CINCLUDES -I$idn_path/include"
33441 if test "$idnlib" != no; then
33442 IDNLIBS="$idnlib $iconvlib"
33444 IDNLIBS="-L$idn_path/lib -lidnkit $iconvlib"
33450 for ac_header in locale.h
33452 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33454 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33455 $as_echo_n "checking for $ac_header... " >&6; }
33456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33457 $as_echo_n "(cached) " >&6
33459 ac_res=`eval 'as_val=${'$as_ac_Header'}
33460 $as_echo "$as_val"'`
33461 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33462 $as_echo "$ac_res" >&6; }
33464 # Is the header compilable?
33465 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33466 $as_echo_n "checking $ac_header usability... " >&6; }
33467 cat >conftest.$ac_ext <<_ACEOF
33470 cat confdefs.h >>conftest.$ac_ext
33471 cat >>conftest.$ac_ext <<_ACEOF
33472 /* end confdefs.h. */
33473 $ac_includes_default
33474 #include <$ac_header>
33476 rm -f conftest.$ac_objext
33477 if { (ac_try="$ac_compile"
33478 case "(($ac_try" in
33479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33480 *) ac_try_echo=$ac_try;;
33482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33483 $as_echo "$ac_try_echo") >&5
33484 (eval "$ac_compile") 2>conftest.er1
33486 grep -v '^ *+' conftest.er1 >conftest.err
33488 cat conftest.err >&5
33489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33490 (exit $ac_status); } && {
33491 test -z "$ac_c_werror_flag" ||
33492 test ! -s conftest.err
33493 } && test -s conftest.$ac_objext; then
33494 ac_header_compiler=yes
33496 $as_echo "$as_me: failed program was:" >&5
33497 sed 's/^/| /' conftest.$ac_ext >&5
33499 ac_header_compiler=no
33502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33503 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33504 $as_echo "$ac_header_compiler" >&6; }
33506 # Is the header present?
33507 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
33508 $as_echo_n "checking $ac_header presence... " >&6; }
33509 cat >conftest.$ac_ext <<_ACEOF
33512 cat confdefs.h >>conftest.$ac_ext
33513 cat >>conftest.$ac_ext <<_ACEOF
33514 /* end confdefs.h. */
33515 #include <$ac_header>
33517 if { (ac_try="$ac_cpp conftest.$ac_ext"
33518 case "(($ac_try" in
33519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33520 *) ac_try_echo=$ac_try;;
33522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33523 $as_echo "$ac_try_echo") >&5
33524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33526 grep -v '^ *+' conftest.er1 >conftest.err
33528 cat conftest.err >&5
33529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33530 (exit $ac_status); } >/dev/null && {
33531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33532 test ! -s conftest.err
33534 ac_header_preproc=yes
33536 $as_echo "$as_me: failed program was:" >&5
33537 sed 's/^/| /' conftest.$ac_ext >&5
33539 ac_header_preproc=no
33542 rm -f conftest.err conftest.$ac_ext
33543 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33544 $as_echo "$ac_header_preproc" >&6; }
33546 # So? What about this header?
33547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33550 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33552 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33553 ac_header_preproc=yes
33556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33557 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33559 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33560 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33561 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33562 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33563 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33565 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33567 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33571 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33572 $as_echo_n "checking for $ac_header... " >&6; }
33573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33574 $as_echo_n "(cached) " >&6
33576 eval "$as_ac_Header=\$ac_header_preproc"
33578 ac_res=`eval 'as_val=${'$as_ac_Header'}
33579 $as_echo "$as_val"'`
33580 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33581 $as_echo "$ac_res" >&6; }
33584 if test `eval 'as_val=${'$as_ac_Header'}
33585 $as_echo "$as_val"'` = yes; then
33586 cat >>confdefs.h <<_ACEOF
33587 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33595 for ac_func in setlocale
33597 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33598 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33599 $as_echo_n "checking for $ac_func... " >&6; }
33600 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33601 $as_echo_n "(cached) " >&6
33603 cat >conftest.$ac_ext <<_ACEOF
33606 cat confdefs.h >>conftest.$ac_ext
33607 cat >>conftest.$ac_ext <<_ACEOF
33608 /* end confdefs.h. */
33609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33611 #define $ac_func innocuous_$ac_func
33613 /* System header to define __stub macros and hopefully few prototypes,
33614 which can conflict with char $ac_func (); below.
33615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33616 <limits.h> exists even on freestanding compilers. */
33619 # include <limits.h>
33621 # include <assert.h>
33626 /* Override any GCC internal prototype to avoid an error.
33627 Use char because int might match the return type of a GCC
33628 builtin and then its argument prototype would still apply. */
33633 /* The GNU C library defines this for functions which it implements
33634 to always fail with ENOSYS. Some functions are actually named
33635 something starting with __ and the normal name is an alias. */
33636 #if defined __stub_$ac_func || defined __stub___$ac_func
33643 return $ac_func ();
33648 rm -f conftest.$ac_objext conftest$ac_exeext
33649 if { (ac_try="$ac_link"
33650 case "(($ac_try" in
33651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33652 *) ac_try_echo=$ac_try;;
33654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33655 $as_echo "$ac_try_echo") >&5
33656 (eval "$ac_link") 2>conftest.er1
33658 grep -v '^ *+' conftest.er1 >conftest.err
33660 cat conftest.err >&5
33661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33662 (exit $ac_status); } && {
33663 test -z "$ac_c_werror_flag" ||
33664 test ! -s conftest.err
33665 } && test -s conftest$ac_exeext && {
33666 test "$cross_compiling" = yes ||
33667 $as_test_x conftest$ac_exeext
33669 eval "$as_ac_var=yes"
33671 $as_echo "$as_me: failed program was:" >&5
33672 sed 's/^/| /' conftest.$ac_ext >&5
33674 eval "$as_ac_var=no"
33677 rm -rf conftest.dSYM
33678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33679 conftest$ac_exeext conftest.$ac_ext
33681 ac_res=`eval 'as_val=${'$as_ac_var'}
33682 $as_echo "$as_val"'`
33683 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33684 $as_echo "$ac_res" >&6; }
33685 if test `eval 'as_val=${'$as_ac_var'}
33686 $as_echo "$as_val"'` = yes; then
33687 cat >>confdefs.h <<_ACEOF
33688 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33699 BIND9_TOP_BUILDDIR=`pwd`
33707 if test "X$srcdir" != "X"; then
33708 BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
33709 BIND9_ISCCC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include"
33710 BIND9_ISCCFG_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include"
33711 BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
33712 BIND9_LWRES_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/lwres/include"
33713 BIND9_BIND9_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/bind9/include"
33715 BIND9_ISC_BUILDINCLUDE=""
33716 BIND9_ISCCC_BUILDINCLUDE=""
33717 BIND9_ISCCFG_BUILDINCLUDE=""
33718 BIND9_DNS_BUILDINCLUDE=""
33719 BIND9_LWRES_BUILDINCLUDE=""
33720 BIND9_BIND9_BUILDINCLUDE=""
33724 BIND9_MAKE_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
33727 BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
33730 BIND9_VERSION="VERSION=${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}"
33733 if test -z "$ac_configure_args"; then
33734 BIND9_CONFIGARGS="defaults"
33736 for a in $ac_configure_args
33738 BIND9_CONFIGARGS="$BIND9_CONFIGARGS $a"
33741 BIND9_CONFIGARGS="`echo $BIND9_CONFIGARGS | sed 's/^ //'`"
33742 BIND9_CONFIGARGS="CONFIGARGS=${BIND9_CONFIGARGS}"
33746 LIBISC_API=$srcdir/lib/isc/api
33749 LIBISCCC_API=$srcdir/lib/isccc/api
33752 LIBISCCFG_API=$srcdir/lib/isccfg/api
33755 LIBDNS_API=$srcdir/lib/dns/api
33758 LIBBIND9_API=$srcdir/lib/bind9/api
33761 LIBLWRES_API=$srcdir/lib/lwres/api
33764 LIBIRS_API=$srcdir/lib/irs/api
33767 # Configure any DLZ drivers.
33769 # If config.dlz.in selects one or more DLZ drivers, it will set
33770 # USE_DLZ to a non-empty value, which will be our clue to
33771 # enable the DLZ core functions.
33773 # This section has to come after the libtool stuff because it needs to
33774 # know how to name the driver object files.
33778 DLZ_DRIVER_INCLUDES=""
33783 # Copyright (C) 2005 Internet Systems Consortium, Inc. ("ISC")
33785 # Permission to use, copy, modify, and distribute this software for any
33786 # purpose with or without fee is hereby granted, provided that the above
33787 # copyright notice and this permission notice appear in all copies.
33789 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
33790 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
33791 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
33792 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
33793 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
33794 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
33795 # PERFORMANCE OF THIS SOFTWARE.
33798 # Shorthand. Note quoting: DLZ_DRIVER_DIR expanded in Makefile, not here.
33800 dlzdir='${DLZ_DRIVER_DIR}'
33803 # Private autoconf macro to simplify configuring drivers:
33805 # DLZ_ADD_DRIVER(DEFINE, DRIVER, INCLUDES, LIBS)
33808 # DEFINE is FOO (to define -DDLZ_FOO)
33809 # DRIVER is dlz_foo_driver (sources without the .c)
33810 # INCLUDES is any necessary include definitions
33811 # LIBS is any necessary library definitions
33816 # Check for the various DLZ drivers
33820 # Was --with-dlz-postgres specified?
33823 { $as_echo "$as_me:$LINENO: checking for Postgres DLZ driver" >&5
33824 $as_echo_n "checking for Postgres DLZ driver... " >&6; }
33826 # Check whether --with-dlz_postgres was given.
33827 if test "${with_dlz_postgres+set}" = set; then
33828 withval=$with_dlz_postgres; use_dlz_postgres="$withval"
33830 use_dlz_postgres="no"
33834 if test "$use_dlz_postgres" = "yes"
33836 # User did not specify a path - guess it
33837 # Ask Postgres to tell us where it is
33839 for ac_prog in pg_config
33841 # Extract the first word of "$ac_prog", so it can be a program name with args.
33842 set dummy $ac_prog; ac_word=$2
33843 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33844 $as_echo_n "checking for $ac_word... " >&6; }
33845 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
33846 $as_echo_n "(cached) " >&6
33850 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
33853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33854 for as_dir in $PATH
33857 test -z "$as_dir" && as_dir=.
33858 for ac_exec_ext in '' $ac_executable_extensions; do
33859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33860 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33861 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33871 PG_CONFIG=$ac_cv_path_PG_CONFIG
33872 if test -n "$PG_CONFIG"; then
33873 { $as_echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
33874 $as_echo "$PG_CONFIG" >&6; }
33876 { $as_echo "$as_me:$LINENO: result: no" >&5
33877 $as_echo "no" >&6; }
33881 test -n "$PG_CONFIG" && break
33883 test -n "$PG_CONFIG" || PG_CONFIG="not found"
33886 if test "$PG_CONFIG" != "not found"
33888 use_dlz_postgres=`$PG_CONFIG --includedir`
33889 use_dlz_postgres_lib=`$PG_CONFIG --libdir`
33893 if test "$use_dlz_postgres" = "yes"
33895 # User did not specify path and Postgres didn't say - guess it
33897 pgdirs="/usr /usr/local /usr/local/pgsql /usr/pkg"
33900 if test -f $d/include/libpq-fe.h
33902 use_dlz_postgres=$d/include
33903 use_dlz_postgres_lib=$d/lib
33909 if test "$use_dlz_postgres" = "yes"
33911 # Still no joy, give up
33913 { $as_echo "$as_me:$LINENO: result: not found" >&5
33914 $as_echo "not found" >&6; }
33915 { { $as_echo "$as_me:$LINENO: error: No pg_config and PostgreSQL was not found in any of $pgdirs; use --with-dlz-postgres=/path or put pg_config in your path" >&5
33916 $as_echo "$as_me: error: No pg_config and PostgreSQL was not found in any of $pgdirs; use --with-dlz-postgres=/path or put pg_config in your path" >&2;}
33917 { (exit 1); exit 1; }; }
33920 case "$use_dlz_postgres" in
33922 { $as_echo "$as_me:$LINENO: result: no" >&5
33923 $as_echo "no" >&6; }
33927 USE_DLZ="$USE_DLZ -DDLZ_POSTGRES"
33928 for i in dlz_postgres_driver
33930 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
33931 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
33933 if test -n "-I$use_dlz_postgres"
33935 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_postgres"
33937 if test -n "-L$use_dlz_postgres_lib -lpq"
33939 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_postgres_lib -lpq"
33943 { $as_echo "$as_me:$LINENO: result: using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&5
33944 $as_echo "using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&6; }
33950 # Was --with-dlz-mysql specified?
33953 { $as_echo "$as_me:$LINENO: checking for MySQL DLZ driver" >&5
33954 $as_echo_n "checking for MySQL DLZ driver... " >&6; }
33956 # Check whether --with-dlz_mysql was given.
33957 if test "${with_dlz_mysql+set}" = set; then
33958 withval=$with_dlz_mysql; use_dlz_mysql="$withval"
33966 if test "$use_dlz_mysql" = "yes"
33968 # User did not specify a path - guess it
33969 mysqldirs="/usr /usr/local /usr/local/mysql /usr/pkg"
33970 for d in $mysqldirs
33972 if test -f $d/include/mysql/mysql.h
33975 mysql_include=$d/include/mysql
33976 if test -d $d/lib/mysql
33978 mysql_lib=$d/lib/mysql
33983 elif test -f $d/include/mysql.h
33986 mysql_include=$d/include
33987 if test -d $d/lib/mysql
33989 mysql_lib=$d/lib/mysql
33996 elif test "$use_dlz_mysql" != "no"
33999 if test -f $d/include/mysql/mysql.h
34001 mysql_include=$d/include/mysql
34002 if test -d $d/lib/mysql
34004 mysql_lib=$d/lib/mysql
34008 elif test -f $d/include/mysql.h
34010 mysql_include=$d/include
34011 if test -d $d/lib/mysql
34013 mysql_lib=$d/lib/mysql
34020 if test "$use_dlz_mysql" = "yes"
34022 { $as_echo "$as_me:$LINENO: result: not found" >&5
34023 $as_echo "not found" >&6; }
34024 { { $as_echo "$as_me:$LINENO: error: MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" >&5
34025 $as_echo "$as_me: error: MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" >&2;}
34026 { (exit 1); exit 1; }; }
34029 case "$use_dlz_mysql" in
34031 { $as_echo "$as_me:$LINENO: result: no" >&5
34032 $as_echo "no" >&6; }
34036 USE_DLZ="$USE_DLZ -DDLZ_MYSQL"
34037 for i in dlz_mysql_driver
34039 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
34040 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
34042 if test -n "-I${mysql_include}"
34044 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}"
34046 if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
34048 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
34052 { $as_echo "$as_me:$LINENO: result: using mysql from ${mysql_lib} and ${mysql_include}" >&5
34053 $as_echo "using mysql from ${mysql_lib} and ${mysql_include}" >&6; }
34059 # Was --with-dlz-bdb specified?
34062 { $as_echo "$as_me:$LINENO: checking for Berkeley DB DLZ driver" >&5
34063 $as_echo_n "checking for Berkeley DB DLZ driver... " >&6; }
34065 # Check whether --with-dlz_bdb was given.
34066 if test "${with_dlz_bdb+set}" = set; then
34067 withval=$with_dlz_bdb; use_dlz_bdb="$withval"
34073 case "$use_dlz_bdb" in
34075 { $as_echo "$as_me:$LINENO: result: no" >&5
34076 $as_echo "no" >&6; }
34079 if test "$use_dlz_bdb" = "yes"
34081 # User did not specify a path - guess directories
34082 bdbdirs="/usr/local /usr/pkg /usr"
34083 elif test -d "$use_dlz_bdb"
34085 # User specified directory and it exists
34086 bdbdirs="$use_dlz_bdb"
34088 { $as_echo "$as_me:$LINENO: result: not found" >&5
34089 $as_echo "not found" >&6; }
34090 { { $as_echo "$as_me:$LINENO: error: path $use_dlz_bdb does not exist" >&5
34091 $as_echo "$as_me: error: path $use_dlz_bdb does not exist" >&2;}
34092 { (exit 1); exit 1; }; }
34096 # Use path we were given or guessed. This is insanely
34097 # complicated because we have to search for a bunch of
34098 # platform-specific variations and have to check
34099 # separately for include and library directories.
34101 # Set both to yes, so we can check them later
34107 # Skip nonexistant directories
34113 # Check other locations for includes.
34114 # Order is important (sigh).
34116 bdb_incdirs="/ /db42/ /db41/ /db4/ /db/"
34117 for d in $bdb_incdirs
34119 if test -f "$dd/include${d}db.h"
34121 dlz_bdb_inc="-I$dd/include${d}"
34126 # Give up on this directory if we couldn't
34127 # find the include subdir
34129 if test "$dlz_bdb_inc" = "yes"
34134 # Look for libname other than libdb.so.
34135 # Order is important (sigh).
34137 bdb_libnames="db42 db-4.2 db41 db-4.1 db"
34138 for d in $bdb_libnames
34140 if test -f "$dd/lib/lib${d}.so"
34142 if test "$dd" != "/usr"
34144 dlz_bdb_libs="-L${dd}/lib "
34148 dlz_bdb_libs="${dlz_bdb_libs}-l${d}"
34153 # If we found both incdir and lib, we're done
34154 if test "$dlz_bdb_libs" != "yes"
34159 # Otherwise, we're starting over
34165 # Done searching, now make sure we got everything.
34167 if test "$dlz_bdb_inc" = "yes"
34169 { $as_echo "$as_me:$LINENO: result: not found" >&5
34170 $as_echo "not found" >&6; }
34171 { { $as_echo "$as_me:$LINENO: error: could not find Berkeley DB include directory" >&5
34172 $as_echo "$as_me: error: could not find Berkeley DB include directory" >&2;}
34173 { (exit 1); exit 1; }; }
34176 if test "$dlz_bdb_libs" = "yes"
34178 { $as_echo "$as_me:$LINENO: result: not found" >&5
34179 $as_echo "not found" >&6; }
34180 { { $as_echo "$as_me:$LINENO: error: could not find Berkeley DB library" >&5
34181 $as_echo "$as_me: error: could not find Berkeley DB library" >&2;}
34182 { (exit 1); exit 1; }; }
34186 USE_DLZ="$USE_DLZ -DDLZ_BDB"
34187 for i in dlz_bdb_driver dlz_bdbhpt_driver
34189 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
34190 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
34192 if test -n "$dlz_bdb_inc"
34194 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_bdb_inc"
34196 if test -n "$dlz_bdb_libs"
34198 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_bdb_libs"
34202 { $as_echo "$as_me:$LINENO: result: using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&5
34203 $as_echo "using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&6; }
34205 ac_config_files="$ac_config_files contrib/dlz/bin/dlzbdb/Makefile"
34212 # Was --with-dlz-filesystem specified?
34215 { $as_echo "$as_me:$LINENO: checking for file system DLZ driver" >&5
34216 $as_echo_n "checking for file system DLZ driver... " >&6; }
34218 # Check whether --with-dlz_filesystem was given.
34219 if test "${with_dlz_filesystem+set}" = set; then
34220 withval=$with_dlz_filesystem; use_dlz_filesystem="$withval"
34222 use_dlz_filesystem="no"
34226 case "$use_dlz_filesystem" in
34228 { $as_echo "$as_me:$LINENO: result: no" >&5
34229 $as_echo "no" >&6; }
34233 USE_DLZ="$USE_DLZ -DDLZ_FILESYSTEM"
34234 for i in dlz_filesystem_driver
34236 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
34237 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
34241 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
34245 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
34249 { $as_echo "$as_me:$LINENO: result: yes" >&5
34250 $as_echo "yes" >&6; }
34256 # Was --with-dlz-ldap specified?
34259 { $as_echo "$as_me:$LINENO: checking for LDAP DLZ driver" >&5
34260 $as_echo_n "checking for LDAP DLZ driver... " >&6; }
34262 # Check whether --with-dlz_ldap was given.
34263 if test "${with_dlz_ldap+set}" = set; then
34264 withval=$with_dlz_ldap; use_dlz_ldap="$withval"
34270 if test "$use_dlz_ldap" = "yes"
34272 # User did not specify a path - guess it
34273 ldapdirs="/usr /usr/local /usr/pkg"
34276 if test -f $d/include/ldap.h
34284 if test "$use_dlz_ldap" = "yes"
34286 { $as_echo "$as_me:$LINENO: result: not found" >&5
34287 $as_echo "not found" >&6; }
34288 { { $as_echo "$as_me:$LINENO: error: LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" >&5
34289 $as_echo "$as_me: error: LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" >&2;}
34290 { (exit 1); exit 1; }; }
34293 case "$use_dlz_ldap" in
34295 { $as_echo "$as_me:$LINENO: result: no" >&5
34296 $as_echo "no" >&6; }
34300 USE_DLZ="$USE_DLZ -DDLZ_LDAP"
34301 for i in dlz_ldap_driver
34303 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
34304 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
34306 if test -n "-I$use_dlz_ldap/include"
34308 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_ldap/include"
34310 if test -n "-L$use_dlz_ldap/lib -lldap -llber"
34312 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_ldap/lib -lldap -llber"
34316 { $as_echo "$as_me:$LINENO: result: using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&5
34317 $as_echo "using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&6; }
34323 # Was --with-dlz-odbc specified?
34326 { $as_echo "$as_me:$LINENO: checking for ODBC DLZ driver" >&5
34327 $as_echo_n "checking for ODBC DLZ driver... " >&6; }
34329 # Check whether --with-dlz_odbc was given.
34330 if test "${with_dlz_odbc+set}" = set; then
34331 withval=$with_dlz_odbc; use_dlz_odbc="$withval"
34337 if test "$use_dlz_odbc" = "yes"
34339 # User did not specify a path - guess it
34340 odbcdirs="/usr /usr/local /usr/pkg"
34343 if test -f $d/include/sql.h -a -f $d/lib/libodbc.a
34351 case "$use_dlz_odbc" in
34353 { $as_echo "$as_me:$LINENO: result: no" >&5
34354 $as_echo "no" >&6; }
34357 { $as_echo "$as_me:$LINENO: result: not found" >&5
34358 $as_echo "not found" >&6; }
34359 { { $as_echo "$as_me:$LINENO: error: ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" >&5
34360 $as_echo "$as_me: error: ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" >&2;}
34361 { (exit 1); exit 1; }; }
34365 USE_DLZ="$USE_DLZ -DDLZ_ODBC"
34366 for i in dlz_odbc_driver
34368 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
34369 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
34371 if test -n "-I$use_dlz_odbc/include"
34373 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_odbc/include"
34375 if test -n "-L$use_dlz_odbc/lib -lodbc"
34377 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_odbc/lib -lodbc"
34381 { $as_echo "$as_me:$LINENO: result: using ODBC from $use_dlz_odbc" >&5
34382 $as_echo "using ODBC from $use_dlz_odbc" >&6; }
34388 # Was --with-dlz-stub specified?
34391 { $as_echo "$as_me:$LINENO: checking for stub DLZ driver" >&5
34392 $as_echo_n "checking for stub DLZ driver... " >&6; }
34394 # Check whether --with-dlz_stub was given.
34395 if test "${with_dlz_stub+set}" = set; then
34396 withval=$with_dlz_stub; use_dlz_stub="$withval"
34402 case "$use_dlz_stub" in
34404 { $as_echo "$as_me:$LINENO: result: no" >&5
34405 $as_echo "no" >&6; }
34410 USE_DLZ="$USE_DLZ -DDLZ_STUB"
34411 for i in dlz_stub_driver
34413 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
34414 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
34418 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
34422 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
34426 { $as_echo "$as_me:$LINENO: result: yes" >&5
34427 $as_echo "yes" >&6; }
34432 # Add any additional DLZ drivers here.
34435 # Finally, some generic stuff that applies to all drivers, assuming
34436 # we're compiling DLZ at all.
34438 if test -n "$USE_DLZ"
34441 # Where to find DLZ driver header files.
34443 DLZ_DRIVER_INCLUDES="-I$dlzdir/include $DLZ_DRIVER_INCLUDES"
34446 # Initialization and shutdown wrappers, helper functions.
34448 DLZ_DRIVER_SRCS="$dlzdir/dlz_drivers.c $dlzdir/sdlz_helper.c $DLZ_DRIVER_SRCS"
34449 DLZ_DRIVER_OBJS="dlz_drivers.$O sdlz_helper.$O $DLZ_DRIVER_OBJS"
34453 { $as_echo "$as_me:$LINENO: checking for DLZ" >&5
34454 $as_echo_n "checking for DLZ... " >&6; }
34456 if test -n "$USE_DLZ"
34458 { $as_echo "$as_me:$LINENO: result: yes" >&5
34459 $as_echo "yes" >&6; }
34460 USE_DLZ="-DDLZ $USE_DLZ"
34461 DLZ_DRIVER_RULES=contrib/dlz/drivers/rules
34462 ac_config_files="$ac_config_files $DLZ_DRIVER_RULES"
34465 { $as_echo "$as_me:$LINENO: result: no" >&5
34466 $as_echo "no" >&6; }
34467 DLZ_DRIVER_RULES=/dev/null
34477 if test "$cross_compiling" = "yes"; then
34478 if test -z "$BUILD_CC"; then
34479 { { $as_echo "$as_me:$LINENO: error: BUILD_CC not set" >&5
34480 $as_echo "$as_me: error: BUILD_CC not set" >&2;}
34481 { (exit 1); exit 1; }; }
34483 BUILD_CFLAGS="$BUILD_CFLAGS"
34484 BUILD_CPPFLAGS="$BUILD_CPPFLAGS"
34485 BUILD_LDFLAGS="$BUILD_LDFLAGS"
34486 BUILD_LIBS="$BUILD_LIBS"
34489 BUILD_CFLAGS="$CFLAGS"
34490 BUILD_CPPFLAGS="$CPPFLAGS $GEN_NEED_OPTARG"
34491 BUILD_LDFLAGS="$LDFLAGS"
34496 for e in $BUILD_LDFLAGS ; do
34501 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
34502 NEWFLAGS="$NEWFLAGS $e $ee"
34505 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
34506 NEWFLAGS="$NEWFLAGS $e $ee"
34509 ee=`echo $e | sed -e 's%^-L%-R%'`
34510 NEWFLAGS="$NEWFLAGS $e $ee"
34513 NEWFLAGS="$NEWFLAGS $e"
34518 NEWFLAGS="$NEWFLAGS $e"
34522 BUILD_LDFLAGS="$NEWFLAGS"
34525 for e in $DNS_GSSAPI_LIBS ; do
34530 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
34531 NEWFLAGS="$NEWFLAGS $e $ee"
34534 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
34535 NEWFLAGS="$NEWFLAGS $e $ee"
34538 ee=`echo $e | sed -e 's%^-L%-R%'`
34539 NEWFLAGS="$NEWFLAGS $e $ee"
34542 NEWFLAGS="$NEWFLAGS $e"
34547 NEWFLAGS="$NEWFLAGS $e"
34551 DNS_GSSAPI_LIBS="$NEWFLAGS"
34554 for e in $DNS_CRYPTO_LIBS ; do
34559 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
34560 NEWFLAGS="$NEWFLAGS $e $ee"
34563 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
34564 NEWFLAGS="$NEWFLAGS $e $ee"
34567 ee=`echo $e | sed -e 's%^-L%-R%'`
34568 NEWFLAGS="$NEWFLAGS $e $ee"
34571 NEWFLAGS="$NEWFLAGS $e"
34576 NEWFLAGS="$NEWFLAGS $e"
34580 DNS_CRYPTO_LIBS="$NEWFLAGS"
34589 # Commands to run at the end of config.status.
34590 # Don't just put these into configure, it won't work right if somebody
34591 # runs config.status directly (which autoconf allows).
34594 ac_config_commands="$ac_config_commands chmod"
34598 # Files to configure. These are listed here because we used to
34599 # specify them as arguments to AC_OUTPUT. It's (now) ok to move these
34600 # elsewhere if there's a good reason for doing so.
34603 ac_config_files="$ac_config_files Makefile make/Makefile make/mkdep lib/Makefile lib/isc/Makefile lib/isc/include/Makefile lib/isc/include/isc/Makefile lib/isc/include/isc/platform.h lib/isc/unix/Makefile lib/isc/unix/include/Makefile lib/isc/unix/include/isc/Makefile lib/isc/nls/Makefile lib/isc/$thread_dir/Makefile lib/isc/$thread_dir/include/Makefile lib/isc/$thread_dir/include/isc/Makefile lib/isc/$arch/Makefile lib/isc/$arch/include/Makefile lib/isc/$arch/include/isc/Makefile lib/isccc/Makefile lib/isccc/include/Makefile lib/isccc/include/isccc/Makefile lib/isccfg/Makefile lib/isccfg/include/Makefile lib/isccfg/include/isccfg/Makefile lib/irs/Makefile lib/irs/include/Makefile lib/irs/include/irs/Makefile lib/irs/include/irs/netdb.h lib/irs/include/irs/platform.h lib/dns/Makefile lib/dns/include/Makefile lib/dns/include/dns/Makefile lib/dns/include/dst/Makefile lib/export/Makefile lib/export/isc/Makefile lib/export/isc/include/Makefile lib/export/isc/include/isc/Makefile lib/export/isc/unix/Makefile lib/export/isc/unix/include/Makefile lib/export/isc/unix/include/isc/Makefile lib/export/isc/nls/Makefile lib/export/isc/$thread_dir/Makefile lib/export/isc/$thread_dir/include/Makefile lib/export/isc/$thread_dir/include/isc/Makefile lib/export/dns/Makefile lib/export/dns/include/Makefile lib/export/dns/include/dns/Makefile lib/export/dns/include/dst/Makefile lib/export/irs/Makefile lib/export/irs/include/Makefile lib/export/irs/include/irs/Makefile lib/export/isccfg/Makefile lib/export/isccfg/include/Makefile lib/export/isccfg/include/isccfg/Makefile lib/export/samples/Makefile lib/export/samples/Makefile-postinstall lib/bind9/Makefile lib/bind9/include/Makefile lib/bind9/include/bind9/Makefile lib/lwres/Makefile lib/lwres/include/Makefile lib/lwres/include/lwres/Makefile lib/lwres/include/lwres/netdb.h lib/lwres/include/lwres/platform.h lib/lwres/man/Makefile lib/lwres/unix/Makefile lib/lwres/unix/include/Makefile lib/lwres/unix/include/lwres/Makefile lib/tests/Makefile lib/tests/include/Makefile lib/tests/include/tests/Makefile bin/Makefile bin/check/Makefile bin/confgen/Makefile bin/confgen/unix/Makefile bin/named/Makefile bin/named/unix/Makefile bin/rndc/Makefile bin/dig/Makefile bin/nsupdate/Makefile bin/tests/Makefile bin/tests/names/Makefile bin/tests/master/Makefile bin/tests/rbt/Makefile bin/tests/db/Makefile bin/tests/tasks/Makefile bin/tests/timers/Makefile bin/tests/dst/Makefile bin/tests/mem/Makefile bin/tests/net/Makefile bin/tests/sockaddr/Makefile bin/tests/system/Makefile bin/tests/system/conf.sh bin/tests/system/lwresd/Makefile bin/tests/system/tkey/Makefile bin/tests/headerdep_test.sh bin/tools/Makefile bin/dnssec/Makefile bin/pkcs11/Makefile doc/Makefile doc/arm/Makefile doc/misc/Makefile isc-config.sh doc/xsl/Makefile doc/xsl/isc-docbook-chunk.xsl doc/xsl/isc-docbook-html.xsl doc/xsl/isc-docbook-latex.xsl doc/xsl/isc-manpage.xsl doc/doxygen/Doxyfile doc/doxygen/Makefile doc/doxygen/doxygen-input-filter"
34610 cat >confcache <<\_ACEOF
34611 # This file is a shell script that caches the results of configure
34612 # tests run on this system so they can be shared between configure
34613 # scripts and configure runs, see configure's option --config-cache.
34614 # It is not useful on other systems. If it contains results you don't
34615 # want to keep, you may remove or edit it.
34617 # config.status only pays attention to the cache file if you give it
34618 # the --recheck option to rerun configure.
34620 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34621 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34622 # following values.
34626 # The following way of writing the cache mishandles newlines in values,
34627 # but we know of no workaround that is simple, portable, and efficient.
34628 # So, we kill variables containing newlines.
34629 # Ultrix sh set writes to stderr and can't be redirected directly,
34630 # and sets the high bit in the cache file unless we assign to the vars.
34632 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34633 eval ac_val=\$$ac_var
34637 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34638 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34641 _ | IFS | as_nl) ;; #(
34642 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
34643 *) $as_unset $ac_var ;;
34649 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34650 *${as_nl}ac_space=\ *)
34651 # `set' does not quote correctly, so add quotes (double-quote
34652 # substitution turns \\\\ into \\, and sed turns \\ into \).
34655 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34658 # `set' quotes correctly as required by POSIX, so do not add quotes.
34659 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34668 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34670 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34672 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34673 if test -w "$cache_file"; then
34674 test "x$cache_file" != "x/dev/null" &&
34675 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
34676 $as_echo "$as_me: updating cache $cache_file" >&6;}
34677 cat confcache >$cache_file
34679 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34680 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34685 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34686 # Let make expand exec_prefix.
34687 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34689 DEFS=-DHAVE_CONFIG_H
34693 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34694 # 1. Remove the extension, and $U if already installed.
34695 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34696 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
34697 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34698 # will be set to the directory where LIBOBJS objects are built.
34699 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34700 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34702 LIBOBJS=$ac_libobjs
34704 LTLIBOBJS=$ac_ltlibobjs
34708 : ${CONFIG_STATUS=./config.status}
34710 ac_clean_files_save=$ac_clean_files
34711 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34712 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34713 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
34714 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34716 # Generated by $as_me.
34717 # Run this file to recreate the current configuration.
34718 # Compiler output produced by configure, useful for debugging
34719 # configure, is in config.log if it exists.
34722 ac_cs_recheck=false
34724 SHELL=\${CONFIG_SHELL-$SHELL}
34727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34728 ## --------------------- ##
34729 ## M4sh Initialization. ##
34730 ## --------------------- ##
34732 # Be more Bourne compatible
34733 DUALCASE=1; export DUALCASE # for MKS sh
34734 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34737 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
34738 # is contrary to our usage. Disable this feature.
34739 alias -g '${1+"$@"}'='"$@"'
34740 setopt NO_GLOB_SUBST
34742 case `(set -o) 2>/dev/null` in
34743 *posix*) set -o posix ;;
34752 # Avoid depending upon Character Ranges.
34753 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34754 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34755 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34756 as_cr_digits='0123456789'
34757 as_cr_alnum=$as_cr_Letters$as_cr_digits
34762 # Printing a long string crashes Solaris 7 /usr/bin/printf.
34763 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
34764 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
34765 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
34766 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
34767 as_echo='printf %s\n'
34768 as_echo_n='printf %s'
34770 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
34771 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
34772 as_echo_n='/usr/ucb/echo -n'
34774 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
34775 as_echo_n_body='eval
34779 expr "X$arg" : "X\\(.*\\)$as_nl";
34780 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
34782 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
34784 export as_echo_n_body
34785 as_echo_n='sh -c $as_echo_n_body as_echo'
34787 export as_echo_body
34788 as_echo='sh -c $as_echo_body as_echo'
34791 # The user is always right.
34792 if test "${PATH_SEPARATOR+set}" != set; then
34794 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
34795 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
34800 # Support unset when possible.
34801 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34809 # We need space, tab and new line, in precisely that order. Quoting is
34810 # there to prevent editors from complaining about space-tab.
34811 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34812 # splitting by setting IFS to empty value.)
34815 # Find who we are. Look in the path if we contain no directory separator.
34817 *[\\/]* ) as_myself=$0 ;;
34818 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34819 for as_dir in $PATH
34822 test -z "$as_dir" && as_dir=.
34823 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34829 # We did not find ourselves, most probably we were run as `sh COMMAND'
34830 # in which case we are not to be found in the path.
34831 if test "x$as_myself" = x; then
34834 if test ! -f "$as_myself"; then
34835 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34836 { (exit 1); exit 1; }
34839 # Work around bugs in pre-3.0 UWIN ksh.
34840 for as_var in ENV MAIL MAILPATH
34841 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34853 # Required to use basename.
34854 if expr a : '\(a\)' >/dev/null 2>&1 &&
34855 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34861 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34862 as_basename=basename
34868 # Name of the executable.
34869 as_me=`$as_basename -- "$0" ||
34870 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34871 X"$0" : 'X\(//\)$' \| \
34872 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34874 sed '/^.*\/\([^/][^/]*\)\/*$/{
34893 as_lineno_1=$LINENO
34894 as_lineno_2=$LINENO
34895 test "x$as_lineno_1" != "x$as_lineno_2" &&
34896 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34898 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34899 # uniformly replaced by the line number. The first 'sed' inserts a
34900 # line-number line after each line using $LINENO; the second 'sed'
34901 # does the real work. The second script uses 'N' to pair each
34902 # line-number line with the line containing $LINENO, and appends
34903 # trailing '-' during substitution so that $LINENO is not a special
34904 # case at line end.
34905 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34906 # scripts with optimization help from Paolo Bonzini. Blame Lee
34907 # E. McMahon (1931-1989) for sed's syntax. :-)
34919 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34922 ' >$as_me.lineno &&
34923 chmod +x "$as_me.lineno" ||
34924 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34925 { (exit 1); exit 1; }; }
34927 # Don't try to exec as it changes $[0], causing all sort of problems
34928 # (the dirname of $[0] is not the place where we might find the
34929 # original and so on. Autoconf is especially sensitive to this).
34930 . "./$as_me.lineno"
34931 # Exit status is that of the last command.
34936 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34942 ECHO_C= ECHO_N= ECHO_T=
34943 case `echo -n x` in
34945 case `echo 'x\c'` in
34946 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34952 if expr a : '\(a\)' >/dev/null 2>&1 &&
34953 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34959 rm -f conf$$ conf$$.exe conf$$.file
34960 if test -d conf$$.dir; then
34961 rm -f conf$$.dir/conf$$.file
34964 mkdir conf$$.dir 2>/dev/null
34966 if (echo >conf$$.file) 2>/dev/null; then
34967 if ln -s conf$$.file conf$$ 2>/dev/null; then
34969 # ... but there are two gotchas:
34970 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34971 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34972 # In both cases, we have to default to `cp -p'.
34973 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34975 elif ln conf$$.file conf$$ 2>/dev/null; then
34983 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34984 rmdir conf$$.dir 2>/dev/null
34986 if mkdir -p . 2>/dev/null; then
34989 test -d ./-p && rmdir ./-p
34993 if test -x / >/dev/null 2>&1; then
34994 as_test_x='test -x'
34996 if ls -dL / >/dev/null 2>&1; then
35003 if test -d "$1"; then
35009 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
35010 ???[sx]*):;;*)false;;esac;fi
35014 as_executable_p=$as_test_x
35016 # Sed expression to map a string onto a valid CPP name.
35017 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35019 # Sed expression to map a string onto a valid variable name.
35020 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35025 # Save the log message, to keep $[0] and so on meaningful, and to
35026 # report actual input values of CONFIG_FILES etc. instead of their
35027 # values after options handling.
35029 This file was extended by $as_me, which was
35030 generated by GNU Autoconf 2.62. Invocation command line was
35032 CONFIG_FILES = $CONFIG_FILES
35033 CONFIG_HEADERS = $CONFIG_HEADERS
35034 CONFIG_LINKS = $CONFIG_LINKS
35035 CONFIG_COMMANDS = $CONFIG_COMMANDS
35038 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35044 # Files that config.status was made for.
35045 config_files="$ac_config_files"
35046 config_headers="$ac_config_headers"
35047 config_commands="$ac_config_commands"
35051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35053 \`$as_me' instantiates files from templates according to the
35054 current configuration.
35056 Usage: $0 [OPTIONS] [FILE]...
35058 -h, --help print this help, then exit
35059 -V, --version print version number and configuration settings, then exit
35060 -q, --quiet do not print progress messages
35061 -d, --debug don't remove temporary files
35062 --recheck update $as_me by reconfiguring in the same conditions
35063 --file=FILE[:TEMPLATE]
35064 instantiate the configuration file FILE
35065 --header=FILE[:TEMPLATE]
35066 instantiate the configuration header FILE
35068 Configuration files:
35071 Configuration headers:
35074 Configuration commands:
35077 Report bugs to <bug-autoconf@gnu.org>."
35080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35083 configured by $0, generated by GNU Autoconf 2.62,
35084 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35086 Copyright (C) 2008 Free Software Foundation, Inc.
35087 This config.status script is free software; the Free Software Foundation
35088 gives unlimited permission to copy, distribute and modify it."
35093 test -n "\$AWK" || AWK=awk
35096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35097 # The default lists apply if the user does not specify any file.
35103 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35104 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35115 # Handling of the options.
35116 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35118 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35119 $as_echo "$ac_cs_version"; exit ;;
35120 --debug | --debu | --deb | --de | --d | -d )
35122 --file | --fil | --fi | --f )
35125 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35127 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
35128 ac_need_defaults=false;;
35129 --header | --heade | --head | --hea )
35132 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35134 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
35135 ac_need_defaults=false;;
35137 # Conflict between --help and --header
35138 { $as_echo "$as_me: error: ambiguous option: $1
35139 Try \`$0 --help' for more information." >&2
35140 { (exit 1); exit 1; }; };;
35141 --help | --hel | -h )
35142 $as_echo "$ac_cs_usage"; exit ;;
35143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35144 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35147 # This is an error.
35148 -*) { $as_echo "$as_me: error: unrecognized option: $1
35149 Try \`$0 --help' for more information." >&2
35150 { (exit 1); exit 1; }; } ;;
35152 *) ac_config_targets="$ac_config_targets $1"
35153 ac_need_defaults=false ;;
35159 ac_configure_extra_args=
35161 if $ac_cs_silent; then
35163 ac_configure_extra_args="$ac_configure_extra_args --silent"
35167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35168 if \$ac_cs_recheck; then
35169 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35171 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35172 CONFIG_SHELL='$SHELL'
35173 export CONFIG_SHELL
35178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35182 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35183 ## Running $as_me. ##
35189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35194 # Handling of arguments.
35195 for ac_config_target in $ac_config_targets
35197 case $ac_config_target in
35198 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
35199 "make/rules") CONFIG_FILES="$CONFIG_FILES make/rules" ;;
35200 "make/includes") CONFIG_FILES="$CONFIG_FILES make/includes" ;;
35201 "contrib/dlz/bin/dlzbdb/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/bin/dlzbdb/Makefile" ;;
35202 "$DLZ_DRIVER_RULES") CONFIG_FILES="$CONFIG_FILES $DLZ_DRIVER_RULES" ;;
35203 "chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod" ;;
35204 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35205 "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
35206 "make/mkdep") CONFIG_FILES="$CONFIG_FILES make/mkdep" ;;
35207 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
35208 "lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;;
35209 "lib/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/Makefile" ;;
35210 "lib/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/Makefile" ;;
35211 "lib/isc/include/isc/platform.h") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/platform.h" ;;
35212 "lib/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/Makefile" ;;
35213 "lib/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/Makefile" ;;
35214 "lib/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/isc/Makefile" ;;
35215 "lib/isc/nls/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/nls/Makefile" ;;
35216 "lib/isc/$thread_dir/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/Makefile" ;;
35217 "lib/isc/$thread_dir/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/include/Makefile" ;;
35218 "lib/isc/$thread_dir/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/include/isc/Makefile" ;;
35219 "lib/isc/$arch/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/Makefile" ;;
35220 "lib/isc/$arch/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/include/Makefile" ;;
35221 "lib/isc/$arch/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/include/isc/Makefile" ;;
35222 "lib/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/Makefile" ;;
35223 "lib/isccc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/Makefile" ;;
35224 "lib/isccc/include/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/isccc/Makefile" ;;
35225 "lib/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/Makefile" ;;
35226 "lib/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/Makefile" ;;
35227 "lib/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/isccfg/Makefile" ;;
35228 "lib/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/Makefile" ;;
35229 "lib/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/Makefile" ;;
35230 "lib/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/Makefile" ;;
35231 "lib/irs/include/irs/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/netdb.h" ;;
35232 "lib/irs/include/irs/platform.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/platform.h" ;;
35233 "lib/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/Makefile" ;;
35234 "lib/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/Makefile" ;;
35235 "lib/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dns/Makefile" ;;
35236 "lib/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dst/Makefile" ;;
35237 "lib/export/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/Makefile" ;;
35238 "lib/export/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/Makefile" ;;
35239 "lib/export/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/include/Makefile" ;;
35240 "lib/export/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/include/isc/Makefile" ;;
35241 "lib/export/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/unix/Makefile" ;;
35242 "lib/export/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/unix/include/Makefile" ;;
35243 "lib/export/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/unix/include/isc/Makefile" ;;
35244 "lib/export/isc/nls/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/nls/Makefile" ;;
35245 "lib/export/isc/$thread_dir/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/$thread_dir/Makefile" ;;
35246 "lib/export/isc/$thread_dir/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/$thread_dir/include/Makefile" ;;
35247 "lib/export/isc/$thread_dir/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/$thread_dir/include/isc/Makefile" ;;
35248 "lib/export/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/dns/Makefile" ;;
35249 "lib/export/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/dns/include/Makefile" ;;
35250 "lib/export/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/dns/include/dns/Makefile" ;;
35251 "lib/export/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/dns/include/dst/Makefile" ;;
35252 "lib/export/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/irs/Makefile" ;;
35253 "lib/export/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/irs/include/Makefile" ;;
35254 "lib/export/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/irs/include/irs/Makefile" ;;
35255 "lib/export/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isccfg/Makefile" ;;
35256 "lib/export/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isccfg/include/Makefile" ;;
35257 "lib/export/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isccfg/include/isccfg/Makefile" ;;
35258 "lib/export/samples/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/samples/Makefile" ;;
35259 "lib/export/samples/Makefile-postinstall") CONFIG_FILES="$CONFIG_FILES lib/export/samples/Makefile-postinstall" ;;
35260 "lib/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/Makefile" ;;
35261 "lib/bind9/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/Makefile" ;;
35262 "lib/bind9/include/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/bind9/Makefile" ;;
35263 "lib/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/Makefile" ;;
35264 "lib/lwres/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/Makefile" ;;
35265 "lib/lwres/include/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/Makefile" ;;
35266 "lib/lwres/include/lwres/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/netdb.h" ;;
35267 "lib/lwres/include/lwres/platform.h") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/platform.h" ;;
35268 "lib/lwres/man/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/man/Makefile" ;;
35269 "lib/lwres/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/Makefile" ;;
35270 "lib/lwres/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/include/Makefile" ;;
35271 "lib/lwres/unix/include/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/include/lwres/Makefile" ;;
35272 "lib/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tests/Makefile" ;;
35273 "lib/tests/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tests/include/Makefile" ;;
35274 "lib/tests/include/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tests/include/tests/Makefile" ;;
35275 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
35276 "bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;;
35277 "bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;;
35278 "bin/confgen/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/unix/Makefile" ;;
35279 "bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;;
35280 "bin/named/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/unix/Makefile" ;;
35281 "bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;;
35282 "bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;;
35283 "bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;;
35284 "bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;;
35285 "bin/tests/names/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/names/Makefile" ;;
35286 "bin/tests/master/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/master/Makefile" ;;
35287 "bin/tests/rbt/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/rbt/Makefile" ;;
35288 "bin/tests/db/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/db/Makefile" ;;
35289 "bin/tests/tasks/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/tasks/Makefile" ;;
35290 "bin/tests/timers/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/timers/Makefile" ;;
35291 "bin/tests/dst/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Makefile" ;;
35292 "bin/tests/mem/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/mem/Makefile" ;;
35293 "bin/tests/net/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/net/Makefile" ;;
35294 "bin/tests/sockaddr/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/sockaddr/Makefile" ;;
35295 "bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;;
35296 "bin/tests/system/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/conf.sh" ;;
35297 "bin/tests/system/lwresd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/lwresd/Makefile" ;;
35298 "bin/tests/system/tkey/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/tkey/Makefile" ;;
35299 "bin/tests/headerdep_test.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/headerdep_test.sh" ;;
35300 "bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;;
35301 "bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;;
35302 "bin/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pkcs11/Makefile" ;;
35303 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
35304 "doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;;
35305 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
35306 "isc-config.sh") CONFIG_FILES="$CONFIG_FILES isc-config.sh" ;;
35307 "doc/xsl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xsl/Makefile" ;;
35308 "doc/xsl/isc-docbook-chunk.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-chunk.xsl" ;;
35309 "doc/xsl/isc-docbook-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-html.xsl" ;;
35310 "doc/xsl/isc-docbook-latex.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-latex.xsl" ;;
35311 "doc/xsl/isc-manpage.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-manpage.xsl" ;;
35312 "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
35313 "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
35314 "doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;;
35316 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35317 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35318 { (exit 1); exit 1; }; };;
35323 # If the user did not use the arguments to specify the items to instantiate,
35324 # then the envvar interface is used. Set only those that are not.
35325 # We use the long form for the default assignment because of an extremely
35326 # bizarre bug on SunOS 4.1.3.
35327 if $ac_need_defaults; then
35328 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35329 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35330 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35333 # Have a temporary directory for convenience. Make it in the build tree
35334 # simply because there is no reason against having it here, and in addition,
35335 # creating and moving files from /tmp can sometimes cause problems.
35336 # Hook for its removal unless debugging.
35337 # Note that there is a small window in which the directory will not be cleaned:
35338 # after its creation but before its name has been assigned to `$tmp'.
35342 trap 'exit_status=$?
35343 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35345 trap '{ (exit 1); exit 1; }' 1 2 13 15
35347 # Create a (secure) tmp directory for tmp files.
35350 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35351 test -n "$tmp" && test -d "$tmp"
35354 tmp=./conf$$-$RANDOM
35355 (umask 077 && mkdir "$tmp")
35358 $as_echo "$as_me: cannot create a temporary directory in ." >&2
35359 { (exit 1); exit 1; }
35362 # Set up the scripts for CONFIG_FILES section.
35363 # No need to generate them if there are no CONFIG_FILES.
35364 # This happens for instance with `./config.status config.h'.
35365 if test -n "$CONFIG_FILES"; then
35367 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
35368 ac_cs_awk_getline=:
35369 ac_cs_awk_pipe_init=
35370 ac_cs_awk_read_file='
35371 while ((getline aline < (F[key])) > 0)
35374 ac_cs_awk_pipe_fini=
35376 ac_cs_awk_getline=false
35377 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
35378 ac_cs_awk_read_file='
35380 print "cat " F[key] " &&"
35381 '$ac_cs_awk_pipe_init
35382 # The final `:' finishes the AND list.
35383 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
35386 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35387 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35390 ac_cs_awk_cr=$ac_cr
35393 echo 'BEGIN {' >"$tmp/subs1.awk" &&
35396 # Create commands to substitute file output variables.
35398 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
35399 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
35400 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
35403 } >conf$$files.sh &&
35404 . ./conf$$files.sh ||
35405 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35406 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35407 { (exit 1); exit 1; }; }
35408 rm -f conf$$files.sh
35411 echo "cat >conf$$subs.awk <<_ACEOF" &&
35412 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35414 } >conf$$subs.sh ||
35415 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35416 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35417 { (exit 1); exit 1; }; }
35418 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
35420 for ac_last_try in false false false false false :; do
35421 . ./conf$$subs.sh ||
35422 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35423 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35424 { (exit 1); exit 1; }; }
35426 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
35428 elif $ac_last_try; then
35429 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35430 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35431 { (exit 1); exit 1; }; }
35433 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35436 rm -f conf$$subs.sh
35438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35439 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
35443 s/^/S["/; s/!.*/"]=/
35453 s/\(.\{148\}\).*/\1/
35455 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35460 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35467 s/\(.\{148\}\).*/\1/
35469 s/["\\]/\\&/g; s/^/"/; s/$/"/
35473 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35478 ' <conf$$subs.awk | sed '
35483 ' >>$CONFIG_STATUS || ac_write_fail=1
35484 rm -f conf$$subs.awk
35485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35487 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
35488 for (key in S) S_is_set[key] = 1
35490 \$ac_cs_awk_pipe_init
35494 nfields = split(line, field, "@")
35496 len = length(field[1])
35497 for (i = 2; i < nfields; i++) {
35499 keylen = length(key)
35500 if (S_is_set[key]) {
35502 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35503 len += length(value) + length(field[++i])
35508 if (nfields == 3 && !substed) {
35510 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
35511 \$ac_cs_awk_read_file
35517 \$ac_cs_awk_pipe_fini
35520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35521 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35522 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35525 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
35526 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
35527 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
35528 { (exit 1); exit 1; }; }
35531 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35532 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35533 # trailing colons and then remove the whole line if VPATH becomes empty
35534 # (actually we leave an empty line to preserve line numbers).
35535 if test "x$srcdir" = x.; then
35536 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35537 s/:*\$(srcdir):*/:/
35538 s/:*\${srcdir}:*/:/
35540 s/^\([^=]*=[ ]*\):*/\1/
35546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35547 fi # test -n "$CONFIG_FILES"
35549 # Set up the scripts for CONFIG_HEADERS section.
35550 # No need to generate them if there are no CONFIG_HEADERS.
35551 # This happens for instance with `./config.status Makefile'.
35552 if test -n "$CONFIG_HEADERS"; then
35553 cat >"$tmp/defines.awk" <<\_ACAWK ||
35557 # Transform confdefs.h into an awk script `defines.awk', embedded as
35558 # here-document in config.status, that substitutes the proper values into
35559 # config.h.in to produce config.h.
35561 # Create a delimiter string that does not exist in confdefs.h, to ease
35562 # handling of long lines.
35564 for ac_last_try in false false :; do
35565 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
35566 if test -z "$ac_t"; then
35568 elif $ac_last_try; then
35569 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
35570 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
35571 { (exit 1); exit 1; }; }
35573 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35577 # For the awk script, D is an array of macro values keyed by name,
35578 # likewise P contains macro parameters if any. Preserve backslash
35579 # newline sequences.
35581 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35583 s/.\{148\}/&'"$ac_delim"'/g
35586 s/^[ ]*#[ ]*define[ ][ ]*/ /
35593 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35595 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35599 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35600 D["\1"]=" \3\\\\\\n"\\/p
35602 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35607 s/.\{148\}/&'"$ac_delim"'/g
35612 s/["\\]/\\&/g; s/^/"/; s/$/"/p
35615 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35617 ' <confdefs.h | sed '
35618 s/'"$ac_delim"'/"\\\
35619 "/g' >>$CONFIG_STATUS || ac_write_fail=1
35621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35622 for (key in D) D_is_set[key] = 1
35625 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35627 split(line, arg, " ")
35628 if (arg[1] == "#") {
35632 defundef = substr(arg[1], 2)
35635 split(mac1, mac2, "(") #)
35637 if (D_is_set[macro]) {
35638 # Preserve the white space surrounding the "#".
35639 prefix = substr(line, 1, index(line, defundef) - 1)
35640 print prefix "define", macro P[macro] D[macro]
35643 # Replace #undef with comments. This is necessary, for example,
35644 # in the case of _POSIX_SOURCE, which is predefined and required
35645 # on some systems where configure will not decide to define it.
35646 if (defundef == "undef") {
35647 print "/*", line, "*/"
35655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35656 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
35657 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
35658 { (exit 1); exit 1; }; }
35659 fi # test -n "$CONFIG_HEADERS"
35662 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
35667 :[FHLC]) ac_mode=$ac_tag; continue;;
35669 case $ac_mode$ac_tag in
35671 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35672 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35673 { (exit 1); exit 1; }; };;
35674 :[FH]-) ac_tag=-:-;;
35675 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35692 -) ac_f="$tmp/stdin";;
35693 *) # Look for the file first in the build tree, then in the source tree
35694 # (if the path is not absolute). The absolute path cannot be DOS-style,
35695 # because $ac_f cannot contain `:'.
35699 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35701 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35702 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35703 { (exit 1); exit 1; }; };;
35705 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
35706 ac_file_inputs="$ac_file_inputs '$ac_f'"
35709 # Let's still pretend it is `configure' which instantiates (i.e., don't
35710 # use $as_me), people would be surprised to read:
35711 # /* config.h. Generated by config.status. */
35712 configure_input='Generated from '`
35713 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35715 if test x"$ac_file" != x-; then
35716 configure_input="$ac_file. $configure_input"
35717 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
35718 $as_echo "$as_me: creating $ac_file" >&6;}
35720 # Neutralize special characters interpreted by sed in replacement strings.
35721 case $configure_input in #(
35722 *\&* | *\|* | *\\* )
35723 ac_sed_conf_input=`$as_echo "$configure_input" |
35724 sed 's/[\\\\&|]/\\\\&/g'`;; #(
35725 *) ac_sed_conf_input=$configure_input;;
35729 *:-:* | *:-) cat >"$tmp/stdin" \
35730 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
35731 $as_echo "$as_me: error: could not create $ac_file" >&2;}
35732 { (exit 1); exit 1; }; } ;;
35737 ac_dir=`$as_dirname -- "$ac_file" ||
35738 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35739 X"$ac_file" : 'X\(//\)[^/]' \| \
35740 X"$ac_file" : 'X\(//\)$' \| \
35741 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35742 $as_echo X"$ac_file" |
35743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35747 /^X\(\/\/\)[^/].*/{
35762 -*) as_dir=./$as_dir;;
35764 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35768 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35769 *) as_qdir=$as_dir;;
35771 as_dirs="'$as_qdir' $as_dirs"
35772 as_dir=`$as_dirname -- "$as_dir" ||
35773 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35774 X"$as_dir" : 'X\(//\)[^/]' \| \
35775 X"$as_dir" : 'X\(//\)$' \| \
35776 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35777 $as_echo X"$as_dir" |
35778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35782 /^X\(\/\/\)[^/].*/{
35795 test -d "$as_dir" && break
35797 test -z "$as_dirs" || eval "mkdir $as_dirs"
35798 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35799 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
35800 { (exit 1); exit 1; }; }; }
35804 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35806 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35807 # A ".." for each directory in $ac_dir_suffix.
35808 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35809 case $ac_top_builddir_sub in
35810 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35811 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35814 ac_abs_top_builddir=$ac_pwd
35815 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35816 # for backward compatibility:
35817 ac_top_builddir=$ac_top_build_prefix
35820 .) # We are building in place.
35822 ac_top_srcdir=$ac_top_builddir_sub
35823 ac_abs_top_srcdir=$ac_pwd ;;
35824 [\\/]* | ?:[\\/]* ) # Absolute name.
35825 ac_srcdir=$srcdir$ac_dir_suffix;
35826 ac_top_srcdir=$srcdir
35827 ac_abs_top_srcdir=$srcdir ;;
35828 *) # Relative name.
35829 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35830 ac_top_srcdir=$ac_top_build_prefix$srcdir
35831 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35833 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35843 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35844 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35849 # If the template does not know about datarootdir, expand it.
35850 # FIXME: This hack should be removed a few years after 2.60.
35851 ac_datarootdir_hack=; ac_datarootdir_seen=
35864 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35865 *datarootdir*) ac_datarootdir_seen=yes;;
35866 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35867 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35868 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35871 ac_datarootdir_hack='
35872 s&@datadir@&$datadir&g
35873 s&@docdir@&$docdir&g
35874 s&@infodir@&$infodir&g
35875 s&@localedir@&$localedir&g
35876 s&@mandir@&$mandir&g
35877 s&\\\${datarootdir}&$datarootdir&g' ;;
35881 # Neutralize VPATH when `$srcdir' = `.'.
35882 # Shell code in configure.ac might set extrasub.
35883 # FIXME: do we really want to maintain this feature?
35884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35885 ac_sed_extra="$ac_vpsub
35888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35890 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35891 s|@configure_input@|$ac_sed_conf_input|;t t
35892 s&@top_builddir@&$ac_top_builddir_sub&;t t
35893 s&@top_build_prefix@&$ac_top_build_prefix&;t t
35894 s&@srcdir@&$ac_srcdir&;t t
35895 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35896 s&@top_srcdir@&$ac_top_srcdir&;t t
35897 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35898 s&@builddir@&$ac_builddir&;t t
35899 s&@abs_builddir@&$ac_abs_builddir&;t t
35900 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35901 s&@INSTALL@&$ac_INSTALL&;t t
35902 $ac_datarootdir_hack
35904 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
35905 if $ac_cs_awk_getline; then
35906 $AWK -f "$tmp/subs.awk"
35908 $AWK -f "$tmp/subs.awk" | $SHELL
35910 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
35911 $as_echo "$as_me: error: could not create $ac_file" >&2;}
35912 { (exit 1); exit 1; }; }
35914 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35915 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35916 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35917 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35918 which seems to be undefined. Please make sure it is defined." >&5
35919 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35920 which seems to be undefined. Please make sure it is defined." >&2;}
35924 -) cat "$tmp/out" && rm -f "$tmp/out";;
35925 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
35927 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
35928 $as_echo "$as_me: error: could not create $ac_file" >&2;}
35929 { (exit 1); exit 1; }; }
35935 if test x"$ac_file" != x-; then
35937 $as_echo "/* $configure_input */" \
35938 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
35939 } >"$tmp/config.h" \
35940 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
35941 $as_echo "$as_me: error: could not create $ac_file" >&2;}
35942 { (exit 1); exit 1; }; }
35943 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
35944 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35945 $as_echo "$as_me: $ac_file is unchanged" >&6;}
35948 mv "$tmp/config.h" "$ac_file" \
35949 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
35950 $as_echo "$as_me: error: could not create $ac_file" >&2;}
35951 { (exit 1); exit 1; }; }
35954 $as_echo "/* $configure_input */" \
35955 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
35956 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
35957 $as_echo "$as_me: error: could not create -" >&2;}
35958 { (exit 1); exit 1; }; }
35962 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
35963 $as_echo "$as_me: executing $ac_file commands" >&6;}
35968 case $ac_file$ac_mode in
35969 "chmod":C) chmod a+x isc-config.sh doc/doxygen/doxygen-input-filter ;;
35975 { (exit 0); exit 0; }
35977 chmod +x $CONFIG_STATUS
35978 ac_clean_files=$ac_clean_files_save
35980 test $ac_write_fail = 0 ||
35981 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
35982 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
35983 { (exit 1); exit 1; }; }
35986 # configure is writing to config.log, and then calls config.status.
35987 # config.status does its own redirection, appending to config.log.
35988 # Unfortunately, on DOS this fails, as config.log is still kept open
35989 # by configure, so config.status won't be able to write to it; its
35990 # output is simply discarded. So we exec the FD to /dev/null,
35991 # effectively closing config.log, so it can be properly (re)opened and
35992 # appended to by config.status. When coming back to configure, we
35993 # need to make the FD available again.
35994 if test "$no_create" != yes; then
35996 ac_config_status_args=
35997 test "$silent" = yes &&
35998 ac_config_status_args="$ac_config_status_args --quiet"
36000 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36002 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36003 # would make configure fail if this is the last instruction.
36004 $ac_cs_success || { (exit 1); exit 1; }
36006 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
36007 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
36008 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
36013 # Now that the Makefiles exist we can ensure that everything is rebuilt.
36016 # Check whether --with-make-clean was given.
36017 if test "${with_make_clean+set}" = set; then
36018 withval=$with_make_clean; make_clean="$withval"
36023 case "$make_clean" in
36029 if test "X$USE_OPENSSL" = "X"; then
36031 BIND is being built without OpenSSL. This means it will not have DNSSEC support.
36035 if test "X$OPENSSL_WARNING" != "X"; then
36037 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
36038 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
36040 WARNING Your OpenSSL crypto library may be vulnerable to WARNING
36041 WARNING one or more of the the following known security WARNING
36042 WARNING flaws: WARNING
36044 WARNING CAN-2002-0659, CAN-2006-4339, CVE-2006-2937 and WARNING
36045 WARNING CVE-2006-2940. WARNING
36047 WARNING It is recommended that you upgrade to OpenSSL WARNING
36048 WARNING version 0.9.8d/0.9.7l (or greater). WARNING
36050 WARNING You can disable this warning by specifying: WARNING
36052 WARNING --disable-openssl-version-check WARNING
36054 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
36055 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
36059 # Tell Emacs to edit this file in shell mode.